:root {
  --bg0: #000408;
  --bg1: #020810;
  --panel: rgba(8, 16, 32, 0.4);
  --panel-border: rgba(100, 180, 255, 0.08);
  --text: #e9f4ff;
  --muted: #8a9eb8;
  --cyan: #5ed4ff;
  --accent: #7eb8ff;
  --glow: rgba(94, 212, 255, 0.4);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg0);
}

#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.viewport {
  position: relative;
  z-index: 1;
  height: 100dvh;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(16px, 2vh, 28px);
}

.brand {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.7;
  font-weight: 500;
}

.hero {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 2vh, 24px);
  padding: clamp(20px, 4vw, 60px) 0;
}

.kicker {
  margin: 0;
  color: var(--cyan);
  letter-spacing: 0.3em;
  font-size: clamp(10px, 1vw, 13px);
  text-transform: uppercase;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(52px, 12vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #a8d4ff 50%, #5ed4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 60px rgba(94, 212, 255, 0.3));
}

.subtitle {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.6;
}

.continuum-info {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 1.55;
}

.continuum-info p {
  margin: 0 0 8px;
}

.continuum-info ul {
  margin: 0;
  padding-left: 18px;
}

.continuum-info li + li {
  margin-top: 4px;
}

.coming {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  font-size: clamp(10px, 0.9vw, 12px);
}

.coming::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* CTA Section - Video + Form */
.cta-section {
  width: 100%;
  max-width: 700px;
  flex: 0 0 auto;
}

.cta-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0a1525, #061020);
  overflow: hidden;
}

.video-wrapper::before,
.video-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 2;
  pointer-events: none;
}

.video-wrapper::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(8, 16, 32, 0.8), transparent);
}

.video-wrapper::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(8, 16, 32, 0.9), transparent);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.audio-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  border: 1px solid rgba(126, 184, 255, 0.35);
  background: rgba(4, 10, 20, 0.75);
  color: #d9ecff;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.audio-toggle[aria-pressed="true"] {
  background: rgba(94, 212, 255, 0.22);
  border-color: rgba(94, 212, 255, 0.65);
}

.waitlist-form {
  padding: clamp(12px, 2vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-headline {
  margin: 0;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.input-group {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

input[type="email"] {
  flex: 1;
  min-height: 48px;
  border: 1px solid rgba(94, 212, 255, 0.15);
  border-radius: 12px;
  background: rgba(0, 8, 20, 0.6);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  transition: all 0.2s ease;
}

input[type="email"]::placeholder {
  color: rgba(138, 158, 184, 0.6);
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(94, 212, 255, 0.15);
}

button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 0 20px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  color: #021020;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(94, 212, 255, 0.3);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

button:hover .btn-arrow {
  transform: translateX(3px);
}

#form-message {
  margin: 4px 0 0;
  min-height: 18px;
  font-size: 13px;
  font-weight: 500;
}

#form-message.success {
  color: #7dffb8;
}

#form-message.error {
  color: #ff8a9a;
}

/* Responsive */
@media (max-width: 900px) {
  .viewport {
    padding: clamp(12px, 2.5vw, 20px);
  }
  
  .cta-section {
    max-width: 100%;
  }

  .continuum-info ul {
    margin-bottom: 2px;
  }

  .continuum-info li:nth-child(3) {
    display: none;
  }
}

@media (max-width: 600px) {
  .viewport {
    padding: 12px;
    gap: 12px;
  }
  
  .hero {
    gap: 10px;
    padding: 16px 0;
  }

  h1 {
    font-size: clamp(40px, 14vw, 72px);
    letter-spacing: -0.01em;
  }

  .subtitle br {
    display: none;
  }
  
  .cta-card {
    border-radius: 16px;
  }

  .waitlist-form {
    padding: 14px;
  }

  .input-group {
    flex-direction: column;
  }

  button {
    justify-content: center;
    min-height: 52px;
  }
}

@media (max-height: 700px) and (min-width: 600px) {
  .hero {
    padding: 6px 0;
    gap: 6px;
  }
  
  .video-wrapper {
    aspect-ratio: 21 / 9;
  }

  .subtitle {
    font-size: 13px;
    line-height: 1.45;
  }

  .continuum-info {
    font-size: 12px;
    line-height: 1.4;
  }

  .continuum-info ul {
    display: none;
  }

  .waitlist-form {
    padding: 10px 12px;
    gap: 8px;
  }

  input[type="email"],
  button {
    min-height: 42px;
  }
}
