:root {
  --bg: #0A0A0A;
  --surface: #111111;
  --fg: #F0EDE8;
  --fg-muted: #7A776F;
  --accent: #00E887;
  --accent-dim: rgba(0, 232, 135, 0.12);
  --border: rgba(240, 237, 232, 0.08);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid rgba(0,232,135,0.25);
  color: var(--accent);
  font-size: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 42ch;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
}
.hero-stat { display: flex; flex-direction: column; gap: 0.25rem; }
.hero-stat-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--accent);
}
.hero-stat-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
  max-width: 14ch;
  line-height: 1.4;
}

/* Agent Loop */
.agent-loop {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
}
.agent-step { display: flex; align-items: center; gap: 1rem; }
.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0,232,135,0.5);
}
.step-content { display: flex; flex-direction: column; gap: 0.15rem; }
.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
}
.step-desc {
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.agent-arrow {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 0.5rem 5px;
}
.agent-loop-label {
  text-align: center;
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
}

/* How */
.how {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.how-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
}
.how-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.how-body {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 58ch;
  line-height: 1.7;
}

/* Features */
.features { max-width: 1100px; margin: 0 auto; padding: 5rem 2.5rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}
.feature-icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Outcomes */
.outcomes {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.outcomes-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 0;
}
.outcome { flex: 1; text-align: center; padding: 0 2rem; }
.outcome-metric {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}
.outcome-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  max-width: 20ch;
  margin: 0 auto;
  line-height: 1.5;
}
.outcome-sep {
  width: 1px;
  height: 80px;
  background: var(--border);
  flex-shrink: 0;
}

/* Closing */
.closing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2.5rem;
  text-align: center;
}
.closing-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.closing-sub {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.65;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 2.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.footer-waitlist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}
.footer-waitlist-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.footer-waitlist-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.footer-wl-input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  outline: none;
  width: 200px;
  transition: border-color 0.15s;
}
.footer-wl-input:focus { border-color: rgba(0,232,135,0.4); }
.footer-wl-input::placeholder { color: var(--fg-muted); }
.footer-wl-btn {
  background: var(--accent);
  color: #0A0A0A;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.footer-wl-btn:hover { opacity: 0.88; }
.footer-wl-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.footer-wl-confirm {
  font-size: 0.8rem;
  color: var(--accent);
}

/* Mobile */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 1.5rem 2.5rem; }
  .hero-stats { gap: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .outcomes-inner { flex-direction: column; gap: 2rem; }
  .outcome-sep { width: 60px; height: 1px; }
  .how-inner, .features, .closing { padding-left: 1.5rem; padding-right: 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-waitlist { align-items: center; }
  .footer-waitlist-row { flex-direction: column; }
  .footer-wl-input { width: 100%; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 1rem; }
}

/* ───────────────────────────────────────────
   Demo Panel (hero-right)
─────────────────────────────────────────── */
.demo-header {
  margin-bottom: 1.25rem;
}
.demo-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.demo-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.demo-field-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
  font-weight: 600;
}
.demo-optional {
  font-weight: 400;
  opacity: 0.6;
  text-transform: none;
  letter-spacing: 0;
}
.demo-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.65rem 0.85rem;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.demo-input:focus {
  border-color: rgba(0,232,135,0.4);
}
.demo-input::placeholder { color: var(--fg-muted); opacity: 0.6; }

.demo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0A0A0A;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 0.25rem;
}
.demo-btn:hover { opacity: 0.88; }
.demo-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.demo-btn-arrow { font-size: 1rem; }

/* Output panel */
.demo-output {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.demo-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.demo-output-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.demo-again-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.demo-again-btn:hover { border-color: var(--accent); color: var(--accent); }

.demo-email-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.15rem;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.email-subject {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}
.email-para {
  font-size: 0.82rem;
  color: var(--fg);
  line-height: 1.65;
  margin-bottom: 0.65rem;
}
.email-para:last-child { margin-bottom: 0; }

/* Email capture */
.demo-capture {
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
}
.demo-capture-text {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-bottom: 0.55rem;
}
.demo-capture-row {
  display: flex;
  gap: 0.5rem;
}
.demo-capture-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  outline: none;
  min-width: 0;
}
.demo-capture-input:focus { border-color: rgba(0,232,135,0.4); }
.demo-capture-input::placeholder { color: var(--fg-muted); opacity: 0.6; }
.demo-capture-send {
  background: rgba(0,232,135,0.12);
  border: 1px solid rgba(0,232,135,0.3);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.5rem 0.85rem;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.demo-capture-send:hover { background: rgba(0,232,135,0.2); }
.demo-capture-send:disabled { opacity: 0.5; cursor: not-allowed; }
.demo-capture-confirm {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 0.4rem;
}

/* Save-draft link (below capture CTA, visible after stream completes) */
.demo-save-draft {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--fg-muted);
}
.demo-save-link {
  background: none;
  border: none;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.demo-save-link:hover { color: var(--fg); }

/* Post-stream conversion CTA */
.demo-cta {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.demo-cta.demo-cta-visible {
  opacity: 1;
  transform: translateY(0);
}
.demo-cta-pitch {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}
.demo-cta-pitch strong { color: var(--fg); }
.demo-cta-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.demo-cta-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #0A0A0A;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.6rem 1.1rem;
  border-radius: 7px;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.demo-cta-primary:hover { opacity: 0.88; }
.demo-cta-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(240,237,232,0.06);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.6rem 1rem;
  border-radius: 7px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.demo-cta-secondary:hover { border-color: rgba(240,237,232,0.2); color: var(--fg); }
.demo-cta-social {
  margin-top: 0.65rem;
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* Error message */
.demo-error {
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.25);
  border-radius: 8px;
  color: #ff8080;
  font-size: 0.8rem;
  padding: 0.6rem 0.85rem;
  margin-top: 0.5rem;
}

/* Email gate card */
.demo-gate {
  display: none;
}
.demo-gate.demo-gate-visible {
  display: block;
  animation: gateFadeIn 0.3s ease;
}
@keyframes gateFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.demo-gate-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  text-align: center;
}
.demo-gate-lock-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.demo-gate-headline {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 0.3rem;
}
.demo-gate-sub {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin: 0 0 1rem;
  line-height: 1.4;
}
.demo-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.demo-gate-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--fg);
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
  text-align: center;
  outline: none;
  transition: border-color 0.15s;
}
.demo-gate-input:focus { border-color: rgba(0,232,135,0.5); }
.demo-gate-input::placeholder { color: var(--fg-muted); opacity: 0.6; }
.demo-gate-btn {
  background: rgba(0,232,135,0.14);
  border: 1px solid rgba(0,232,135,0.35);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  letter-spacing: 0.01em;
}
.demo-gate-btn:hover { background: rgba(0,232,135,0.22); }
.demo-gate-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.demo-gate-error {
  color: #ff8080;
  font-size: 0.75rem;
  margin-top: 0.4rem;
}

/* Persistent unlock button (shown if user closed gate) */
.demo-unlock-persistent {
  background: rgba(0,232,135,0.07);
  border: 1px dashed rgba(0,232,135,0.25);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.15s;
}
.demo-unlock-persistent:hover { background: rgba(0,232,135,0.14); }
