:root {
  --bg: #05060a;
  --ink: #f4f6fb;
  --muted: #9aa1b3;
  --faint: #5d6478;
  --line: #1b1f2b;
  --card: #0b0d14;
  --glow: #8ea4f5;
  --glow-soft: rgba(142, 164, 245, 0.35);
  --dot: #eef2ff;
  --error: #f19a8b;
  --ok: #a9d8b3;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.sr-only, .hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(16px, 4vw, 40px);
  background: linear-gradient(var(--bg) 40%, transparent);
}
.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.topbar-cta {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 13, 20, 0.7);
  transition: border-color .2s;
}
.topbar-cta:hover { border-color: var(--glow); }

main, .footer { position: relative; z-index: 1; }

/* Hero */
.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(56px, 12vh, 120px) 16px 96px;
  text-align: center;
}

.wordmark {
  position: relative;
  display: inline-block;
  margin: 0 0 clamp(40px, 7vh, 64px);
  padding-top: 0.42em;
  font-size: clamp(64px, 14vw, 132px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}
.wordmark-arc {
  position: absolute;
  top: 0;
  left: 15%;
  width: 56%;
  overflow: visible;
}
.arc-path {
  fill: none;
  stroke: var(--glow);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 3px var(--glow-soft));
  animation: draw 1.6s .3s cubic-bezier(.6,.1,.3,1) forwards;
}
.arc-dot {
  fill: var(--dot);
  opacity: 0;
  filter: drop-shadow(0 0 4px var(--glow)) drop-shadow(0 0 10px var(--glow-soft));
  animation: pop .5s forwards, pulse 4s 2.4s ease-in-out infinite;
}
.d1 { animation-delay: .2s, 2.4s; }
.d2 { animation-delay: .95s, 3.1s; }
.d3 { animation-delay: 1.7s, 3.8s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 4px var(--glow)) drop-shadow(0 0 10px var(--glow-soft)); }
  50% { filter: drop-shadow(0 0 7px var(--glow)) drop-shadow(0 0 18px var(--glow)); }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--glow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.headline {
  margin: 0 0 20px;
  font-size: clamp(28px, 4.6vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lede {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
}

/* Waitlist form */
.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.waitlist input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 15px 18px;
  color: var(--ink);
  font: 500 16px var(--font);
  background: rgba(11, 13, 20, 0.85);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.waitlist input[type="email"]::placeholder { color: var(--faint); }
.waitlist input[type="email"]:focus {
  border-color: var(--glow);
  box-shadow: 0 0 0 3px rgba(142, 164, 245, 0.18);
}
.waitlist button {
  flex: 0 0 auto;
  padding: 15px 22px;
  color: #05060a;
  font: 700 15px var(--font);
  background: var(--dot);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(142, 164, 245, 0.25);
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.waitlist button:hover { box-shadow: 0 0 32px rgba(142, 164, 245, 0.45); }
.waitlist button:active { transform: translateY(1px); }
.waitlist button:disabled { opacity: .6; cursor: progress; }
.form-status {
  flex-basis: 100%;
  min-height: 1.4em;
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--ok); }
.waitlist.is-done input, .waitlist.is-done button { display: none; }
.waitlist.is-done .form-status { font-size: 16px; margin-top: 0; }
.fineprint { margin: 10px 0 0; color: var(--faint); font-size: 13px; }

/* Insight */
.insight {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 16px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.insight h2 {
  margin: 0 0 22px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.line { display: block; }
.insight h2 .glow { color: var(--glow); text-shadow: 0 0 24px var(--glow-soft); }
.insight p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 96px;
}
.step {
  padding: 28px 26px;
  background: rgba(11, 13, 20, 0.8);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.step-num { color: var(--glow); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; }
.step h3 { margin: 14px 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Closing */
.closing {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 16px 104px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.closing-mark { display: block; margin: 0 auto 22px; }
.closing h2 { margin: 0 0 14px; font-size: clamp(28px, 4.2vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
.closing > p { margin: 0 auto 30px; max-width: 480px; color: var(--muted); font-size: 17px; line-height: 1.6; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 24px clamp(16px, 4vw, 40px) 32px;
  color: var(--faint);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .line { display: inline; }
  #network { opacity: 0.3; }
  .waitlist button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arc-path { animation: none; stroke-dashoffset: 0; }
  .arc-dot { animation: none; opacity: 1; }
}
