:root {
  --bg: #05070d;
  --fg: #eef1f8;
  --fg-muted: #8b93ab;
  --accent: #23f0a6;
  --border: rgba(255, 255, 255, 0.1);
  --font-display: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* the whole page is locked -- nothing scrolls or shifts */
}

body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  overscroll-behavior: none;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1rem, 4vh, 2.5rem) 1.5rem;
  gap: clamp(0.5rem, 1.6vh, 0.9rem);
}

.logo {
  width: clamp(140px, 20vw, 220px);
  height: auto;
  margin-bottom: clamp(0.25rem, 1vh, 0.75rem);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(0.6rem, 1.4vw, 0.75rem);
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  max-width: 18ch;
  letter-spacing: -0.01em;
}

.subhead {
  margin: 0;
  color: var(--fg-muted);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  max-width: 46ch;
  line-height: 1.6;
}

.hook {
  margin: 0;
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  color: var(--fg);
  opacity: 0.85;
  max-width: 42ch;
}

.actions {
  margin-top: clamp(0.5rem, 1.6vh, 1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #06120e;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 0 40px rgba(35, 240, 166, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 55px rgba(35, 240, 166, 0.4);
}

.email-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.email-form input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  color: var(--fg);
  font-family: var(--font-body);
  /* 16px minimum -- anything smaller makes iOS Safari auto-zoom the whole
     page on focus, which is what "the page moves" turns out to be. */
  font-size: 16px;
  min-width: 220px;
  outline: none;
  transition: border-color 0.2s ease;
}

.email-form input::placeholder {
  color: var(--fg-muted);
}

.email-form input:focus {
  border-color: var(--accent);
}

.email-form button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.email-form button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.email-confirm {
  margin: 0;
  font-size: 0.8rem;
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.75rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
  background: rgba(5, 7, 13, 0.6);
  backdrop-filter: blur(6px);
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--fg-muted);
  text-decoration: none;
}

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

.social-icon {
  display: inline-flex;
  align-items: center;
}

.footer-sep {
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  #bg { display: none; }
}
