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

:root {
  --bg: #0c0c0c;
  --bg-card: #141414;
  --fg: #f0ede8;
  --fg-muted: #888;
  --accent: #BFFF00;
  --accent-dim: rgba(191, 255, 0, 0.08);
  --border: rgba(255,255,255,0.08);
  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max-w: 1100px;
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.5px;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 80px 32px 64px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid rgba(191,255,0,0.3);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-headline {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 20px;
  color: var(--fg);
}
.hero-sub {
  font-size: 17px;
  color: #999;
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 40px;
}
.hero-diagram {
  width: 100%;
  max-width: 480px;
}
.hero-diagram svg { width: 100%; height: auto; }

/* Hero right stats */
.hero-right { display: flex; flex-direction: column; gap: 16px; }
.hero-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.hero-stat-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--fg);
}
.hero-stat-unit {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-muted);
  margin-left: 4px;
}

/* Sections shared */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.section-heading {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 48px;
  max-width: 640px;
}

/* How It Works */
.hiw { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hiw-inner { max-width: var(--max-w); margin: 0 auto; padding: 72px 32px; }
.hiw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.hiw-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.hiw-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.hiw-step p {
  font-size: 14px;
  color: #888;
  line-height: 1.65;
}

/* Niches */
.niches { background: var(--bg); }
.niches-inner { max-width: var(--max-w); margin: 0 auto; padding: 72px 32px; }
.niches-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.niche-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s;
}
.niche-card:hover { border-color: rgba(191,255,0,0.2); }
.niche-icon { margin-bottom: 20px; }
.niche-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.niche-card p {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
}

/* Pricing */
.pricing { background: var(--bg-card); border-top: 1px solid var(--border); }
.pricing-inner { max-width: var(--max-w); margin: 0 auto; padding: 72px 32px; }
.pricing-card { display: flex; justify-content: flex-start; }
.pricing-tier {
  background: var(--bg);
  border: 1px solid rgba(191,255,0,0.25);
  border-radius: 12px;
  padding: 40px 48px;
  min-width: 360px;
}
.pricing-tier-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.pricing-tier-price {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 28px;
  line-height: 1;
}
.pricing-currency { font-size: 28px; font-weight: 400; vertical-align: top; margin-top: 8px; display: inline-block; }
.pricing-per { font-size: 20px; font-weight: 400; color: var(--fg-muted); }
.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}
.pricing-features li {
  font-size: 14px;
  color: #999;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-features li::before { content: '+ '; color: var(--accent); font-family: var(--font-mono); }
.pricing-math {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  background: var(--accent-dim);
  border: 1px solid rgba(191,255,0,0.15);
  border-radius: 4px;
  padding: 8px 14px;
  display: inline-block;
}
.pricing-note {
  font-size: 13px;
  color: #666;
  margin-top: 20px;
  font-style: italic;
}

/* Closing */
.closing { background: var(--bg); }
.closing-inner { max-width: var(--max-w); margin: 0 auto; padding: 80px 32px; }
.closing-heading {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 16px;
  color: #888;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.closing-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.6;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}

/* Footer */
.footer { border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 40px 32px; }
.footer-logo { font-size: 16px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.footer-tagline { font-size: 13px; color: var(--fg-muted); margin-bottom: 12px; }
.footer-copy { font-size: 12px; color: #444; font-family: var(--font-mono); }

/* ── Lead Capture Form ─────────────────────────────────── */
.lead-form { background: var(--bg); }
.lead-form-inner { max-width: var(--max-w); margin: 0 auto; padding: 72px 32px; }
.lead-form-sub {
  font-size: 16px;
  color: #888;
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 36px;
}
.lead-capture-form { max-width: 680px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-optional { font-size: 10px; color: #555; text-transform: none; letter-spacing: 0; font-family: var(--font-head); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-head);
  font-size: 14px;
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.2s;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #444; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: rgba(191,255,0,0.4);
}
.form-field select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-field select option { background: #141414; color: var(--fg); }
.form-submit-btn {
  background: var(--accent);
  color: #0c0c0c;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 14px 28px;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s, transform 0.1s;
  letter-spacing: 0.5px;
}
.form-submit-btn:hover { opacity: 0.88; }
.form-submit-btn:active { transform: scale(0.98); }
.form-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent);
  font-family: var(--font-mono);
}
.form-error {
  margin-top: 12px;
  font-size: 13px;
  color: #ff6b6b;
  font-family: var(--font-mono);
}
.hide { display: none !important; }

/* ── Demo Widget ───────────────────────────────────────── */
.demo-widget { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.demo-widget-inner { max-width: var(--max-w); margin: 0 auto; padding: 72px 32px; }
.demo-widget-sub {
  font-size: 15px;
  color: #888;
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.demo-widget-sub strong { color: var(--fg); font-weight: 600; }
.demo-widget-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(191,255,0,0.5);
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}
.demo-interface {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
}
.demo-input-area { display: flex; flex-direction: column; gap: 14px; }
.demo-field { display: flex; flex-direction: column; gap: 5px; }
.demo-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.demo-field input, .demo-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-head);
  font-size: 14px;
  padding: 9px 12px;
  width: 100%;
  resize: none;
  transition: border-color 0.2s;
}
.demo-field input::placeholder, .demo-field textarea::placeholder { color: #444; }
.demo-field input:focus, .demo-field textarea:focus {
  outline: none;
  border-color: rgba(191,255,0,0.35);
}
.demo-score-btn {
  background: transparent;
  border: 1px solid rgba(191,255,0,0.35);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 20px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, border-color 0.2s;
  margin-top: 4px;
}
.demo-score-btn:hover { background: var(--accent-dim); border-color: rgba(191,255,0,0.5); }
.demo-score-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(191,255,0,0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Demo Results */
.demo-results {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.demo-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #444;
  font-size: 13px;
  font-family: var(--font-mono);
  text-align: center;
}
.streaming-dots { display: flex; gap: 6px; }
.streaming-dots span {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.streaming-dots span:nth-child(2) { animation-delay: 0.2s; }
.streaming-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}
.demo-output-content { display: flex; flex-direction: column; gap: 20px; }
.demo-score-badge {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.demo-score-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  align-self: center;
  margin-right: 8px;
}
.demo-score-num {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--accent);
  line-height: 1;
}
.demo-score-max {
  font-size: 20px;
  font-weight: 400;
  color: var(--fg-muted);
}
.demo-reasoning {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  border-left: 2px solid rgba(191,255,0,0.2);
  padding-left: 14px;
}
.demo-result-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}
.demo-agent-route { margin-bottom: 4px; }
.demo-agent-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.demo-reply-body {
  font-size: 13px;
  color: #aaa;
  line-height: 1.7;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.demo-error {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ff6b6b;
  padding: 12px;
  border: 1px solid rgba(255,107,107,0.2);
  border-radius: var(--radius);
}

/* ── ROI Calculator ────────────────────────────────────── */
.roi-calc { background: var(--bg); border-top: 1px solid var(--border); }
.roi-calc-inner { max-width: var(--max-w); margin: 0 auto; padding: 72px 32px; }

.roi-calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Inputs */
.roi-inputs { display: flex; flex-direction: column; gap: 32px; }
.roi-input-group { display: flex; flex-direction: column; gap: 10px; }
.roi-input-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.roi-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.roi-value-display {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  accent-color: var(--accent);
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(191,255,0,0.15);
  transition: box-shadow 0.2s;
}
.roi-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 0 6px rgba(191,255,0,0.2); }
.roi-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 3px rgba(191,255,0,0.15);
}
.roi-range-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #555;
}

/* Outputs */
.roi-outputs { display: flex; flex-direction: column; gap: 12px; }
.roi-output-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.2s;
}
.roi-output-card.roi-output-primary { border-color: rgba(191,255,0,0.15); }
.roi-output-card.roi-output-highlight {
  border-color: rgba(191,255,0,0.3);
  background: rgba(191,255,0,0.04);
}
.roi-output-card.roi-output-payback { border-style: dashed; }
.roi-output-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.roi-output-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--fg);
  line-height: 1.1;
}
.roi-output-highlight .roi-output-value { color: var(--accent); }
.roi-output-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #555;
  margin-top: 4px;
}

/* CTA */
.roi-cta {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.roi-cta-text {
  font-size: 15px;
  color: #888;
  max-width: 480px;
  line-height: 1.55;
}
.roi-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0c0c0c;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 22px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.roi-cta-btn:hover { opacity: 0.88; }

/* Responsive */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hiw-steps { grid-template-columns: 1fr; gap: 32px; }
  .niches-grid { grid-template-columns: 1fr; }
  .pricing-card { justify-content: center; }
  .pricing-tier { min-width: auto; width: 100%; }
  .hero { padding: 48px 24px 40px; }
  .hiw-inner, .niches-inner, .pricing-inner, .closing-inner { padding: 48px 24px; }
  .nav { padding: 16px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .lead-form-inner { padding: 48px 24px; }
  .demo-interface { grid-template-columns: 1fr; }
  .demo-widget-inner { padding: 48px 24px; }
  .roi-calc-inner { padding: 48px 24px; }
  .roi-calc-layout { grid-template-columns: 1fr; gap: 32px; }
  .roi-cta { flex-direction: column; align-items: flex-start; }
  .roi-cta-btn { width: 100%; justify-content: center; }
}
