/* ─── Variables ─── */
:root {
  --bg: #FAFAF8;
  --bg-dark: #0E0E12;
  --fg: #1A1A1A;
  --fg-muted: #6B6B6B;
  --fg-subtle: #9A9A9A;
  --accent: #E8A045;
  --accent-dim: rgba(232, 160, 69, 0.12);
  --border: rgba(26, 26, 26, 0.1);
  --border-strong: rgba(26, 26, 26, 0.18);
  --surface: #FFFFFF;
  --surface-dark: #14141A;
  --text-inv: #F4F4F2;
  --text-inv-muted: #9898A4;
  --green: #3DAA6E;
  --blue: #5B8DEE;
  --tag-bg: rgba(61, 170, 110, 0.12);
  --tag-border: rgba(61, 170, 110, 0.3);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  font-weight: 400;
}

/* ─── Hero ─── */
.hero {
  background: var(--bg-dark);
  color: var(--text-inv);
  padding: 96px 40px 80px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-overline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-inv);
  margin-bottom: 24px;
}
.hero-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-inv-muted);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 10px;
}
.proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 170, 110, 0.25);
}
.proof-text {
  font-size: 13px;
  color: var(--text-inv-muted);
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}
.btn-cta-primary {
  display: inline-block;
  background: #4A4AFF;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-cta-primary:hover {
  background: #5A5AFF;
}
.btn-cta-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-inv-muted);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-cta-secondary:hover {
  border-color: rgba(255,255,255,0.35);
  color: var(--text-inv);
}

/* ─── Data Demo ─── */
.data-demo {
  background: var(--surface-dark);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 24px;
  font-family: 'DM Sans', monospace;
}
.demo-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-inv-muted);
  margin-bottom: 16px;
}
.demo-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  align-items: baseline;
}
.demo-row:last-of-type { border-bottom: none; }
.demo-key {
  font-size: 12px;
  color: var(--text-inv-muted);
  font-weight: 400;
}
.demo-val {
  font-size: 13px;
  color: var(--text-inv);
  font-weight: 400;
}
.demo-val-accent {
  color: var(--accent);
  font-size: 12px;
}
.demo-val-enriched {
  color: var(--green);
  font-size: 12px;
}
.demo-row-tags {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.demo-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--green);
  letter-spacing: 0.02em;
}
.demo-citation {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.citation-label {
  font-size: 11px;
  color: var(--text-inv-muted);
  display: block;
  margin-bottom: 8px;
}
.citation-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.citation-fill {
  height: 100%;
  background: var(--green);
  border-radius: 100px;
  transition: width 0.6s ease;
}
.citation-pct {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  min-width: 36px;
}

/* ─── Features ─── */
.features {
  padding: 100px 40px;
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.features-header {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-overline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
}
.feature-card:hover {
  background: #F7F7F5;
}
.feature-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ─── How It Works ─── */
.how-it-works {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 100px 40px;
}
.hiw-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.hiw-header {
  margin-bottom: 64px;
}
.pipeline-stages {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 64px;
}
.stage {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.stage-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.stage-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.stage-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.stage-arrow {
  display: flex;
  align-items: center;
  padding: 0 16px;
  padding-top: 68px;
  color: var(--fg-subtle);
}
.hiw-callout {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 32px 40px;
  background: var(--surface);
  border-left: 4px solid var(--accent);
}
.callout-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* ─── Product Vision ─── */
.product-vision {
  background: var(--bg-dark);
  color: var(--text-inv);
  padding: 80px 40px;
}
.pv-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.pv-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 56px;
}
.stat-item {
  flex: 1;
  padding: 36px 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-inv);
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-inv-muted);
  line-height: 1.4;
}
.pv-philosophy {
  max-width: 680px;
}
.philosophy-quote {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-inv);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin-bottom: 16px;
}
.philosophy-attr {
  font-size: 13px;
  color: var(--text-inv-muted);
  padding-left: 24px;
}

/* ─── Closing ─── */
.closing {
  background: #1A1917;
  color: var(--text-inv);
  padding: 100px 40px;
  text-align: center;
}
.closing-inner {
  max-width: 720px;
  margin: 0 auto;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-inv);
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(244, 244, 242, 0.55);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Footer ─── */
.footer {
  background: #111111;
  color: var(--text-inv-muted);
  padding: 36px 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-inv);
}
.footer-desc {
  font-size: 12px;
  color: var(--text-inv-muted);
}
.footer-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-stages {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stage-arrow { display: none; }
  .pv-stats {
    flex-direction: column;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
  }
  .stat-item:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .hero { padding: 64px 24px 56px; }
  .features { padding: 64px 24px; }
  .how-it-works { padding: 64px 24px; }
  .product-vision { padding: 64px 24px; }
  .closing { padding: 64px 24px; }
  .footer { padding: 28px 24px; }
  .nav { padding: 0 24px; }
  .stat-value { font-size: 28px; }
}