:root {
  --ink: #14213d;
  --muted: #56647c;
  --paper: #f4f6f8;
  --surface: #ffffff;
  --navy: #12355b;
  --blue: #1f5f99;
  --teal: #0f766e;
  --teal-soft: #dff4ef;
  --amber: #d99a24;
  --line: #d9e0e8;
  --shadow: 0 20px 55px rgba(20, 33, 61, .09);
  --radius: 18px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f5b942; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .75rem 1rem; background: #fff; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.site-nav { max-width: var(--content); margin: 0 auto; padding: .85rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand svg { width: 2rem; height: 2rem; fill: currentColor; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 650; font-size: .94rem; }

.hero { color: #fff; background: radial-gradient(circle at 82% 16%, rgba(32, 167, 151, .32), transparent 30%), linear-gradient(125deg, #0d2949 0%, #173f67 62%, #0f5c63 100%); }
.hero-inner { max-width: var(--content); margin: 0 auto; padding: clamp(3.5rem, 8vw, 7rem) 1.25rem; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.hero-kicker, .eyebrow { margin: 0 0 .65rem; color: var(--teal); font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero-kicker { color: #86e0d4; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1.04; letter-spacing: -.045em; }
.hero-lead { max-width: 760px; margin: 1.5rem 0 0; color: #d9e8f5; font-size: clamp(1.05rem, 2vw, 1.24rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .75rem 1.1rem; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-weight: 800; }
.button-primary { color: #0e2b48; background: #8ee5d9; }
.button-primary:hover { color: #0e2b48; background: #b3efe7; }
.button-secondary { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.button-secondary:hover { color: #fff; background: rgba(255,255,255,.15); }
.scope-card { padding: 1.55rem; border: 1px solid rgba(255,255,255,.24); border-radius: var(--radius); background: rgba(8, 28, 50, .58); box-shadow: 0 18px 48px rgba(0,0,0,.16); }
.scope-card .scope-label { margin: 0 0 .65rem; color: #86e0d4; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.scope-card strong { display: block; font-size: 1.28rem; line-height: 1.3; }
.scope-card p { color: #d9e8f5; }
.scope-card a { color: #fff; font-weight: 750; }

.trust-strip { max-width: var(--content); margin: -1.5rem auto 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.trust-strip div { padding: 1rem 1.15rem; border-right: 1px solid var(--line); }
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { font-size: .88rem; }
.trust-strip span { margin-top: .18rem; color: var(--muted); font-size: .78rem; }

.page-shell { max-width: var(--content); margin: 0 auto; padding: 0 1.25rem 5rem; }
.section-block { padding-top: clamp(4rem, 8vw, 7rem); scroll-margin-top: 4rem; }
.section-intro { max-width: 750px; margin-bottom: 1.7rem; }
.section-intro h2, .methodology-grid h2, .limitations h2, .sources-card h2, .relevance-card h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.035em; }
.section-intro p:last-child, .methodology-grid p, .sources-card p, .relevance-card p { color: var(--muted); }

.explorer-panel { padding: clamp(1.1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.segment-switch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: .35rem; border-radius: 12px; background: #e9eef3; }
.segment-button { min-height: 44px; padding: .55rem 1rem; border: 0; border-radius: 9px; color: #3b4b61; background: transparent; cursor: pointer; font: inherit; font-weight: 800; }
.segment-button.is-active { color: #fff; background: var(--navy); box-shadow: 0 5px 18px rgba(18,53,91,.2); }
.explorer-heading { margin: 2rem 0 1.4rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.explorer-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.03em; }
.explorer-heading p:not(.eyebrow) { max-width: 720px; margin: .45rem 0 0; color: var(--muted); }
.snapshot-chip { flex: none; padding: .5rem .8rem; border-radius: 999px; color: #0b5b53 !important; background: var(--teal-soft); font-size: .78rem; font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.metric-card { min-height: 150px; padding: 1.15rem; border: 1px solid var(--line); border-radius: 13px; background: #f9fafb; }
.metric-card p, .metric-card span, .metric-card strong { display: block; }
.metric-card p { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 750; }
.metric-card strong { margin: .55rem 0 .3rem; color: var(--navy); font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.1; letter-spacing: -.035em; }
.metric-card span { color: var(--muted); font-size: .75rem; }
.metric-card-accent { border-color: #9ddbd3; background: #eefaf7; }
.explorer-grid { margin-top: .8rem; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: .8rem; }
.data-card { min-width: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 13px; }
.card-heading { margin-bottom: 1rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.card-heading h3 { margin: 0; font-size: 1.2rem; }
.card-heading > span { color: var(--muted); font-size: .72rem; text-align: right; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.data-table caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.data-table th, .data-table td { padding: .7rem .55rem; border-bottom: 1px solid #e8edf2; text-align: right; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child, .brand-table th:nth-child(2) { text-align: left; }
.data-table thead th { color: var(--muted); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }
.data-table tbody th { font-weight: 720; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.bar-cell { width: 35%; min-width: 120px; }
.bar { display: block; min-width: 2px; height: 10px; border-radius: 999px; background: var(--blue); }
.bar-age-1 { background: #22a693; }
.bar-age-2 { background: #2b83ba; }
.bar-age-3 { background: #4f6ea7; }
.bar-age-4 { background: #9b6a9d; }
.bar-age-5 { background: #d18b39; }
.rank { width: 2rem; color: var(--muted); text-align: left !important; }
.quality-note { margin: .9rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.answer-section { margin-top: clamp(3rem, 7vw, 5.5rem); }
.answer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; }
.answer-grid article { grid-column: span 2; padding: 1.25rem; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.answer-grid article:nth-child(4), .answer-grid article:nth-child(5) { grid-column: span 3; }
.answer-grid h3 { margin: 0; font-size: .92rem; line-height: 1.4; }
.answer-grid strong { display: block; margin: .7rem 0 .45rem; color: var(--navy); font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.03em; }
.answer-grid p { margin: 0; color: var(--muted); font-size: .82rem; }

.methodology-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.text-link { display: inline-block; margin-top: .7rem; font-weight: 800; }
code { padding: .12rem .3rem; border-radius: 5px; background: #e8edf2; font-size: .9em; }
.definition-list { margin: 0; display: grid; gap: .65rem; }
.definition-list div { padding: 1.15rem; border-left: 4px solid var(--teal); border-radius: 0 11px 11px 0; background: #fff; }
.definition-list dt { font-weight: 850; }
.definition-list dd { margin: .25rem 0 0; color: var(--muted); }
.limitation-grid { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.limitation-grid article { padding: 1.25rem; border: 1px solid #ead9b8; border-radius: 13px; background: #fffaf0; }
.limitation-grid h3 { margin: 0 0 .35rem; font-size: 1rem; }
.limitation-grid p { margin: 0; color: #6d5c42; font-size: .9rem; }
.sources-card { padding: clamp(1.4rem, 4vw, 2.5rem); border-radius: var(--radius); color: #fff; background: var(--navy); }
.sources-card .eyebrow { color: #8ee5d9; }
.sources-card p { color: #d6e3ef; }
.source-list { margin: 1.25rem 0 0; padding-left: 1.2rem; }
.source-list li { margin: .45rem 0; }
.source-list a, .licensing-note a { color: #fff; }
.licensing-note { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.25); }
.relevance-card { display: flex; gap: 2rem; justify-content: space-between; align-items: end; }
.relevance-card > div:first-child { max-width: 760px; }
.context-links { display: grid; gap: .55rem; flex: none; font-weight: 800; }

.site-footer { padding: 2rem max(1.25rem, calc((100vw - var(--content)) / 2)); display: flex; justify-content: space-between; gap: 2rem; color: #cbd5e1; background: #0b1d31; }
.site-footer strong, .site-footer span { display: block; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer a { color: #fff; }

@media (max-width: 920px) {
  .hero-inner, .methodology-grid { grid-template-columns: 1fr; }
  .scope-card { max-width: 620px; }
  .trust-strip { margin-left: 1rem; margin-right: 1rem; grid-template-columns: repeat(2, 1fr); }
  .trust-strip div:nth-child(2) { border-right: 0; }
  .trust-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .explorer-grid { grid-template-columns: 1fr; }
  .answer-grid article, .answer-grid article:nth-child(4), .answer-grid article:nth-child(5) { grid-column: span 3; }
  .relevance-card { display: block; }
  .context-links { margin-top: 1rem; }
}

@media (max-width: 620px) {
  .nav-links { display: none; }
  .hero-inner { padding-top: 3.25rem; padding-bottom: 3.75rem; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip div:last-child { border-bottom: 0; }
  .segment-switch { width: 100%; }
  .segment-button { padding-left: .55rem; padding-right: .55rem; font-size: .82rem; }
  .explorer-heading { display: block; }
  .snapshot-chip { display: inline-block; margin-top: 1rem !important; }
  .metric-grid, .limitation-grid { grid-template-columns: 1fr; }
  .answer-grid { grid-template-columns: 1fr; }
  .answer-grid article, .answer-grid article:nth-child(4), .answer-grid article:nth-child(5) { grid-column: auto; }
  .metric-card { min-height: 0; }
  .visual-column, .bar-cell { display: none; }
  .site-footer { display: block; }
  .site-footer nav { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
