:root {
  color-scheme: dark;
  --navy: #071426;
  --navy-deep: #040d18;
  --blue: #123a64;
  --cyan: #70dcff;
  --cyan-strong: #9eeaff;
  --white: #f5fbff;
  --muted: #b7c9da;
  --muted-deep: #91a9bd;
  --surface: rgba(12, 34, 56, 0.9);
  --surface-soft: rgba(112, 220, 255, 0.075);
  --line: rgba(255, 255, 255, 0.14);
  --line-bright: rgba(112, 220, 255, 0.3);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  --radius: 20px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--navy); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 8%, rgba(30, 111, 168, 0.27), transparent 34rem),
    radial-gradient(circle at 86% 75%, rgba(38, 175, 200, 0.12), transparent 30rem),
    linear-gradient(145deg, var(--navy), #091c32 58%, #06101e);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--cyan); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { color: var(--cyan-strong); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 5px; }
.container { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 18px; z-index: 100; padding: 10px 16px; background: var(--cyan); color: var(--navy); font-weight: 800; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 20, 38, 0.9);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--white); text-decoration: none; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.025em; }
.brand:hover { color: var(--cyan); }
.brand-mark { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 8px 20px rgba(112, 220, 255, 0.16)); }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.055); color: var(--white); min-width: 48px; min-height: 46px; padding-inline: 12px; font: inherit; font-weight: 750; }
.site-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.site-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 0.94rem; font-weight: 680; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); background: var(--surface-soft); }

.hero { position: relative; overflow: hidden; padding: 82px 0 76px; border-bottom: 1px solid var(--line); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: linear-gradient(rgba(112,220,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(112,220,255,.18) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: center; gap: 64px; }
.hero-brand-mark { margin-bottom: 18px; }
.hero-brand-mark .brand-mark { width: 88px; height: 88px; filter: drop-shadow(0 12px 32px rgba(112, 220, 255, 0.2)); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--cyan); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 25px; height: 2px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 15px rgba(112,220,255,.45); }
h1, h2, h3 { color: var(--white); line-height: 1.13; letter-spacing: -0.04em; text-wrap: balance; }
h1 { max-width: 890px; margin: 0 0 22px; font-size: clamp(2.35rem, 6vw, 4.9rem); }
h2 { margin: 0 0 18px; font-size: clamp(1.85rem, 4vw, 2.9rem); }
h3 { margin: 0 0 10px; font-size: 1.28rem; }
.lede { max-width: 740px; margin: 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 11px 20px; border: 1px solid var(--cyan); border-radius: 12px; background: var(--cyan); color: var(--navy); text-decoration: none; font-weight: 800; box-shadow: 0 10px 30px rgba(112, 220, 255, 0.16); }
.button:hover { background: var(--cyan-strong); color: var(--navy); }
.button.secondary { border-color: var(--line-bright); background: rgba(255,255,255,.035); color: var(--white); box-shadow: none; }
.button.secondary:hover { border-color: var(--cyan); color: var(--cyan); }
.hero-panel { padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.045); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.signal { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.signal:last-child { border: 0; padding-bottom: 0; }
.signal:first-child { padding-top: 0; }
.signal-icon { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line-bright); border-radius: 50%; background: rgba(112,220,255,.07); color: var(--cyan); font-weight: 900; }
.signal strong { display: block; color: var(--white); font-size: .98rem; }
.signal span { display: block; color: var(--muted); font-size: .89rem; line-height: 1.45; }

.section { padding: 76px 0; }
.section.tight { padding: 50px 0; }
.section.white { background: rgba(5, 16, 30, 0.34); }
.section-head { max-width: 770px; margin-bottom: 32px; }
.kicker { margin: 0 0 9px; color: var(--cyan); font-size: .8rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.section-head p, .muted { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.04); box-shadow: 0 14px 38px rgba(0,0,0,.18); backdrop-filter: blur(10px); }
.card:hover { border-color: var(--line-bright); }
.card-number { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border: 1px solid var(--line-bright); border-radius: 50%; background: rgba(112,220,255,.07); color: var(--cyan); font-weight: 850; }
.card p { margin-bottom: 0; color: var(--muted); }
.card-link { display: inline-flex; margin-top: 17px; color: var(--cyan); font-weight: 780; }
.callout { padding: 28px; border-left: 4px solid var(--cyan); border-radius: 0 var(--radius) var(--radius) 0; background: rgba(112,220,255,.075); }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout p { color: #cee1ee; }

.page-hero { position: relative; overflow: hidden; padding: 65px 0 48px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 84% 18%, rgba(112,220,255,.1), transparent 28rem); }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .1; background-image: radial-gradient(circle, var(--cyan) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(90deg, transparent, black); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 880px; font-size: clamp(2.15rem, 5vw, 4rem); }
.breadcrumbs { margin-bottom: 20px; color: var(--muted-deep); font-size: .88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--muted-deep); }
.breadcrumbs a { color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 58px; }
.prose { width: 100%; min-width: 0; max-width: 760px; }
.article-meta { margin: 0 0 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted-deep); font-size: .9rem; }
.prose h2 { margin-top: 48px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { color: #ccdae7; }
.prose li + li { margin-top: 8px; }
.prose code { color: var(--cyan-strong); background: rgba(112,220,255,.08); padding: .08em .32em; border-radius: 5px; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .94rem; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; color: #ccdae7; }
.prose th { background: rgba(112,220,255,.09); color: var(--white); }
.prose a { color: var(--cyan); font-weight: 650; }
.toc { position: sticky; top: 100px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.045); box-shadow: 0 14px 34px rgba(0,0,0,.16); }
.toc strong { display: block; margin-bottom: 9px; color: var(--white); }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li + li { margin-top: 6px; }
.toc a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.toc a:hover { color: var(--cyan); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding: 13px 16px 13px 48px; margin: 9px 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); }
.checklist li::before { content: "✓"; position: absolute; left: 16px; top: 12px; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line-bright); border-radius: 50%; background: rgba(112,220,255,.08); color: var(--cyan); font-weight: 900; }
.data-note { padding: 16px 18px; border: 1px solid var(--line-bright); border-radius: 12px; background: rgba(112,220,255,.075); color: #d8e9f3; font-size: .93rem; }

.cta { padding: 36px; border: 1px solid var(--line-bright); border-radius: 26px; background: linear-gradient(135deg, rgba(18,58,100,.72), rgba(8,27,47,.82)); color: var(--white); box-shadow: var(--shadow); }
.cta h2, .cta h3 { color: var(--white); }
.cta p { color: var(--muted); }
.cta .button.secondary { border-color: rgba(255,255,255,.3); background: transparent; color: var(--white); }

.site-footer { padding: 48px 0 24px; border-top: 1px solid var(--line); background: rgba(4, 13, 24, 0.86); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--white); }
.site-footer p { max-width: 520px; color: var(--muted); }
.footer-title { margin-bottom: 10px; color: var(--white); font-weight: 780; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 7px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted-deep); font-size: .86rem; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(112,220,255,.1); }

@media (max-width: 900px) {
  .hero-grid, .article-layout, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 38px; }
  .article-layout { gap: 28px; }
  .toc { position: static; order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { gap: 26px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 39px; height: 39px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { display: none; position: absolute; inset: 68px 14px auto; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(7,20,38,.98); box-shadow: var(--shadow); }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { display: grid; }
  .site-nav a { width: 100%; }
  .hero { padding: 52px 0 54px; }
  .hero-brand-mark .brand-mark { width: 74px; height: 74px; }
  .page-hero { padding: 44px 0 36px; }
  .section { padding: 56px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-panel, .card, .cta { padding: 22px; }
  .hero-actions .button { width: 100%; }
  .prose table { display: block; overflow-x: auto; }
  .footer-bottom { display: block; }
  .footer-bottom > span { display: block; }
  .footer-bottom > span + span { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  :root { color-scheme: light; }
  .site-header, .site-footer, .toc, .hero-actions { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  h1, h2, h3, .prose p, .prose li { color: #000; }
  .section, .page-hero { padding: 20px 0; }
  a { color: #000; text-decoration: underline; }
}
