:root {
  --bg: #05060f;
  --ink: #eef1ff;
  --muted: #9aa3c7;
  --cyan: #7cf5ff;
  --violet: #a77bff;
  --pink: #ff6ec7;
  --glass: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.12);
  --radius: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; }
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Background layers ---------- */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }

.aurora { position: fixed; inset: 0; z-index: 0; filter: blur(80px) saturate(140%); opacity: .55; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.b1 { width: 55vmax; height: 55vmax; background: radial-gradient(circle, var(--violet), transparent 60%); top: -20vmax; left: -15vmax; animation: drift1 22s ease-in-out infinite alternate; }
.b2 { width: 45vmax; height: 45vmax; background: radial-gradient(circle, var(--cyan), transparent 60%); bottom: -20vmax; right: -10vmax; animation: drift2 26s ease-in-out infinite alternate; }
.b3 { width: 35vmax; height: 35vmax; background: radial-gradient(circle, var(--pink), transparent 60%); top: 40%; left: 50%; opacity: .5; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 12vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-20vw, -14vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-35vw, -25vh) scale(.85); } }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.top, .hero, .foot { position: relative; z-index: 2; }
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px clamp(16px, 4vw, 48px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; }
.brand b { font-weight: 700; background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark { width: 32px; height: 32px; animation: spin 18s linear infinite; }
.brand-mark path { animation: counter 18s linear infinite; transform-origin: 16px 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counter { to { transform: rotate(-360deg); } }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--stroke); border-radius: var(--radius);
  background: var(--glass); backdrop-filter: blur(10px);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #4dffa6; box-shadow: 0 0 0 0 rgba(77,255,166,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(77,255,166,0); } 100% { box-shadow: 0 0 0 0 rgba(77,255,166,0); } }

/* ---------- Hero ---------- */
.hero {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 16px 64px;
}

.orbit { position: absolute; top: 50%; left: 50%; width: min(820px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; z-index: -1; perspective: 900px; }
.ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(124, 245, 255, .14); transform-style: preserve-3d; }
.r1 { width: 100%; height: 100%; transform: rotateX(72deg); animation: orbit1 28s linear infinite; }
.r2 { width: 78%; height: 78%; border-color: rgba(167, 123, 255, .18); transform: rotateX(72deg) rotateY(28deg); animation: orbit2 20s linear infinite; }
.r3 { width: 56%; height: 56%; border-color: rgba(255, 110, 199, .16); transform: rotateX(72deg) rotateY(-32deg); animation: orbit3 14s linear infinite; }
@keyframes orbit1 { to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes orbit2 { to { transform: rotateX(72deg) rotateY(28deg) rotateZ(-360deg); } }
@keyframes orbit3 { to { transform: rotateX(72deg) rotateY(-32deg) rotateZ(360deg); } }
.sat { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px 4px var(--cyan); }
.r2 .sat { background: var(--violet); box-shadow: 0 0 18px 4px var(--violet); }
.r3 .sat { background: var(--pink); box-shadow: 0 0 18px 4px var(--pink); }
.core { position: absolute; inset: 0; margin: auto; width: 30%; height: 30%; border-radius: 50%; background: radial-gradient(circle, rgba(124,245,255,.18), transparent 70%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.25); opacity: .6; } }

.eyebrow {
  font-family: "Space Grotesk", sans-serif; text-transform: uppercase; letter-spacing: .28em;
  font-size: .75rem; color: var(--cyan); margin-bottom: 22px;
}
.title {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(2.6rem, 8.5vw, 6.2rem); line-height: .98; letter-spacing: -.04em;
  max-width: 14ch;
}
.title .line { display: block; }
.grad {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--violet) 45%, var(--pink) 90%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.lede { margin: 26px auto 0; max-width: 52ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.65; }

/* ---------- Waitlist ---------- */
.waitlist {
  margin-top: 38px; width: 100%; max-width: 480px;
  display: flex; gap: 6px; padding: 6px;
  border-radius: var(--radius); border: 1px solid var(--stroke);
  background: rgba(10, 12, 30, .55); backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px -10px rgba(124, 245, 255, .25), inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .3s, box-shadow .3s;
}
.waitlist:focus-within { border-color: rgba(124, 245, 255, .55); box-shadow: 0 10px 50px -8px rgba(124, 245, 255, .45); }
.waitlist input[type="email"] {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: var(--ink); font: inherit; font-size: 1rem; padding: 0 18px;
}
.waitlist input::placeholder { color: #6b7399; }
.waitlist button {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  border: 0; cursor: pointer; border-radius: var(--radius);
  padding: 14px 22px; font: 600 .95rem "Space Grotesk", sans-serif; color: #05060f;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  background-size: 150% auto; transition: background-position .4s, transform .15s;
}
.waitlist button:hover { background-position: right center; }
.waitlist button:active { transform: scale(.97); }
.waitlist button svg { width: 18px; height: 18px; transition: transform .25s; }
.waitlist button:hover svg { transform: translateX(3px); }
.waitlist button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.waitlist.loading button { opacity: .7; pointer-events: none; }
.waitlist.done { border-color: rgba(77, 255, 166, .5); }

.msg { min-height: 1.5em; margin-top: 14px; font-size: .92rem; color: var(--muted); }
.msg.ok { color: #4dffa6; }
.msg.err { color: #ff8fa3; }

.features { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 46px; color: var(--muted); font-size: .9rem; }
.features li { display: inline-flex; align-items: center; gap: 8px; }
.ico { color: var(--cyan); }

/* ---------- Footer ---------- */
.foot { display: flex; justify-content: center; gap: 10px; padding: 22px 16px 28px; font-size: .82rem; color: #6b7399; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- Entrance ---------- */
.reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--d) * 120ms + 150ms); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

/* ---------- Small screens ---------- */
@media (max-width: 520px) {
  .pill { display: none; }
  .waitlist { flex-direction: column; border-radius: 22px; padding: 8px; }
  .waitlist input[type="email"] { padding: 14px 12px; text-align: center; }
  .waitlist button { justify-content: center; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
