:root {
  --bg: #04100c;
  --bg-raised: #081d17;
  --surface: #0c2920;
  --surface-2: #123a2d;
  --line: #21503f;
  --line-soft: #173a2e;
  --ink: #f6f1e1;
  --muted: #a4bdb0;
  --gold: #f2c14e;
  --gold-soft: #ffe39a;
  --green: #2bd985;
  --paper: #f4ebd3;
  --paper-ink: #2b2518;
  --radius: 16px;
  --shadow: 0 18px 50px rgb(0 0 0 / .45);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-soft); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1a1405; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(4 16 12 / .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; }
.nav a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #1a1405 !important; box-shadow: 0 6px 24px rgb(242 193 78 / .28); }
.btn-primary:hover { background: var(--gold-soft); box-shadow: 0 10px 30px rgb(242 193 78 / .4); }
.btn-ghost { border-color: var(--line); color: var(--ink) !important; background: transparent; }
.btn-ghost:hover { border-color: var(--green); background: rgb(43 217 133 / .08); }
.btn-lg { padding: 16px 32px; font-size: 1.12rem; }
.btn-sm { padding: 8px 18px; font-size: .92rem; }

.hero { position: relative; overflow: hidden; padding: 64px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgb(43 217 133 / .16), transparent 70%); pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; margin-bottom: 18px; background: rgb(43 217 133 / .06); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 900; }
h1 em { font-style: normal; color: var(--gold); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 850; }
h3 { font-size: 1.2rem; font-weight: 800; }
.lead { font-size: 1.2rem; color: #d9e6de; max-width: 42ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.fine { color: var(--muted); font-size: .9rem; }

.map-card {
  background: linear-gradient(160deg, var(--surface), var(--bg-raised));
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 14px;
}
.map-card svg { width: 100%; height: auto; }
.map-outline { fill: rgb(43 217 133 / .07); stroke: var(--line); stroke-width: 2; stroke-linejoin: round; }
.map-grid circle { fill: var(--line-soft); }
.route-base { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
.route-live { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgb(242 193 78 / .6)); }
.stop circle { fill: var(--surface-2); stroke: var(--line); stroke-width: 2; transition: fill .3s, stroke .3s; }
.stop text { fill: var(--muted); font-size: 14px; font-weight: 700; opacity: 0; transition: opacity .4s, fill .3s; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
.stop.hit circle { fill: var(--green); stroke: var(--green); }
.stop.hit text { opacity: 1; fill: var(--ink); }
.pin { filter: drop-shadow(0 4px 6px rgb(0 0 0 / .5)); }
.clue-bubble {
  margin: 10px 6px 4px; padding: 14px 16px; border-radius: 14px; background: var(--paper); color: var(--paper-ink);
  font-size: .98rem; line-height: 1.45; min-height: 5.6em; display: flex; gap: 12px; align-items: flex-start;
  box-shadow: 0 6px 18px rgb(0 0 0 / .3);
}
.clue-bubble .who { font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #8a5a00; display: block; margin-bottom: 2px; }
.clue-bubble .emoji { font-size: 1.6rem; line-height: 1; }
.clue-bubble.swap { animation: swap .5s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

section { padding: 84px 0; }
.band { background: var(--bg-raised); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.kicker { color: var(--gold); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: 10px; display: block; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px; position: relative; counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #1a1405; font-weight: 900; display: grid; place-items: center; }
.step .icon { font-size: 2rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; text-align: center; }
.stat { padding: 22px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat b { display: block; font-size: 2.3rem; font-weight: 900; color: var(--gold); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .92rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split p { color: #d9e6de; }

.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.demo h3 { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 20px; min-height: 92px; align-content: flex-start; }
.chip { padding: 8px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; transition: all .45s ease; }
.chip.out { opacity: .22; transform: scale(.9); text-decoration: line-through; }
.chip.win { background: var(--green); color: #04130c; border-color: var(--green); transform: scale(1.1); box-shadow: 0 0 22px rgb(43 217 133 / .5); }
.clue-btns { display: grid; gap: 10px; }
.clue-btn {
  text-align: left; padding: 12px 16px; border-radius: 12px; background: var(--paper); color: var(--paper-ink);
  border: 2px solid transparent; font: inherit; font-size: .95rem; cursor: pointer; transition: transform .15s, opacity .3s;
}
.clue-btn:hover:not(:disabled) { transform: translateX(4px); border-color: var(--gold); }
.clue-btn:disabled { opacity: .45; cursor: default; }
.demo-note { margin: 14px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.reset { background: none; border: 0; color: var(--gold); cursor: pointer; font: inherit; font-weight: 700; text-decoration: underline; }

.dossier { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.dossier div { background: var(--paper); color: var(--paper-ink); border-radius: 10px; padding: 8px 12px; font-size: .88rem; }
.dossier b { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #8a5a00; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); background: linear-gradient(160deg, var(--surface), var(--bg-raised)); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-4px); border-color: var(--green); }
.feature .icon { font-size: 1.8rem; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; }

.ranks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rank { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 700; }
.rank:last-child { border-color: var(--gold); color: var(--gold); }

.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.promise div { padding: 22px; border-radius: var(--radius); border: 1px dashed var(--line); }
.promise h3 { color: var(--green); }
.promise p { margin: 0; color: var(--muted); }

details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 750; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

.cta-final { text-align: center; background: radial-gradient(ellipse at top, rgb(43 217 133 / .14), transparent 60%), var(--bg); }
.cta-final p { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; font-size: 1.1rem; }

.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-raised); padding: 44px 0 30px; color: var(--muted); font-size: .94rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; margin-bottom: 26px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid h4 { margin: 0 0 10px; color: var(--ink); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--gold); }
.foot-grid p { margin: 8px 0 0; max-width: 34ch; }
.disclaimer-line { border-top: 1px solid var(--line-soft); padding-top: 20px; font-size: .85rem; max-width: 95ch; margin: 0; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.float { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.pulse-ring { transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { opacity: .7; transform: scale(.6); } to { opacity: 0; transform: scale(2.2); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.doc { padding: 56px 0 90px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: .8em; border-top: 1px solid var(--line-soft); }
.doc h3 { font-size: 1.08rem; margin-top: 1.4em; color: var(--gold-soft); }
.doc p, .doc li { color: #d9e6de; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: .35em 0; }
.doc .meta { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.doc .callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.doc .callout p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.doc th { background: var(--surface); color: var(--gold-soft); }
.doc .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 24px; margin: 24px 0; }
.doc .toc ol { margin: 0; columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } .doc table { display: block; overflow-x: auto; } }
