/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #090e12;
  --bg-alt: #0d1419;
  --surface: #111920;
  --surface2: #161f28;
  --border: #1a2632;
  --accent: #10b981;
  --accent-dim: rgba(16, 185, 129, 0.12);
  --accent2: #06b6d4;
  --gold: #f59e0b;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(9, 14, 18, 0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-dim);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

/* === HERO === */
.hero {
  padding: 80px 48px 100px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 480px;
}

/* Agent Grid Hero */
.agent-grid-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s;
}

.agent-card.active {
  border-color: rgba(16, 185, 129, 0.3);
}

.agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
}

.agent-avatar.atlas { background: rgba(6, 182, 212, 0.15); color: var(--accent2); }
.agent-avatar.catty { background: rgba(245, 158, 11, 0.15); color: var(--gold); }
.agent-avatar.fiona { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.agent-avatar.lenny { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.agent-avatar.alex { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.agent-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.agent-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.agent-role {
  font-size: 11px;
  color: var(--text-muted);
}

.agent-status {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.agent-status.working {
  background: var(--accent-dim);
  color: var(--accent);
}

.agent-status.idle {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
}

.live-stats {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.stat-label { color: var(--text-muted); }

.stat-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.stat-delta.green { color: var(--accent); font-size: 11px; font-weight: 500; }

/* === SECTIONS COMMON === */
section { padding: 80px 48px; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 600px;
}

.section-body {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}

/* === AGENTS === */
.agents {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.agent-table {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agent-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.agent-row:hover { border-color: rgba(16, 185, 129, 0.3); }

.row-avatar {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.row-avatar.oprah { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.row-avatar.adam { background: rgba(16, 185, 129, 0.15); color: var(--accent); }
.row-avatar.atlas { background: rgba(6, 182, 212, 0.15); color: var(--accent2); }
.row-avatar.catty { background: rgba(245, 158, 11, 0.15); color: var(--gold); }
.row-avatar.fiona { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.row-avatar.lenny { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.row-avatar.alex { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.row-avatar.cirus { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

.row-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row-body strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.row-body span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === OPTIMIZATION === */
.optimization { background: var(--bg); }

.opt-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.opt-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.opt-text > p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.opt-pillars {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pillar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.pillar span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.opt-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.metric-card.big {
  grid-column: 1 / -1;
  background: var(--accent-dim);
  border-color: rgba(16, 185, 129, 0.2);
}

.metric-val {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.metric-card.big .metric-val { font-size: 36px; color: var(--accent); }

.metric-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* === PROOF === */
.proof {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.testimonial p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

.t-author strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.t-author span {
  font-size: 12px;
  color: var(--text-muted);
}

.proof-logos {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.logo-chip {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
}

/* === MANIFESTO === */
.manifesto {
  background: var(--bg);
  padding: 80px 48px;
}

.manifesto-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 36px;
  max-width: 800px;
}

.manifesto-stat {
  flex: 1;
}

.m-val {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.m-val.m-green { color: var(--accent); }

.m-label {
  font-size: 13px;
  color: var(--text-muted);
}

.manifesto-vs {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.manifesto-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 700px;
}

/* === CLOSING === */
.closing {
  background: linear-gradient(135deg, #0d1419 0%, #0a1017 100%);
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.closing p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* === FOOTER === */
.footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 60px 24px 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { order: -1; }
  section { padding: 60px 24px; }
  .testimonials { grid-template-columns: 1fr; }
  .opt-grid { grid-template-columns: 1fr; gap: 48px; }
  .manifesto-inner { flex-direction: column; gap: 24px; }
  .footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 32px; }
  .agent-grid-hero { grid-template-columns: 1fr; }
  .opt-metrics { grid-template-columns: 1fr; }
  .metric-card.big { grid-column: auto; }
}