:root {
  --bg: #0a0d0b;
  --bg-glow: #12241a;
  --fg: #d8e6dc;
  --muted: #7d918a;
  --accent: #7dffa8;
  --accent-dim: #3f8f60;
  --danger: #ff8a7d;
  --border: #23302a;
  --field: #101815;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--bg-glow), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 110%, #1a1226, transparent 70%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 8vh 24px 64px;
}

/* --- hero --- */

.hero {
  text-align: center;
  margin-bottom: 40px;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  /* Letter-spacing also lands after the final M, which pushes the box wider
     and shifts the centring. Pull it back. */
  margin-right: -0.1em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 0 32px rgba(125, 255, 168, 0.35);
}

.tagline {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 3.2vw, 1.1rem);
}

/* --- video --- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- signup --- */

.signup {
  margin-top: 48px;
  text-align: center;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(1.15rem, 4.2vw, 1.5rem);
  font-weight: 600;
}

.row {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  font: inherit;
  color: var(--fg);
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="email"]::placeholder { color: #4d5c55; }

input[type="email"]:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(125, 255, 168, 0.12);
}

button {
  padding: 13px 22px;
  font: inherit;
  font-weight: 600;
  color: #06120b;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s, opacity 0.15s;
}

button:hover:not(:disabled) { filter: brightness(1.1); }

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 65px is the Turnstile widget's own height — reserving it stops the page
   jumping when the widget finishes loading. */
.captcha {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  min-height: 65px;
}

.status {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.status.ok { color: var(--accent); }
.status.err { color: var(--danger); }

.fineprint {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #59685f;
}

/* --- about + footer --- */

.about {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.about p { margin: 0; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

footer a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
}

footer a:hover { color: var(--accent); }

.sep { opacity: 0.4; }
.muted { color: #59685f; }

@media (max-width: 600px) {
  main { padding: 5vh 18px 48px; }

  /* Letter-spacing counts toward the title's width, so the phone sizing needs
     both a gentler vw factor and tighter spacing to avoid overflowing. */
  h1 {
    font-size: clamp(1.9rem, 7.6vw, 5rem);
    letter-spacing: 0.05em;
    margin-right: -0.05em;
  }

  .signup { margin-top: 36px; }

  .row { flex-direction: column; }
  button { width: 100%; }

  .about {
    margin-top: 40px;
    padding-top: 26px;
    text-align: left;
  }

  /* Stacked one-per-line, the separators become dangling punctuation. */
  footer { flex-direction: column; gap: 6px; }
  .sep { display: none; }
}
