:root {
  --bg: #000000;
  --bg-2: #111111;
  --label: #ffffff;
  --label-2: rgba(235, 235, 245, 0.6);
  --label-3: rgba(235, 235, 245, 0.3);
  --separator: rgba(84, 84, 88, 0.6);
  --fill: rgba(120, 120, 128, 0.36);
  --indigo: #5E5CE6;
  --indigo-soft: #8B89F0;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --radius: 20px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--label);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Indigo glow that mirrors the app icon */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 108%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(90% 70% at 50% 100%, rgba(94, 92, 230, 0.75) 0%, rgba(94, 92, 230, 0.35) 35%, rgba(94, 92, 230, 0) 70%);
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.85; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(-12px); }
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 16px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Brand wordmark */
.brand {
  display: flex;
  justify-content: center;
  margin: 0 0 clamp(24px, 4vh, 40px);
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.brand__wordmark {
  width: clamp(260px, 52vw, 540px);
  height: auto;
}

/* Hero */
.hero {
  text-align: center;
  margin: auto;
  padding: clamp(24px, 4vh, 56px) 0;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--label-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: rise 0.8s 0.05s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--indigo-soft);
  box-shadow: 0 0 0 4px rgba(94, 92, 230, 0.25);
}

.headline {
  margin: 0;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  animation: rise 0.9s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lede {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--label-2);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  animation: rise 0.9s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* Waitlist form */
.waitlist {
  margin: 28px auto 0;
  max-width: 520px;
  animation: rise 0.9s 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.waitlist__row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.waitlist__row:focus-within {
  border-color: rgba(139, 137, 240, 0.6);
  box-shadow: 0 0 0 4px rgba(94, 92, 230, 0.2), 0 20px 60px rgba(0, 0, 0, 0.35);
}
.waitlist__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--label);
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
}
.waitlist__input::placeholder { color: var(--label-3); }

.waitlist__button {
  position: relative;
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  padding: 12px 20px;
  border-radius: 13px;
  background: linear-gradient(180deg, #7472F0 0%, var(--indigo) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px rgba(94, 92, 230, 0.45);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.waitlist__button:hover { filter: brightness(1.08); }
.waitlist__button:active { transform: scale(0.98); }
.waitlist__button:disabled { cursor: default; filter: saturate(0.6); }

.waitlist__spinner {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
.is-sending .waitlist__label { visibility: hidden; }
.is-sending .waitlist__spinner { display: block; }
.is-done .waitlist__row { border-color: rgba(48, 209, 88, 0.5); }
.is-done .waitlist__button { background: linear-gradient(180deg, #3ddc63 0%, #30D158 100%); box-shadow: 0 8px 24px rgba(48, 209, 88, 0.35); }

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

.waitlist__note {
  margin: 14px 0 0;
  color: var(--label-3);
  font-size: 13px;
  transition: color 0.2s ease;
}
.is-done .waitlist__note { color: #30D158; }
.waitlist__note.is-error { color: #FF453A; }

/* Footer */
.footer {
  padding-top: 24px;
  text-align: center;
  color: var(--label-3);
  font-size: 13px;
}
.footer p { margin: 0; }

/* Utilities */
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

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

/* Responsive */
@media (max-width: 720px) {
  .waitlist__row { flex-direction: column; padding: 8px; }
  .waitlist__input { padding: 12px 10px; text-align: center; }
  .waitlist__button { padding: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .glow, .brand, .eyebrow, .headline, .lede, .waitlist { animation: none; }
}
