:root {
  --paper: #f4f7fb;
  --paper-deep: #e8eef6;
  --ink: #0b1f4a;
  --ink-soft: #16305f;
  --rule: #d5deea;
  --rule-strong: #c3cedd;
  --muted: #5a6a80;
  --seal: #8b1e2d;
  --card: #ffffff;
  --accent: #1a73e8;
  --accent-deep: #0a3d8f;
  --accent-soft: #e8f1fd;
  --shadow: 0 1px 0 rgba(11, 31, 74, 0.04), 0 18px 40px -24px rgba(11, 31, 74, 0.28);
  --shadow-tight: 0 1px 0 rgba(11, 31, 74, 0.05), 0 10px 28px -18px rgba(11, 31, 74, 0.22);
  --radius: 10px;
  --header-h: 4.25rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  background:
    radial-gradient(920px 420px at 88% -8%, rgba(26, 115, 232, 0.10), transparent 58%),
    radial-gradient(700px 280px at 0% 12%, rgba(11, 31, 74, 0.045), transparent 55%),
    var(--paper);
  color: var(--ink);
  font: 16.5px/1.62 "IBM Plex Sans", Outfit, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--accent-deep); }

h1, h2, h3, .serif {
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 560;
  letter-spacing: -0.035em;
  color: var(--ink);
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.55rem); line-height: 1.04; margin: 0 0 0.45em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.2; margin: 0 0 0.55em; }
h3 { font-size: 1.08rem; line-height: 1.3; margin: 0 0 0.45em; }

p { margin: 0 0 1em; }

code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86em;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 0.08em 0.38em;
  border-radius: 4px;
}

.wrap { width: min(1120px, calc(100% - 2.4rem)); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.lede { font-size: 1.08rem; max-width: 38rem; color: var(--muted); }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.45rem 0.7rem;
  z-index: 80;
}
.skip:focus { top: 0.6rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  color: var(--accent-deep);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 1.15rem;
  height: 1px;
  background: var(--accent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(213, 222, 234, 0.9);
  background: rgba(245, 248, 252, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent) 42%, #7eb6ff);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
}
.wordmark {
  font-family: Outfit, sans-serif;
  font-size: 1.18rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.wordmark .x { color: var(--accent); font-weight: 650; }
.wordmark .rest { color: var(--ink); font-weight: 520; }

.nav-desk {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  font-size: 0.9rem;
}
.nav-desk a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.38rem 0.62rem;
  border-radius: 6px;
}
.nav-desk a:hover,
.nav-desk a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.header-cta { flex: 0 0 auto; }

.nav-mobile { display: none; }
.nav-mobile > summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--rule);
  background: #fff;
  padding: 0.42rem 0.7rem;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 550;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile .sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 1.2rem 1rem;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow);
}
.nav-mobile .sheet a {
  text-decoration: none;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid var(--rule);
}

/* Buttons */
.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, #2b80ee, var(--accent));
  color: #fff;
  padding: 0.68rem 1.15rem;
  text-decoration: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 550;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 8px 16px -12px rgba(10, 61, 143, 0.8);
  cursor: pointer;
}
.btn:hover, a.btn:hover { color: #fff; filter: brightness(1.04); }
.btn.ghost, a.btn.ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--rule-strong);
  box-shadow: none;
}
.btn.ghost:hover, a.btn.ghost:hover {
  color: var(--accent-deep);
  border-color: #9bb6de;
  background: #fff;
}
.btn-sm { padding: 0.48rem 0.85rem; font-size: 0.86rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.45rem 0 0;
}

/* Hero */
.hero {
  padding: 3.4rem 0 2.4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2.4rem 3rem;
  align-items: center;
}
.hero h1 { margin-bottom: 0.35em; }

.hero-cert {
  position: relative;
}
.hero-cert::before {
  content: "";
  position: absolute;
  inset: 18% -8% -10% 12%;
  background: radial-gradient(circle at 70% 30%, rgba(26, 115, 232, 0.18), transparent 62%);
  z-index: 0;
  pointer-events: none;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 2.8rem;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-tight);
}
.stats div {
  padding: 1rem 1.1rem 1.05rem;
  border-right: 1px solid var(--rule);
}
.stats div:last-child { border-right: 0; }
.stats strong {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.stats span {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Sections / cards */
.section { margin: 3.1rem 0; }
.section-head { margin-bottom: 1.15rem; max-width: 40rem; }

.grid-4, .grid-2, .grid-3 { display: grid; gap: 1rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }

.panel, .pillar {
  border: 1px solid var(--rule);
  background: var(--card);
  padding: 1.2rem 1.2rem 1.15rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-tight);
}
.pillar {
  position: relative;
  overflow: hidden;
  padding-top: 1.3rem;
}
.pillar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}
.pillar .pct {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
}
.pillar p, .panel p:last-child { margin-bottom: 0; }

.panel ul { margin: 0; padding-left: 1.15rem; }
.panel li { margin: 0.38rem 0; }
.panel li::marker { color: var(--accent); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.85rem;
  color: var(--accent-deep);
  font-weight: 550;
  font-size: 0.92rem;
  text-decoration: none;
}
.link-more::after { content: "→"; }
.link-more:hover { text-decoration: underline; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-tight);
}
table.scale {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
table.scale th,
table.scale td {
  text-align: left;
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.scale thead th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  background: #f8fafc;
}
table.scale tbody tr:last-child td { border-bottom: 0; }
table.scale tbody tr:hover td { background: #f7faff; }
table.scale td:first-child {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 550;
  color: var(--accent-deep);
  width: 4.5rem;
}

/* Prose pages */
.prose {
  max-width: 46.5rem;
  padding: 2.6rem 0 4.4rem;
}
.sample-page { max-width: 52rem; }
.prose > .eyebrow { margin-top: 0.2rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.15rem; }
.prose li { margin: 0.32rem 0; }
.prose .table-wrap { margin: 1rem 0 1.3rem; }

.faq { padding-left: 0; }
.faq details {
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 8px;
  padding: 0;
  margin: 0 0 0.55rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 550;
  padding: 0.85rem 1rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 500;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--ink-soft);
}

/* Certificate */
.cert {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, #1a73e8, #0b1f4a) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}
.cert-frame {
  position: relative;
  margin: 7px;
  padding: 1.15rem 1.15rem 1rem;
  border: 1px solid #c9d5e6;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(26, 115, 232, 0.07), transparent 62%),
    #fff;
  overflow: hidden;
}
.cert-mast {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.95rem;
  border-bottom: 2px solid #0b1f4a;
}
.cert-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.cert-brand img {
  width: 2.7rem;
  height: 2.7rem;
  object-fit: contain;
}
.cert-lab {
  margin: 0.28rem 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cert-serial { text-align: right; }
.cert-serial span,
.kicker {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.cert-serial strong {
  display: block;
  margin-top: 0.12rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.98rem;
}
.cert-serial em {
  display: block;
  margin-top: 0.12rem;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
}
.assess-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 0.85rem;
}
.seal {
  width: 5.1rem;
  height: 5.1rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--accent-deep);
  background:
    radial-gradient(circle at 50% 42%, #fff 0 46%, transparent 47%),
    repeating-conic-gradient(from 0deg, #1a73e8 0 6deg, transparent 6deg 12deg);
  box-shadow: inset 0 0 0 7px #fff, inset 0 0 0 8px #0b1f4a;
}
.seal span {
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.seal b {
  font-family: Outfit, sans-serif;
  font-size: 0.74rem;
  margin: 0.1rem 0;
}
.cert .num {
  font-family: Outfit, sans-serif;
  font-size: 4.4rem;
  line-height: 0.82;
  color: var(--accent);
  font-weight: 560;
  letter-spacing: -0.05em;
}
.cert .label {
  font-family: Outfit, sans-serif;
  font-size: 1.15rem;
  margin: 0.25rem 0 0;
}
.identity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 0.85rem;
  border-top: 1px solid var(--rule);
}
.identity div {
  margin: 0;
  padding: 0.45rem 0.5rem 0.4rem 0;
  border-bottom: 1px solid var(--rule);
}
.identity .wide { grid-column: 1 / -1; }
.identity dt {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.identity dd {
  margin: 0.1rem 0 0;
  font-weight: 550;
}
.sentence {
  font-size: 0.98rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
  margin: 0 0 0.85rem;
}
.range {
  border: 1px solid var(--rule);
  background: #f7f9fc;
  padding: 0.75rem 0.85rem;
  margin: 0 0 0.9rem;
}
.range-num {
  font-family: Outfit, sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-top: 0.12rem;
}
.subs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin: 0 0 0.95rem;
}
.subs div {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 0.5rem 0.4rem 0.45rem;
}
.subs b {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.subs span {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.8rem;
  margin: 0 0 0.8rem;
  padding-top: 0.75rem;
  border-top: 2px solid #0b1f4a;
}
.meta-grid span {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.meta-grid strong { display: block; margin-top: 0.12rem; font-size: 0.86rem; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.8rem; }

/* Footer */
.site-footer {
  margin-top: 4.2rem;
  border-top: 1px solid var(--rule);
  background: #0b1f4a;
  color: #d7e2f3;
}
.site-footer a { color: #d7e2f3; }
.site-footer a:hover { color: #fff; }
.site-footer .inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding: 2.4rem 0 1.6rem;
}
.site-footer .brand img { filter: drop-shadow(0 0 10px rgba(26, 115, 232, 0.45)); }
.site-footer .wordmark .rest { color: #fff; }
.site-footer h3 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}
.foot-links {
  display: grid;
  gap: 0.38rem;
  font-size: 0.9rem;
}
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(215, 226, 243, 0.16);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #9aacc6;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2.2rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(1),
  .stats div:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .stats div:nth-child(2) { border-right: 0; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .nav-desk, .header-cta { display: none; }
  .nav-mobile { display: block; }
  .site-header .inner { min-height: 3.7rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  html, body { font-size: 16px; }
  .wrap { width: min(1120px, calc(100% - 1.4rem)); }
  .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stats div:last-child { border-bottom: 0; }
  .identity, .subs { grid-template-columns: 1fr 1fr; }
  .assess-block { grid-template-columns: 1fr; }
  .cert-mast { flex-direction: column; }
  .cert-serial { text-align: left; }
  .site-footer .inner { grid-template-columns: 1fr; padding-top: 1.8rem; }
  .hero { padding: 1.7rem 0 1.4rem; }
}
