:root {
  color-scheme: dark;
  --ink: #eff8ff;
  --muted: #a8bfd0;
  --cyan: #48e6ff;
  --green: #75ffbd;
  --gold: #ffdf91;
  --line: rgba(106, 203, 234, .20);
  --panel: rgba(14, 32, 52, .82);
  --bg: #06101d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse 780px 550px at 72% 2%, rgba(21, 150, 185, .19), transparent 70%),
    radial-gradient(ellipse 600px 430px at 1% 29%, rgba(39, 181, 143, .08), transparent 75%),
    linear-gradient(180deg, #091626 0%, #06101d 62%, #030914 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 980px;
  pointer-events: none;
  opacity: .43;
  background-image:
    radial-gradient(circle, rgba(172, 233, 255, .75) .75px, transparent 1.5px),
    radial-gradient(circle, rgba(172, 233, 255, .44) .75px, transparent 1.5px);
  background-size: 130px 142px, 191px 179px;
  background-position: 18px 24px, 75px 65px;
  mask-image: linear-gradient(#000, transparent 95%);
}
a { color: var(--cyan); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: #a4f7ff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.site-shell { position: relative; max-width: 1260px; margin: auto; padding: 0 32px; }
.topbar {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(72, 230, 255, .48); border-radius: 13px;
  background: linear-gradient(145deg, #173b53, #0a1d33);
  box-shadow: inset 0 0 20px rgba(72, 230, 255, .10), 0 0 27px rgba(72, 230, 255, .11);
  color: var(--cyan); font-size: 25px;
}
.brand-name { font: 700 17px/1 "Avenir Next",-apple-system,sans-serif; letter-spacing: -.02em; }
.brand-name small { display: block; margin-top: 7px; font: 700 10px/1 -apple-system,sans-serif; letter-spacing: .18em; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 700; }
.top-actions a { color: var(--muted); text-decoration: none; }
.top-actions a:hover { color: var(--cyan); }
.top-actions .support-link { padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); background: rgba(255,255,255,.025); }

.hero {
  position: relative; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(300px,.92fr);
  min-height: 438px; align-items: center; gap: 28px; padding: 62px 0 58px;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(72,230,255,.40), transparent); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 21px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; box-shadow: 0 0 12px currentColor; }
.hero h1 { max-width: 650px; margin: 0; font: 700 clamp(2.9rem,5.2vw,5.2rem)/1.04 "Avenir Next",-apple-system,sans-serif; letter-spacing: -.065em; }
.hero h1 span { color: var(--cyan); }
.hero-lead { max-width: 590px; margin: 23px 0 0; color: #c5d8e5; font-size: clamp(16px,1.7vw,19px); line-height: 1.55; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-meta span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.035); color: #d5e8f4; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.hero-art { width: 100%; max-height: 390px; filter: drop-shadow(0 0 48px rgba(24,192,236,.13)); }
.hero-art .flow { stroke-dasharray: 11 18; animation: circuit-flow 3s linear infinite; }
@keyframes circuit-flow { to { stroke-dashoffset: -29; } }

.section-kicker { margin: 48px 0 16px; color: var(--muted); font: 700 11px/1 -apple-system,sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.quick-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.fact { min-height: 156px; padding: 23px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(152deg, rgba(24,54,75,.82), rgba(10,27,45,.84)); box-shadow: 0 20px 40px rgba(0,0,0,.09); }
.fact-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: rgba(72,230,255,.12); color: var(--cyan); font: 700 18px/1 "Avenir Next",-apple-system,sans-serif; }
.fact:nth-child(2) .fact-icon { background: rgba(117,255,189,.12); color: var(--green); }
.fact:nth-child(3) .fact-icon { background: rgba(255,223,145,.12); color: var(--gold); }
.fact h3 { margin: 16px 0 4px; font: 700 17px/1.3 "Avenir Next",-apple-system,sans-serif; letter-spacing: -.025em; }
.fact p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.reading-layout { display: grid; grid-template-columns: 238px minmax(0,1fr); align-items: start; gap: 48px; padding: 66px 0 100px; }
.toc { position: sticky; top: 28px; padding: 20px 0; }
.toc-title { margin: 0 0 18px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.toc a { display: block; padding: 9px 0 9px 15px; border-left: 1px solid #244558; color: var(--muted); text-decoration: none; font-size: 13px; line-height: 1.35; }
.toc a:hover, .toc a:focus { border-color: var(--cyan); color: var(--ink); }
.toc .toc-contact { margin-top: 20px; color: var(--cyan); border-left-color: var(--cyan); }
.legal-copy { min-width: 0; max-width: 800px; counter-reset: chapter; }
.legal-copy .document-meta { margin-bottom: 32px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(17,39,59,.64); }
.legal-copy .document-meta p { margin: 0; }
.legal-copy .document-meta p + p { margin-top: 8px; }
.legal-copy h2 { counter-increment: chapter; display: flex; align-items: center; gap: 14px; margin: 45px 0 18px; padding-top: 35px; border-top: 1px solid var(--line); color: var(--ink); font: 700 clamp(21px,2.2vw,27px)/1.25 "Avenir Next",-apple-system,sans-serif; letter-spacing: -.035em; scroll-margin-top: 20px; }
.legal-copy h2::before { content: counter(chapter, decimal-leading-zero); flex: 0 0 auto; color: var(--cyan); font: 700 12px/1 "Avenir Next",-apple-system,sans-serif; letter-spacing: .04em; }
.legal-copy h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-copy p { margin: 0 0 16px; color: #c3d6e3; font-size: 15px; line-height: 1.78; }
.legal-copy strong { color: var(--ink); }
.legal-copy code { color: var(--green); overflow-wrap: anywhere; }
.legal-copy table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; margin: 22px 0 32px; border: 1px solid var(--line); border-radius: 14px; background: rgba(14,32,52,.55); }
.legal-copy th,.legal-copy td { min-width: 110px; padding: 13px 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; line-height: 1.55; }
.legal-copy th { color: var(--cyan); background: rgba(72,230,255,.055); font-weight: 700; }
.footer { display: flex; justify-content: space-between; gap: 18px; padding: 25px 0 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--cyan); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0,1fr) 38%; min-height: 350px; }
  .reading-layout { grid-template-columns: 180px minmax(0,1fr); gap: 28px; }
}
@media (max-width: 690px) {
  .site-shell { padding: 0 20px; }
  .topbar { min-height: 76px; }
  .top-actions { gap: 12px; }
  .top-actions .support-link { padding: 8px 11px; }
  .top-actions .secondary-link { display: none; }
  .hero { display: block; padding: 55px 0 36px; min-height: auto; }
  .hero h1 { font-size: clamp(42px,10vw,66px); }
  .hero-art { display: block; width: min(100%,350px); height: auto; margin: 20px auto -8px; }
  .quick-facts { grid-template-columns: 1fr; gap: 10px; }
  .fact { min-height: auto; padding: 17px; display: grid; grid-template-columns: 37px 1fr; column-gap: 15px; }
  .fact-icon { grid-row: span 2; }
  .fact h3 { margin: 0 0 2px; }
  .fact p { font-size: 12px; }
  .reading-layout { display: block; padding: 52px 0 70px; }
  .toc { position: static; display: flex; overflow-x: auto; gap: 8px; padding: 0 0 14px; margin-bottom: 18px; scrollbar-width: thin; }
  .toc-title { display: none; }
  .toc a, .toc .toc-contact { flex: 0 0 auto; margin: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 99px; white-space: nowrap; font-size: 11px; }
  .legal-copy h2 { margin-top: 37px; padding-top: 29px; }
  .footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-art .flow { animation: none; } }
