:root {
  --bg: #06111b;
  --bg-2: #081827;
  --bg-3: #0b2134;
  --panel: rgba(10, 25, 39, .74);
  --panel-2: rgba(12, 34, 52, .78);
  --line: rgba(188, 234, 255, .13);
  --line-2: rgba(208, 243, 255, .08);
  --text: #eefaff;
  --muted: #9cb5c2;
  --dim: #6d8390;
  --ice: #d6fbff;
  --cyan: #80e6ff;
  --cyan-2: #66d6ff;
  --mint: #9ef6e9;
  --glow: rgba(118, 218, 255, .23);
  --nav: 288px;
  --toc: 220px;
  --mx: 50vw;
  --my: 28vh;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.66;
  background:
    radial-gradient(1100px 650px at 0% 0%, rgba(123, 218, 255, .10), transparent 65%),
    radial-gradient(840px 500px at 100% 8%, rgba(124, 249, 231, .08), transparent 62%),
    linear-gradient(180deg, #07111a 0%, #081521 30%, #081a28 60%, #06111b 100%);
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(159, 222, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 222, 255, .03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 16%, black 0%, rgba(0,0,0,.84) 40%, transparent 82%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
::selection { background: rgba(163, 236, 255, .85); color: #05111b; }

#progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 2px;
  z-index: 300;
  background: linear-gradient(90deg, #79deff, #ecfeff, #96f9e4);
  box-shadow: 0 0 18px rgba(121, 222, 255, .65);
}

.sky-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(520px circle at var(--mx) var(--my), rgba(115, 221, 255, .08), transparent 70%),
    radial-gradient(420px circle at 50% -10%, rgba(212, 250, 255, .07), transparent 68%);
}

.snowfield {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.flake {
  position: absolute;
  top: -12px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.95), rgba(212,245,255,.72) 55%, rgba(212,245,255,0) 72%);
  opacity: var(--opacity);
  filter: blur(var(--blur));
  animation: fall linear infinite;
  animation-duration: var(--duration);
  animation-delay: var(--delay);
  transform: translateX(0);
}

@keyframes fall {
  0% { transform: translate3d(0, -3vh, 0) scale(1); }
  100% { transform: translate3d(var(--drift), 110vh, 0) scale(.9); }
}

.sidebar {
  position: fixed;
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: var(--nav);
  z-index: 110;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(11, 25, 38, .88), rgba(9, 22, 33, .82));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .30), inset 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(22px) saturate(135%);
  overflow: auto;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  pointer-events: none;
  background: radial-gradient(280px 120px at 18% 0%, rgba(150, 232, 255, .14), transparent 72%);
}

.sidebar-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 2px 4px 6px;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(227, 252, 255, .08), rgba(77, 198, 235, .05));
  box-shadow: inset 0 0 0 1px rgba(198, 242, 255, .14), 0 8px 24px rgba(0,0,0,.18);
}

.brand-mark span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4feff, #7be4ff);
  box-shadow: 0 0 18px rgba(125, 228, 255, .32);
  transform-origin: 50% 50%;
}

.brand-mark span:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.brand-mark span:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg); }
.brand-mark span:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg); }

.brand-copy b {
  display: block;
  font-size: .9rem;
  font-weight: 820;
  letter-spacing: -.02em;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  color: #7fa0ae;
  font: 730 .58rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.menu-close,
.menu-open {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(169, 229, 255, .04);
}

.menu-close {
  margin-left: auto;
  font-size: 1.2rem;
}

.sidebar-card {
  margin: 14px 2px 18px;
  padding: 14px 15px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(117, 213, 255, .045), rgba(255,255,255,.01));
}

.sidebar-card strong,
.sidebar-card b {
  display: block;
  margin-bottom: 5px;
  color: #dff8fe;
  font-size: .78rem;
}

.sidebar-card span {
  display: block;
  color: #88a4b0;
  font-size: .68rem;
  line-height: 1.6;
}

.search {
  position: relative;
  margin: 0 2px 20px;
}

.search input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: 0;
  color: var(--text);
  background: rgba(175, 233, 255, .03);
}

.search input:focus {
  background: rgba(114, 206, 239, .05);
  box-shadow: 0 0 0 4px rgba(105, 201, 235, .05);
}

.search-kbd {
  position: absolute;
  right: 10px;
  top: 10px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(177, 233, 255, .05);
  color: #6e8a98;
  font: 760 .62rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.nav-group {
  margin: 18px 10px 8px;
  color: #63808e;
  font: 800 .58rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.side-link {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 3px 0;
  padding: 8px 11px;
  border-radius: 14px;
  color: #8eaab6;
  font-size: .77rem;
  font-weight: 700;
  transition: .18s ease;
}

.side-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  opacity: 0;
  border-radius: 99px;
  background: linear-gradient(180deg, #92ebff, #6fd5ff);
  box-shadow: 0 0 12px rgba(121, 222, 255, .5);
}

.side-link::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(121, 222, 255, .10), rgba(121, 222, 255, .03) 55%, transparent);
  transition: .18s ease;
}

.side-link:hover { color: #e3faff; transform: translateX(3px); }
.side-link:hover::after { opacity: 1; }
.side-link.active { color: #f4fdff; }
.side-link.active::before,
.side-link.active::after { opacity: 1; }
.side-link.hidden { display: none; }

.nav-no {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: rgba(171, 232, 255, .04);
  color: #7ca4b6;
  font: 760 .58rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.side-link.active .nav-no { color: #dffbff; background: rgba(126, 219, 255, .11); }
.side-link span:last-child { position: relative; z-index: 1; }

.topbar {
  position: fixed;
  left: calc(var(--nav) + 42px);
  right: 24px;
  top: 18px;
  z-index: 100;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 25, 38, .76), rgba(9, 23, 34, .70));
  box-shadow: 0 20px 60px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(22px) saturate(140%);
}

.top-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top-label {
  color: #6c8795;
  font: 760 .56rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.top-left strong {
  margin-top: 5px;
  font-size: .82rem;
  font-weight: 770;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-chip,
.top-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: .69rem;
  font-weight: 760;
  transition: .16s ease;
}

.top-chip {
  border: 1px solid var(--line-2);
  color: #a7c4ce;
  background: rgba(170, 232, 255, .03);
}

.top-chip:hover { color: var(--text); background: rgba(118, 217, 255, .06); }
.top-chip.pale { cursor: default; }

.top-download {
  border: 1px solid rgba(177, 235, 255, .18);
  color: #07111b;
  background: linear-gradient(135deg, #dffcff, #8de7ff 55%, #a0f4ea 100%);
  box-shadow: 0 8px 26px rgba(93, 203, 243, .18);
}

.top-download:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(93, 203, 243, .24); }

.mobile-shade { display: none; }

.layout {
  position: relative;
  z-index: 2;
  margin-left: calc(var(--nav) + 36px);
  padding-top: 98px;
}

.content-grid {
  width: min(1180px, calc(100% - 58px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 780px) var(--toc);
  gap: 56px;
}

.article {
  min-width: 0;
  padding: 0 0 120px;
}

.panel {
  position: relative;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(9, 24, 38, .70), rgba(9, 24, 36, .58));
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 24px 70px rgba(0,0,0,.18);
  backdrop-filter: blur(20px) saturate(135%);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 120px;
  pointer-events: none;
  border-radius: 30px 30px 0 0;
  background: radial-gradient(380px 90px at 18% 0%, rgba(173, 236, 255, .11), transparent 72%);
}

.hero {
  overflow: hidden;
  padding: 36px 34px;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(190, 237, 255, .10);
  border-radius: 999px;
  color: #b9deeb;
  background: rgba(174, 233, 255, .04);
  font: 760 .62rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9cf3ff;
  box-shadow: 0 0 14px rgba(156, 243, 255, .7);
}

h1 {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: clamp(3rem, 7vw, 5.3rem);
  line-height: .97;
  letter-spacing: -.06em;
  font-weight: 900;
}

h1 span {
  color: transparent;
  background: linear-gradient(125deg, #fff 0%, #dffcff 28%, #8ce7ff 62%, #9ff3e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.inline {
  padding: 2px 6px;
  border: 1px solid rgba(177, 232, 255, .12);
  border-radius: 7px;
  background: rgba(116, 214, 255, .05);
  color: #cdf6ff;
  font: 650 .87em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #d7f6fd;
  background: rgba(168, 230, 255, .03);
  font-size: .76rem;
  font-weight: 780;
}

.hero-button.primary {
  color: #05111b;
  border-color: transparent;
  background: linear-gradient(135deg, #e6fdff, #90e8ff 55%, #a0f8e6 100%);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.stat {
  min-width: 94px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(171, 232, 255, .03);
}

.stat b {
  display: block;
  font-size: 1.1rem;
  font-weight: 840;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: #7d98a5;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.crystal-ring {
  position: relative;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(195, 242, 255, .16);
  background: radial-gradient(circle at 50% 50%, rgba(142, 236, 255, .16), rgba(142, 236, 255, .03) 45%, transparent 70%);
  box-shadow: inset 0 0 80px rgba(128, 220, 255, .08), 0 18px 50px rgba(0,0,0,.18);
}

.crystal-ring::before,
.crystal-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(200, 242, 255, .12);
  border-radius: 50%;
}

.crystal-ring::after {
  inset: 48px;
  border-style: solid;
  opacity: .45;
}

.crystal-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(126, 230, 255, .45));
  box-shadow: 0 0 40px rgba(148, 238, 255, .32);
  transform: translate(-50%, -50%) rotate(45deg);
}

.scan {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 210px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(222, 251, 255, .8), transparent);
  transform-origin: center center;
  opacity: .7;
}

.scan-a { transform: translate(-50%, -50%) rotate(25deg); }
.scan-b { transform: translate(-50%, -50%) rotate(115deg); }

.mini-card {
  position: absolute;
  min-width: 94px;
  padding: 10px 12px;
  border: 1px solid rgba(196, 241, 255, .14);
  border-radius: 14px;
  background: rgba(11, 28, 41, .86);
  box-shadow: 0 12px 26px rgba(0,0,0,.15);
}

.mini-card em {
  display: block;
  color: #7191a1;
  font: 760 .56rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-style: normal;
}

.mini-card strong {
  display: block;
  margin-top: 7px;
  color: #edfdff;
  font: 800 .85rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.input-card { left: -6px; top: 34px; }
.output-card { right: -10px; bottom: 34px; }

.section {
  scroll-margin-top: 96px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-no {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(195, 241, 255, .14);
  border-radius: 12px;
  background: rgba(174, 232, 255, .04);
  color: #b7eefb;
  font: 800 .67rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

h2 {
  margin: 0;
  font-size: 1.78rem;
  line-height: 1.15;
  letter-spacing: -.04em;
}

h3 {
  margin: 30px 0 11px;
  color: #e2f8fd;
  font-size: 1.03rem;
}

p { margin: 0 0 17px; color: var(--muted); }
p strong, li strong { color: #eafcff; }

.marker-demo {
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  gap: 14px;
  align-items: stretch;
  margin: 24px 0;
}

.marker-card {
  min-height: 144px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(166, 229, 255, .035), rgba(255,255,255,.01));
}

.marker-card b {
  display: block;
  margin-top: 12px;
  font-size: .82rem;
}

.marker-card small {
  display: block;
  margin-top: 6px;
  color: #78919d;
  font: 720 .66rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.swatch {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: rgb(19, 211, 173);
  box-shadow: 0 0 30px rgba(19, 211, 173, .18);
}

.swatch.white {
  background: #ffffff;
  box-shadow: 0 0 30px rgba(232, 251, 255, .16);
}

.marker-arrow {
  display: grid;
  place-items: center;
  color: #85a8b7;
  font: 900 1.4rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.callout {
  margin: 22px 0 0;
  padding: 17px 18px;
  border: 1px solid var(--line-2);
  border-left: 2px solid rgba(138, 231, 255, .52);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(118, 217, 255, .05), rgba(255,255,255,.01));
}

.callout.soft {
  border-left-color: rgba(157, 246, 232, .45);
  background: linear-gradient(120deg, rgba(157, 246, 232, .05), rgba(255,255,255,.01));
}

.callout strong {
  display: block;
  margin-bottom: 5px;
  color: #dffafe;
  font: 800 .66rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.callout p { margin: 0; font-size: .9rem; }

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0 22px;
}

.flow-card {
  min-height: 122px;
  padding: 15px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(170, 232, 255, .03), rgba(255,255,255,.008));
}

.flow-card span {
  color: #7fb0c1;
  font: 800 .62rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.flow-card b {
  display: block;
  margin: 10px 0 6px;
  font-size: .83rem;
}

.flow-card small { color: #7e98a5; line-height: 1.55; }

.code {
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(5, 17, 26, .95);
  box-shadow: 0 18px 46px rgba(0,0,0,.18);
}

.code-top {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-2);
  background: rgba(171, 232, 255, .03);
}

.code-name {
  color: #a8d0da;
  font: 760 .67rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.copy {
  margin-left: auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #8ca9b5;
  background: transparent;
  font: 760 .62rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.copy:hover {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(167, 231, 255, .04);
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: #d1edf4;
  font: 500 .8rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  tab-size: 4;
}

.tree {
  margin: 24px 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: rgba(170, 232, 255, .025);
  color: #88a2ae;
  white-space: pre;
  font: 520 .79rem/1.78 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hot { color: #cff6ff; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 22px 0;
}

.steps li {
  position: relative;
  min-height: 54px;
  margin-bottom: 12px;
  padding: 4px 0 4px 52px;
  color: var(--muted);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: rgba(168, 231, 255, .04);
  color: #cff8ff;
  font: 800 .62rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(124, 223, 255, .06), rgba(159, 246, 232, .03));
}

.download-card b {
  display: block;
  font-size: .82rem;
}

.download-card span {
  display: block;
  margin-top: 5px;
  color: #7a93a0;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.download-card a {
  margin-left: auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  color: #07111b;
  background: linear-gradient(135deg, #e5fdff, #8de7ff 55%, #a6f6e7);
  font-size: .71rem;
  font-weight: 800;
}

.toc {
  position: sticky;
  top: 98px;
  align-self: start;
  padding-top: 8px;
}

.toc-shell {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(9, 24, 36, .64), rgba(9, 22, 34, .58));
  box-shadow: inset 0 1px rgba(255,255,255,.03);
  backdrop-filter: blur(18px) saturate(135%);
}

.toc-label {
  display: block;
  margin-bottom: 10px;
  color: #6b8390;
  font: 800 .58rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 1px solid var(--line-2);
  color: #809ba7;
  font-size: .71rem;
  transition: .15s ease;
}

.toc a:hover { color: #dffafe; }
.toc a.active { color: #dffafe; border-left-color: #91eaff; }

@media (max-width: 1080px) {
  :root { --toc: 0px; }
  .content-grid { grid-template-columns: minmax(0, 800px); }
  .toc { display: none; }
  .hero-shell { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 10px; }
}

@media (max-width: 860px) {
  :root { --nav: 0px; }
  .sidebar {
    width: min(300px, calc(100vw - 24px));
    transform: translateX(calc(-100% - 24px));
    transition: transform .22s ease;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .menu-open,
  .menu-close { display: inline-grid; place-items: center; }
  .menu-close { display: inline-grid; }
  .topbar { left: 12px; right: 12px; top: 12px; }
  .layout { margin-left: 0; padding-top: 92px; }
  .content-grid { width: min(100% - 28px, 760px); }
  .mobile-shade {
    position: fixed;
    inset: 0;
    z-index: 105;
    background: rgba(3, 10, 15, .62);
    backdrop-filter: blur(4px);
    display: none;
  }
  body.nav-open .mobile-shade { display: block; }
}

@media (max-width: 620px) {
  .panel { padding: 22px 18px; border-radius: 24px; }
  .hero { padding: 24px 18px; }
  .topbar-inner { flex-wrap: wrap; padding: 10px 12px; }
  .top-actions { width: 100%; margin-left: 0; }
  .top-chip.pale { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-button { width: 100%; }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .marker-demo { grid-template-columns: 1fr; }
  .marker-arrow { transform: rotate(90deg); min-height: 30px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.7rem; }
  .lead { font-size: .98rem; }
  .flow-grid { grid-template-columns: 1fr; }
  .crystal-ring { width: 220px; }
  .input-card, .output-card { position: static; margin-top: 12px; }
  .hero-visual { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flake { animation: none; }
}
body.is-loading {
  overflow: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(700px 360px at 50% 45%, rgba(109, 221, 255, .10), transparent 70%),
    linear-gradient(180deg, #06101a 0%, #081722 54%, #06111a 100%);
  transition: opacity .65s ease, visibility .65s ease;
}

.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(197, 243, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 243, 255, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 48%, black, transparent 78%);
}

.loader::after {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(245,254,255,.96), rgba(190,241,255,.62) 20%, rgba(114,220,255,.18) 46%, transparent 68%);
  transform: scale(.38);
}

.loader-aurora {
  position: absolute;
  left: -12%;
  right: -12%;
  top: 16%;
  height: 48%;
  opacity: .5;
  filter: blur(36px);
  background:
    radial-gradient(ellipse at 28% 42%, rgba(87, 213, 255, .20), transparent 38%),
    radial-gradient(ellipse at 68% 36%, rgba(120, 248, 226, .15), transparent 34%),
    radial-gradient(ellipse at 49% 65%, rgba(190, 242, 255, .12), transparent 40%);
  animation: loaderAurora 3.4s ease-in-out infinite alternate;
}

.loader-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 120px;
  transform: translateY(-50%);
}

.loader-trail {
  position: absolute;
  left: 8vw;
  top: 50%;
  width: 0;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(117,218,255,0), rgba(142,233,255,.4) 10%, rgba(238,253,255,.95) 62%, rgba(149,237,255,.2));
  box-shadow: 0 0 14px rgba(119, 222, 255, .55), 0 0 34px rgba(119, 222, 255, .24);
}

.loader-trail::before,
.loader-trail::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .52;
  background: inherit;
  box-shadow: inherit;
}

.loader-trail::before { transform: translateY(-6px) scaleY(.35); }
.loader-trail::after { transform: translateY(6px) scaleY(.35); }

.loader-flake {
  position: absolute;
  left: 8vw;
  top: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 12px rgba(193, 247, 255, .75)) drop-shadow(0 0 30px rgba(101, 220, 255, .42));
}

.loader-flake i,
.loader-flake::before,
.loader-flake::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(135,232,255,.76) 56%, rgba(113,209,244,.16));
  transform-origin: center;
}

.loader-flake i:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.loader-flake i:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg); }
.loader-flake i:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg); }
.loader-flake::before { transform: translate(-50%, -50%) rotate(30deg); opacity: .4; height: 45px; }
.loader-flake::after { transform: translate(-50%, -50%) rotate(90deg); opacity: .4; height: 45px; }

.loader-flake b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(229, 253, 255, .9);
  transform: translate(-50%, -50%);
}

.loader-title,
.loader-sub {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
}

.loader-title {
  bottom: 25%;
  color: #eafeff;
  font-size: clamp(.9rem, 2vw, 1.08rem);
  font-weight: 820;
  letter-spacing: .04em;
}

.loader-sub {
  bottom: calc(25% - 26px);
  color: #7795a2;
  font: 720 .59rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .15em;
  text-transform: uppercase;
}

body.booting .loader-trail {
  animation: trailGrow 1.45s cubic-bezier(.16,.8,.24,1) .22s forwards;
}

body.booting .loader-flake {
  animation: flakeCross 1.45s cubic-bezier(.16,.8,.24,1) .22s forwards, flakeSpin 1.45s linear .22s forwards;
}

body.booting .loader-title,
body.booting .loader-sub {
  animation: loaderText .7s ease .55s forwards;
}

body.booting .loader::after {
  animation: whiteout .72s ease 1.58s forwards;
}

body.loaded .loader {
  opacity: 0;
  visibility: hidden;
}

body.loaded .reveal-first {
  animation: heroReveal .9s cubic-bezier(.18,.78,.26,1) .12s both;
}

@keyframes trailGrow {
  0% { width: 0; opacity: 0; }
  12% { opacity: 1; }
  100% { width: 84vw; opacity: 1; }
}

@keyframes flakeCross {
  0% { left: 8vw; }
  100% { left: 92vw; }
}

@keyframes flakeSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(.82); }
  65% { transform: translate(-50%, -50%) rotate(420deg) scale(1.08); }
  100% { transform: translate(-50%, -50%) rotate(620deg) scale(.9); }
}

@keyframes loaderText {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes whiteout {
  0% { opacity: 0; transform: scale(.4); }
  55% { opacity: .95; transform: scale(1.15); }
  100% { opacity: .2; transform: scale(2.2); }
}

@keyframes loaderAurora {
  from { transform: translate3d(-2%, 0, 0) rotate(-2deg) scale(1); }
  to { transform: translate3d(3%, 2%, 0) rotate(2deg) scale(1.08); }
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(18px) scale(.988); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.aurora {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 72vw;
  height: 36vh;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .12;
  mix-blend-mode: screen;
}

.aurora-a {
  left: 8vw;
  top: -10vh;
  background: linear-gradient(115deg, rgba(80, 205, 255, .6), rgba(105, 246, 226, .24), transparent 68%);
  animation: auroraFloatA 15s ease-in-out infinite alternate;
}

.aurora-b {
  right: -12vw;
  top: 26vh;
  background: linear-gradient(120deg, transparent 10%, rgba(97, 217, 255, .38), rgba(178, 247, 255, .18));
  animation: auroraFloatB 19s ease-in-out infinite alternate;
}

@keyframes auroraFloatA {
  from { transform: translate3d(-3%, 0, 0) rotate(-7deg) scale(1); }
  to { transform: translate3d(8%, 8%, 0) rotate(5deg) scale(1.16); }
}

@keyframes auroraFloatB {
  from { transform: translate3d(0, -5%, 0) rotate(8deg) scale(.94); }
  to { transform: translate3d(-10%, 7%, 0) rotate(-4deg) scale(1.1); }
}

.ice-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  box-shadow: inset 0 0 150px rgba(1, 9, 15, .52);
}

.panel {
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  left: -35%;
  top: -24%;
  width: 44%;
  height: 150%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg, transparent, rgba(219, 249, 255, .055), transparent);
  transform: skewX(-15deg);
  transition: opacity .25s ease;
}

.panel:hover::after {
  opacity: 1;
  animation: frostSheen 1.2s ease;
}

@keyframes frostSheen {
  from { left: -35%; }
  to { left: 105%; }
}

.ice-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  height: 28px;
  margin: -4px 14px 4px;
  opacity: .58;
}

.ice-divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(158, 231, 255, .18));
}

.ice-divider span:last-child {
  background: linear-gradient(90deg, rgba(158, 231, 255, .18), transparent);
}

.ice-divider b {
  position: relative;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border: 1px solid rgba(196, 242, 255, .34);
  border-radius: 2px;
  background: rgba(128, 220, 255, .06);
  box-shadow: 0 0 12px rgba(117, 216, 255, .18);
}

.crystal-ring {
  animation: crystalBreathe 4.5s ease-in-out infinite;
}

.crystal-core {
  animation: corePulse 2.8s ease-in-out infinite alternate;
}

.scan-a {
  animation: scanOrbitA 8s linear infinite;
}

.scan-b {
  animation: scanOrbitB 11s linear infinite reverse;
}

@keyframes crystalBreathe {
  0%, 100% { transform: scale(1); box-shadow: inset 0 0 80px rgba(128, 220, 255, .08), 0 18px 50px rgba(0,0,0,.18); }
  50% { transform: scale(1.025); box-shadow: inset 0 0 92px rgba(128, 220, 255, .12), 0 20px 60px rgba(61, 171, 215, .09); }
}

@keyframes corePulse {
  from { box-shadow: 0 0 34px rgba(148, 238, 255, .24); }
  to { box-shadow: 0 0 54px rgba(148, 238, 255, .40); }
}

@keyframes scanOrbitA {
  from { transform: translate(-50%, -50%) rotate(25deg); }
  to { transform: translate(-50%, -50%) rotate(385deg); }
}

@keyframes scanOrbitB {
  from { transform: translate(-50%, -50%) rotate(115deg); }
  to { transform: translate(-50%, -50%) rotate(475deg); }
}

.side-link.active .nav-no {
  box-shadow: inset 0 0 0 1px rgba(208, 247, 255, .06), 0 0 18px rgba(105, 215, 255, .10);
}

.top-download,
.hero-button.primary,
.download-card a {
  position: relative;
  overflow: hidden;
}

.top-download::after,
.hero-button.primary::after,
.download-card a::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -70%;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}

.top-download:hover::after,
.hero-button.primary:hover::after,
.download-card a:hover::after {
  left: 125%;
}

@media (max-width: 620px) {
  .loader-flake { width: 60px; height: 60px; }
  .loader-flake i { height: 52px; }
  .loader-title { bottom: 22%; }
  .loader-sub { bottom: calc(22% - 24px); }
  .ice-divider { margin-left: 8px; margin-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  body.is-loading { overflow: auto; }
  .aurora,
  .crystal-ring,
  .crystal-core,
  .scan-a,
  .scan-b,
  .panel:hover::after { animation: none !important; }
}