:root {
  --bg: #0f1117;
  --surface: #171b26;
  --surface-2: #1e2333;
  --border: #2a2f42;
  --text-primary: #f0f2f8;
  --text-secondary: #8892a4;
  --text-muted: #5a6275;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --secondary: #818cf8;
  --secondary-dim: rgba(129, 140, 248, 0.12);
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

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

/* ─── HEADER ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.header-tag {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* ─── HERO ─────────────────────────────────────── */
.hero {
  padding: 80px 24px 72px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  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(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-headline .accent {
  color: var(--accent);
}

.hero-lede {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-integrations {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.int-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 4px;
}

.int-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* Flow diagram */
.hero-visual {
  display: flex;
  align-items: center;
}

.flow-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  width: 100%;
  overflow: hidden;
}

.flow-step {
  flex: 1;
  text-align: center;
  padding: 0 8px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.step-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
}

.flow-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 4px;
}

/* ─── SECTION SHARED ─────────────────────────────── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header,
.diff-intro {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ─── WORKFLOW ─────────────────────────────────── */
.workflow-section {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.beat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.beat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
}

.beat-icon {
  margin-bottom: 16px;
}

.beat-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.beat-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.25;
}

.beat-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── DIFFERENTIATORS ─────────────────────────── */
.diff-section {
  padding: 80px 0;
  background: var(--bg);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.diff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.diff-icon {
  margin-bottom: 16px;
}

.diff-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.diff-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── STATS ───────────────────────────────────── */
.stats-section {
  padding: 60px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 48px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 180px;
  margin: 0 auto;
  line-height: 1.5;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
  flex-shrink: 0;
}

.stats-source {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 24px;
  letter-spacing: 0.02em;
}

/* ─── VISION ───────────────────────────────────── */
.vision-section {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.vision-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.vision-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.vision-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.vision-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.vision-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── FOOTER ───────────────────────────────────── */
.site-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  max-width: 340px;
  line-height: 1.5;
}

/* ─── RESPONSIVE ───────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
  }

  .flow-diagram {
    flex-direction: column;
    gap: 0;
    padding: 24px 16px;
  }

  .flow-step {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .flow-step:last-child { border-bottom: none; }

  .flow-arrow { display: none; }

  .beat-grid { grid-template-columns: 1fr; }

  .diff-grid { grid-template-columns: 1fr 1fr; }

  .stats-grid { flex-direction: column; gap: 32px; }
  .stat-divider { width: 80px; height: 1px; }
}

@media (max-width: 600px) {
  .hero { padding: 60px 24px 48px; }
  .diff-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { text-align: center; max-width: none; }

  .stats-grid {
    gap: 24px;
  }

  .stat-item {
    padding: 0 24px;
  }
}