/* ---------- Self-hosted fonts (Latin subset, served same-origin) ----------
   Replaces the render-blocking Google Fonts request. unicode-range keeps each
   file scoped to Latin; anything outside it (e.g. the Greek delta in the
   readout) falls back to the system stack, exactly as before. */
@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/saira-condensed-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/saira-condensed-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/saira-condensed-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --asphalt: #0B0D12;
  --tarmac: #12151D;
  --tarmac-2: #171B26;
  --line: #232A38;
  --paper: #ECEEF4;
  --muted: #8B94A6;
  --violet: #9B5CFF;
  --violet-2: #B98BFF;
  --green: #2FE6A0;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Saira Condensed", var(--font-body);
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --edge: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper);
  background: var(--asphalt);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Violet glow behind the hero */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 78% 22%, rgba(155, 92, 255, 0.18), transparent 60%),
    radial-gradient(50% 40% at 8% 90%, rgba(47, 230, 160, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--violet-2);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link: off-screen until focused by keyboard, then slides in. */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--asphalt);
  background: var(--violet);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; }

.shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--edge);
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
}
.wordmark .dot { color: var(--violet); }

.status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.4rem 0.8rem;
  white-space: nowrap;
}
.status .beacon {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(47, 230, 160, 0.6);
  animation: beacon 2.4s ease-out infinite;
}
@keyframes beacon {
  0%   { box-shadow: 0 0 0 0 rgba(47, 230, 160, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(47, 230, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 230, 160, 0); }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--gap);
  align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--violet-2);
  margin: 0 0 1.25rem;
}

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 10vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: -0.005em;
  margin: 0;
}
.headline .accent { color: var(--violet); }

.lede {
  max-width: 40ch;
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  color: var(--muted);
  margin: 1.5rem 0 2.25rem;
}
.lede strong { color: var(--paper); font-weight: 600; }

/* ---------- Waitlist form ---------- */
.waitlist { max-width: 480px; }
.waitlist__row {
  display: flex;
  gap: 0.6rem;
}
.waitlist__input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--paper);
  background: var(--tarmac);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.waitlist__input::placeholder { color: #5c6577; }
.waitlist__input:focus {
  outline: none;
  border-color: var(--violet);
  background: var(--tarmac-2);
}
.waitlist__btn {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--asphalt);
  background: var(--violet);
  border: none;
  border-radius: 10px;
  padding: 0 1.4rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}
.waitlist__btn:hover { background: var(--violet-2); }
.waitlist__btn:active { transform: translateY(1px); }
.waitlist__btn:disabled { opacity: 0.6; cursor: progress; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.waitlist__turnstile { margin-top: 0.9rem; min-height: 1px; }

.waitlist__note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0.9rem 0 0;
  min-height: 1.2em;
}
.waitlist__note.is-error { color: #ff6b6b; }
.waitlist__note.is-success { color: var(--green); }

/* ---------- Racing line ---------- */
.trackwrap {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 460px;
}
.track-stage { position: relative; }
.track { width: 100%; height: auto; display: block; }
.track-dot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.track-dot__dot {
  fill: var(--violet);
  filter: drop-shadow(0 0 7px rgba(155, 92, 255, 0.85));
}

.readout {
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.readout b { color: var(--paper); font-weight: 500; }
.readout .delta { color: var(--violet-2); }

/* ---------- Pillars ---------- */
.thesis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.pillar {
  background: var(--tarmac);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: background 0.2s ease;
}
.pillar:hover { background: var(--tarmac-2); }
.pillar__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-2);
}
.pillar__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}
.pillar__body {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Vault ---------- */
.vault {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(155,92,255,0.06), transparent 40%),
    var(--tarmac);
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: clamp(3rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  overflow: hidden;
}
.vault__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-2);
  margin: 0 0 1rem;
}
.vault__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 0.95;
  margin: 0 0 1rem;
}
.vault__body {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
  max-width: 42ch;
}
.vault__body strong { color: var(--paper); font-weight: 600; }

/* Redacted spec sheet */
.spec {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--asphalt);
  padding: 1.1rem 1.2rem 1.2rem;
  font-family: var(--font-mono);
}
.spec__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.7rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.spec__row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.62rem 0;
  border-bottom: 1px dashed rgba(35, 42, 56, 0.9);
}
.spec__row:last-child { border-bottom: 0; }
.redact {
  flex: 1 1 auto;
  height: 13px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, #0f131b 0 7px, #161b26 7px 9px);
  box-shadow: inset 0 0 0 1px rgba(155, 92, 255, 0.10);
}
.spec__row .redact.w1 { max-width: 62%; }
.spec__row .redact.w2 { max-width: 84%; }
.spec__row .redact.w3 { max-width: 71%; }
.spec__row .redact.w4 { max-width: 90%; }
.spec__row .redact.w5 { max-width: 55%; }
.spec__stat {
  flex: 0 0 auto;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-2);
}
.spec__foot {
  margin: 0.9rem 0 0;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--paper); }

/* ---------- Entrance animation ----------
   Pure CSS so it runs without waiting on the deferred script, and so content
   still shows if JS never runs. Only below-the-fold sections carry .reveal -
   the hero paints immediately, which keeps it out of the LCP critical path
   (an opacity-0 start would otherwise delay LCP by the fade duration). */
@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.reveal { animation: reveal-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
.reveal.d4 { animation-delay: 0.32s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .trackwrap { grid-row: 1; max-width: 320px; margin-bottom: 0.5rem; }
  .thesis { grid-template-columns: 1fr; }
  .vault { grid-template-columns: 1fr; }
  .status { display: none; }
}
@media (max-width: 480px) {
  .waitlist__row { flex-direction: column; }
  .waitlist__btn { padding: 0.85rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { animation: none !important; opacity: 1; transform: none; }
}
