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

:root {
  --bg: #faf8f4;
  --bg-alt: #f2ede6;
  --fg: #1a1a1a;
  --fg-muted: #6b6358;
  --accent: #e84a1d;
  --accent-light: #fef0eb;
  --border: #e0d9ce;
  --card-bg: #ffffff;
  --hero-bg: #fdfcf9;
  --feed-done: #d4edda;
  --feed-done-text: #155724;
  --feed-active: #fff3cd;
  --feed-active-text: #856404;
}

html { scroll-behavior: smooth; }

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

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.5px;
}

.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 400;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--border);
  padding: 80px 48px 72px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--fg);
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
}

/* ── Agent Card ────────────────────────────────────────── */
.agent-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.agent-status {
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.agent-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feed-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}

.feed-item:last-child { border-bottom: none; }

.feed-item--done {
  background: var(--feed-done);
  margin: 0 -24px;
  padding: 10px 24px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.feed-item--active {
  background: var(--feed-active);
  margin: 0 -24px;
  padding: 10px 24px;
  border-radius: 6px;
}

.feed-time {
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 500;
  padding-top: 2px;
  white-space: nowrap;
}

.feed-text { color: var(--fg); }

.feed-item--done .feed-text { color: var(--feed-done-text); }
.feed-item--active .feed-text { color: var(--feed-active-text); }

/* ── Section shared ───────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--fg);
  margin-bottom: 20px;
}

/* ── How It Works ─────────────────────────────────────── */
.how-it-works {
  padding: 80px 48px;
  background: var(--card-bg);
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── Agent Section ─────────────────────────────────────── */
.agent-section {
  padding: 80px 48px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.agent-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.agent-section-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.stats-row {
  display: flex;
  gap: 32px;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.4;
  max-width: 100px;
}

/* Dashboard mock */
.dashboard-mock {
  background: var(--fg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #252525;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mock-title {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}

.mock-live {
  font-size: 11px;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mock-rows {
  padding: 0;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 16px;
}

.mock-row:last-child { border-bottom: none; }

.mock-row-title {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}

.mock-row-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.mock-row-value {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-align: right;
}

.mock-row-value--big {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--accent);
}

/* ── Manifesto ─────────────────────────────────────────── */
.manifesto {
  padding: 96px 48px;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 760px;
  margin: 0 auto;
}

.manifesto-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-style: italic;
  color: var(--fg);
  line-height: 1.45;
  margin-bottom: 16px;
  position: relative;
  padding-left: 28px;
}

.manifesto-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: calc(100% - 8px);
  background: var(--accent);
  border-radius: 2px;
}

.manifesto-attribution {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 36px;
  padding-left: 28px;
}

.manifesto-body p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.manifesto-body em {
  color: var(--fg);
  font-style: italic;
}

/* ── Closing ──────────────────────────────────────────── */
.closing {
  padding: 96px 48px;
  background: var(--fg);
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.closing-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 4px;
}

.footer-links {
  font-size: 12px;
  color: var(--fg-muted);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .agent-section-inner { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-row { flex-wrap: wrap; }
  .nav { padding: 16px 24px; }
  .hero { padding: 48px 24px; }
  .how-it-works { padding: 56px 24px; }
  .agent-section { padding: 56px 24px; }
  .manifesto { padding: 64px 24px; }
  .closing { padding: 64px 24px; }
  .footer { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .hero-headline { font-size: 38px; }
  .nav-tagline { display: none; }
}