:root {
  --bg: #05060f;
  --ink: #eef1fb;
  --muted: #98a0be;
  --faint: #6a7194;
  --line: rgba(160, 175, 255, 0.14);
  --line-strong: rgba(160, 175, 255, 0.30);
  --violet: #8b7dff;
  --cyan: #56d4f0;
  --gold: #ffcf8b;
  --danger: #ff8b8b;
  --ok: #7ce0b0;
  --shell: min(680px, 100%);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  overscroll-behavior: none;
  /* Nothing on the page is meant to be copied, so selection just looks like
     a smudge. The email field opts back in below. */
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  user-select: none;
}

/* The one place a caret and selection are genuinely useful. */
#email {
  -webkit-user-select: text;
  user-select: text;
}

/* ---------- background layers ---------- */

#galaxy {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Vignette + top scrim so the copy stays readable over the disk. */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(150% 110% at 50% 96%, transparent 0%, transparent 46%, rgba(5, 6, 15, 0.38) 74%, rgba(5, 6, 15, 0.86) 100%),
    linear-gradient(180deg, rgba(5, 6, 15, 0.55) 0%, rgba(5, 6, 15, 0.12) 22%, transparent 42%);
}

/* Light that follows the pointer. Screen blend so it lifts the sky and the
   stars underneath rather than painting a flat disc over them. */
.glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle closest-side,
      rgba(162, 150, 255, 0.19) 0%,
      rgba(130, 126, 240, 0.09) 30%,
      rgba(108, 118, 220, 0.03) 55%,
      rgba(108, 118, 220, 0) 74%);
  opacity: 0;
  transition: opacity 0.55s ease;
  will-change: transform;
}

.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side,
    rgba(228, 226, 255, 0.16) 0%,
    rgba(196, 192, 255, 0.07) 42%,
    rgba(196, 192, 255, 0) 76%);
}

.glow.on { opacity: 1; }

.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image: var(--noise);
  animation: drift 7s steps(6) infinite;
}

@keyframes drift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 1%); }
  40%  { transform: translate(1%, -2%); }
  60%  { transform: translate(-1%, -1%); }
  80%  { transform: translate(2%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- layout ---------- */

.shell {
  position: relative;
  z-index: 3;
  min-height: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(24px, 5vh, 48px) 24px calc(clamp(24px, 5vh, 48px) + env(safe-area-inset-bottom));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.mark {
  display: block;
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 10px rgba(139, 125, 255, 0.5));
  -webkit-user-drag: none;
  animation: spin 34s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  width: var(--shell);
  margin: auto 0;
  padding: 6vh 0;
  text-align: center;
}

/* ---------- copy ---------- */





.title {
  margin: 0 0 40px;
  font-size: clamp(2.8rem, 9vw, 5.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  background: linear-gradient(168deg, #ffffff 4%, #dfe4ff 44%, #a9b0da 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}



/* ---------- waitlist ---------- */

.waitlist { margin: 0; }

.field {
  display: flex;
  gap: 8px;
  width: min(470px, 100%);
  margin: 0 auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 17, 34, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 22px 55px -22px rgba(0, 0, 0, 0.9);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field:focus-within {
  border-color: var(--line-strong);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 4px rgba(139, 125, 255, 0.13),
    0 22px 55px -22px rgba(0, 0, 0, 0.9);
}

#email {
  flex: 1;
  min-width: 0;
  cursor: text;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

#email::placeholder { color: var(--faint); }

#submit {
  position: relative;
  flex: none;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #9d90ff 0%, #7a68f5 100%);
  color: #0a0a17;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 20px -6px rgba(122, 104, 245, 0.75);
  transition: transform 0.16s ease, box-shadow 0.24s ease, filter 0.2s ease;
}

#submit:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 9px 26px -6px rgba(122, 104, 245, 0.9);
}

#submit:active:not(:disabled) { transform: translateY(1px); }

#submit:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

#submit:disabled { cursor: default; opacity: 0.75; }

.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border: 2px solid rgba(10, 10, 23, 0.28);
  border-top-color: #0a0a17;
  border-radius: 50%;
  opacity: 0;
}

.is-loading .label { opacity: 0; }
.is-loading .spinner { opacity: 1; animation: spin 0.65s linear infinite; }

.status {
  min-height: 1.35em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.status.show { opacity: 1; transform: none; }
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }

/* ---------- footer ---------- */

.foot {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--faint);
  font-size: 12.5px;
}

.foot a {
  color: var(--faint);
  text-decoration: none;
  transition: color 0.18s ease;
}

.foot a:hover { color: var(--ink); }

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

/* ---------- entrance ---------- */

.brand, .title, .waitlist, .foot {
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.brand    { animation-delay: 0.05s; }
.title    { animation-delay: 0.20s; }
.waitlist { animation-delay: 0.34s; }
.foot     { animation-delay: 0.48s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 480px) {
  .field { flex-direction: column; gap: 7px; }
  #submit { width: 100%; padding: 13px 20px; }
  .hero { padding: 4vh 0; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .mark { animation: none; }
  .brand, .title, .waitlist, .foot { animation: none; }
  .is-loading .spinner { animation: spin 0.9s linear infinite; }
  .status { transition: none; }
}
