:root {
  --bg: #1b1640;
  --ink: #fff8ef;
  --muted: rgba(255, 248, 239, 0.68);
  --line: rgba(255, 248, 239, 0.35);
  --c1: #ff6b6b;
  --c2: #ffd166;
  --c3: #06d6a0;
  --c4: #4cc9f0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(120% 90% at 50% 0%, #2b2366 0%, var(--bg) 60%);
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 16px;
  text-align: center;
  overflow-x: hidden;
}
main { width: 100%; max-width: 640px; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
a:hover { text-decoration-color: var(--ink); }

.notes { display: flex; justify-content: center; gap: 14px; margin-bottom: 28px; }
.notes span { width: 18px; height: 18px; border-radius: 50%; animation: bob 1.6s ease-in-out infinite; }
.notes span:nth-child(1) { background: var(--c1); animation-delay: 0s; }
.notes span:nth-child(2) { background: var(--c2); animation-delay: 0.2s; }
.notes span:nth-child(3) { background: var(--c3); animation-delay: 0.4s; }
.notes span:nth-child(4) { background: var(--c4); animation-delay: 0.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

h1 { font-family: "Fredoka", "Inter", sans-serif; font-weight: 700; font-size: clamp(3rem, 13vw, 6.5rem); letter-spacing: -0.02em; line-height: 1; }
.title { font-size: clamp(2rem, 8vw, 3rem); }
.lede { margin-top: 16px; color: var(--muted); line-height: 1.5; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; padding: 12px 22px;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-family: "Fredoka", "Inter", sans-serif; font-weight: 500; font-size: clamp(1rem, 4vw, 1.25rem);
}

/* Launch-list signup */
.signup { margin: 40px auto 0; max-width: 440px; }
.signup h2 { font-family: "Fredoka", "Inter", sans-serif; font-weight: 500; font-size: 1.25rem; }
.signup form { position: relative; display: flex; gap: 8px; margin-top: 16px; }
.signup input[type="email"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 18px;
  background: rgba(255, 248, 239, 0.08); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 999px; font: inherit; font-size: 1rem;
}
.signup input[type="email"]::placeholder { color: var(--muted); }
.signup input[type="email"]:focus { outline: none; border-color: var(--c2); }
.btn {
  height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--c2); color: var(--bg);
  font-family: "Fredoka", "Inter", sans-serif; font-weight: 500; font-size: 1rem;
}
.btn:hover { background: #ffdc85; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn:disabled { opacity: 0.6; cursor: default; }
.page form .btn { margin-top: 32px; }
.form-note { margin-top: 12px; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
#launch-msg { margin-top: 12px; min-height: 1.5em; line-height: 1.5; }
#launch-msg:empty { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

footer { margin-top: 48px; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 420px) {
  .signup form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .notes span { animation: none; }
}
