:root {
  --bg: #0a0e17;
  --bg-surface: #111827;
  --bg-card: #161e2e;
  --fg: #e2e8f0;
  --fg-muted: #94a3b8;
  --fg-dim: #64748b;
  --accent: #22c55e;
  --accent-glow: rgba(34, 197, 94, 0.15);
  --accent-dim: #16a34a;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1140px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

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

/* ==================== HERO ==================== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  position: relative;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 40%, var(--accent-glow), transparent),
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(34, 197, 94, 0.05), transparent),
    var(--bg);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: var(--space-md);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--space-md);
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
}

.hero-metric {
  max-width: var(--max-w);
  margin: var(--space-lg) auto 0;
  width: 100%;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--space-md);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ==================== PROBLEM ==================== */
.problem {
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-surface);
}

.problem-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.problem h2, .stack h2, .closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: var(--space-lg);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: border-color 0.2s;
}

.problem-card:hover {
  border-color: rgba(255,255,255,0.1);
}

.problem-icon {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.problem-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==================== STACK ==================== */
.stack {
  padding: var(--space-xl) var(--space-md);
  background: var(--bg);
}

.stack-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.agent-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.agent-card:hover {
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-2px);
}

.agent-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-dim);
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
}

.agent-indicator.active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.agent-header {
  margin-bottom: var(--space-sm);
}

.agent-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.agent-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.25rem;
}

.agent-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==================== CLOSING ==================== */
.closing {
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-surface);
  text-align: center;
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
}

.closing h2 {
  margin-bottom: var(--space-md);
}

.closing-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}

.closing-line {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto var(--space-md);
  border-radius: 2px;
}

.closing-vision {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

/* ==================== FOOTER ==================== */
.site-footer {
  padding: var(--space-md);
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

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

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .problem-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }
  
  .metric-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .hero {
    min-height: auto;
    padding: var(--space-lg) var(--space-sm);
  }
  
  .problem,
  .stack,
  .closing {
    padding: var(--space-lg) var(--space-sm);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
}