:root {
  --bg: #0a0a0a;
  --bg-2: #111;
  --fg: #f5f5f5;
  --fg-muted: rgba(245, 245, 245, 0.62);
  --fg-dim: rgba(245, 245, 245, 0.4);
  --accent: #ff3b30;
  --accent-2: #ff7a45;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --radius: 12px;
  --max: 960px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

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

/* Background */
.bg-grain {
  position: fixed; inset: 0;
  pointer-events: none;
  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 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  z-index: 0;
  mix-blend-mode: overlay;
}

.bg-glow {
  position: fixed;
  top: -20vh; left: 50%;
  width: 1100px; height: 1100px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(255, 59, 48, 0.18), transparent 70%),
    radial-gradient(closest-side, rgba(255, 122, 69, 0.08), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

/* Nav */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  text-decoration: none;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-mark {
  color: var(--accent);
  font-size: 0.85em;
  transform: translateY(-1px);
}

.brand-dot { color: var(--fg-muted); font-weight: 500; }

.badge {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.02);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.headline {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--fg-muted);
  max-width: 36rem;
  margin: 0 0 2.5rem;
}

/* Form */
.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 30rem;
  margin-bottom: 2.5rem;
}

.signup input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.signup input[type="email"]::placeholder { color: var(--fg-dim); }

.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.signup button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--fg);
  color: #0a0a0a;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease;
}

.signup button:hover { background: #fff; }
.signup button:active { transform: translateY(1px); }
.signup button[disabled] { opacity: 0.6; cursor: progress; }

.btn-arrow { transition: transform 0.18s ease; }
.signup button:hover .btn-arrow { transform: translateX(3px); }

.form-status {
  flex: 1 0 100%;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--fg-muted);
  min-height: 1.2em;
}

.form-status.ok { color: #4ade80; }
.form-status.err { color: var(--accent); }

/* Meta tags */
.meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta li { display: inline-flex; align-items: center; gap: 0.5rem; }

.dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer .copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.social { display: flex; gap: 1.25rem; }

.social a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.social a:hover { color: var(--fg); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
