:root {
  --bg: #0c0c0e;
  --surface: #141417;
  --surface2: #1c1c21;
  --border: #2a2a32;
  --fg: #e8e8ec;
  --fg-muted: #7a7a8a;
  --accent: #39d353;
  --accent-dim: rgba(57, 211, 83, 0.12);
  --cyan: #2dd4bf;
  --tag-build: #f59e0b;
  --tag-build-bg: rgba(245, 158, 11, 0.12);
  --tag-adopt: #22c55e;
  --tag-adopt-bg: rgba(34, 197, 94, 0.12);
  --tag-ignore: #6b7280;
  --tag-ignore-bg: rgba(107, 114, 128, 0.12);
  --tag-rewrite: #a78bfa;
  --tag-rewrite-bg: rgba(167, 139, 250, 0.12);
  --font-display: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

/* NAV */
.nav {
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  background: var(--surface2);
  padding: 3px 10px;
  border-radius: 4px;
}

/* HERO */
.hero {
  padding: 96px 48px 80px;
  max-width: 900px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-lede {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 32px;
}
.stat:first-child { padding-left: 0; }
.stat-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* PROBLEM */
.problem {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 48px;
}
.problem-inner { max-width: 900px; }
.problem-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.problem-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 48px;
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
}
.problem-col { padding: 0 32px; }
.problem-col:first-child { padding-left: 0; }
.problem-col:last-child { padding-right: 0; }
.problem-col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.problem-list, .problem-list-missing {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.problem-list li, .problem-list-missing li {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.problem-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.problem-list-missing li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--fg-muted);
}
.problem-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* ARCHITECTURE */
.architecture { padding: 80px 48px; }
.arch-inner { max-width: 900px; }
.arch-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.arch-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 40px;
}
.arch-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 24px;
}
.arch-node {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
}
.arch-node-polsia { border-color: rgba(57, 211, 83, 0.3); background: rgba(57, 211, 83, 0.05); }
.arch-node-hermes { border-color: rgba(45, 212, 191, 0.3); background: rgba(45, 212, 191, 0.05); }
.arch-node-missing { border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.05); }
.arch-node-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.arch-node-items { color: var(--fg); }
.arch-arrow {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 20px;
  color: var(--fg-muted);
}
.arch-callout {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
}
.arch-callout-mono {
  color: var(--accent);
  font-weight: 500;
}

/* COMPONENTS TABLE */
.components { background: var(--surface); border-top: 1px solid var(--border); padding: 80px 48px; }
.comp-inner { max-width: 900px; }
.comp-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.comp-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}
.comp-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.comp-row {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
}
.comp-row:last-child { border-bottom: none; }
.comp-row-head {
  background: var(--surface2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}
.comp-row span {
  padding: 14px 16px;
}
.comp-row-head span { padding: 12px 16px; }
.comp-row > span:nth-child(2) { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag-build { background: var(--tag-build-bg); color: var(--tag-build); }
.tag-adopt { background: var(--tag-adopt-bg); color: var(--tag-adopt); }
.tag-ignore { background: var(--tag-ignore-bg); color: var(--tag-ignore); }
.tag-rewrite { background: var(--tag-rewrite-bg); color: var(--tag-rewrite); }

/* MVP */
.mvp { padding: 80px 48px; }
.mvp-inner { max-width: 900px; }
.mvp-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.mvp-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  line-height: 1.1;
}
.mvp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.mvp-card {
  background: var(--surface);
  padding: 28px;
}
.mvp-card-total {
  background: var(--surface2);
}
.mvp-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
}
.mvp-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.mvp-card-body {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.mvp-hours {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* CTA */
.cta { padding: 96px 48px; border-top: 1px solid var(--border); }
.cta-inner { max-width: 700px; }
.cta-pre {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.cta-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.cta-body {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-muted);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px;
}
.footer-inner { max-width: 900px; }
.footer-brand {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.footer-stack {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--border);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav, .hero, .problem, .architecture, .components, .mvp, .cta, .footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .problem-divider { display: none; }
  .arch-flow {
    flex-direction: column;
    gap: 12px;
  }
  .arch-arrow {
    transform: rotate(90deg);
    padding: 0;
    justify-content: center;
  }
  .comp-row {
    grid-template-columns: 1fr;
  }
  .comp-row > span:nth-child(2) { border: none; }
  .comp-row-head { display: none; }
  .mvp-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-direction: column;
    align-items: start;
    gap: 16px;
  }
  .stat-sep { display: none; }
  .stat { padding: 0; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .problem-title, .arch-title, .comp-title, .mvp-title, .cta-title { font-size: 28px; }
}