:root {
  --navy: #0b2545;
  --sea: #13315c;
  --ice: #eef4fa;
  --ice-2: #dce8f3;
  --accent: #c0504d;
  --ink: #0f172a;
  --muted: #5b6b7f;
  --line: #e2e8f0;
  --radius: 12px;
  --max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: #fff;
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--sea); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* top navigation */
.nav { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 10; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.brand { color: #fff; text-decoration: none; font-weight: 650; letter-spacing: .01em; }
.brand span { color: #9cc3e6; font-weight: 500; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a.link { color: #d6e6f5; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.nav a.link:hover, .nav a.link[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }

/* hero */
.hero { background: linear-gradient(180deg, var(--navy), var(--sea)); color: #fff; padding: 64px 0 56px; }
.hero h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.15; margin: 0 0 14px; font-weight: 700; max-width: 820px; }
.hero p.lead { font-size: 19px; color: #d6e6f5; max-width: 720px; margin: 0 0 26px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; color: #9cc3e6; margin: 0 0 10px; font-weight: 600; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.btn.primary { background: #fff; color: var(--navy); }
.btn.ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn.dark { background: var(--navy); color: #fff; }

/* sections */
section { padding: 52px 0; }
section.alt { background: var(--ice); }
h2 { font-size: 26px; margin: 0 0 8px; color: var(--navy); }
h3 { font-size: 18px; margin: 0 0 6px; color: var(--navy); }
p.sub { color: var(--muted); margin: 0 0 24px; max-width: 760px; }
.grid { display: grid; gap: 16px; }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
section.alt .card { border-color: var(--ice-2); }
.stat .big { font-size: 30px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .lbl { color: var(--muted); font-size: 14px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6);} 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0);} 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0);} }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.finding { border-left: 4px solid var(--accent); background: #fff; padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 19px; }
figure { margin: 0 0 28px; }
figure img { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
figcaption { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
ul.points { padding-left: 20px; margin: 0; }
ul.points li { margin-bottom: 8px; }
.note { background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius); padding: 14px 18px; font-size: 15px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--navy); background: var(--ice); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.steps { counter-reset: s; display: grid; gap: 12px; }
.step { position: relative; padding-left: 46px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 2px; width: 32px; height: 32px;
  border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--ice); color: var(--sea); border: 1px solid var(--ice-2); border-radius: 999px; padding: 3px 12px; font-size: 13.5px; }
.mermaid { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; overflow-x: auto; }

footer { background: var(--navy); color: #b9cfe4; padding: 28px 0; font-size: 14px; }
footer a { color: #fff; }
