:root {
  --bg: #0a0a0b;
  --bg-elevated: #111113;
  --bg-card: #161618;
  --fg: #e8e8ec;
  --fg-muted: #8b8b97;
  --fg-dim: #5a5a66;
  --accent: #00ff88;
  --accent-dim: rgba(0, 255, 136, 0.12);
  --red: #ff4444;
  --red-dim: rgba(255, 68, 68, 0.12);
  --border: #222228;
  --radius: 8px;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 500;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 5vw 4rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0,255,136,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-label {
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  font-family: var(--mono);
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-divider {
  width: 1px;
  height: 3rem;
  background: var(--border);
}

/* Agent visualization */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.3s ease;
}

.agent-card.active {
  border-color: rgba(0,255,136,0.25);
}

.agent-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.agent-card:nth-child(2) .agent-dot { animation-delay: 0.3s; }
.agent-card:nth-child(3) .agent-dot { animation-delay: 0.6s; }
.agent-card:nth-child(4) .agent-dot { animation-delay: 0.9s; }

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,255,136,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(0,255,136,0); }
}

.agent-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.agent-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
}

/* ===== CONTRAST ===== */
.contrast {
  padding: 8rem 5vw;
  border-top: 1px solid var(--border);
}

.contrast-header {
  margin-bottom: 4rem;
}

.contrast-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 1rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.compare-col h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.compare-col.old h3 { color: var(--fg-muted); }
.compare-col.new h3 { color: var(--accent); }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-block {
  background: var(--red-dim);
  border: 1px solid rgba(255,68,68,0.2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.timeline-arrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
  padding-left: 1rem;
}

.parallel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.parallel-block {
  background: var(--accent-dim);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--fg);
}

.compare-result {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--fg-dim);
}

.compare-result.highlight {
  color: var(--accent);
  font-weight: 500;
}

/* ===== ARCHITECTURE ===== */
.architecture {
  padding: 8rem 5vw;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.arch-header {
  margin-bottom: 4rem;
}

.arch-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 1rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.pillar {
  padding: 2rem 0;
  border-top: 2px solid var(--accent);
}

.pillar-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-dim);
  margin-bottom: 1rem;
}

.pillar h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.pillar p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ===== CLOSING ===== */
.closing {
  padding: 10rem 5vw;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(0,255,136,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.closing-content {
  max-width: 720px;
  text-align: center;
  position: relative;
}

.closing h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--fg-muted);
}

.closing-sub {
  margin-top: 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 3rem 5vw;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--fg-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4rem 1.5rem 3rem;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .agent-grid {
    max-width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .contrast {
    padding: 4rem 1.5rem;
  }

  .compare-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .architecture {
    padding: 4rem 1.5rem;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .closing {
    padding: 5rem 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}