:root {
  --bg: #0d1117;
  --bg-surface: #161b22;
  --bg-surface-2: #1c2128;
  --fg: #e8e6e0;
  --fg-muted: #8b949e;
  --accent: #e8a220;
  --accent-dim: rgba(232, 162, 32, 0.12);
  --border: rgba(255,255,255,0.08);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --radius: 4px;
}

*, *::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(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
}
.nav-inner { display: flex; align-items: center; gap: 16px; }
.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.nav-tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 80px 80px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: 20%;
  right: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,162,32,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 36px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  max-width: 420px;
}
.hero-sub p {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

/* Agent window */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}
.agent-window {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(232,162,32,0.08);
}
.agent-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface-2);
}
.agent-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg-muted);
}
.agent-dot.active { background: #3fb950; box-shadow: 0 0 6px rgba(63,185,80,0.6); }
.agent-title {
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin-left: 6px;
  letter-spacing: 0.04em;
}
.agent-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.agent-line {
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--fg-muted);
}
.agent-line--system { color: var(--fg-muted); font-style: italic; }
.agent-line--finding { background: var(--accent-dim); color: var(--fg); border-left: 2px solid var(--accent); }
.agent-line--working { background: rgba(88,166,255,0.06); color: #79c0ff; border-left: 2px solid #388bfd; }
.agent-line--done { background: rgba(63,185,80,0.06); color: #7ee787; border-left: 2px solid #3fb950; }
.badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge--amber { background: var(--accent); color: #0d1117; }
.badge--green { background: #238636; color: #fff; }

/* ── Manifesto ── */
.manifesto {
  padding: 100px 80px;
  border-top: 1px solid var(--border);
}
.manifesto-inner { max-width: 1100px; }
.manifesto-label, .process-label, .outcomes-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 24px;
}
.manifesto-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 48px;
}
.manifesto-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.manifesto-col p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.manifesto-col strong { color: var(--fg); }
.pullquote {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--fg);
  line-height: 1.4;
  border-left: 2px solid var(--accent);
  padding-left: 28px;
  margin-bottom: 12px;
}
.pullquote-attr { font-size: 0.8rem; color: var(--fg-muted); padding-left: 30px; }

/* ── Process ── */
.process { padding: 100px 80px; background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process-headline {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 64px;
}
.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.step { padding: 0 24px 0 0; }
.step-number {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.step-icon { color: var(--fg-muted); margin-bottom: 20px; }
.step-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 10px;
}
.step-desc { font-size: 0.82rem; color: var(--fg-muted); line-height: 1.65; }
.step-connector {
  width: 48px;
  display: flex;
  align-items: start;
  padding-top: 28px;
  justify-content: center;
}
.step-connector::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  margin-top: 16px;
  opacity: 0.4;
}

/* ── Outcomes ── */
.outcomes { padding: 100px 80px; }
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0;
}
.outcome {
  background: var(--bg-surface);
  padding: 40px 32px;
}
.outcome-stat {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1;
}
.outcome-desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── Closing ── */
.closing {
  padding: 120px 80px;
  text-align: center;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.closing-statement {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.closing-sub {
  font-size: 0.95rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  padding: 40px 80px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}
.footer-desc { font-size: 0.8rem; color: var(--fg-muted); }
.footer-note { font-size: 0.75rem; color: var(--fg-muted); text-align: right; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 100px 40px 80px; text-align: left; }
  .hero-visual { display: none; }
  .manifesto-body { grid-template-columns: 1fr; gap: 40px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .step-connector { display: none; }
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero, .manifesto, .process, .outcomes, .closing, .footer { padding-left: 24px; padding-right: 24px; }
  .nav { padding: 0 24px; }
  .process-steps { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-note { text-align: center; }
}