:root {
  color-scheme: dark;
  font-family: "DM Sans", system-ui, sans-serif;
  background: #05080d;
  color: #e7eef7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: #05080d; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #68e0eb; outline-offset: 4px; }

.site-header { position: sticky; top: 0; z-index: 200; border-bottom: 1px solid rgba(255,255,255,.08); background: #06080d; box-shadow: 0 18px 55px rgba(0,0,0,.34); }
.site-nav { display: flex; align-items: center; gap: 28px; width: min(100%, 1440px); height: 72px; margin: auto; padding: 0 32px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 12px; padding-right: 8px; color: #f5f8fb; font: 700 18px/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.brand:hover { opacity: .9; }
.brand img { width: auto; height: 36px; }
.brand-accent { background: linear-gradient(90deg, #22d6ee, #1997fd); background-clip: text; color: transparent; }
.nav-links { display: flex; flex: 1; min-width: 0; align-items: center; gap: 12px; }
.nav-pill { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; height: 48px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 0 16px; background: linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025)); box-shadow: inset 0 1px rgba(255,255,255,.05), 0 10px 32px rgba(0,0,0,.18); color: #8995a7; font: 600 14px/1 system-ui, sans-serif; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.nav-pill svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.nav-pill:hover { transform: translateY(-1px); background: rgba(255,255,255,.065); color: #f5f8fb; }
.nav-pill.is-current { border-color: rgba(56,189,248,.25); background: rgba(56,189,248,.12); color: #79e5ec; box-shadow: inset 0 0 0 1px rgba(56,189,248,.08); }
.nav-pill.is-current:hover { color: #79e5ec; }
.nav-utility { display: flex; flex-shrink: 0; align-items: center; gap: 4px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 4px; background: linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025)); box-shadow: inset 0 1px rgba(255,255,255,.05), 0 10px 32px rgba(0,0,0,.18); }
.nav-utility a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; color: #8995a7; transition: background .2s, color .2s, transform .2s; }
.nav-utility a:hover { transform: translateY(-1px); background: rgba(255,255,255,.07); color: #f5f8fb; }
.nav-utility svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.nav-utility .x-icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.utility-divider { width: 1px; height: 20px; margin: 0 2px; background: rgba(255,255,255,.1); }
.mobile-menu { display: none; }

.page { width: min(100%, 1200px); margin: auto; padding: 0 28px; }
.eyebrow { color: #73e0ea; font: 600 11px/1.4 "IBM Plex Mono", monospace; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Bricolage Grotesque", sans-serif; }
h1 { margin: 0; font-size: clamp(2.9rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.06em; }
h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.12; letter-spacing: -.045em; }
h3 { margin: 0; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.025em; }
.intro { position: relative; overflow: hidden; padding: 86px 0 65px; background: radial-gradient(ellipse 65% 80% at 85% 5%, rgba(32, 183, 203, .13), transparent 72%); }
.intro::after { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(95, 130, 157, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(95, 130, 157, .08) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; content: ""; }
.intro .page { position: relative; z-index: 1; }
.intro h1 { max-width: 900px; }
.intro h1 em { color: #f4c365; font-style: normal; }
.intro p:not(.eyebrow) { max-width: 680px; margin: 24px 0 0; color: #b8c8d7; font-size: clamp(1.04rem, 1.6vw, 1.2rem); line-height: 1.65; }
.intro .eyebrow { margin: 0 0 20px; }

.index-main { padding-top: 18px; padding-bottom: 110px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.section-heading .eyebrow { margin: 0; }
.section-heading span { color: #8397ab; font: 500 12px/1.5 "IBM Plex Mono", monospace; }
.feature-card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 38px; border: 1px solid #254454; border-radius: 22px; padding: clamp(24px, 4vw, 48px); background: linear-gradient(125deg, #0c1b27, #08121c 62%, #0b1720); box-shadow: 0 28px 70px rgba(0, 0, 0, .18); }
.feature-card .eyebrow { margin: 0 0 17px; }
.feature-card h2 { max-width: 650px; }
.feature-card h2 a { text-decoration: none; }
.feature-card h2 a:hover { color: #76e4ef; }
.feature-card p { max-width: 650px; margin: 20px 0 0; color: #afc1d0; line-height: 1.68; }
.feature-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: #8ca4b8; font: 500 11px/1.5 "IBM Plex Mono", monospace; }
.read-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: #79e5ec; font-weight: 700; text-decoration: none; }
.read-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.score-card { align-self: center; border: 1px solid #294455; border-radius: 16px; padding: 24px; background: #07111a; }
.score-card > p { margin: 0 0 18px; color: #86e2eb; font: 600 10px/1.4 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.score-row { padding: 15px 0; border-top: 1px solid #1b2f3d; }
.score-row span { color: #aabcc9; font-size: 14px; }
.score-row strong { display: block; margin-top: 8px; color: #f3f7fa; font: 700 17px/1.2 "Bricolage Grotesque", sans-serif; }
.score-card small { display: block; margin-top: 12px; color: #8296a8; line-height: 1.5; }

.article-header { padding: 55px 0 50px; border-bottom: 1px solid #20313d; background: radial-gradient(ellipse 55% 90% at 85% 5%, rgba(32, 183, 203, .12), transparent 74%); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; color: #8da5b7; font-size: 13px; }
.breadcrumb a { color: #8ee2eb; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-header h1 { max-width: 1030px; font-size: clamp(2.5rem, 5.7vw, 5rem); }
.article-header .dek { max-width: 810px; margin: 23px 0 0; color: #c3d2df; font-size: clamp(1.08rem, 1.8vw, 1.27rem); line-height: 1.65; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 30px 0 0; color: #91a7b9; font: 500 12px/1.5 "IBM Plex Mono", monospace; }
.article-layout { display: grid; grid-template-columns: 190px minmax(0, 800px); gap: clamp(36px, 5vw, 84px); align-items: start; padding-top: 58px; padding-bottom: 100px; }
.toc { position: sticky; top: 28px; border-left: 1px solid #2a4350; padding-left: 18px; }
.toc p { margin: 0 0 14px; color: #79dfe8; font: 600 10px/1.4 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.toc a { display: block; margin: 0 0 12px; color: #9db0c0; font-size: 13px; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: #e6f7fa; }
.prose { min-width: 0; color: #bdcbd7; font-size: 16px; line-height: 1.78; }
.prose > p:first-child { margin-top: 0; }
.prose p { margin: 0 0 21px; }
.prose h2 { margin: 64px 0 22px; color: #eef6fc; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: #76dde9; text-underline-offset: 3px; }
.prose a:hover { color: #b7f4fa; }
.prose strong { color: #eaf3f9; }
.prose ol { margin: 0 0 24px; padding-left: 23px; }
.prose li { padding-left: 7px; margin-bottom: 13px; }
.prose code { border: 1px solid #264251; border-radius: 5px; padding: 2px 6px; background: #10202c; color: #f3cc78; font: 500 .9em/1.5 "IBM Plex Mono", monospace; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 23px 0 33px; border: 1px solid #2b4352; border-radius: 12px; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.prose th { color: #ecf5fa; background: #132735; font-weight: 700; text-align: right; white-space: nowrap; }
.prose th:first-child, .prose td:first-child { text-align: left; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid #223744; }
.prose tr:last-child td { border-bottom: 0; }
.prose td { text-align: right; color: #c2d1dc; font-variant-numeric: tabular-nums; }
.prose td:first-child { color: #e6eef4; font-weight: 600; white-space: nowrap; }
.prose .rank-table { min-width: 460px; }
.prose .rank-table td:last-child, .prose .rank-table th:last-child { text-align: left; }
.source-links { color: #8fa6b8; font-size: 13px; line-height: 1.8; }
.source-links a { white-space: nowrap; }
.method-note { margin-top: 66px; border-top: 1px solid #263a47; padding-top: 24px; color: #90a5b5; font-size: 13px; line-height: 1.7; }
.article-cta { margin-top: 60px; border: 1px solid #2a4b59; border-radius: 18px; padding: 29px; background: linear-gradient(120deg, #0b2631, #0a1722); }
.article-cta h2 { margin: 0 0 11px; font-size: 1.7rem; }
.article-cta p { margin: 0; }
.article-cta .read-link { margin-top: 18px; }
.site-footer { border-top: 1px solid #1d2e3a; }
.site-footer .page { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; min-height: 88px; color: #8398aa; font-size: 13px; }
.site-footer a { color: #bdcbd7; text-decoration: none; }
.site-footer a:hover { color: #78e3eb; }

@media (max-width: 800px) {
  .feature-card { grid-template-columns: 1fr; }
  .score-card { width: 100%; }
  .article-layout { display: block; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 42px; border-left: 0; border-bottom: 1px solid #2a4350; padding: 0 0 13px; }
  .toc p { width: 100%; margin-bottom: 4px; }
  .toc a { margin-bottom: 6px; }
}

@media (max-width: 1023px) {
  .site-nav { height: 56px; gap: 8px; padding: 0 12px; }
  .brand { gap: 8px; font-size: 16px; }
  .brand img { height: 32px; }
  .nav-links, .nav-utility { display: none; }
  .mobile-menu { display: block; order: -1; }
  .mobile-menu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: #d1d9e3; cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary:hover, .mobile-menu[open] summary { background: rgba(255,255,255,.06); }
  .mobile-menu summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
  .mobile-menu-panel { position: absolute; top: 56px; right: 0; left: 0; display: grid; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.1); padding: 12px 20px; background: #070a12; box-shadow: 0 24px 42px rgba(0,0,0,.4); }
  .mobile-menu-panel a { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid rgba(255,255,255,.08); padding: 0 12px; color: #e7eef7; font: 600 19px/1.2 "Bricolage Grotesque", sans-serif; text-decoration: none; }
  .mobile-menu-panel a:last-child { border-bottom: 0; }
  .mobile-menu-panel a:hover, .mobile-menu-panel a[aria-current="page"] { color: #79e5ec; }
}

@media (max-width: 520px) {
  .page { padding-left: 18px; padding-right: 18px; }
  .intro { padding: 70px 0 50px; }
  .index-main { padding-bottom: 76px; }
  .article-header { padding: 38px 0; }
  .article-layout { padding-top: 40px; padding-bottom: 72px; }
  .prose { font-size: 15px; }
  .prose h2 { margin-top: 52px; }
}
