:root {
  --navy-950: #060a18;
  --navy-900: #0a1128;
  --navy-800: #0f1a3d;
  --blue-700: #1e3a8a;
  --blue-500: #3b5bdb;
  --blue-400: #5b7cfa;
  --blue-300: #7c9bff;
  --ink-50: #f4f6ff;
  --ink-200: #c2caee;
  --ink-400: #8a93c4;
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy-950);
  color: var(--ink-50);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Background gradient orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}

.orb-1 {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, var(--blue-500), transparent 70%);
  animation: float1 16s ease-in-out infinite;
}

.orb-2 {
  width: 480px;
  height: 480px;
  bottom: -160px;
  right: -100px;
  background: radial-gradient(circle at 50% 50%, var(--blue-700), transparent 70%);
  animation: float2 20s ease-in-out infinite;
}

.orb-3 {
  width: 360px;
  height: 360px;
  top: 40%;
  left: 50%;
  background: radial-gradient(circle at 50% 50%, var(--blue-400), transparent 70%);
  opacity: 0.25;
  animation: float3 24s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.08); }
}

@keyframes float3 {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -40px) scale(1.15); }
}

/* Nav */
.nav {
  position: relative;
  z-index: 10;
  padding: 28px 6vw 0;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 20px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(91, 124, 250, 0.35));
}

.badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-300);
  background: rgba(59, 91, 219, 0.12);
  border: 1px solid rgba(91, 124, 250, 0.3);
  padding: 7px 14px;
  border-radius: 999px;
}

/* Hero */
.hero {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 6vw 80px;
}

.hero-content {
  max-width: 680px;
  width: 100%;
  text-align: center;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.hero-logo {
  height: 240px;
  width: auto;
  margin: 0 auto 28px;
  display: block;
  filter: drop-shadow(0 0 32px rgba(91, 124, 250, 0.4));
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 .line {
  display: block;
}

.gradient-text {
  background: linear-gradient(100deg, var(--blue-300) 10%, var(--blue-500) 50%, var(--blue-700) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.subtitle {
  margin: 24px auto 0;
  max-width: 480px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-200);
}

/* Form */
.waitlist-form {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.input-wrap {
  flex: 1;
  min-width: 240px;
  max-width: 320px;
}

#email {
  width: 100%;
  padding: 15px 18px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink-50);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 155, 255, 0.25);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

#email:focus {
  border-color: var(--blue-400);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(91, 124, 250, 0.15);
}

#email.invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--navy-950);
  background: linear-gradient(100deg, var(--blue-300), var(--blue-500));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 8px 24px rgba(59, 91, 219, 0.35);
}

.cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 32px rgba(59, 91, 219, 0.45);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn svg {
  transition: transform 0.2s ease;
}

.cta-btn:hover svg {
  transform: translateX(3px);
}

.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-400);
}

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

/* Success */
.success-message {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(59, 91, 219, 0.1);
  border: 1px solid rgba(91, 124, 250, 0.3);
  border-radius: var(--radius);
  color: var(--ink-50);
  font-size: 14px;
  font-weight: 500;
  animation: rise 0.5s ease both;
}

.success-message.visible {
  display: flex;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-500);
  color: var(--navy-950);
  flex-shrink: 0;
}

.waitlist-form.hidden {
  display: none;
}

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 24px 6vw 32px;
  font-size: 13px;
  color: var(--ink-400);
}

@media (max-width: 480px) {
  .waitlist-form {
    flex-direction: column;
  }
  .input-wrap {
    max-width: none;
  }
  .cta-btn {
    justify-content: center;
  }
}
