:root {
  --ink: #181714;
  --muted: #666056;
  --paper: #f8f7f2;
  --panel: #ffffff;
  --line: #d9d2c3;
  --red: #b5312b;
  --green: #1f6f5b;
  --gold: #b88428;
  --shadow: 0 26px 70px rgba(24, 23, 20, 0.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(24, 23, 20, 0.045) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(rgba(24, 23, 20, 0.035) 1px, transparent 1px) 0 0 / 44px 44px, var(--paper);
  font-family: Avenir Next, Helvetica Neue, PingFang SC, Hiragino Sans GB, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(24, 23, 20, 0.12);
  background: rgba(248, 247, 242, 0.92);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--red);
  color: #fff;
  font-weight: 800;
  box-shadow: 5px 5px 0 var(--ink);
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
nav a { text-decoration: none; }
nav a:hover { color: var(--red); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.58fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(56px, 8vw, 120px) clamp(20px, 5vw, 72px) 48px;
}
.eyebrow, .section-kicker, .card-label { color: var(--red); font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 940px;
  margin-bottom: 24px;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(44px, 7vw, 94px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.lede { max-width: 760px; color: #3d382f; font-size: clamp(18px, 2.1vw, 24px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button.primary { background: var(--ink); color: #fff; }
.button.secondary { background: var(--gold); color: var(--ink); }
.dossier-card { position: relative; padding: 28px; border: 2px solid var(--ink); background: var(--panel); box-shadow: var(--shadow); }
.stamp {
  position: absolute;
  top: 18px;
  right: -8px;
  rotate: 5deg;
  padding: 6px 10px;
  border: 2px solid var(--red);
  color: var(--red);
  background: #fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.dossier-card h2 { margin: 8px 0 24px; font-family: Georgia, Times New Roman, serif; font-size: 42px; }
.dossier-card dl { margin: 0; }
.dossier-card div { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; }
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 clamp(20px, 5vw, 72px) 74px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
}
.metrics > div { padding: 24px; border-right: 1px solid rgba(255,255,255,0.24); }
.metrics > div:last-child { border-right: 0; }
.metric-number { display: block; font-family: Georgia, Times New Roman, serif; font-size: clamp(34px, 5vw, 56px); line-height: 1; }
.metric-label { color: rgba(255,255,255,0.76); }
.section { padding: 70px clamp(20px, 5vw, 72px); }
.section-head { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 30px; }
.section-head h2, .boundary h2 { margin-bottom: 0; font-family: Georgia, Times New Roman, serif; font-size: clamp(34px, 4.8vw, 64px); line-height: 1; }
.section-head p { max-width: 520px; margin-bottom: 0; color: var(--muted); }
.capability-grid, .standard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.capability-grid article, .standard-grid div { min-height: 220px; padding: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.72); }
.capability-grid span { color: var(--green); font-weight: 900; }
.capability-grid h3, .standard-grid h3 { margin: 14px 0 10px; font-size: 22px; }
.capability-grid p, .standard-grid p { color: var(--muted); margin-bottom: 0; }
.demo-section { background: #22201b; color: #fff; }
.demo-section .section-head p { color: rgba(255, 255, 255, 0.68); }
.depth-contrast {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 44px minmax(0, 1.3fr);
  gap: 14px;
  align-items: stretch;
  margin: 0 0 24px 278px;
}
.contrast-weak, .contrast-strong { padding: 16px 18px; border: 1px solid rgba(255,255,255,0.2); }
.contrast-weak { color: rgba(255,255,255,0.58); background: rgba(255,255,255,0.04); }
.contrast-strong { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.contrast-weak span, .contrast-strong span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 800; }
.contrast-weak strong, .contrast-strong strong { display: block; line-height: 1.45; }
.contrast-arrow { display: grid; place-items: center; color: var(--gold); font-size: 28px; }
.demo-shell { display: grid; grid-template-columns: 260px 1fr; gap: 18px; }
.scenario-list { display: grid; gap: 10px; align-content: start; }
.scenario {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.78);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  padding: 12px 14px;
}
.scenario.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.chat-panel { display: grid; gap: 14px; }
.chat-message { padding: 20px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); }
.chat-message span { display: block; margin-bottom: 10px; color: var(--gold); font-size: 13px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.chat-message.user { max-width: 760px; }
.chat-message.agent { background: #f7f3e8; color: var(--ink); }
.chat-message.agent > span { color: var(--red); }
.chat-message ul { margin: 0; padding-left: 20px; }
.chat-message li { margin: 10px 0; }
.output-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: -20px -20px 22px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #ece6d7;
}
.output-toolbar span { margin: 0; color: var(--red); }
.output-toolbar small { color: var(--muted); }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.case-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--green);
  color: var(--green);
  background: #edf6f1;
  font-size: 12px;
  font-weight: 800;
}
.case-badge.neutral { border-color: var(--line); color: var(--muted); background: #fff; }
.result-summary { padding: 22px; border: 2px solid var(--ink); background: #fff; box-shadow: 5px 5px 0 var(--gold); }
.result-label { margin-bottom: 8px; color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: 0.1em; }
.result-summary-text { margin: 0; font-family: Georgia, Times New Roman, serif; font-size: 21px; line-height: 1.62; }
.verdict-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 24px; }
.verdict-card { min-height: 94px; padding: 14px; border-top: 4px solid var(--green); background: #fff; }
.verdict-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.verdict-value { display: block; font-size: 16px; line-height: 1.45; }
.result-section { margin-top: 18px; padding: 20px; border: 1px solid var(--line); background: rgba(255,255,255,0.72); }
.result-section-title { margin: 0 0 14px; font-size: 21px; line-height: 1.4; }
.result-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.result-item { min-width: 0; padding: 15px 16px; border-left: 4px solid var(--line); background: #fff; }
.result-item-title { margin: 0 0 8px; font-size: 16px; line-height: 1.45; }
.result-item-body { margin: 0; color: #4c473f; font-size: 14px; line-height: 1.78; }
.tone-signal .result-item { border-left-color: var(--green); }
.tone-opportunity .result-item { border-left-color: var(--gold); }
.tone-risk .result-item { border-left-color: var(--red); background: #fff8f6; }
.tone-watch .result-item { border-left-color: #4a5f78; background: #f6f8fa; }
.evidence-note { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); color: var(--green); font-size: 12px; font-weight: 800; }
.result-section.compact .result-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-section.compact .result-item { min-height: auto; }
.sample-disclaimer { margin-top: 18px; padding: 13px 15px; border: 1px dashed #a79d89; color: var(--muted); background: #fffdf8; font-size: 12px; line-height: 1.65; }
.standards { background: #f1eee5; }
.boundary { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: #fff; }
.boundary p { max-width: 640px; color: var(--muted); }
.boundary-list { margin: 0; padding: 0; list-style: none; }
.boundary-list li { margin-bottom: 12px; padding: 16px 18px; border-left: 5px solid var(--red); background: #f7f7f4; font-weight: 700; }
.usage pre { overflow-x: auto; padding: 24px; border: 2px solid var(--ink); background: #151411; color: #f6efe1; font-size: 15px; line-height: 1.7; }
.site-footer { padding: 34px clamp(20px, 5vw, 72px); background: var(--ink); color: #fff; }
.site-footer p { max-width: 800px; margin: 8px 0 0; color: rgba(255,255,255,0.68); }
@media (max-width: 920px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { flex-wrap: wrap; }
  .hero, .demo-shell, .boundary { grid-template-columns: 1fr; }
  .metrics, .capability-grid, .standard-grid { grid-template-columns: 1fr; }
  .metrics > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.24); }
  .section-head { display: block; }
  .section-head h2 { margin-bottom: 16px; }
  .depth-contrast { margin-left: 0; }
}
@media (max-width: 560px) {
  .hero { padding-top: 42px; }
  h1 { font-size: 42px; }
  .dossier-card div { grid-template-columns: 1fr; gap: 4px; }
  .scenario-list { grid-template-columns: 1fr 1fr; }
  .depth-contrast { grid-template-columns: 1fr; }
  .contrast-arrow { rotate: 90deg; min-height: 30px; }
  .output-toolbar { align-items: flex-start; flex-direction: column; gap: 2px; }
  .verdict-grid, .result-items, .result-section.compact .result-items { grid-template-columns: 1fr; }
  .result-summary-text { font-size: 18px; }
}
