/* Brand tokens — copied verbatim from audio-visualizer src/index.css */
:root {
  --bg-deep:        #080810;
  --bg-base:        #0d0d1a;
  --bg-surface:     #16162a;
  --cyan:           #00e5cc;
  --cyan-dim:       #00a896;
  --cyan-glow:      rgba(0, 229, 204, 0.15);
  --magenta:        #e500aa;
  --amber:          #ffaa00;
  --text-primary:   #c8d6e8;
  --text-secondary: #5a6a82;
  --border-mid:     #26264a;
  --border-bright:  #3a3a66;
  --font-mono:      'Space Mono', 'Courier New', monospace;
  --font-ui:        'Inter', system-ui, sans-serif;
  --font-head:      'Rajdhani', system-ui, sans-serif;
  --danger:         #ff2255;
  --success:        #00e5cc;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

/* Only the single-screen landing locks scroll; privacy.html (no .home) scrolls normally */
body.home {
  overflow: hidden;
}

/* Hero video — fixed full-bleed background */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Dark scrim for text legibility over the video */
.scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to bottom,
      rgba(8, 8, 16, 0.55) 0%,
      rgba(8, 8, 16, 0.30) 35%,
      rgba(8, 8, 16, 0.55) 100%
    ),
    radial-gradient(
      ellipse at center,
      rgba(8, 8, 16, 0.62) 0%,
      rgba(8, 8, 16, 0.84) 70%,
      rgba(8, 8, 16, 0.94) 100%
    );
}

/* Full-viewport centered overlay */
.overlay {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

/* Brand wordmark */
.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-shadow: 0 0 24px var(--cyan-glow), 0 2px 12px rgba(0, 0, 0, 0.6);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

/* Headline */
.headline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin: 0 0 1rem;
  text-transform: uppercase;
  max-width: 14ch;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.75), 0 0 8px rgba(0, 0, 0, 0.5);
}

/* Subhead */
.subhead {
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-primary);
  margin: 0 0 2.5rem;
  max-width: 46ch;
  line-height: 1.6;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.8);
}

/* Form layout */
#signup-form {
  width: 100%;
  max-width: 480px;
  margin-bottom: 1rem;
}

.field-row {
  display: flex;
  gap: 0;
  width: 100%;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-surface);
  transition: border-color 0.2s;
}

.field-row:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan-glow);
}

.email-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.875rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.975rem;
  color: var(--text-primary);
}

.email-input::placeholder {
  color: var(--text-secondary);
}

.cta-btn {
  flex-shrink: 0;
  background: var(--cyan);
  border: none;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.925rem;
  letter-spacing: 0.08em;
  color: var(--bg-deep);
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.cta-btn:hover {
  background: #00ffdf;
  box-shadow: 0 0 16px var(--cyan-glow);
}

.cta-btn:active {
  background: var(--cyan-dim);
}

.cta-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* GDPR consent line */
.consent {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 0;
  max-width: 480px;
  line-height: 1.5;
}

.consent a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent a:hover {
  color: var(--text-primary);
}

/* Success state */
#success {
  margin-top: 1.5rem;
  max-width: 480px;
}

.success-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.success-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--cyan);
  text-shadow: 0 0 24px var(--cyan-glow);
  box-shadow: 0 0 24px var(--cyan-glow);
  line-height: 1;
}

.success-message {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Error state */
#error {
  margin-top: 1rem;
  max-width: 480px;
}

.error-text {
  font-size: 0.875rem;
  color: var(--danger);
  margin: 0;
  line-height: 1.5;
}

/* Privacy page */
.privacy-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  min-height: 100vh;
}

.privacy-container h1 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.privacy-container h2 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 2rem 0 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.privacy-container p,
.privacy-container li {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

.privacy-container ul {
  padding-left: 1.5rem;
  margin: 0 0 0.75rem;
}

.privacy-container a {
  color: var(--cyan-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-container a:hover {
  color: var(--cyan);
}

.privacy-back {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.privacy-back:hover {
  color: var(--cyan);
}

/* Mobile tweaks */
@media (max-width: 480px) {
  body.home {
    overflow: auto;
  }

  .overlay {
    min-height: 100svh;
    justify-content: flex-start;
    padding-top: 4rem;
  }

  .field-row {
    flex-direction: column;
    border-radius: 4px;
  }

  .email-input {
    border-bottom: 1px solid var(--border-mid);
  }

  .cta-btn {
    padding: 0.875rem 1rem;
    text-align: center;
  }
}
