:root {
  color-scheme: dark;
  --navy: #142d55;
  --navy-dark: #0b1f3c;
  --navy-deep: #060f21;
  --blue: #41689f;
  --blue-bright: #5b8bd6;
  --blue-light: #94acd0;
  --ice: #dbe7f8;
  --muted: #8ea0ba;
  --line: rgb(148 172 208 / 18%);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 32px 20px;
  overflow-x: hidden;
  background: var(--navy-deep);
  color: var(--ice);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgb(65 104 159 / 30%) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 100%, rgb(20 45 85 / 70%) 0%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 10% 95%, rgb(65 104 159 / 16%) 0%, transparent 70%),
    linear-gradient(180deg, #08142b 0%, var(--navy-deep) 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(148 172 208 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(148 172 208 / 6%) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 55% at 50% 45%, #000 0%, transparent 75%);
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 10px 2px rgb(148 172 208 / 50%);
  animation: twinkle-dot 4s ease-in-out infinite;
}

.s1 { top: 14%; left: 18%; }
.s2 { top: 22%; left: 78%; animation-delay: 600ms; }
.s3 { top: 64%; left: 12%; animation-delay: 1.4s; }
.s4 { top: 72%; left: 86%; animation-delay: 2s; }
.s5 { top: 40%; left: 92%; animation-delay: 900ms; }
.s6 { top: 86%; left: 40%; animation-delay: 2.6s; }

.waitlist {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 580px);
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: appear 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mascot-stage {
  position: relative;
  display: grid;
  width: 170px;
  height: 160px;
  place-items: center;
  margin-bottom: 6px;
}

.mascot-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(91 139 214 / 55%) 0%, rgb(65 104 159 / 20%) 55%, transparent 75%);
  filter: blur(18px);
  animation: breathe 4s ease-in-out infinite;
}

.mascot {
  position: relative;
  z-index: 1;
  display: block;
  width: 135px;
  height: auto;
  filter: drop-shadow(0 12px 30px rgb(91 139 214 / 35%));
  animation: float 4.2s ease-in-out infinite;
}

.spark {
  position: absolute;
  z-index: 2;
  color: var(--blue-light);
  text-shadow: 0 0 12px rgb(148 172 208 / 70%);
  animation: twinkle 2.8s ease-in-out infinite;
}

.spark-one { top: 27px; left: 4px; font-size: 19px; }
.spark-two { top: 43px; right: 4px; font-size: 23px; animation-delay: 700ms; }
.spark-three { right: 18px; bottom: 6px; font-size: 15px; animation-delay: 1.2s; }

.eyebrow {
  margin: 0 0 20px;
  color: var(--blue-bright);
  font: 700 11px / 1 'JetBrains Mono', monospace;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
}

h1 {
  margin: 0;
  font: 700 clamp(60px, 14vw, 104px) / 1 'Space Grotesk', sans-serif;
  letter-spacing: -0.07em;
  padding-bottom: 0.06em;
  background: linear-gradient(180deg, #ffffff 15%, var(--blue-light) 62%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h1 span {
  display: inline-block;
  -webkit-text-fill-color: var(--blue-bright);
  color: var(--blue-bright);
  text-shadow: 0 0 28px rgb(91 139 214 / 80%);
}

.tagline {
  margin: 12px 0 0;
  color: var(--ice);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tagline em {
  color: var(--blue-bright);
  font-style: normal;
}

.description {
  max-width: 460px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.description.intro {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 17px;
  font-style: italic;
  letter-spacing: -0.015em;
  line-height: 1.5;
}

.description.question {
  margin-top: 20px;
  color: var(--ice);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.35;
}

.signup {
  display: flex;
  width: min(100%, 460px);
  gap: 10px;
  margin: 32px auto 0;
}

.signup > input {
  min-width: 0;
  height: 56px;
  flex: 1;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(20 45 85 / 45%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.signup > input::placeholder {
  color: #6f83a1;
}

.signup > input:focus {
  border-color: var(--blue-bright);
  background: rgb(20 45 85 / 70%);
  box-shadow: 0 0 0 4px rgb(91 139 214 / 20%);
}

.signup > input.invalid {
  border-color: #ff8a9b;
  box-shadow: 0 0 0 4px rgb(255 138 155 / 14%);
}

.signup button {
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue) 100%);
  box-shadow: 0 10px 30px rgb(91 139 214 / 35%), inset 0 1px 0 rgb(255 255 255 / 25%);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.signup button b {
  font-weight: 700;
}

.signup button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 38px rgb(91 139 214 / 50%), inset 0 1px 0 rgb(255 255 255 / 30%);
}

.signup button:active:not(:disabled) {
  transform: translateY(0);
}

.signup button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.signup button span {
  margin-left: 6px;
  font-size: 16px;
}

.form-note,
.success {
  max-width: 420px;
  margin: 16px 0 0;
  color: #7487a3;
  font-size: 12px;
  line-height: 1.6;
}

.form-note.error {
  color: #ff9eab;
}

.success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(20 45 85 / 55%);
  color: var(--ice);
  font-size: 15px;
  animation: appear 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.success[hidden] {
  display: none;
}

.check {
  display: grid;
  flex: none;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-bright);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.honeypot,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  margin: -1px;
  border: 0;
  white-space: nowrap;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgb(148 172 208 / 45%);
  outline-offset: 3px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.82) rotate(-10deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(10deg); }
}

@keyframes twinkle-dot {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.9; }
}

@keyframes appear {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  body {
    padding: 24px 18px;
  }

  .mascot-stage { width: 150px; height: 145px; }
  .mascot { width: 128px; }
  .eyebrow { margin-bottom: 16px; font-size: 10px; }
  .tagline { font-size: 18px; }
  .description { font-size: 14px; }
  .description.intro { font-size: 15px; }
  .description.question { font-size: 17px; }

  .signup {
    flex-direction: column;
    gap: 10px;
    margin-top: 26px;
  }

  .signup > input,
  .signup button {
    width: 100%;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
