:root {
  --navy: #000088;
  --chart: #C5F143;
  --ghost: #F5F7FF;
  --ink: #02020c;
  --amber: #FFB020;
  --red: #FF4D5E;
  --lilac: #A99BFF;
  --dim: rgba(245, 247, 255, 0.62);
  --faint: rgba(245, 247, 255, 0.38);
  --line: rgba(245, 247, 255, 0.09);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --gutter: clamp(16px, 6vw, 96px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--ink); color: var(--ghost); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
code, .mono { font-family: var(--mono); }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }

/* CRT scanlines over everything; strength set from JS (--scan) */
.scanlines {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0 1px, transparent 1px 3px);
  opacity: var(--scan, 0.12);
  mix-blend-mode: multiply;
}

/* ---------- Boot ---------- */
#boot {
  position: fixed; inset: 0; z-index: 60; background: var(--ink);
  display: flex; align-items: flex-end; padding: var(--gutter);
  transition: opacity 0.7s ease, visibility 0.7s;
}
#boot.done { opacity: 0; visibility: hidden; }
#boot-log {
  margin: 0; font: 13px/1.7 var(--mono); color: var(--chart);
  text-shadow: 0 0 12px rgba(197, 241, 67, 0.55);
  white-space: pre-wrap;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(2, 2, 12, 0.55), rgba(2, 2, 12, 0));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span {
  font: italic 26px/1 var(--serif); letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(245, 247, 255, 0.45);
}
.beta-tag {
  align-self: center; padding: 4px 7px 3px; border-radius: 999px;
  font: 600 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--chart); color: var(--navy);
  box-shadow: 0 0 14px rgba(197, 241, 67, 0.45);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--dim); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.2s, background-size 0.3s;
}
.nav-links a:hover { color: var(--ghost); background-size: 100% 1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--chart); color: var(--navy);
  font-weight: 600; font-size: 15px; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(197, 241, 67, 0.6), 0 0 40px rgba(197, 241, 67, 0.35);
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(197, 241, 67, 0.8), 0 0 60px rgba(197, 241, 67, 0.55); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--chart); outline-offset: 3px; }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ---------- Waitlist ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist { margin-top: 36px; display: grid; gap: 12px; max-width: 480px; }
.field {
  display: flex; gap: 6px; padding: 6px;
  background: rgba(2, 2, 12, 0.55); border: 1px solid rgba(245, 247, 255, 0.18); border-radius: 999px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color 0.2s;
}
.field:focus-within { border-color: rgba(197, 241, 67, 0.7); }
.field input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px;
  font: 400 16px var(--sans); color: var(--ghost); outline: none;
}
.field input::placeholder { color: var(--faint); }
.field .btn { padding: 12px 22px; box-shadow: none; }
.field .btn:hover { transform: none; }
.form-note { margin: 0; font-size: 13px; color: var(--faint); }
.form-note.is-error { color: #FF8A80; }
.form-note.is-done { color: var(--chart); font-weight: 500; }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.waitlist + .actions { margin-top: 24px; }

/* ---------- Story chapters ---------- */
main { position: relative; z-index: 5; }
.ch { position: relative; height: calc(var(--h) * 1vh); }
.stick {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.stick-center { justify-content: center; }
.copy { max-width: 540px; pointer-events: auto; will-change: opacity, transform; }
.copy-hero { max-width: 640px; }

.eyebrow {
  margin: 0 0 22px; font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--chart);
  text-shadow: 0 0 14px rgba(197, 241, 67, 0.5);
}
.display {
  margin: 0; font: 400 clamp(52px, 7.6vw, 124px)/0.94 var(--serif);
  letter-spacing: -0.01em;
  text-shadow: 0 0 2px rgba(245, 247, 255, 0.6), 0 0 26px rgba(245, 247, 255, 0.45), 0 0 80px rgba(160, 170, 255, 0.35);
}
.display.small { font-size: clamp(40px, 5vw, 72px); }
h2.display { font-size: clamp(48px, 6.6vw, 108px); }

/* Headline lines rise into place when a chapter arrives */
.ln { display: block; }
.ln > span {
  display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(10px);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1), filter 0.9s ease;
}
.ln + .ln > span { transition-delay: 0.09s; }
.on .ln > span { opacity: 1; transform: none; filter: none; }

.lede { margin: 28px 0 0; max-width: 500px; font-size: 18px; color: var(--dim); }
.body { margin: 28px 0 0; max-width: 440px; font-size: 18px; line-height: 1.55; }
.body .w { transition: opacity 0.25s linear; }
.spec {
  margin: 28px 0 0; padding-left: 12px; border-left: 2px solid var(--chart);
  font: 500 11px/1.6 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}
.actions { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hint { font-size: 15px; color: var(--dim); text-decoration: none; }
.hint span { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.fine { margin: 22px 0 0; font: 12px/1.6 var(--mono); color: var(--faint); letter-spacing: 0.04em; }

.caption { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--chart); text-shadow: 0 0 14px rgba(197, 241, 67, 0.7); }
.assembled {
  position: sticky; bottom: 12vh; margin: 0; text-align: center;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint);
  pointer-events: none;
}

.legend { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.legend li { display: grid; grid-template-columns: 14px 92px 1fr; align-items: center; gap: 10px; font-size: 14px; color: var(--dim); }
.legend code { color: var(--ghost); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-safe { background: var(--chart); box-shadow: 0 0 10px var(--chart); }
.dot-review { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.dot-danger { background: var(--red); box-shadow: 0 0 10px var(--red); }

/* ---------- Overlays ---------- */
#subtitle {
  position: fixed; left: 50%; bottom: 13vh; z-index: 8; transform: translateX(-50%);
  width: min(720px, calc(100vw - 32px)); text-align: center;
  font-size: clamp(18px, 2vw, 24px); line-height: 1.4;
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
  text-shadow: 0 0 20px rgba(2, 2, 12, 0.9);
}
#subtitle .who { display: block; margin-bottom: 8px; font: 500 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; }
#subtitle .said::after { content: "▍"; margin-left: 2px; opacity: 0.7; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

#labels { position: fixed; inset: 0; z-index: 7; pointer-events: none; }
.label {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font: 500 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
  padding-left: 14px; border-left: 1px solid rgba(197, 241, 67, 0.7);
  transition: opacity 0.3s;
}
.label b { display: block; color: var(--chart); font-weight: 500; }

.chapter-bar {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 18px; z-index: 9;
  display: flex; align-items: center; gap: 18px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
  pointer-events: none; transition: opacity 0.4s;
}
.chapter-bar .track { flex: 1; height: 1px; background: var(--line); position: relative; }
.chapter-bar .track i { position: absolute; left: 0; top: -0.5px; height: 2px; width: 0; background: var(--chart); box-shadow: 0 0 10px var(--chart); }

/* ---------- After the story ---------- */
.after {
  position: relative; z-index: 6;
  background: linear-gradient(to bottom, rgba(2, 2, 12, 0) 0, rgba(2, 2, 12, 0.92) 18vh, var(--ink) 40vh);
  padding: 30vh var(--gutter) 40px;
}
.after-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 8vw, 120px); max-width: 1240px; margin: 0 auto; }
.points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; color: var(--dim); }
.points b { color: var(--ghost); font-weight: 500; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--chart); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--dim); max-width: 520px; }
.faq code, .points code { font-size: 0.9em; color: var(--ghost); }
.foot {
  max-width: 1240px; margin: 18vh auto 0; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 14px; color: var(--faint);
}
.foot span { display: inline-flex; align-items: center; gap: 8px; }
.foot a { color: var(--ghost); }
.notice { max-width: 1240px; margin: 18px auto 0; font-size: 12px; line-height: 1.6; color: var(--faint); }
.noscript { position: fixed; inset: auto 0 40px; text-align: center; z-index: 30; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .nav .wide { display: none; }
  .brand span { font-size: 22px; }
  .stick { align-items: flex-end; padding: 0 16px 72px; }
  .stick::before {
    content: ""; position: absolute; inset: 40% 0 0; z-index: -1;
    background: linear-gradient(to bottom, rgba(2, 2, 12, 0), rgba(2, 2, 12, 0.88) 45%);
  }
  .stick-hero { align-items: flex-start; padding-top: 92px; }
  .stick-hero::before { inset: 0 0 45%; background: linear-gradient(to top, rgba(2, 2, 12, 0), rgba(2, 2, 12, 0.85) 45%); }
  .stick-center::before { display: none; }
  .eyebrow { margin-bottom: 14px; font-size: 11px; }
  .lede, .body { font-size: 16px; margin-top: 18px; }
  .spec { margin-top: 18px; }
  .actions { margin-top: 24px; gap: 18px; }
  .waitlist { margin-top: 24px; }
  .field { flex-direction: column; border-radius: 24px; }
  .field input { height: 44px; }
  .field .btn { justify-content: center; }
  .legend li { grid-template-columns: 14px 80px 1fr; font-size: 13px; }
  #subtitle { bottom: auto; top: 18vh; }
  .after-inner { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: flex-start; }
  .chapter-bar { left: 16px; right: 16px; bottom: 12px; }
  #clock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ln > span { transition: none; transform: none; filter: none; opacity: 1; }
  .hint span, #subtitle .said::after { animation: none; }
}

/* ---------- Share image (?share): a still frame of the hero for link previews ---------- */
body.share #boot, body.share .nav-links, body.share .nav .btn, body.share .chapter-bar,
body.share .scanlines, body.share .hint, body.share .actions, body.share .waitlist, body.share .after { display: none; }
body.share { overflow: hidden; }
body.share .nav { border-bottom: 0; background: none; padding: 40px 64px; }
body.share .brand span { font-size: 34px; }
body.share .brand img { width: 40px; height: 40px; }
body.share .stick { padding: 0 64px; }
body.share .copy-hero { max-width: 600px; padding-top: 40px; }
body.share .display { font-size: 92px; }
body.share .lede { font-size: 22px; max-width: 440px; color: rgba(245, 247, 255, 0.72); }
body.share .eyebrow { font-size: 14px; }
body.share .ln > span { opacity: 1; transform: none; filter: none; transition: none; }
