:root {
  --navy: #0B0F1C;
  --navy-2: #121829;
  --glow: #1B2A4A;
  --ceramic: #F5F7FA;
  --mist: #A3ACBF;
  --idle: #C9D2E3;
  --found: #5BC8FF;
  --amber: #FFB547;
  --line: rgba(255, 255, 255, 0.09);
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ceramic);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ceramic); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--found); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* Header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; text-decoration: none; }
.wordmark svg { width: 26px; height: 26px; }
.header-link { font-size: 15px; color: var(--mist); text-decoration: none; padding: 10px 2px; }
.header-link:hover { color: var(--ceramic); }

/* Hero */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -10%; top: -10%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(27, 42, 74, 0.9), rgba(11, 15, 28, 0));
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6.4vw, 78px);
  line-height: 0.98; letter-spacing: -0.035em; margin: 0 0 24px;
}
.lede { font-size: 19px; line-height: 1.5; color: var(--mist); max-width: 30em; margin: 0 0 32px; }

/* Form */
.waitlist { display: grid; gap: 14px; max-width: 460px; }
.field-row { display: flex; gap: 10px; }
.waitlist label { font-size: 14px; color: var(--mist); }
.waitlist input[type="email"], .waitlist select {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05);
  color: var(--ceramic); font: inherit; font-size: 16px;
}
.waitlist select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; }
.waitlist select option { color: #0B0F1C; }
.waitlist input::placeholder { color: #7D869B; }
.waitlist input:focus, .waitlist select:focus { outline: none; border-color: var(--found); box-shadow: 0 0 0 3px rgba(91, 200, 255, 0.2); }
.button {
  height: 52px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer; white-space: nowrap;
  background: var(--ceramic); color: var(--navy); font: inherit; font-size: 16px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.button:hover { background: #fff; color: var(--navy); box-shadow: 0 0 24px rgba(91, 200, 255, 0.35); }
.fine { font-size: 13px; color: var(--mist); margin: 0; }
.hidden { position: absolute; left: -9999px; }

/* Crew scene */
.scene { position: relative; aspect-ratio: 100 / 90; width: 100%; }
.scene .ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scene .ring.back { z-index: 1; }
.scene .ring.front { z-index: 5; pointer-events: none; }
.char { position: absolute; }
.char img, .char svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.char.watcher { left: 0; top: 44%; width: 36%; aspect-ratio: 1; z-index: 2; }
.char.scout { left: 28%; top: 26%; width: 44%; aspect-ratio: 1; z-index: 3; }
.char.researcher { right: 0; top: 46%; width: 34%; aspect-ratio: 1; z-index: 2; }
.eyes-found { filter: drop-shadow(0 0 3px var(--found)); }

.notice {
  position: absolute; z-index: 6; top: 0; right: 0; width: min(56%, 300px);
  padding: 14px 16px; border-radius: 22px;
  background: rgba(30, 38, 60, 0.72); border: 1px solid rgba(91, 200, 255, 0.4);
  box-shadow: 0 0 32px rgba(91, 200, 255, 0.16);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  animation: notice-in 700ms cubic-bezier(.2, .8, .2, 1) 1.6s both;
}
.notice-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--mist); margin-bottom: 4px; }
.notice-from { display: inline-flex; align-items: center; gap: 8px; color: var(--ceramic); font-weight: 600; }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--found); box-shadow: 0 0 8px var(--found); }
.notice-title { font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.notice-body { font-size: 14px; line-height: 1.4; color: var(--mist); margin: 0; }
@keyframes notice-in { from { opacity: 0; transform: translateY(-12px) scale(0.97); } to { opacity: 1; transform: none; } }

/* Sections */
section { padding: 88px 0; border-top: 1px solid var(--line); }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 16px; }
.section-intro { color: var(--mist); max-width: 34em; margin: 0 0 48px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: linear-gradient(90deg, var(--idle), var(--found)); opacity: 0.35; }
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 20px; position: relative;
  background: var(--navy); border: 1px solid rgba(255, 255, 255, 0.18); font-family: var(--display); font-weight: 700; font-size: 18px;
}
.steps li:last-child::before { border-color: var(--found); color: var(--found); box-shadow: 0 0 18px rgba(91, 200, 255, 0.35); }
.steps h3 { font-size: 19px; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--mist); }

.builders .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.code { margin: 0; padding: 22px 24px; border-radius: 18px; background: #080B15; border: 1px solid var(--line); overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.65; color: var(--idle); }
.code .k { color: var(--found); }
.code .s { color: #F5D9A8; }
.code .c { color: #6F7890; }
.code-note { font-size: 13px; color: var(--mist); margin: 12px 0 0; }

.status .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.status p { color: var(--mist); max-width: 36em; margin: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--mist); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer a { color: var(--mist); }

/* Simple pages */
.page { padding: 48px 0 96px; }
.page .wrap { max-width: 680px; }
.page h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 52px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 20px; }
.page h2 { font-size: 22px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.page p, .page li { color: var(--mist); }
.thanks-char { width: 200px; aspect-ratio: 1; position: relative; margin: 0 0 24px -16px; }

@media (max-width: 860px) {
  .hero { padding: 24px 0 72px; }
  .hero .wrap, .builders .wrap, .status .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero .scene { max-width: 520px; margin-inline: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; background: linear-gradient(180deg, var(--idle), var(--found)); }
  .steps li { padding-left: 64px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .field-row { flex-direction: column; }
  .button { width: 100%; }
  .notice { width: 70%; padding: 11px 13px; } .notice-body { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .notice { animation: none; }
  .blip-orbit { display: none; }
}
.blip-static { display: none; }
@media (prefers-reduced-motion: reduce) { .blip-static { display: inline; } }
