:root {
  --bg: #0c0c14;
  --surface: #12121e;
  --surface2: #1a1a2e;
  --accent: #ff8c00;
  --accent-dim: #ff8c0033;
  --text: #f0ece4;
  --text-muted: #8a8799;
  --border: #252535;
}

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

html { scroll-behavior: smooth; }

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

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-status {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--accent-dim);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
}

/* HERO */
.hero {
  padding: 6rem 3rem 5rem;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 48ch;
}

/* AGENT GRID */
.hero-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.grid-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.agent-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}
.agent-node {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s ease;
}
.agent-node.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
}
.node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}
.agent-node.active .node-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.orchestrator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.orch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

/* SYSTEM */
.system {
  padding: 6rem 3rem;
  border-bottom: 1px solid var(--border);
}
.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 60ch;
  margin-bottom: 4rem;
}
.loop-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}
.loop-step {
  padding: 2rem 1.5rem;
  border-left: 1px solid var(--border);
  position: relative;
}
.loop-step:first-child { border-left: none; }
.step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: 1rem;
}
.loop-step h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.loop-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* PIPELINE */
.pipeline {
  padding: 6rem 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.pipeline-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.pipeline-text h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.pipeline-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.pipeline-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.stack-layer {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}
.layer-head {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.layer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pill {
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3rem;
  color: var(--text-muted);
}

/* OUTCOMES */
.outcomes {
  padding: 6rem 3rem;
  border-bottom: 1px solid var(--border);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  max-width: 1200px;
  margin: 3rem auto 0;
  border: 1px solid var(--border);
}
.kpi-card {
  background: var(--bg);
  padding: 2rem 1.5rem;
}
.kpi-val {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.kpi-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.kpi-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* MANIFESTO */
.manifesto {
  padding: 5rem 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.manifesto-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.manifesto-rule {
  width: 60px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}
.manifesto-quote {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* CLOSING */
.closing {
  padding: 7rem 3rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.closing-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--accent) 0%, transparent 70%);
  box-shadow: 0 0 80px var(--accent-dim);
  animation: glow 4s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 60px var(--accent-dim); }
  50% { box-shadow: 0 0 100px var(--accent); }
}
.closing-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.closing-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 55ch;
}

/* FOOTER */
.footer {
  padding: 2rem 3rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}
.footer-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner, .pipeline-inner {
    grid-template-columns: 1fr;
  }
  .hero-grid-wrap {
    margin-top: 2rem;
  }
  .loop-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .loop-step {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
  }
  .loop-step:first-child { border-top: none; }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .agent-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .nav, .hero, .system, .pipeline, .outcomes, .manifesto, .closing, .footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-tagline { border-left: none; padding-left: 0; }
}
@media (max-width: 480px) {
  .agent-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}