/* ── Tokens ── */
:root {
  --bg:        #F5F0E8;
  --surface:   #FDFAF4;
  --fg:        #1B1B1B;
  --fg-muted:  #6B6B6B;
  --accent:    #F59E0B;
  --green:     #1B3D2F;
  --green-mid: #2D5A45;
  --border:    #DDD5C8;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  font-weight: 700;
}

/* ── Nav ── */
.topnav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}
.wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -0.5px;
}
.tagline {
  font-size: 14px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* ── Hero ── */
.hero {
  padding: 96px 48px 80px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1100px;
}
.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-text h1 {
  font-size: clamp(42px, 5vw, 62px);
  color: var(--green);
  margin-bottom: 24px;
}
.lede {
  font-size: 19px;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.6;
}

/* Agent card stack */
.agent-card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.agent-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  position: relative;
  transition: transform 0.2s;
}
.agent-card:hover { transform: translateX(-4px); }
.agent-card::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22C55E;
  position: absolute;
  top: 20px; right: 20px;
}
.card-research .agent-status::before { background: #F59E0B; }
.card-ops .agent-status::before { background: #60A5FA; }
.agent-role {
  font-weight: 600;
  font-size: 15px;
  color: var(--green);
  margin-bottom: 4px;
}
.agent-status {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.agent-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.agent-stats span {
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  color: var(--fg-muted);
}

/* ── Section label ── */
.section-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

/* ── Problem ── */
.problem {
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
}
.problem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: 1100px;
}
.problem-anchor h2 {
  font-size: 34px;
  color: var(--green);
  position: sticky;
  top: 32px;
}
.problem-body p {
  color: var(--fg-muted);
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ── Agents ── */
.agents {
  padding: 80px 48px;
  background: var(--green);
  border-bottom: 1px solid var(--green-mid);
}
.agents-inner { max-width: 1100px; }
.agents .section-label { color: rgba(255,255,255,0.5); }
.agents h2 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 56px;
}
.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.agent-item {}
.agent-icon { margin-bottom: 20px; }
.agent-item h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}
.agent-item p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

/* ── Difference ── */
.difference { padding: 80px 48px; }
.diff-inner { max-width: 1100px; display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.diff-left h2 { font-size: 34px; color: var(--green); margin-bottom: 16px; }
.diff-sub { color: var(--fg-muted); font-size: 16px; line-height: 1.65; }
.diff-table { border-collapse: collapse; width: 100%; }
.diff-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.diff-row > * { padding: 14px 16px; }
.diff-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}
.diff-row span:first-child { font-weight: 500; color: var(--fg); }
.diff-row span:nth-child(2) { color: var(--fg-muted); }
.diff-row span:last-child { color: var(--green); font-weight: 500; }

/* ── Closing ── */
.closing {
  padding: 80px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.closing-inner { max-width: 800px; margin: 0 auto; text-align: center; }
blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--green);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 16px;
}
.closing-context { font-size: 14px; color: var(--fg-muted); margin-bottom: 64px; }
.closing-vision h2 {
  font-size: 36px;
  color: var(--fg);
  margin-bottom: 20px;
}
.closing-vision p {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Footer ── */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; }
.footer-brand .wordmark { font-size: 18px; }
.footer-brand p { font-size: 14px; color: var(--fg-muted); margin-top: 4px; }
.footer-links { font-size: 13px; color: var(--fg-muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .topnav { padding: 16px 24px; }
  .hero { padding: 56px 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .problem-inner { grid-template-columns: 1fr; gap: 32px; }
  .problem-anchor h2 { position: static; }
  .agent-grid { grid-template-columns: 1fr; }
  .diff-inner { grid-template-columns: 1fr; }
  .diff-row { grid-template-columns: 1fr 1fr; }
  .diff-row span:first-child { grid-column: 1 / -1; font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
  .agents, .problem, .difference, .closing, footer { padding: 56px 24px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}