:root {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
  --bg: #05070f;
  --bg-soft: #0b1220;
  --surface: rgba(17, 22, 35, 0.8);
  --surface-strong: rgba(24, 32, 48, 0.92);
  --text: #f5f8ff;
  --muted: rgba(200, 210, 232, 0.6);
  --accent: #5c7cff;
  --accent-strong: #7a8eff;
  --accent-glow: rgba(92, 124, 255, 0.22);
  --accent-glow-soft: rgba(122, 142, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(120% 140% at 20% -20%, rgba(92, 124, 255, 0.12), transparent 55%),
    radial-gradient(120% 140% at 80% 0%, rgba(122, 142, 255, 0.09), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #0f1727 70%, #101829 100%);
  color: var(--text);
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
}

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

.orb {
  position: absolute;
  width: clamp(340px, 42vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(110, 138, 255, 0.45), transparent 60%),
    radial-gradient(circle at center, rgba(45, 75, 160, 0.6), transparent 70%);
  filter: blur(42px);
  opacity: 0.32;
  mix-blend-mode: screen;
  will-change: transform;
}

.orb-one {
  top: -14%;
  right: -8%;
  animation: floatOne 28s ease-in-out infinite;
}

.orb-two {
  bottom: -24%;
  left: -6%;
  background: radial-gradient(circle at 40% 40%, rgba(92, 124, 255, 0.4), transparent 62%),
    radial-gradient(circle at center, rgba(54, 92, 255, 0.28), transparent 72%);
  animation: floatTwo 32s ease-in-out infinite;
}

.page {
  position: relative;
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 56px 48px;
  border-radius: 28px;
  border: 1px solid rgba(104, 130, 188, 0.14);
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.88) 0%, rgba(10, 15, 26, 0.92) 100%);
  backdrop-filter: blur(26px);
  box-shadow: 0 30px 80px rgba(6, 8, 16, 0.55),
              inset 0 1px 0 rgba(122, 142, 255, 0.08);
  z-index: 1;
}

.page::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(92, 124, 255, 0.17), transparent 55%, rgba(42, 58, 112, 0.28));
  background-size: 220% 220%;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
  filter: blur(0.5px);
}

.page > * {
  position: relative;
  z-index: 1;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(170, 182, 212, 0.6);
}

.logo-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 22px;
  border: 1px solid rgba(122, 142, 255, 0.22);
  background: linear-gradient(160deg, rgba(22, 32, 54, 0.95), rgba(16, 23, 39, 0.7));
  box-shadow: 0 14px 30px rgba(6, 8, 16, 0.6),
              inset 0 0 18px rgba(92, 124, 255, 0.22);
}

.logo {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 12px rgba(92, 124, 255, 0.35));
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f0f4ff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.tagline {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  max-width: 520px;
}

.headline {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  color: #f5f8ff;
  letter-spacing: -0.01em;
}

.subhead {
  margin: 0;
  color: rgba(208, 216, 240, 0.82);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  max-width: 480px;
}

.waitlist {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  width: 100%;
  background: rgba(14, 19, 30, 0.92);
  border: 1px solid rgba(104, 130, 188, 0.16);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(122, 142, 255, 0.08);
}

.waitlist input {
  flex: 1;
  padding: 15px 20px;
  font-size: 0.95rem;
  border: none;
  border-radius: 12px;
  background: rgba(18, 24, 36, 0.95);
  color: var(--text);
  transition: all 0.2s ease;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(122, 142, 255, 0.08);
}

.waitlist input::placeholder {
  color: rgba(155, 170, 202, 0.55);
}

.waitlist input:focus {
  outline: none;
  background: rgba(23, 31, 48, 1);
  box-shadow: 0 0 0 2px rgba(92, 124, 255, 0.3);
}

.waitlist input:focus-visible {
  outline: 2px solid rgba(92, 124, 255, 0.55);
  outline-offset: 2px;
}

.waitlist button {
  padding: 15px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(135, 146, 255, 0.95) 0%, #5c7cff 100%);
  color: #0a1024;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 18px 38px rgba(92, 124, 255, 0.35),
              0 6px 16px rgba(92, 124, 255, 0.22);
  white-space: nowrap;
}

.waitlist button:hover:not(:disabled) {
  transform: translateY(-3px);
  background: linear-gradient(140deg, rgba(180, 191, 255, 0.98) 0%, #6a87ff 100%);
  box-shadow: 0 24px 46px rgba(92, 124, 255, 0.4),
              0 10px 24px rgba(92, 124, 255, 0.28);
}

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

.waitlist button:focus-visible {
  outline: 2px solid rgba(135, 146, 255, 0.8);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(92, 124, 255, 0.28),
              0 12px 28px rgba(92, 124, 255, 0.38),
              0 4px 12px rgba(92, 124, 255, 0.22);
}

.waitlist button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.waitlist button.button-success {
  background: linear-gradient(140deg, #2dd87c 0%, #20b665 100%);
  color: #041012;
  box-shadow: 0 18px 32px rgba(45, 216, 124, 0.38),
              0 6px 18px rgba(45, 216, 124, 0.24);
}

.note {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(190, 202, 230, 0.65);
  text-align: center;
  transition: color 0.2s ease;
  font-weight: 400;
}

.note[data-state="success"] {
  color: #36d48a;
}

.note[data-state="error"] {
  color: #ff6b87;
}

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

/* Tablet styles */
@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  .page {
    gap: 36px;
    padding: 44px 36px;
  }

  .hero {
    gap: 32px;
  }

  h1 {
    font-size: clamp(2.2rem, 7vw, 2.875rem);
  }

  .waitlist button {
    padding: 15px 26px;
  }
}

/* Mobile styles */
@media (max-width: 480px) {
  body {
    padding: 16px;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .page {
    gap: 28px;
    padding: 40px 28px;
    border-radius: 24px;
  }

  .hero {
    gap: 28px;
  }

  .brand {
    gap: 16px;
  }

  .logo-ring {
    width: 72px;
    height: 72px;
  }

  .logo {
    width: 42px;
    height: 42px;
  }

  .eyebrow {
    font-size: 0.65rem;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .tagline {
    font-size: 0.8125rem;
  }

  .copy {
    gap: 12px;
  }

  .headline {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
  }

  .subhead {
    font-size: 0.9375rem;
  }

  .waitlist {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .waitlist input {
    width: 100%;
    padding: 14px 18px;
  }

  .waitlist button {
    width: 100%;
    padding: 14px 24px;
  }

  .waitlist button:hover:not(:disabled) {
    transform: none;
    box-shadow: 0 18px 32px rgba(92, 124, 255, 0.32),
                0 6px 18px rgba(92, 124, 255, 0.2);
  }

  .note {
    font-size: 0.8125rem;
  }

  .orb {
    width: clamp(240px, 60vw, 400px);
  }
}

/* Animations */
@keyframes floatOne {
  0%, 100% {
    transform: translate3d(0, -20px, 0) scale(0.94);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(-30px, 30px, 0) scale(1.04);
    opacity: 0.72;
  }
}

@keyframes floatTwo {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(0.9);
    opacity: 0.5;
  }
  50% {
    transform: translate3d(40px, -20px, 0) scale(1.06);
    opacity: 0.68;
  }
}

.page {
  animation: cardFade 280ms ease-out both;
}

.page::before {
  animation: gradientDrift 12s ease-in-out infinite alternate;
}

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

@keyframes gradientDrift {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 100% 100%;
  }
}
