/* Base */
:root {
  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --fg: #0B1929;
  --fg-muted: #5A6A7A;
  --accent: #D4A853;
  --accent-dark: #A88030;
  --red: #C0392B;
  --green: #1A7A4A;
  --yellow: #C9A84C;
  --border: #DDD8CC;
  --card-shadow: 0 1px 3px rgba(11,25,41,0.08), 0 4px 16px rgba(11,25,41,0.06);
}

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

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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.nav-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Section label */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 48px 64px;
  align-items: start;
}

.hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--accent-dark);
}

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

/* Conversation card */
.conversation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  font-size: 13px;
}

.card-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

.card-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.signal { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
.dot-green { background: var(--green); }
.dot-red { background: var(--red); }
.dot-yellow { background: var(--yellow); }

.card-name { font-weight: 500; color: var(--fg); font-size: 13px; }
.card-meta { color: var(--fg-muted); font-size: 12px; margin-top: 2px; }

.card-divider { height: 1px; background: var(--border); margin: 12px 0; }

.card-signal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

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

.signal-badge {
  font-size: 11px;
  font-weight: 500;
  background: rgba(26,122,74,0.1);
  color: var(--green);
  padding: 3px 8px;
  border-radius: 4px;
}

.card-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg);
  margin: 10px 0;
  padding: 12px;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

.card-action { margin-bottom: 12px; }
.action-label { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 6px; }
.action-rec { font-size: 13px; color: var(--fg); line-height: 1.5; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--fg-muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.stat {
  background: var(--surface);
  padding: 16px;
  text-align: center;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--fg);
}

.stat-label { font-size: 11px; color: var(--fg-muted); margin-top: 4px; }

/* Problem */
.problem { background: var(--fg); padding: 80px 48px; color: var(--bg); }

.problem-inner { max-width: 1100px; margin: 0 auto; }

.problem-header { margin-bottom: 56px; }

.problem-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--bg);
  letter-spacing: -0.01em;
}

.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }

.problem-col { background: #132235; padding: 40px; border-radius: 12px; }
.problem-col.accent { background: #162840; }

.problem-head {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.problem-body {}

.problem-body > p { font-size: 14px; color: rgba(247,244,238,0.7); line-height: 1.6; margin-bottom: 24px; }

.problem-metrics { display: flex; gap: 32px; margin-bottom: 20px; }

.metric { display: flex; flex-direction: column; }

.metric-val { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 400; color: var(--bg); }
.metric-label { font-size: 11px; color: rgba(247,244,238,0.5); margin-top: 4px; }

.problem-value {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,244,238,0.4);
  margin-bottom: 8px;
}

.problem-value.accent { color: var(--accent); }

.problem-verdict { font-size: 12px; color: rgba(247,244,238,0.5); border-left: 2px solid rgba(247,244,238,0.2); padding-left: 12px; }

/* Approach */
.approach { padding: 80px 48px; }

.approach-header { max-width: 640px; margin-bottom: 56px; }

.approach-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--fg);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.approach-sub { font-size: 16px; color: var(--fg-muted); line-height: 1.6; }

.layers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }

.layer { background: var(--surface); padding: 32px 24px; }

.layer-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--border);
  margin-bottom: 16px;
}

.layer-name { font-size: 14px; font-weight: 500; color: var(--fg); margin-bottom: 10px; }
.layer-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.5; margin-bottom: 16px; }
.layer-example { font-size: 12px; color: var(--accent-dark); border-top: 1px solid var(--border); padding-top: 12px; font-family: 'DM Sans', monospace; }

/* Ontology */
.ontology { background: var(--fg); padding: 80px 48px; }

.ontology-inner { max-width: 1100px; margin: 0 auto; }

.ontology-visual { display: flex; align-items: center; gap: 32px; margin-bottom: 40px; }

.ontology-block { flex: 1; background: #132235; border-radius: 12px; padding: 24px; }
.ontology-block.highlight { background: #1A3050; border: 1px solid var(--accent); }

.block-label { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247,244,238,0.5); margin-bottom: 16px; }

.call-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 12px; }
.call-id { color: rgba(247,244,238,0.6); font-family: 'DM Sans', monospace; }
.call-score { font-weight: 500; }
.call-score.red { color: var(--red); }
.call-score.green { color: var(--green); }
.call-score.yellow { color: var(--yellow); }
.call-more { color: rgba(247,244,238,0.3); font-style: italic; padding: 8px 0; }

.ontology-features { display: flex; flex-direction: column; gap: 10px; }
.feat { font-size: 13px; color: rgba(247,244,238,0.7); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }

.ontology-arrow { color: rgba(247,244,238,0.3); flex-shrink: 0; }

.agent-response { font-family: 'Playfair Display', serif; font-style: italic; font-size: 14px; color: var(--bg); line-height: 1.6; margin-bottom: 14px; }
.agent-metrics { font-size: 11px; color: var(--accent); font-weight: 500; }

.ontology-caption p { font-size: 15px; color: rgba(247,244,238,0.6); line-height: 1.6; max-width: 560px; }

/* Phases */
.phases { padding: 80px 48px; }

.phases-header { max-width: 600px; margin-bottom: 56px; }

.phases-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.phases-list { display: flex; flex-direction: column; gap: 1px; }

.phase {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.phase:last-child { border-bottom: none; }

.phase-num {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--accent-dark);
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.phase-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.phase-desc { font-size: 15px; color: var(--fg-muted); line-height: 1.7; margin-bottom: 16px; max-width: 640px; }

.phase-metric {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--accent-dark);
}

/* Manifesto */
.manifesto { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 80px 48px; }

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

.manifesto-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.manifesto-closing p {
  font-size: 18px;
  color: var(--fg-muted);
}

/* Footer */
.footer { padding: 40px 48px; }

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

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

.footer-meta { font-size: 12px; color: var(--fg-muted); display: flex; gap: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .nav { padding: 20px 24px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px; }
  .problem { padding: 56px 24px; }
  .problem-grid { grid-template-columns: 1fr; }
  .layers-grid { grid-template-columns: 1fr 1fr; }
  .approach { padding: 56px 24px; }
  .ontology { padding: 56px 24px; }
  .ontology-visual { flex-direction: column; align-items: stretch; }
  .ontology-arrow { transform: rotate(90deg); text-align: center; }
  .phases { padding: 56px 24px; }
  .phase { grid-template-columns: 1fr; gap: 8px; }
  .manifesto { padding: 56px 24px; }
  .footer { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .layers-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}