/*
 * KOTC Live teaser — page-specific styles.
 *
 * Palette, fonts, scanlines, .main-title/.main-subtitle and .cta-btn all come
 * from cinematic.css. This file only covers what the landing page never had:
 * a scrolling single-screen layout and a form. Input styling is an
 * extrapolation of the cinematic palette (register.css's inputs belong to the
 * other, Inter-based system and would look foreign here).
 */

/*
 * cinematic.css pins html/body to the viewport with overflow:hidden for its
 * boot sequence. This page scrolls, so release that.
 */
html,
body {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.teaser-screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 6rem;
}

/* The page scrolls, so the backdrop is fixed rather than absolute. */
.video-background.teaser-video-bg {
  position: fixed;
  z-index: 0;
}

.teaser-video-bg .video-overlay {
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.75) 40%,
      rgba(0, 0, 0, 0.9) 100%);
}

.teaser-mark {
  width: 96px;
  height: 96px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(246, 196, 83, 0.4));
  opacity: 0;
  animation: fade-up 0.8s ease-out forwards;
  animation-delay: 0.1s;
}

/* Staggered reveal, matching the landing page's entrance choreography. */
.teaser-screen .main-title {
  opacity: 0;
  animation: fade-up 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

.teaser-screen .main-subtitle {
  opacity: 0;
  animation: fade-up 0.8s ease-out forwards;
  animation-delay: 0.5s;
}

.teaser-lede {
  max-width: 34rem;
  margin: 1.75rem auto 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--matrix-green);
  opacity: 0;
  animation: fade-up 0.8s ease-out forwards;
  animation-delay: 0.7s;
}

.teaser-lede-dim {
  margin-top: 0.85rem;
  color: var(--matrix-green-dim);
  font-size: 0.95rem;
  animation-delay: 0.8s;
}

.waitlist {
  margin: 3rem auto 0;
  max-width: 30rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--matrix-green-dim);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 0 20px var(--matrix-green-glow),
    inset 0 0 60px rgba(40, 254, 20, 0.03);
  opacity: 0;
  animation: fade-up 0.8s ease-out forwards;
  animation-delay: 1s;
}

.waitlist-heading {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold-accent);
  text-shadow: 0 0 20px rgba(246, 196, 83, 0.5);
  margin: 0;
}

.waitlist-sub {
  margin: 0.85rem 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--matrix-green-dim);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* The class selector outranks the UA stylesheet's [hidden] rule, so the
   success handler's form.hidden = true needs this to actually hide it. */
.waitlist-form[hidden] {
  display: none;
}

.waitlist-form input {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(40, 254, 20, 0.3);
  border-radius: 4px;
  color: var(--matrix-green);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.waitlist-form input::placeholder {
  color: var(--matrix-green-dim);
  opacity: 0.7;
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--matrix-green);
  background: rgba(40, 254, 20, 0.05);
  box-shadow: 0 0 20px var(--matrix-green-glow);
}

.waitlist-form .cta-btn.primary {
  margin-top: 0.4rem;
  width: 100%;
  border-radius: 4px;
}

.waitlist-form .cta-btn.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.waitlist-status {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.waitlist-status.is-pending {
  color: var(--matrix-green-dim);
}

.waitlist-status.is-ok {
  color: var(--matrix-green);
  text-shadow: 0 0 10px var(--matrix-green-glow);
}

.waitlist-status.is-error {
  color: var(--pirate-red);
}

.waitlist-charter {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--matrix-green-dim);
}

.teaser-actions {
  margin-top: 2.5rem;
  opacity: 0;
  animation: fade-up 0.8s ease-out forwards;
  animation-delay: 1.2s;
}

.teaser-footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: rgba(40, 254, 20, 0.6);
  border-top: 1px solid rgba(40, 254, 20, 0.2);
  background: rgba(0, 0, 0, 0.9);
}

.teaser-footer .footer-brand {
  font-family: 'Orbitron', monospace;
  color: var(--gold-accent);
  letter-spacing: 2px;
}

.teaser-footer .footer-divider {
  margin: 0 0.6rem;
  opacity: 0.5;
}

.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;
}

@media (max-width: 768px) {
  .teaser-screen {
    padding: 3rem 1.25rem 4rem;
  }

  .teaser-mark {
    width: 72px;
    height: 72px;
  }

  .waitlist {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .teaser-lede {
    font-size: 0.98rem;
  }

  .waitlist-heading {
    font-size: 1rem;
    letter-spacing: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .teaser-mark,
  .teaser-screen .main-title,
  .teaser-screen .main-subtitle,
  .teaser-lede,
  .waitlist,
  .teaser-actions {
    opacity: 1;
    animation: none;
  }
}
