:root {
  --bg: #0c0c0e;
  --surface: #131316;
  --surface-2: #1c1c21;
  --border: #2a2a32;
  --text: #e8e8ed;
  --text-muted: #7a7a8a;
  --accent: #f5a623;
  --accent-dim: rgba(245, 166, 35, 0.12);
  --orch-color: #f5a623;
  --ag-color: #6ea8fe;
  --ok-color: #3fb950;
  --error-color: #f85149;
  --conn-color: rgba(245, 166, 35, 0.3);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.nav-tag {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Section label */
.section-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Hero */
.hero {
  padding: 160px 40px 100px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 56px;
  font-weight: 400;
}

/* Orchestration diagram */
.orchestration-diagram {
  margin-bottom: 52px;
}
.orch-svg {
  width: 100%;
  max-width: 540px;
  height: auto;
}
.conn {
  stroke: var(--conn-color);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  animation: dash 2s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -14; }
}
.node {
  fill: var(--surface);
  stroke: var(--orch-color);
  stroke-width: 1.5;
}
.node.orch { stroke: var(--orch-color); }
.node.ag { stroke: var(--ag-color); }
.node.out { stroke: var(--ok-color); }
.node-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  fill: var(--text);
  text-anchor: middle;
  dominant-baseline: middle;
}
.node-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  fill: var(--text-muted);
  text-anchor: middle;
  dominant-baseline: middle;
}
.ag-label { fill: var(--ag-color); }
.orch-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Problem */
.problem {
  background: var(--surface);
  padding: 100px 40px;
}
.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.problem-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.problem-text {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}
.problem-text + .problem-text { margin-top: 16px; }
.problem-code {
  margin-top: 40px;
}
.code-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.code-label-gap { margin-top: 20px; }
.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  overflow-x: auto;
  white-space: pre;
}
.comment { color: #555; }
.error { color: var(--error-color); }
.ok { color: var(--ok-color); }

/* Architecture */
.arch {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.arch-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
  line-height: 1.15;
}
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.arch-card {
  background: var(--surface);
  padding: 40px 36px;
}
.arch-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.arch-card-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}
.arch-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.arch-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.arch-specs li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.arch-specs li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
}

/* Features */
.features {
  background: var(--surface);
  padding: 100px 40px;
}
.features-title {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
  max-width: 600px;
  line-height: 1.2;
}
.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feat {}
.feat-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feat-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feat-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Outcomes */
.outcomes {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.outcomes-title {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
  max-width: 520px;
}
.outcomes-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.outcome {
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  align-items: stretch;
}
.outcome-before, .outcome-after {
  padding: 32px 36px;
}
.outcome-before { border-right: 1px solid var(--border); }
.outcome-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
  background: var(--surface-2);
  font-family: 'JetBrains Mono', monospace;
}
.outcome-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.outcome-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Closing */
.closing {
  background: var(--surface);
  padding: 120px 40px;
}
.closing-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.closing-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  line-height: 1.1;
}
.closing-body {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}
.closing-body + .closing-body { margin-top: 16px; }
.closing-vision {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text);
  max-width: 640px;
  line-height: 1.6;
  margin-top: 40px;
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.footer-tag, .footer-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 130px 24px 80px; }
  .problem-inner { grid-template-columns: 1fr; gap: 40px; }
  .arch-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .outcome { grid-template-columns: 1fr; }
  .outcome-before { border-right: none; border-bottom: 1px solid var(--border); }
  .outcome-arrow { display: none; }
  .hero-stats { gap: 32px; }
  .nav-inner { padding: 16px 24px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
}