:root {
  --bg: #0A0A0A;
  --surface: #161616;
  --surface-translucent: rgba(255, 255, 255, 0.04);
  --lime: #D4FF00;
  --lime-pressed: #BEE800;
  --lime-glow: rgba(212, 255, 0, 0.45);
  --purple-glow: rgba(124, 58, 237, 0.40);
  --white: #F5F0E8;
  --muted: #8A8A8A;
  --muted-strong: #B5B5B5;
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);
  --error: #F87171;
  --easing-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'Syne', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  padding: 32px;
  position: relative;
  isolation: isolate;
}

/* GLOW BACKGROUND — purple top-left, lime right.
   Fixed so it doesn't scroll on long pages. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 45% 55% at 18% 12%, var(--purple-glow), transparent 65%),
    radial-gradient(ellipse 50% 65% at 90% 55%, rgba(180, 230, 0, 0.32), transparent 65%),
    radial-gradient(ellipse 70% 80% at 50% 110%, rgba(180, 230, 0, 0.10), transparent 70%);
  pointer-events: none;
}

/* Subtle film-grain noise overlay for richness. SVG inline keeps it dependency-free. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

/* HERO LAYOUT — centered single-screen */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 24px 0 80px;
  gap: 40px;
}

/* LOGO — split fff (lime, glowing) + framed. (white) */
.logo {
  margin: 0;
  font-weight: 800;
  font-size: clamp(72px, 14vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 800ms var(--easing-spring) forwards;
  animation-delay: 80ms;
}
.logo-ff {
  color: var(--lime);
  text-shadow:
    0 0 24px rgba(212, 255, 0, 0.55),
    0 0 60px rgba(212, 255, 0, 0.3);
}
.logo-framed {
  color: var(--white);
  text-shadow: 0 0 32px rgba(245, 240, 232, 0.12);
}

/* SUBHEAD — 3 uppercase letterspaced lines, with emphasized fragments */
.subhead {
  margin: -8px 0 0;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(13px, 1.5vw, 14px);
  line-height: 1.85;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-strong);
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 800ms var(--easing-spring) forwards;
  animation-delay: 220ms;
}
.subhead-line { display: block; }
.subhead .emph { color: var(--white); }
.subhead .accent { color: var(--lime); }

/* SIGNUP — stacked input + button, full-width pill shapes */
.signup {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 800ms var(--easing-spring) forwards;
  animation-delay: 380ms;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

input[type="email"] {
  width: 100%;
  height: 64px;
  background: var(--surface-translucent);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0 28px;
  text-align: center;
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  letter-spacing: -0.005em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 200ms ease, background-color 200ms ease;
}
input[type="email"]::placeholder {
  color: var(--muted);
  letter-spacing: 0.01em;
}
input[type="email"]:focus {
  outline: none;
  border-color: rgba(212, 255, 0, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.cta {
  position: relative;
  width: 100%;
  height: 64px;
  border: none;
  border-radius: 9999px;
  background: var(--lime);
  color: #0a0a0a;
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 60px rgba(212, 255, 0, 0.35),
    0 0 140px rgba(212, 255, 0, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 250ms ease;
}
/* Spec'd top-light sheen */
.cta::after {
  content: '';
  position: absolute;
  inset: 0 0 55% 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
  border-radius: 9999px 9999px 0 0;
}
.cta:hover {
  background: var(--lime-pressed);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 80px rgba(212, 255, 0, 0.45),
    0 0 180px rgba(212, 255, 0, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.4);
}
.cta:active { transform: scale(0.985); }
.cta:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.signup-status {
  margin: -2px 0 0;
  min-height: 18px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.01em;
}
.signup-status.error { color: var(--error); }

.signup-success {
  margin: 0;
  padding: 22px 0;
  font-size: 17px;
  color: var(--lime);
  letter-spacing: -0.01em;
  text-align: center;
}

/* Microcopy under the form */
.signup-microcopy {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 800ms var(--easing-spring) forwards;
  animation-delay: 540ms;
}
.signup-microcopy a {
  color: var(--lime);
  border-bottom: 1px solid rgba(212, 255, 0, 0.4);
  transition: border-color 150ms ease, color 150ms ease;
}
.signup-microcopy a:hover {
  border-bottom-color: var(--lime);
}

/* PAGE FOOTER — minimal, low-contrast, doesn't compete */
.page-footer {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.page-footer a {
  color: inherit;
  transition: color 150ms ease, opacity 150ms ease;
}
.page-footer a:hover { color: var(--white); opacity: 1; }
.page-footer .sep { opacity: 0.5; }

/* LEGAL PAGES */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 0 48px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
  transition: color 150ms ease;
}
.legal-back:hover { color: var(--white); }
.legal h1 {
  font-weight: 700;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.legal .legal-effective {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 32px;
}
.legal h2 {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 36px 0 14px;
}
.legal p, .legal li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--white);
  opacity: 0.82;
}
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--lime); border-bottom: 1px solid rgba(212, 255, 0, 0.3); }
.legal a:hover { border-bottom-color: var(--lime); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MOBILE */
@media (max-width: 520px) {
  body { padding: 24px; }
  .hero { gap: 32px; padding-bottom: 48px; }
  .logo { font-size: clamp(64px, 18vw, 96px); }
  .subhead { font-size: 12px; line-height: 1.95; }
  input[type="email"] { height: 58px; font-size: 15px; }
  .cta { height: 58px; font-size: 16px; }
  .page-footer { gap: 10px; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .logo, .subhead, .signup, .signup-microcopy {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
