:root {
  --bg: #0B0F1A;
  --bg-2: #141C2E;
  --line: #2B3550;
  --purple: #7B2FF7;
  --cyan: #00E5FF;
  --orange: #FF7A00;
  --white: #F4F7FF;
  --muted: #B8B3D1;
  --mint: #2EE6A6;
  --rose: #FF4D6D;
  --rail-w: 276px;
  --content-max: 1360px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --font-display: Impact, "Arial Narrow", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", Consolas, "Courier New", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-left: var(--rail-w);
  color: var(--white);
  background:
    radial-gradient(circle at 82% 8%, rgba(123, 47, 247, .18), transparent 28rem),
    radial-gradient(circle at 18% 92%, rgba(0, 229, 255, .11), transparent 32rem),
    linear-gradient(135deg, #0B0F1A 0%, #0A0D17 48%, #101725 100%);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .055;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, #F4F7FF 3px 4px);
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: 36vh;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(11, 15, 26, .86));
}

a {
  color: var(--cyan);
  text-underline-offset: .2em;
}

a:hover {
  color: var(--white);
}

img,
svg {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -.01em;
}

::selection {
  background: var(--orange);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(255, 122, 0, .16);
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  display: inline-flex;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--bg);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 40;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 28, 46, .98), rgba(11, 15, 26, .98));
  border-right: 1px solid rgba(43, 53, 80, .9);
  box-shadow: 18px 0 60px rgba(0, 0, 0, .38);
}

.site-rail::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--purple), var(--cyan) 46%, var(--orange));
  box-shadow: 0 0 18px rgba(0, 229, 255, .45);
}

.site-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background: repeating-linear-gradient(90deg, transparent 0 18px, #FFFFFF 18px 19px);
  mix-blend-mode: overlay;
}

.rail-inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 20px 22px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: rgba(43, 53, 80, .32);
}

.scroll-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--purple) 55%, var(--orange));
  box-shadow: 0 0 12px rgba(0, 229, 255, .5);
  transition: transform .08s linear;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: conic-gradient(from 210deg, var(--purple), var(--cyan), var(--orange), var(--purple));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 0 28px rgba(123, 47, 247, .32);
  transform: rotate(-4deg);
}

.brand-mark-core {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .06em;
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: .06em;
  font-weight: 900;
}

.brand-text small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .1em;
  white-space: nowrap;
}

.rail-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--orange), #FFAD32);
  color: #170D02;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255, 122, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .22);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.rail-cta:hover {
  color: #170D02;
  transform: translateX(3px);
  box-shadow: 0 16px 36px rgba(255, 122, 0, .3);
}

.cta-index {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: .72;
}

.cta-arrow {
  font-family: var(--font-mono);
  font-size: 16px;
}

.rail-signal {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(43, 53, 80, .9);
  background: rgba(20, 28, 46, .54);
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.rail-signal:hover {
  color: var(--white);
  border-color: rgba(255, 122, 0, .5);
}

.signal-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(20, 28, 46, .8);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle-label {
  font-size: 12px;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
}

.nav-track {
  display: flex;
  flex-direction: column;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(0, 229, 255, .055);
  border-color: rgba(43, 53, 80, .75);
  transform: translateX(2px);
}

.nav-num {
  color: var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .08em;
  text-align: right;
}

.nav-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-link[aria-current="page"] {
  color: var(--white);
  border-color: rgba(0, 229, 255, .34);
  background: linear-gradient(90deg, rgba(123, 47, 247, .34), rgba(0, 229, 255, .04));
  box-shadow: inset 3px 0 0 var(--cyan), 0 0 24px rgba(123, 47, 247, .12);
}

.nav-link[aria-current="page"] .nav-num {
  color: var(--cyan);
}

.nav-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(0, 229, 255, .22);
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(0, 229, 255, .035);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.nav-help:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, .08);
}

.rail-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed rgba(43, 53, 80, .9);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(64px, 10vw, 120px);
  padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 64px) 26px;
  background: linear-gradient(180deg, rgba(20, 28, 46, .25), rgba(11, 15, 26, .92));
  border-top: 1px solid rgba(43, 53, 80, .9);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), var(--orange), transparent);
  opacity: .8;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(0, 1.6fr);
  gap: clamp(32px, 6vw, 80px);
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer-brand {
  min-width: 0;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .06em;
  line-height: 1;
}

.footer-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(0, 229, 255, .2);
}

.footer-line {
  max-width: 42ch;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.footer-contact {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.65;
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.footer-contact-label {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 44px);
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.footer-link::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}

.footer-link:hover {
  color: var(--white);
  transform: translateX(2px);
}

.footer-link:hover::before {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.footer-meta {
  max-width: var(--content-max);
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(43, 53, 80, .85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 122, 0, .32);
  border-radius: var(--radius-pill);
  color: var(--orange);
  background: rgba(255, 122, 0, .055);
  font-size: 11px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
}

.page-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 5vw, 64px) 0;
}

.section {
  margin-block: clamp(54px, 8vw, 104px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 36px;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: .04em;
  color: var(--white);
  text-shadow: 0 0 30px rgba(0, 229, 255, .16);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.lede {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.8;
}

.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.6vw, 6.4rem);
  line-height: .9;
  letter-spacing: .025em;
  color: var(--white);
  text-shadow: 0 0 1px rgba(255, 255, 255, .8), 0 0 26px rgba(123, 47, 247, .36), 0 0 44px rgba(0, 229, 255, .18);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.panel,
.glass-card {
  border: 1px solid rgba(43, 53, 80, .92);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(20, 28, 46, .92), rgba(20, 28, 46, .58));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.panel {
  padding: clamp(20px, 3vw, 32px);
}

.glass-card {
  padding: clamp(20px, 3vw, 32px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(43, 53, 80, .92);
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: rgba(20, 28, 46, .65);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .06em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #FFB347);
  color: #1B0E00;
  box-shadow: 0 14px 34px rgba(255, 122, 0, .24);
}

.btn-primary:hover {
  color: #1B0E00;
  box-shadow: 0 18px 40px rgba(255, 122, 0, .32);
}

.btn-ghost {
  border-color: rgba(0, 229, 255, .28);
  color: var(--white);
  background: rgba(0, 229, 255, .035);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--white);
  background: rgba(0, 229, 255, .08);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(11, 15, 26, .62);
}

.tab {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.tab:hover {
  color: var(--white);
}

.tab[aria-selected="true"] {
  background: rgba(123, 47, 247, .28);
  color: var(--white);
  border-color: rgba(0, 229, 255, .35);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .12);
}

.tab-panel {
  margin-top: 20px;
}

.tab-panel[hidden] {
  display: none;
}

.breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
}

.breadcrumb-list a {
  color: var(--cyan);
  text-decoration: none;
}

.breadcrumb-sep {
  color: var(--line);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(43, 53, 80, .92);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(123, 47, 247, .18), transparent 48%),
    linear-gradient(315deg, rgba(0, 229, 255, .12), transparent 52%),
    linear-gradient(160deg, #141C2E, #0B0F1A);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 4px, rgba(255, 255, 255, .035) 4px 5px);
  opacity: .45;
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--portrait {
  aspect-ratio: 4 / 5;
}

.media-caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.prose {
  max-width: 72ch;
  color: #D6DBF0;
  font-size: clamp(1rem, 1.05vw, 1.08rem);
  line-height: 1.85;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2,
.prose h3 {
  font-family: var(--font-serif);
  color: var(--white);
  line-height: 1.3;
}

.prose a {
  color: var(--cyan);
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose code {
  font-family: var(--font-mono);
  font-size: .92em;
  color: var(--orange);
}

@media (max-width: 1180px) {
  :root {
    --rail-w: 248px;
  }

  .brand-text small {
    display: none;
  }

  .rail-inner {
    padding: 22px 16px;
  }

  .nav-label {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  body {
    padding-left: 0;
  }

  .site-rail {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .36);
  }

  .site-rail::before {
    width: 100%;
    height: 2px;
    inset: 0 0 auto 0;
    background: linear-gradient(90deg, var(--purple), var(--cyan), var(--orange));
  }

  .rail-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    overflow: visible;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }

  .brand-mark-core {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 13px;
  }

  .rail-cta {
    padding: 9px 12px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(255, 122, 0, .2);
  }

  .cta-index {
    display: none;
  }

  .rail-signal {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 14px 16px 18px;
    background: linear-gradient(180deg, rgba(20, 28, 46, .99), rgba(11, 15, 26, .99));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease);
  }

  .site-rail[data-open] .site-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .nav-link {
    grid-template-columns: 26px minmax(0, 1fr);
    padding: 10px 8px;
  }

  .rail-foot {
    display: none;
  }

  .scroll-progress {
    left: 0;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    border-radius: 18px;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    white-space: nowrap;
  }

  .page-main {
    padding-top: 24px;
  }
}

@media (max-width: 560px) {
  .rail-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 9px 12px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .rail-cta {
    padding: 8px 10px;
    font-size: 11px;
  }

  .cta-arrow {
    display: none;
  }

  .nav-toggle {
    min-height: 40px;
    padding: 0 11px;
  }

  .nav-toggle-label {
    display: none;
  }

  .nav-track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-brand-link {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-progress-fill {
    transition: none;
  }

  .site-nav {
    transition: none;
  }
}
