/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

:root {
  --bg: #07070d;
  --bg-2: #0d0d1a;
  --bg-card: #10101f;
  --cyan: #00e5c4;
  --cyan-dim: rgba(0, 229, 196, 0.12);
  --cyan-glow: rgba(0, 229, 196, 0.25);
  --violet: #a855f7;
  --violet-dim: rgba(168, 85, 247, 0.12);
  --text: #e2e2f0;
  --text-dim: #7878a0;
  --border: rgba(255,255,255,0.07);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

a { color: inherit; text-decoration: none; }

/* =====================
   TYPOGRAPHY UTILITIES
   ===================== */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

/* =====================
   HEADER
   ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  background: rgba(7,7,13,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: var(--text);
}
.header-nav {
  display: flex;
  gap: 2.5rem;
}
.header-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--text); }

/* =====================
   HERO
   ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 50%, rgba(168,85,247,0.06) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 0% 50%, rgba(0,229,196,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.hero-content { position: relative; z-index: 1; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,229,196,0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  margin-bottom: 2.5rem;
}
.hero-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero-headline {
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 2rem;
}
.hero-headline br { display: block; }
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 3rem;
}
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.metric-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.metric-div {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* HERO VISUAL — Network Diagram */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.network-viz {
  position: relative;
  width: 400px;
  height: 400px;
}
.node-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.line {
  stroke: rgba(0,229,196,0.15);
  stroke-width: 1;
}
.node {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
  transition: all 0.3s;
}
.node:hover {
  color: var(--cyan);
  border-color: rgba(0,229,196,0.3);
  box-shadow: 0 0 20px var(--cyan-dim);
}
.node-center {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--cyan);
  background: var(--cyan-dim);
  border-color: rgba(0,229,196,0.3);
  font-size: 0.75rem;
  padding: 0.6rem 1.2rem;
  box-shadow: 0 0 30px var(--cyan-glow);
}
.node-1 { top: 60px; left: calc(50% - 36px); }
.node-2 { top: 100px; right: 20px; }
.node-3 { bottom: 100px; left: 20px; }
.node-4 { bottom: 60px; left: calc(50% - 40px); }
.node-5 { bottom: 100px; right: 20px; }
.node-6 { top: 100px; left: 20px; }

/* Orbit rings */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,229,196,0.06);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: spin-slow 20s linear infinite;
}
.ring-1 { width: 280px; height: 280px; animation-duration: 25s; }
.ring-2 { width: 360px; height: 360px; animation-duration: 35s; animation-direction: reverse; }
.ring-3 { width: 430px; height: 430px; animation-duration: 50s; }
@keyframes spin-slow {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to { transform: translate(-50%,-50%) rotate(360deg); }
}

/* =====================
   MANIFESTO
   ===================== */
.manifesto {
  padding: 7rem 3rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.manifesto-inner { max-width: 1200px; margin: 0 auto; }
.manifesto-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 3rem;
}
.manifesto-statement {
  margin-bottom: 5rem;
  max-width: 900px;
}
.manifesto-statement p {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--text);
}
.manifesto-statement p + p {
  margin-top: 1.5rem;
  color: var(--text-dim);
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
}
.manifesto-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.manifesto-col h3 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.manifesto-col p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.75;
}

/* =====================
   THE LOOP
   ===================== */
.loop-section {
  padding: 7rem 3rem;
  background: var(--bg);
}
.loop-inner { max-width: 1200px; margin: 0 auto; }
.loop-header { text-align: center; margin-bottom: 5rem; }
.loop-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.loop-desc {
  font-size: 1rem;
  color: var(--text-dim);
}
.loop-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: start;
}
.stage {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  position: relative;
}
.stage-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin: 0.75rem 0 0.5rem;
}
.stage h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.stage p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.stage-connector {
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.connector-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), rgba(0,229,196,0.2), var(--border));
}

/* =====================
   ARCHITECTURE
   ===================== */
.architecture {
  padding: 7rem 3rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.arch-inner { max-width: 1200px; margin: 0 auto; }
.arch-header { text-align: center; margin-bottom: 4rem; }
.arch-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.arch-desc { font-size: 1rem; color: var(--text-dim); }
.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
  transition: all 0.25s;
}
.agent-card:hover {
  border-color: rgba(0,229,196,0.2);
  box-shadow: 0 4px 24px rgba(0,229,196,0.06);
}
.agent-card.agent-ceo {
  border-color: rgba(0,229,196,0.25);
  background: rgba(0,229,196,0.04);
}
.agent-card.agent-ceo:hover {
  box-shadow: 0 4px 30px rgba(0,229,196,0.12);
}
.agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.agent-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.agent-card p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* =====================
   CLOSING
   ===================== */
.closing {
  padding: 8rem 3rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(168,85,247,0.05) 0%, transparent 70%);
}
.closing-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.closing-content { max-width: 720px; margin: 0 auto; text-align: center; }
.closing-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 2rem;
}
.closing-headline {
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
.closing-body {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 3rem;
}
.closing-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin: 0 auto 2rem;
}
.closing-end {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  padding: 3rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  gap: 3rem;
}
.footer-logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.3em;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.footer-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}
.footer-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 4rem; }
  .hero-visual { display: none; }
  .hero-headline { font-size: 3rem; }
  .site-header { padding: 1rem 1.5rem; }
  .header-nav { gap: 1.5rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .manifesto, .loop-section, .architecture, .closing { padding: 5rem 1.5rem; }
  .manifesto-body { grid-template-columns: 1fr; gap: 2rem; }
  .loop-stages { grid-template-columns: 1fr; gap: 1rem; }
  .stage-connector { display: none; }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}
@media (max-width: 480px) {
  .agent-grid { grid-template-columns: 1fr; }
  .hero-metrics { gap: 1.5rem; }
  .metric-val { font-size: 1.4rem; }
}