:root {
  --bg: #140d2e;
  --panel: rgba(24, 15, 56, 0.86);
  --border: #3a2770;
  --text: #f3ecff;
  --muted: #b3a6d8;
  --cream: #ffe9c0;
  --orange: #ff9d3c;
  --pink: #ff5470;
  --sky-top: #241747;
  --sky-bottom: #ff9d3c;
  --ridge-far: #3a2770;
  --ridge-near: #2b1d55;
  --sun-y: 0;
  --stars: 0;
  --road-w: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  position: relative;
}
a { color: var(--orange); }
a:hover { color: var(--cream); }
code { background: rgba(255,255,255,.08); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); color: #140d2e; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---- the scene behind everything ---- */
.scene { position: fixed; inset: 0; z-index: -3; overflow: hidden; }
.sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); }
.stars {
  position: absolute; inset: 0; opacity: var(--stars);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 44% 22%, #ffe9c0, transparent), radial-gradient(1px 1px at 63% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 26%, #fff, transparent), radial-gradient(1px 1px at 90% 9%, #ffe9c0, transparent),
    radial-gradient(1px 1px at 6% 38%, #fff, transparent), radial-gradient(1.5px 1.5px at 52% 40%, #fff, transparent),
    radial-gradient(1px 1px at 84% 44%, #fff, transparent), radial-gradient(1px 1px at 35% 32%, #ffe9c0, transparent);
}
.sun { position: absolute; right: 12%; bottom: 36%; width: clamp(90px, 14vw, 170px); height: auto; transform: translateY(calc(var(--sun-y) * 1px)); opacity: var(--sun-o, 1); }
.ridge { position: absolute; left: -2%; width: 104%; bottom: 0; height: 34vh; }
.ridge.far { height: 42vh; fill: var(--ridge-far); transform: translateY(var(--far-y, 0px)); }
.ridge.near { fill: var(--ridge-near); transform: translateY(var(--near-y, 0px)); }

/* ---- the road ---- */
.road { position: absolute; left: 0; top: 0; width: 100%; z-index: -1; pointer-events: none; overflow: visible; }
.road path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.road-edge { stroke: #ffe9c0; stroke-opacity: .55; stroke-width: calc(var(--road-w) + 6px); }
.road-asphalt { stroke: #221748; stroke-width: var(--road-w); }
.road-line { stroke: #ffd36b; stroke-width: 3; stroke-dasharray: 16 18; opacity: .75; }
.road-driven { stroke: url(#driven); stroke: var(--pink); stroke-width: 5; filter: drop-shadow(0 0 6px rgba(255, 84, 112, .9)); }
.car { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); will-change: transform; }

/* ---- top bar ---- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(20, 13, 46, .92), rgba(20, 13, 46, .6)); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58, 39, 112, .6);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font-weight: 700; line-height: 1.1; font-size: 15px; }
.brand span { display: flex; flex-direction: column; }
.brand b { color: var(--pink); font-size: 13px; }
.brand img { border-radius: 9px; }
nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
nav a:hover { color: var(--cream); }
nav .nav-cta { color: #1a0f33; background: linear-gradient(90deg, var(--orange), var(--pink)); padding: 6px 14px; border-radius: 999px; }
nav .nav-cta:hover { color: #1a0f33; filter: brightness(1.1); }

/* ---- sections along the road ---- */
main { position: relative; z-index: 1; }
.stop { min-height: 100vh; padding: 110px clamp(16px, 5vw, 64px) 60px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.stop.left > * { align-self: flex-start; }
.stop.right > * { align-self: flex-end; }
.panel {
  width: min(100%, 560px);
  background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: clamp(20px, 3vw, 34px);
  backdrop-filter: blur(10px); box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.panel.hero, .panel.finish { width: min(100%, 640px); }
.kicker { margin: 0 0 6px; color: var(--orange); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 14px; }
h1 { display: flex; flex-direction: column; }
.h1-small { color: var(--cream); font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; }
.h1-big {
  font-size: clamp(44px, 8vw, 76px); font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--orange), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(28px, 4vw, 38px); color: var(--cream); }
h3 { font-size: 18px; color: var(--cream); margin-top: 22px; }
.lead { font-size: 19px; color: #e6dcff; }
.aside { color: var(--muted); font-size: 15px; }
.notice { margin: 18px 0 0; padding: 12px 16px; border-left: 3px solid var(--pink); background: rgba(255, 84, 112, .1); border-radius: 0 12px 12px 0; font-size: 15px; color: #ffe3e8; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; flex-direction: column; text-decoration: none; padding: 12px 20px; border-radius: 14px; font-weight: 800; line-height: 1.2; transition: transform .15s, filter .15s; }
.btn small { font-weight: 600; font-size: 12px; opacity: .8; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: #1a0f33; background: linear-gradient(90deg, var(--orange), var(--pink)); box-shadow: 0 8px 30px rgba(255, 84, 112, .35); }
.btn.primary:hover { color: #1a0f33; filter: brightness(1.08); }
.btn.ghost { color: var(--cream); border: 2px solid var(--orange); background: rgba(20, 13, 46, .5); }
.btn.ghost:hover { background: rgba(255, 157, 60, .15); }

.features, .steps, .req ul { padding-left: 1.2em; margin: 0 0 12px; }
.features li, .steps li, .req li { margin-bottom: 10px; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #1a0f33; background: linear-gradient(135deg, var(--orange), var(--pink));
}
.req { border-top: 1px solid var(--border); margin-top: 18px; }
.req ul { list-style: disc; }
.modes dt { font-weight: 800; color: var(--cream); margin-top: 12px; }
.modes dd { margin: 2px 0 0; color: #e6dcff; }

.shots { list-style: none; margin: 0; padding: 0; width: min(100%, 560px); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shots button {
  all: unset; cursor: zoom-in; display: block; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); width: 100%; transition: transform .2s;
}
.shots button:hover, .shots button:focus-visible { transform: scale(1.03); outline: 2px solid var(--orange); }
.shots img { display: block; width: 100%; height: auto; }
.shots span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 6px; font-size: 13px; font-weight: 700; background: linear-gradient(180deg, transparent, rgba(20, 13, 46, .9)); }

dialog { border: 1px solid var(--border); background: #140d2e; color: var(--text); border-radius: 16px; padding: 12px; max-width: min(94vw, 1100px); }
dialog::backdrop { background: rgba(8, 4, 24, .8); }
dialog img { display: block; width: 100%; height: auto; border-radius: 10px; }
dialog p { margin: 8px 4px 2px; color: var(--muted); }
dialog .close { all: unset; position: absolute; right: 14px; top: 8px; font-size: 32px; line-height: 1; cursor: pointer; color: var(--cream); text-shadow: 0 2px 8px #000; }

footer { position: relative; z-index: 1; padding: 36px clamp(16px, 5vw, 64px) 48px; color: var(--muted); font-size: 14px; background: linear-gradient(180deg, transparent, #0b0722 40%); }
footer p { max-width: 760px; margin: 0 0 10px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.stats div { background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.stats dt { font-size: 30px; font-weight: 900; line-height: 1.1; background: linear-gradient(90deg, var(--orange), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin: 4px 0 0; font-size: 14px; color: #e6dcff; line-height: 1.35; }
.fps { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.fps caption { text-align: left; font-weight: 800; color: var(--cream); padding-bottom: 6px; }
.fps th, .fps td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--border); }
.fps thead th { color: var(--muted); font-size: 13px; font-weight: 700; }
.fps tbody th { color: var(--orange); font-weight: 800; text-align: left; }
.fps thead th:first-child { text-align: left; }

/* phones: the road runs down the left edge */
@media (max-width: 820px) {
  :root { --road-w: 26px; }
  nav a:not(.nav-cta) { display: none; }
  .stop { padding-left: 52px; padding-right: 14px; min-height: 0; padding-top: 90px; }
  .stop.left > *, .stop.right > * { align-self: stretch; }
  .panel, .shots { width: 100%; }
  .car { transform-origin: center; }
  .sun { right: 6%; }
}
@media (max-width: 420px) {
  .shots { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shots button { transition: none; }
}
