:root {
  --bg: #0d0f12;
  --surface: #161a1f;
  --surface2: #1e232a;
  --line: #2a3038;
  --text: #eef1f4;
  --muted: #8b95a1;
  --accent: #c6f432;
  --ink: #0d0f12;
  --ghost: #a08cff;
  --good: #3ddc97;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: calc(12px + env(safe-area-inset-top)) 20px 12px;
  background: rgba(13, 15, 18, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 700;
  background: var(--surface2); border: 1px solid var(--line);
  transition: transform .12s, box-shadow .2s, background .2s;
}
.btn:hover { background: #262c34; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--ink); border-color: transparent; box-shadow: 0 8px 30px -8px rgba(198, 244, 50, .55); }
.btn.primary:hover { background: #d4fb52; }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn.lg { padding: 16px 26px; font-size: 17px; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 56px; position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: -120px -200px auto auto; width: 620px; height: 620px; z-index: -1;
  background: radial-gradient(circle, rgba(160, 140, 255, .22), transparent 65%);
}
.pill {
  display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: var(--ghost); background: rgba(160, 140, 255, .12); border: 1px solid rgba(160, 140, 255, .3);
}
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 18px 0; font-weight: 850; }
.hl { color: var(--accent); }
.lead { font-size: 19px; color: #c3cad2; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row.center { justify-content: center; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 14px; color: var(--muted); }

/* Phone mock */
.phone {
  position: relative; justify-self: center; width: 300px; padding: 14px; border-radius: 44px;
  background: #050607; border: 1px solid #2c323a;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 6px #14171b;
  transform: rotate(2deg);
}
.phone-notch { width: 96px; height: 24px; border-radius: 0 0 14px 14px; background: #050607; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2; }
.screen { background: var(--bg); border-radius: 32px; padding: 40px 16px 20px; overflow: hidden; }
.scr-top { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff6b6b; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.scr-map { width: 100%; height: auto; margin: 10px 0 6px; background: #11151a; border-radius: 14px; }
.scr-time { font-size: 44px; font-weight: 850; text-align: center; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.scr-stats { display: flex; justify-content: center; gap: 28px; margin-bottom: 12px; }
.scr-stats b { font-size: 20px; font-variant-numeric: tabular-nums; }
.scr-stats small { color: var(--muted); font-size: 12px; margin-left: 3px; }
.scr-lanes .lane { position: relative; height: 18px; margin: 6px 4px; border-radius: 999px; background: var(--surface2); }
.d { position: absolute; top: 50%; width: 20px; height: 20px; margin-left: -10px; transform: translateY(-50%); border-radius: 50%; display: grid; place-items: center; font-size: 11px; transition: left .5s linear; }
.d.me { background: var(--accent); box-shadow: 0 0 12px rgba(198, 244, 50, .6); }
.d.ghost { background: var(--ghost); box-shadow: 0 0 12px rgba(160, 140, 255, .6); }
.scr-gap { text-align: center; font-weight: 850; font-size: 18px; margin-top: 8px; font-variant-numeric: tabular-nums; transition: color .3s; }
.scr-gap.ahead { color: var(--good); }
.scr-gap.behind { color: var(--ghost); }
.callout {
  position: absolute; left: -40px; bottom: 90px; padding: 10px 14px; border-radius: 14px;
  background: var(--text); color: var(--ink); font-weight: 800; font-size: 14px; white-space: nowrap;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(10px) rotate(-2deg); transition: opacity .3s, transform .3s;
}
.callout.show { opacity: 1; transform: translateY(0) rotate(-2deg); }

/* Strip */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 40px;
  background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; padding: 0;
}
.strip div { background: var(--surface); padding: 22px; }
.strip b { display: block; font-size: 26px; letter-spacing: -.02em; color: var(--accent); }
.strip span { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding-top: 72px; padding-bottom: 8px; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -.03em; margin: 10px 0 32px; max-width: 22em; }
h3 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 6px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  transition: transform .2s, border-color .2s;
}
.feat:hover { transform: translateY(-3px); border-color: #3a424c; }
.feat p { color: var(--muted); font-size: 15px; }
.feat-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--surface2); margin-bottom: 14px; }
.feat-ico.ghost { background: rgba(160, 140, 255, .16); }
.feat.big {
  grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column;
  background: linear-gradient(150deg, #1f1a3d, #161a1f 60%); border-color: #3a3166;
}
.feat.big h3 { font-size: 26px; }
.feat.big p { font-size: 17px; color: #c9c3e8; max-width: 32em; }
.mini-race { margin-top: auto; padding-top: 28px; }
.mr-lane { position: relative; height: 22px; margin: 8px 0; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.mr-dot { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; transform: translateY(-50%); }
.mr-dot.g { background: var(--ghost); animation: raceG 6s ease-in-out infinite; }
.mr-dot.m { background: var(--accent); animation: raceM 6s ease-in-out infinite; }
@keyframes raceG { 0% { left: 0; } 50% { left: 52%; } 100% { left: calc(100% - 22px); } }
@keyframes raceM { 0% { left: 0; } 50% { left: 44%; } 85% { left: calc(100% - 22px); } 100% { left: calc(100% - 22px); } }

/* Journey */
.journey { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; position: relative; }
.journey::before { content: ""; position: absolute; top: 22px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--ghost)); opacity: .5; z-index: -1; }
.journey li { display: flex; flex-direction: column; gap: 14px; }
.step {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 850; background: var(--accent); color: var(--ink); box-shadow: 0 0 0 6px var(--bg);
}
.journey li:nth-child(n+3) .step { background: var(--ghost); }
.journey p { color: var(--muted); font-size: 15px; }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { padding: 24px; border-radius: 20px; border: 1px dashed #353c46; }
.case span { font-size: 30px; display: block; margin-bottom: 10px; }
.case p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 16px; }

/* Final */
.final { padding-top: 80px; padding-bottom: 40px; }
.final-card {
  text-align: center; padding: 56px 24px; border-radius: 28px;
  background: radial-gradient(circle at 50% 0%, rgba(198, 244, 50, .16), transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.final-card h2 { margin: 12px auto 10px; }
.final-card p { color: var(--muted); font-size: 18px; }
.final-ghost { font-size: 54px; animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-5deg); } }

.foot { display: flex; justify-content: space-between; padding-top: 24px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot a:hover { color: var(--text); }

/* Dialog + toast */
dialog { margin: auto; width: min(420px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--text); padding: 0; }
dialog::backdrop { background: rgba(0, 0, 0, .65); }
.dlg { padding: 24px; display: grid; gap: 14px; }
.dlg ol { padding-left: 20px; color: #c3cad2; display: grid; gap: 6px; }
.dlg-row { display: flex; gap: 10px; justify-content: flex-end; }
#toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--ink); font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; transition: opacity .25s, transform .25s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: left; }
  .phone { transform: none; margin-top: 8px; }
  .callout { left: 50%; transform: translate(-50%, 10px); bottom: -18px; }
  .callout.show { transform: translate(-50%, 0); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr 1fr; }
  .feat.big { grid-column: 1 / -1; grid-row: auto; }
  .journey { grid-template-columns: 1fr; gap: 22px; }
  .journey::before { top: 10px; bottom: 10px; left: 22px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--accent), var(--ghost)); }
  .journey li { flex-direction: row; align-items: flex-start; }
  .step { flex: none; }
  .cases { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .phone { width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
