:root {
  --bg: #F5F7F6;
  --surface: #FFFFFF;
  --dark: #1A1F2E;
  --text: #2D3142;
  --muted: #6B7280;
  --accent: #00E5A0;
  --amber: #F59E0B;
  --border: #E5E7EB;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(245, 247, 246, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--dark);
}

.logo-mark {
  font-size: 1.5rem;
  color: var(--accent);
}

.logo-text {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
}

.header-nav {
  display: flex;
  align-items: center;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

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

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

/* Hero */
.hero {
  padding: 8rem 2rem 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 480px;
}

/* Agent Grid Visual */
.hero-visual {
  background: var(--dark);
  border-radius: 16px;
  padding: 2rem;
  color: white;
}

.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.agent-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agent-icon {
  font-size: 1.5rem;
  color: var(--muted);
}

.agent-active .agent-icon { color: var(--accent); }

.agent-info {
  display: flex;
  flex-direction: column;
}

.agent-name {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
}

.agent-status {
  font-size: 0.7rem;
  opacity: 0.5;
}

.agent-earning {
  margin-left: auto;
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.agent-queued .agent-earning { color: var(--muted); }

.swarm-total {
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.2);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.total-value {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

/* Sections */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--dark);
  margin-bottom: 2rem;
}

/* How It Works */
.how-it-works {
  padding: 6rem 2rem;
  background: var(--surface);
}

.steps {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  flex: 1;
  background: var(--bg);
  border-radius: 16px;
  padding: 2rem;
}

.step-number {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

.step-connector {
  font-size: 1.5rem;
  color: var(--border);
  flex-shrink: 0;
}

/* Why Now */
.why-now {
  padding: 6rem 2rem;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-body {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.why-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem 2rem;
}

.stat-value {
  display: block;
  font-family: 'Space Grotesk', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Agents */
.agents {
  padding: 6rem 2rem;
  background: var(--dark);
}

.agents .section-tag { color: var(--accent); }
.agents .section-headline { color: white; }

.agents-body {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  line-height: 1.7;
}

.agents-visual {
  margin-top: 3rem;
}

.scale-diagram {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.scale-level {
  display: grid;
  grid-template-columns: 100px 1fr 120px;
  align-items: center;
  gap: 1.5rem;
}

.scale-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}

.scale-bar {
  height: 12px;
  background: var(--accent);
  width: var(--fill);
  border-radius: 6px;
  opacity: 0.8;
}

.scale-output {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
}

/* Vision */
.vision {
  padding: 8rem 2rem;
  background: linear-gradient(135deg, #0D3B3E 0%, var(--dark) 100%);
}

.vision-statement {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: white;
  text-align: center;
  line-height: 1.4;
}

/* Footer */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding: 7rem 1.5rem 3rem;
    min-height: auto;
  }

  .steps {
    flex-direction: column;
  }

  .step-connector {
    transform: rotate(90deg);
  }

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

  .scale-level {
    grid-template-columns: 80px 1fr 100px;
  }

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

  .agent-grid {
    grid-template-columns: 1fr;
  }

  .swarm-total {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .section-inner {
    padding: 0 1.5rem;
  }

  .how-it-works, .why-now, .agents, .vision {
    padding: 4rem 0;
  }
}