@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ChakraPetch-Regular.woff") format("woff");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ChakraPetch-Medium.woff") format("woff");
}

:root {
  --bg: #0A0A0A;
  --fg: #F3F3F1;
  --fg-2: #8A8A88;
  --fg-3: #4A4A48;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --accent: #FF4F00;
  --sans: "Chakra Petch", system-ui, sans-serif;
  --mono: "Chakra Petch", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 3vw, 40px);
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16.15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #000; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ol { list-style: none; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.mono { font-family: var(--mono); font-size: 12.35px; line-height: 17.1px; letter-spacing: .05em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.dim { color: var(--fg-2); }
.z { position: relative; display: inline-block; font-style: normal; font-family: inherit; letter-spacing: inherit; }
/* Keep the brand's slashed zero in the same square typeface. */
.z::after { content: ""; position: absolute; left: 50%; top: 50%; width: .055em; height: .62em; background: currentColor; transform: translate(-50%, -50%) rotate(34deg); pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { color: var(--fg-2); margin-bottom: 22px; }

/* ── nav ─────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 10;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.mark { width: 27px; height: 32px; flex: none; overflow: visible; }
.mark .o { fill: var(--fg); }
.mark .x { fill: var(--accent); transition: transform .4s var(--ease); }
.brand:hover .mark .x { transform: translate(4px, -4px); }
.wordmark { font-size: 21px; font-weight: 500; letter-spacing: -.025em; line-height: 1; }
.wordmark span { color: var(--fg-3); }

.nav-right { display: flex; align-items: center; gap: 20px; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 79, 0, .55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 79, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 79, 0, 0); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 2px;
  font-size: 14.25px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background .2s, color .2s, opacity .2s;
}
.btn-ghost { background: rgba(255, 255, 255, .07); }
.btn-ghost:hover { background: rgba(255, 255, 255, .13); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn:disabled { opacity: .5; cursor: default; }

/* ── hero ────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  height: 100vh;
  height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom));
  overflow: hidden;
}
#fan {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block;
  -webkit-mask-image: linear-gradient(rgba(0, 0, 0, .1), #000 var(--fade, 60%));
  mask-image: linear-gradient(rgba(0, 0, 0, .1), #000 var(--fade, 60%));
}

.hud { position: absolute; top: calc(var(--nav-h) + 20px); display: grid; gap: 7px; font-size: 11.4px; color: var(--fg-3); }
.hud-l { left: var(--gutter); }
.hud-r { right: var(--gutter); text-align: right; }
.hud span { display: inline-block; min-width: 40px; }
.hud-r span { min-width: 0; margin-right: 10px; }
.hud b { font-weight: 400; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.hud b.hot { color: var(--accent); }

.hero-base {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 40px;
  align-items: end;
  padding-top: 36px;
}
/* sized so line 2 always fits beside the 340px countdown column */
.hero h1 { font-size: clamp(41.8px, calc(8.17vw - 34.2px), 106.4px); line-height: 1.02; font-weight: 500; letter-spacing: -.035em; }
.hero h1 span { display: block; }
.hero h1, .plan h2, .board h2 { text-wrap: balance; }

.hero-side { display: grid; gap: 18px; }
.countdown-head { display: flex; justify-content: space-between; gap: 12px; color: var(--fg-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.countdown-head span:last-child { color: var(--fg-3); }
.countdown.is-live .countdown-head span:first-child { color: var(--accent); }
.digits { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 14px; }
.digits div { position: relative; display: grid; gap: 8px; }
.digits div + div { padding-left: 14px; }
.digits div + div::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.digits b { font-family: var(--mono); font-weight: 400; font-size: clamp(32.3px, 3.04vw, 43.7px); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.digits span { color: var(--fg-3); font-size: 10.45px; line-height: 13.3px; }

.ignite {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 20px;
  border: 1px solid var(--line-2); border-radius: 2px;
  overflow: hidden;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation;
  transition: border-color .2s;
}
.ignite:hover { border-color: rgba(255, 255, 255, .32); }
.ignite-fill {
  position: absolute; inset: 0;
  transform-origin: left; transform: scaleX(var(--charge, 0));
  background: repeating-linear-gradient(-45deg, var(--accent) 0 7px, #FF6A26 7px 14px);
  background-size: 200% 100%;
  animation: stripes 1.2s linear infinite;
}
@keyframes stripes { to { background-position: -40px 0; } }
.ignite-label, .ignite-meta { position: relative; }
.ignite-label { font-size: 16.15px; font-weight: 500; letter-spacing: -.01em; }
.ignite-meta { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.ignite.is-hot .ignite-meta, .ignite.is-launched .ignite-meta { color: var(--fg); }
.ignite.is-launched { border-color: var(--accent); }
.ignite-hint { display: flex; justify-content: space-between; gap: 12px; color: var(--fg-3); font-size: 11.4px; }

/* ── ticker ──────────────────────────── */
.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden; white-space: nowrap;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: inline-flex; animation: tick 60s linear infinite; will-change: transform; }
.ticker-track span { display: inline-flex; align-items: center; padding: 20px 0; color: var(--fg-2); }
.ticker-track span::after {
  content: ""; width: 7px; height: 10px; margin: 0 28px;
  border: 1px solid var(--fg-3); border-radius: 4px;
}
@keyframes tick { to { transform: translateX(-25%); } }

/* ── flight plan ─────────────────────── */
.plan {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gutter);
  padding: clamp(96px, 12vw, 160px) var(--gutter);
}
.plan-head { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
.plan h2, .board h2 { font-size: clamp(34.2px, 3.99vw, 60.8px); line-height: 1.06; font-weight: 500; letter-spacing: -.035em; }
#stageViz { display: block; width: min(320px, 100%); aspect-ratio: 1; margin-top: 56px; }
.viz-cap { color: var(--fg-3); margin-top: 16px; }

.stage { position: relative; border-top: 1px solid var(--line); padding: 28px 0 clamp(64px, 10vw, 128px); }
.stage::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px;
  background: var(--fg-2);
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease);
}
.stage.is-active::before { transform: scaleX(1); }
.stage-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.stage h3 { font-size: clamp(26.6px, 2.56vw, 38px); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; color: var(--fg-3); transition: color .4s; }
.stage p { max-width: 44ch; margin-top: 14px; color: var(--fg-3); transition: color .4s; }
.stage .idx, .stage .meta { color: var(--fg-3); transition: color .4s; }
.stage .meta { margin-top: 28px; font-size: 11.4px; }
.stage.is-active h3 { color: var(--fg); }
.stage.is-active p { color: var(--fg-2); }
.stage.is-active .idx { color: var(--accent); }
.stage.is-active .meta { color: var(--fg-2); }

/* ── waitlist ────────────────────────── */
.board {
  position: relative;
  display: grid; justify-items: center;
  padding: clamp(112px, 13vw, 190px) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line);
}
.board::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 1px; height: clamp(56px, 8vw, 120px);
  background: linear-gradient(var(--line-2), transparent);
}
.board h2 span { display: block; }
.manifest { display: flex; gap: 8px; width: min(560px, 100%); margin-top: 48px; }
.manifest input {
  flex: 1; min-width: 0; height: 52px; padding: 0 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2); border-radius: 2px;
  outline: none; font-size: 16.15px;
  transition: border-color .2s;
}
.manifest input::placeholder { color: var(--fg-3); }
.manifest input:focus { border-color: var(--fg-2); }
.manifest .btn { height: 52px; padding: 0 22px; }
.form-note { margin-top: 16px; color: var(--fg-3); }
.form-note.ok { color: var(--fg); }
.form-note.err { color: var(--accent); }

/* ── footer ──────────────────────────── */
.foot { padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); overflow: hidden; }
.foot-giant {
  margin: 32px 0 12px;
  /* line-height 1: background-clip only paints inside the box, so glyphs must not overflow it */
  font-size: clamp(114px, 32.3vw, 532px); font-weight: 500; letter-spacing: -.04em; line-height: 1;
  text-align: center;
  background: linear-gradient(rgba(255, 255, 255, .11), rgba(255, 255, 255, .015));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  user-select: none;
}
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--fg-3); }
.foot-giant .z::after { background: linear-gradient(rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--fg-2); transition: color .2s; }
.foot-links a:hover { color: var(--fg); }

/* ── responsive ──────────────────────── */
@media (max-width: 1100px) {
  .hero-base { grid-template-columns: 1fr; gap: 28px; }
  .hero-side { max-width: 560px; }
  .hero h1 { font-size: clamp(41.8px, 7.03vw, 76px); }
}
@media (max-width: 860px) {
  .plan { grid-template-columns: 1fr; gap: 48px; }
  .plan-head { position: relative; top: 0; }
  #stageViz { width: 200px; margin-top: 32px; }
}
@media (max-width: 560px) {
  .status { display: none; }
  .nav-right { gap: 14px; }
  .hud { top: calc(var(--nav-h) + 8px); font-size: 10.45px; }
  .hud span { min-width: 30px; }
  .hero-base { padding-top: 28px; }
  .manifest { flex-direction: column; }
  .manifest .btn { width: 100%; }
  .foot-row { flex-direction: column; gap: 8px; }
}
@media (hover: none) { .kbd-hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .brand:hover .mark .x { transform: none; }
}
