:root {
  --bg: #0a0a0c;
  --surface: #111115;
  --surface-2: #18181d;
  --border: #222230;
  --fg: #f0f0f5;
  --fg-muted: #8a8a9a;
  --accent: #f5a623;
  --accent-dim: rgba(245, 166, 35, 0.12);
  --green: #3ecf8e;
  --cyan: #00d4ff;
  --red: #ff6b6b;
  --yellow: #ffd93d;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::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;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.nav-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 100px 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 85vh;
  align-items: center;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-desc {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
}

/* Terminal card */
.terminal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
  font-size: 12px;
  color: var(--fg-muted);
  margin-left: 8px;
  font-family: 'DM Mono', monospace;
}

.terminal-body {
  padding: 24px;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 13px;
  line-height: 2;
}

.line { color: var(--fg-muted); }
.prompt { color: var(--fg); }
.green { color: var(--green); }
.cyan { color: var(--cyan); }

/* Features */
.features {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}

.features-header {
  margin-bottom: 56px;
}

.features-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: var(--fg);
  max-width: 500px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 40px;
}

.feature-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* How section */
.how {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.how-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.how-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 48px;
  line-height: 1.2;
}

.steps { display: flex; flex-direction: column; gap: 32px; }

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}

.step-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  padding-top: 2px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Flow diagram */
.flow-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.node {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
}

.node-input { background: var(--surface); border: 1px solid var(--border); color: var(--fg-muted); }
.node-ai { background: var(--accent-dim); border: 1px solid rgba(245,166,35,0.3); color: var(--accent); }
.node-route { background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.25); color: var(--cyan); }
.node-done { background: rgba(62,207,142,0.1); border: 1px solid rgba(62,207,142,0.25); color: var(--green); }

.arrow {
  font-size: 20px;
  color: var(--border);
  font-weight: 300;
}

/* Closing */
.closing {
  padding: 120px 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #0d0d12 100%);
}

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.footer-meta {
  font-size: 12px;
  color: var(--fg-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    gap: 48px;
  }
  .how-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .nav { padding: 16px 24px; }
  .features { padding: 60px 24px; }
  .how { padding: 60px 24px; }
  .closing { padding: 80px 24px; }
  .footer { padding: 24px; }
  .hero-stats { gap: 24px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 20px; }
  .flow-diagram { flex-direction: column; align-items: flex-start; }
  .arrow { display: none; }
}