@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700&family=Syne:wght@700;800&display=swap");

:root {
  --ink: #0b1220;
  --foam: #e8f1f4;
  --panel: rgba(12, 28, 36, 0.72);
  --accent: #1ec8a5;
  --accent-2: #f0b429;
  --muted: #9bb0b8;
  --line: rgba(232, 241, 244, 0.14);
  --font-display: "Syne", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "DM Sans", "Avenir Next", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--foam);
  font-family: var(--font-body);
  background: #071018;
  line-height: 1.5;
  min-height: 100vh;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 16, 24, 0.15) 0%, rgba(7, 16, 24, 0.85) 70%),
    radial-gradient(ellipse 70% 55% at 70% 20%, rgba(30, 200, 165, 0.25), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(240, 180, 41, 0.12), transparent 55%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E"),
    linear-gradient(145deg, #0a1a22 0%, #122b36 50%, #0b151c 100%);
  background-size: cover;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 8vh, 5rem);
  max-width: 40rem;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 0.85rem;
  line-height: 0.95;
  color: #f4fbf9;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.15;
  max-width: 16ch;
  color: var(--accent);
}

.lede {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 34ch;
}

.disclaimer {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 0.2rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn.primary {
  background: var(--accent);
  color: #06201a;
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--foam);
}

main { padding: 0 clamp(1.5rem, 4vw, 3.5rem) 4rem; max-width: 48rem; }
.section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.section h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 0.35rem;
}
.sub { margin: 0 0 1.25rem; color: var(--muted); }

.ranking {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.ranking li {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.ranking .rang {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent-2);
}
.ranking .nom { font-weight: 700; }
.ranking .meta { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.ranking .ratio {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
  color: var(--accent);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 28rem;
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.form input,
.form select,
.form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.2rem;
  background: rgba(7, 16, 24, 0.65);
  color: var(--foam);
}
.status { min-height: 1.25rem; color: var(--muted); font-size: 0.95rem; }
.status.ok { color: var(--accent); }
.status.err { color: #ff7a6a; }

footer {
  padding: 1.5rem clamp(1.5rem, 4vw, 3.5rem) 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .ranking li { grid-template-columns: 2rem 1fr; }
  .ranking .ratio { grid-column: 2; }
}
