:root {
  --bg: #0a0a0f;
  --accent: #3dd7d7;
  --text: #e8eaed;
  --muted: #9aa3ad;
  --border: rgba(255, 255, 255, 0.14);
  --field: rgba(255, 255, 255, 0.08);
  --max: 720px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 30% 15%, #16213e 0%, var(--bg) 60%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* faint grid overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
}

.hero, main, .footer { position: relative; z-index: 1; }

/* layout */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 18vh, 180px) 24px 48px;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}

.headline {
  font-size: clamp(44px, 9vw, 84px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.02;
  margin: 0;
  background: linear-gradient(90deg, #ffffff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(61, 215, 215, 0.25);
}

.subhead {
  color: var(--muted);
  font-size: clamp(15px, 2.5vw, 18px);
  margin: 20px auto 36px;
  max-width: 420px;
}

/* signup form */
.signup {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 440px;
  margin: 0 auto;
}

.signup input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--field);
  color: var(--text);
  font-size: 15px;
}

.signup input::placeholder { color: var(--muted); }

.signup input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.signup button {
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #04201f;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.signup button:hover { filter: brightness(1.1); }
.signup button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.signup-status {
  min-height: 1.2em;
  margin: 14px 0 0;
  color: var(--accent);
  font-size: 14px;
}

/* main sections */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.about {
  text-align: center;
  color: var(--muted);
  font-size: clamp(16px, 2.6vw, 19px);
  padding: 32px 0 64px;
  border-bottom: 1px solid var(--border);
}

.teaser { text-align: center; padding: 64px 0; }

.label {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 10px;
}

.teaser-text {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

/* footer */
.footer {
  margin-top: auto;
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

.contact {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.contact:hover { text-decoration: underline; }

.copyright {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 0;
}

/* utilities */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* entrance animation */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.hero > * {
  opacity: 1;
  animation: hero-rise 0.6s ease backwards;
}
.hero > *:nth-child(1) { animation-delay: 0s; }
.hero > *:nth-child(2) { animation-delay: 0.08s; }
.hero > *:nth-child(3) { animation-delay: 0.16s; }
.hero > *:nth-child(4) { animation-delay: 0.24s; }
.hero > *:nth-child(5) { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .hero > * { animation: none; }
  html { scroll-behavior: auto; }
}
