:root {
  --bg: #0d0d0f;
  --bg-2: #111114;
  --bg-card: #161619;
  --fg: #e8e8ed;
  --fg-2: #8888a0;
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.08);
  --accent-warn: #f59e0b;
  --accent-ok: #22c55e;
  --border: rgba(255,255,255,0.07);
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

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

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13,13,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.wordmark {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.nav-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--fg-2);
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,255,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
}
.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-text h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.lede {
  font-size: 1.05rem;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 44ch;
}

/* TERMINAL */
.terminal-window {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.terminal-bar {
  background: #1a1a1e;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca41; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-2);
  margin-left: 0.75rem;
}
.terminal-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.log-entry { font-family: var(--font-mono); font-size: 0.72rem; display: flex; gap: 0.6rem; align-items: baseline; color: var(--fg-2); }
.log-entry .ts { color: rgba(136,136,160,0.5); min-width: 2.5rem; }
.log-entry .ok { color: var(--accent-ok); font-weight: 500; min-width: 3rem; }
.log-entry .warn { color: var(--accent-warn); font-weight: 500; min-width: 3rem; }

/* SECTION SHARED */
section { padding: 6rem 2rem; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
section h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* AGENTS */
.agents { background: var(--bg); }
.agent-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}
.agent-icon { margin-bottom: 1.25rem; }
.agent-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.agent-card p { font-size: 0.9rem; color: var(--fg-2); line-height: 1.65; }

/* TERMINAL SECTION */
.terminal-section { background: var(--bg-2); }
.terminal-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.action-list { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 2rem; }
.action-item { display: flex; align-items: flex-start; gap: 0.85rem; font-size: 0.9rem; color: var(--fg-2); }
.action-icon { width: 20px; height: 20px; background: var(--accent-dim); border: 1px solid rgba(0,229,255,0.15); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.1rem; }

/* METRICS MOCK */
.mock-window { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mock-bar { background: #1a1a1e; padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-2); }
.mock-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.metric-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--fg-2); padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.metric-row:last-child { border-bottom: none; }
.metric-row .val { font-family: var(--font-mono); color: var(--accent); font-weight: 500; }
.metric-row .val.mono { color: var(--accent-ok); }

/* MANIFESTO */
.manifesto { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.manifesto-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.manifesto h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1.5rem; line-height: 1.25; }
.manifesto p { font-size: 0.95rem; color: var(--fg-2); line-height: 1.75; margin-bottom: 1.25rem; }
.manifesto p:last-child { margin-bottom: 0; }

/* HOW IT WORKS */
.howitworks { background: var(--bg-2); }
.steps-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}
.step-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); display: block; margin-bottom: 1rem; }
.step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.step p { font-size: 0.875rem; color: var(--fg-2); line-height: 1.65; }

/* CLOSING */
.closing { background: var(--bg); text-align: center; }
.closing h2 { max-width: 600px; margin: 0 auto 1.5rem; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.closing p { max-width: 560px; margin: 0 auto; font-size: 0.95rem; color: var(--fg-2); line-height: 1.75; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; }
.footer-brand { font-size: 1rem; font-weight: 700; letter-spacing: -0.03em; }
.footer-tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-2); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-text h1 { font-size: 2rem; }
  .hero { min-height: auto; padding: 6rem 1.5rem 3rem; }
  section { padding: 4rem 1.5rem; }
  .agent-grid { grid-template-columns: 1fr; }
  .terminal-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
  .lede { max-width: none; }
}