@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #08090d;
  --bg-secondary: #0e1017;
  --bg-card: #12141c;
  --bg-glow: #161824;
  --fg-primary: #e8eaf0;
  --fg-secondary: #8b90a5;
  --fg-muted: #5a5f78;
  --accent: #00e5a0;
  --accent-dim: #00c48a;
  --accent-glow: rgba(0, 229, 160, 0.15);
  --accent-secondary: #7b61ff;
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(0, 229, 160, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAV ---- */
.nav {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
}
.nav-logo span {
  color: var(--accent);
}
.nav-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* ---- HERO ---- */
.hero {
  padding: 120px 0 100px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(0,229,160,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ---- GRID SECTION ---- */
.grid-section {
  padding: 80px 0;
}
.grid-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.agent-card {
  background: var(--bg-card);
  padding: 36px 32px;
  position: relative;
  transition: background 0.3s;
}
.agent-card:hover {
  background: var(--bg-glow);
}
.agent-card:first-child {
  border-radius: var(--radius) 0 0 0;
}
.agent-card:nth-child(3) {
  border-radius: 0 var(--radius) 0 0;
}
.agent-card:nth-child(4) {
  border-radius: 0 0 0 var(--radius);
}
.agent-card:last-child {
  border-radius: 0 0 var(--radius) 0;
}
.agent-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 20px;
}
.agent-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.agent-card p {
  font-size: 0.85rem;
  color: var(--fg-secondary);
  line-height: 1.6;
}

/* ---- HOW IT WORKS ---- */
.how-section {
  padding: 80px 0;
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.how-left h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.how-left h2 em {
  font-style: normal;
  color: var(--accent-secondary);
}
.how-left p {
  color: var(--fg-secondary);
  font-size: 1rem;
  line-height: 1.7;
}
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: none; }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-glow);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-accent);
}
.step h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.step p {
  font-size: 0.85rem;
  color: var(--fg-secondary);
  line-height: 1.6;
}

/* ---- STATS ---- */
.stats-section {
  padding: 60px 0;
}
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.stat {
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-val {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* ---- CLOSING ---- */
.closing {
  padding: 100px 0 80px;
  text-align: center;
}
.closing h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 700px;
  margin: 0 auto 20px;
}
.closing h2 em {
  font-style: normal;
  color: var(--accent);
}
.closing p {
  color: var(--fg-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- FOOTER ---- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
}
.footer-brand span { color: var(--accent); }
.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .agents-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }
  .agent-card { border-radius: 0 !important; }
  .agent-card:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
  .agent-card:last-child { border-radius: 0 0 var(--radius) var(--radius) !important; }
  .how-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .hero { padding: 80px 0 60px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}