:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.12);
  --accent-glow: rgba(0, 229, 160, 0.25);
  --border: #1e1e2a;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

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

/* ========== HERO ========== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 6vw 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid { position: relative; z-index: 1; max-width: 800px; }

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 32px;
}

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

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

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

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.stat { display: flex; flex-direction: column; }

.stat-value {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 8px;
  letter-spacing: 0.03em;
}

/* ========== SECTIONS COMMON ========== */
.section-header {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ========== HOW / THE LOOP ========== */
.how {
  padding: 100px 6vw;
  background: var(--bg-elevated);
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.step {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.step:hover { border-color: var(--accent); }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ========== AGENTS ========== */
.agents {
  padding: 100px 6vw;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.agent-card {
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, transform 0.2s;
}

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

.agent-card.highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--bg-elevated) 60%);
}

.agent-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.agent-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ========== CLOSING ========== */
.closing {
  padding: 120px 6vw;
  background: var(--bg-elevated);
  text-align: center;
}

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

.closing h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
}

.closing-text {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.75;
}

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

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

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--fg);
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 60px 5vw 40px; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .how, .agents, .closing { padding: 60px 5vw; }
  .loop-steps { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}