
/* ModelSure — Agentic guide (shared palette with classic Model Validation) */
:root {
  --ink: #0d0d0d;
  --paper: #f5f0e8;
  --cream: #ede7d5;
  --accent: #c0392b;
  --accent2: #1a6b4a;
  --accent3: #1c4d8c;
  --border: #c9bfa8;
  --border2: #b5a892;
  --bg: var(--paper);
  --bg2: #ede7d5;
  --bg3: #e8e0ce;
  --surface: #f5f0e8;
  --text: #2a2520;
  --muted: #6b6355;
  --bright: #0d0d0d;
  --cyan: #1c4d8c;
  --amber: #c9a96e;
  --green: #1a6b4a;
  --red: #c0392b;
  --purple: #624096;
  --glow-c: rgba(28, 77, 140, 0.08);
  --glow-a: rgba(201, 169, 110, 0.12);
  --glow-g: rgba(26, 107, 74, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Paper texture (ModelSure, matches classic guide) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 169, 110, 0.06), transparent 55%);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ── SCANLINE OVERLAY ── */
.scanlines {
  display: none;
}

/* ── HEADER ── */
header {
  position: relative;
  z-index: 10;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.header-bg {
  position: absolute;
  inset: 0;
  background: var(--ink);
}

.header-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}

.header-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.header-left {}

.h-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--cyan);
  padding: 5px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.h-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-bottom: 20px;
}

header h1 .hl-cyan {
  color: #f0e6c8;
  text-shadow: 0 0 32px rgba(240, 230, 200, 0.45);
}

header h1 .hl-amber {
  color: #f5f0e8;
  font-style: italic;
  text-shadow: 0 0 28px rgba(245, 240, 232, 0.25);
}

.h-desc {
  font-size: 17px;
  font-weight: 300;
  color: #a09880;
  max-width: 560px;
  line-height: 1.7;
}

.header-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hs-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px 20px;
  background: rgba(245, 240, 232, 0.06);
  text-align: right;
  min-width: 150px;
}

.hs-val {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 800;
  color: #f5f0e8;
  display: block;
  line-height: 1;
}

.header-stats .hs-val.hs-val--accent {
  color: #f2d9a0;
}

.header-stats .hs-val.hs-val--mint {
  color: #b8e9d0;
}

.hs-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8278;
  margin-top: 4px;
}

/* ── Left section navigation ── */
.section-nav {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 20px 18px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-nav-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section-nav a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 2px;
  line-height: 1.35;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.section-nav a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.section-nav-num {
  font-size: 9px;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 1.25rem;
}

.section-nav a:hover .section-nav-num {
  color: rgba(245, 240, 232, 0.75);
}

/* ── LAYOUT ── */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 40px;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 280px);
  gap: 40px 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.page > .section-nav,
.page > .content,
.page > .sidebar {
  min-width: 0;
}

/* ── SECTION ── */
.content section {
  margin-bottom: 96px;
  animation: fadeIn 0.6s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.content section:nth-child(1) { animation-delay: 0.05s; }
.content section:nth-child(2) { animation-delay: 0.10s; }
.content section:nth-child(3) { animation-delay: 0.15s; }
.content section:nth-child(4) { animation-delay: 0.20s; }
.content section:nth-child(5) { animation-delay: 0.25s; }
.content section:nth-child(6) { animation-delay: 0.30s; }
.content section:nth-child(7) { animation-delay: 0.35s; }
.content section:nth-child(8) { animation-delay: 0.40s; }

.sec-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border2), transparent);
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  color: var(--bright);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--bright);
  margin-top: 44px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.h3-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--amber);
  background: rgba(255,183,0,0.1);
  border: 1px solid var(--border);
  padding: 2px 8px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

p {
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 300;
}

strong { color: var(--bright); font-weight: 500; }

/* ── CALLOUTS ── */
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  background: linear-gradient(90deg, var(--glow-c), transparent);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15px;
}

.callout.amber {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, var(--glow-a), transparent);
}

.callout.red {
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(255,59,92,0.08), transparent);
}

.callout.green {
  border-left-color: var(--green);
  background: linear-gradient(90deg, var(--glow-g), transparent);
}

.callout-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
  display: block;
}

.callout.amber .callout-tag { color: var(--amber); }
.callout.red   .callout-tag { color: var(--red); }
.callout.green .callout-tag { color: var(--green); }

/* ── WHY DIFFERENT GRID ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 28px 0;
  border: 1px solid var(--border);
}

.why-card {
  background: var(--surface);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.why-card:hover { background: var(--bg3); }

.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.why-card.c::before { background: var(--cyan); }
.why-card.a::before { background: var(--amber); }
.why-card.g::before { background: var(--green); }
.why-card.r::before { background: var(--red); }

.why-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.why-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--bright);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ── DIMENSION TABLE ── */
.dim-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
}

.dim-table thead tr {
  background: var(--surface);
}

.dim-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.dim-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.dim-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.dim-table .td-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--cyan);
  white-space: nowrap;
}

.dim-table .td-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.score-hi  { color: var(--green); }
.score-mid { color: var(--amber); }
.score-lo  { color: var(--red); }

/* ── TRAJECTORY DIAGRAM ── */
.traj-wrap {
  border: 1px solid var(--border);
  background: var(--bg2);
  padding: 32px;
  margin: 28px 0;
}

.traj-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  text-align: center;
}

/* ── FRAMEWORK CARDS ── */
.framework-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
}

.fw-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 24px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  align-items: start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fw-card:hover {
  border-color: var(--border2);
  box-shadow: 0 0 20px rgba(0,212,255,0.05);
}

.fw-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid currentColor;
  text-align: center;
  margin-top: 2px;
}

.fw-tag.bench  { color: var(--cyan); }
.fw-tag.metric { color: var(--amber); }
.fw-tag.tool   { color: var(--green); }
.fw-tag.method { color: var(--purple); }

.fw-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--bright);
  margin-bottom: 6px;
}

.fw-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.fw-score {
  text-align: right;
}

.fw-score .fws-val {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.fw-score .fws-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── CODE ── */
.code-wrap {
  background: #02040a;
  border: 1px solid var(--border);
  margin: 24px 0;
  overflow: hidden;
}

.code-header {
  background: var(--surface);
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.code-lang {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }

pre {
  padding: 24px 20px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.75;
  color: #8899bb;
}

.k  { color: #c792ea; }
.fn { color: #82aaff; }
.s  { color: #c3e88d; }
.n  { color: #f78c6c; }
.c  { color: #3d5273; font-style: italic; }
.v  { color: #eeffff; }
.cls{ color: #ffcb6b; }
.op { color: #89ddff; }
.cy { color: #00d4ff; }
.am { color: #ffb700; }
.gr { color: #00ff88; }

/* ── PIPELINE STEPS ── */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 28px 0;
  position: relative;
}

.pipeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 40px;
  bottom: 40px;
  width: 1px;
  background: linear-gradient(var(--cyan), var(--amber));
}

.pipe-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 16px 0;
  position: relative;
  z-index: 1;
}

.pipe-num {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  flex-shrink: 0;
}

.pipe-body {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 20px;
}

.pipe-body strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--bright);
}

.pipe-body p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.pipe-body .pipe-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ptag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ── SAFETY SECTION ── */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.safety-card {
  border: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.safety-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
}

.safety-card.s1::after { background: var(--red); }
.safety-card.s2::after { background: var(--amber); }
.safety-card.s3::after { background: var(--cyan); }
.safety-card.s4::after { background: var(--green); }
.safety-card.s5::after { background: var(--purple); }
.safety-card.s6::after { background: #ff6eb4; }

.safety-card .s-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.safety-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--bright);
  margin-bottom: 6px;
}

.safety-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* ── BENCHMARK TABLE ── */
.bench-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 13px;
}

.bench-table thead tr {
  background: linear-gradient(90deg, var(--surface), var(--bg2));
}

.bench-table th {
  padding: 12px 14px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.bench-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.bench-table tbody tr:hover { background: rgba(0,212,255,0.02); }

.bench-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--cyan);
  font-weight: 500;
}

.chip {
  display: inline-block;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.chip.env   { background: rgba(0,212,255,0.1);  color: var(--cyan); }
.chip.llm   { background: rgba(168,85,247,0.1); color: var(--purple); }
.chip.safe  { background: rgba(255,59,92,0.1);  color: var(--red); }
.chip.multi { background: rgba(255,183,0,0.1);  color: var(--amber); }
.chip.plan  { background: rgba(0,255,136,0.1);  color: var(--green); }

/* ── CHECKLIST ── */
.eval-checklist {
  list-style: none;
  margin: 20px 0;
}

.eval-checklist li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  font-weight: 300;
}

.eval-checklist li:last-child { border: none; }

.cl-mark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--green);
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.3);
  padding: 1px 6px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── SIDEBAR ── */
.sidebar {
  position: sticky;
  top: 80px;
}

.sb-card {
  background: var(--cream);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 24px;
  margin-bottom: 20px;
}

.sb-card h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.sb-row:last-child { border: none; }

.sb-row .sb-key { color: var(--muted); font-size: 12px; }
.sb-row .sb-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
}

.gauge-wrap { margin: 16px 0 8px; }
.gauge-item { margin-bottom: 12px; }
.gauge-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.gauge-label span:last-child { color: var(--bright); }

.gauge-bar {
  height: 4px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.sb-alert {
  background: rgba(255,59,92,0.08);
  border: 1px solid rgba(255,59,92,0.25);
  padding: 14px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.6;
  margin-top: 20px;
}

.sb-alert strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

/* ── VS COMPARISON ── */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin: 28px 0;
  border: 1px solid var(--border);
}

.vs-col {
  padding: 24px;
  background: var(--surface);
}

.vs-col.right { background: var(--bg2); }

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.vs-badge {
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 10px;
}

.vs-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vs-col.left h4  { color: var(--muted); }
.vs-col.right h4 { color: var(--cyan); }

.vs-list { list-style: none; }
.vs-list li {
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.vs-list li:last-child { border: none; }

.vs-col.right .vs-list li { color: var(--text); }

.vs-mark-bad  { color: var(--red);   font-size: 12px; flex-shrink: 0; margin-top: 1px; }
.vs-mark-good { color: var(--green); font-size: 12px; flex-shrink: 0; margin-top: 1px; }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: #6b6355;
  text-align: center;
  padding: 40px 24px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-copyright {
  margin: 18px 0 0;
  padding: 0;
  border: none;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: #8a8278;
  font-weight: 300;
}

.footer-copyright a {
  color: #a09880;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(160, 152, 128, 0.45);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.footer-copyright a:hover {
  color: #c9a96e;
  text-decoration-color: rgba(201, 169, 110, 0.8);
}

.footer-tagline {
  margin: 0;
  max-width: 900px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.02em;
  color: #c4bbb0;
  font-size: 13px;
}

.footer-tagline .footer-tagline-em {
  color: #f5f0e8;
  font-weight: 600;
}

.footer-tagline .modelsure-brand-inline {
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.footer-tagline .modelsure-brand-inline:hover {
  color: #c9a96e;
}

/* ModelSure platform bar (matches classic guide) */
.modelsure-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 15;
}

.modelsure-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 40px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.modelsure-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.modelsure-brand:hover {
  color: var(--accent);
}

.modelsure-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modelsure-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.modelsure-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.modelsure-btn.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

@media (max-width: 1000px) {
  .modelsure-bar-inner {
    padding: 12px 24px 14px;
  }
  .page {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }
  .section-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    order: -1;
  }
  .section-nav-title {
    width: 100%;
    margin-bottom: 4px;
    padding-bottom: 8px;
  }
  .section-nav a {
    flex: 1 1 auto;
    justify-content: center;
    min-width: min(100%, 140px);
    text-align: center;
  }
  .sidebar { position: static; }
  .header-inner { grid-template-columns: 1fr; padding: 48px 24px; }
  .header-stats { flex-direction: row; }
  .why-grid { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr 1fr; }
  .vs-grid { grid-template-columns: 1fr; }
  .vs-divider { display: none; }
  footer { padding: 32px 24px; }
}

@media (max-width: 640px) {
  .modelsure-bar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 14px;
  }
  .modelsure-switch {
    justify-content: center;
  }
}
