:root {
  --bg: #0B0B0B;
  --surface: #141414;
  --surface-2: #1E1E1E;
  --border: #2A2A2A;
  --fg: #F5F5F0;
  --fg-muted: #888;
  --fg-subtle: #555;
  --accent: #E8A838;
  --accent-dim: rgba(232, 168, 56, 0.12);
  --green: #10B981;
  --green-dim: rgba(16, 185, 129, 0.12);
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Manrope', system-ui, sans-serif;
}

* { 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-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ─── NAV ─────────────────────────────── */
nav {
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.nav-inner { max-width: 1200px; margin: 0 auto; width: 100%; }
.nav-logo { font-family: var(--font-serif); font-size: 1.25rem; letter-spacing: -0.01em; }
.nav-tagline { float: right; color: var(--fg-muted); font-size: 0.8rem; margin-top: 3px; }

/* ─── HERO ──────────────────────────────── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green-dim);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 48px;
}

.hero-stat-row {
  display: flex;
  gap: 0;
  align-items: center;
}
.hero-stat { padding: 0 28px 0 0; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label {
  display: block;
  color: var(--fg-muted);
  font-size: 0.72rem;
  margin-top: 6px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin-right: 28px;
}

/* ─── AGENT WINDOW ──────────────────────── */
.agent-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.agent-window-header {
  background: var(--surface-2);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.agent-window-title { font-size: 0.78rem; color: var(--fg-muted); font-weight: 500; }
.agent-status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-dim);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.agent-log { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.log-entry { display: flex; gap: 12px; font-size: 0.8rem; line-height: 1.5; }
.log-time { color: var(--fg-subtle); font-weight: 500; min-width: 36px; }
.log-system { color: var(--fg-muted); }
.log-info { color: #D97706; }
.log-action { color: var(--fg); }
.log-success { color: var(--green); font-weight: 500; }

/* ─── SHARED SECTION STYLES ──────────────── */
.operations, .features, .publisherperspective {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}
.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

/* ─── OPERATIONS ─────────────────────────── */
.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.op-card {
  background: var(--bg);
  padding: 36px 32px;
}
.op-card-icon { margin-bottom: 16px; }
.op-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.op-card p { color: var(--fg-muted); font-size: 0.88rem; line-height: 1.65; }

/* ─── FEATURES ──────────────────────────── */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.features-body { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 28px; max-width: 440px; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ─── CODE WINDOW ────────────────────────── */
.code-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.code-header {
  background: var(--surface-2);
  padding: 12px 20px;
  font-size: 0.75rem;
  color: var(--fg-subtle);
  border-bottom: 1px solid var(--border);
}
.code-body { padding: 20px; }
.code-line { font-family: 'Courier New', monospace; font-size: 0.8rem; line-height: 1.7; }
.code-indent { padding-left: 20px; }
.code-comment { color: var(--fg-subtle); }
.code-key { color: #79B8FF; }
.code-bool { color: #7EE787; }
.code-highlight { color: var(--accent); font-weight: 600; }

/* ─── PUBLISHER PERSPECTIVE ─────────────── */
.comparison-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}
.comparison-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 12px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.comparison-row:last-child { border-bottom: none; }
.comparison-label { color: var(--fg); }
.comparison-val { text-align: center; font-weight: 700; }
.check { color: var(--green); }
.cross { color: #E53E3E; }
.perspective-note { color: var(--fg-muted); font-size: 0.9rem; line-height: 1.6; font-style: italic; }

/* ─── CLOSING ─────────────────────────────── */
.closing {
  border-top: 1px solid var(--border);
  padding: 80px 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #0F0F0F 100%);
}
.closing-stat { margin-bottom: 28px; }
.closing-stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.closing-stat-label { color: var(--fg-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.closing-body { color: var(--fg-muted); font-size: 1.05rem; line-height: 1.7; max-width: 520px; margin: 0 auto; }

/* ─── FOOTER ──────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 32px 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.footer-logo { font-family: var(--font-serif); font-size: 1rem; }
.footer-tagline { color: var(--fg-muted); font-size: 0.8rem; }
.footer-copy { margin-left: auto; color: var(--fg-subtle); font-size: 0.75rem; }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px; }
  .features { grid-template-columns: 1fr; }
  .ops-grid { grid-template-columns: 1fr; }
  .comparison-header, .comparison-row { grid-template-columns: 1.5fr 1fr 1fr; }
  .closing { padding: 60px 24px; }
  footer { padding: 24px; }
  .footer-inner { flex-wrap: wrap; gap: 12px; }
  .footer-copy { margin-left: 0; }
  nav { padding: 16px 24px; }
}
@media (max-width: 480px) {
  .hero-stat-row { flex-direction: column; gap: 16px; }
  .hero-stat-divider { display: none; }
  .hero-stat { padding: 0; }
}