:root {
  --cobalt: #0B2A6B;
  --navy: #071A40;
  --lime: #C6F24E;
  --lime-pale: #E6FBB0;
  --orange: #FF7A3D;
  --charcoal: #12151A;
  --rock: #6E7A8A;
  --paper: #F7F8F4;
  --moss: #3E5B3A;
  --terracotta: #B4653F;
  --grid: #1E3C7A;
  --grid-line: rgba(30, 60, 122, 0.35);
  --line: rgba(18, 21, 26, 0.14);
  --line-light: rgba(247, 248, 244, 0.16);
  --font-display: "Barlow Condensed", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", Georgia, serif;
  --container: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-width: 280px;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(30, 60, 122, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 60, 122, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--lime);
  color: var(--navy);
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin-bottom: 1em;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

ol,
ul {
  margin-top: 0;
}

 :where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

#main-content:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--lime);
  color: var(--navy);
  border: 2px solid var(--navy);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top 180ms var(--ease);
}

.skip-link:focus {
  top: 14px;
  color: var(--navy);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 180ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    transform 180ms var(--ease);
}

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

.button--lime {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--lime);
}

.button--lime:hover {
  background: var(--lime-pale);
  color: var(--navy);
  border-color: var(--lime-pale);
}

.button--dark {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}

.button--dark:hover {
  background: var(--cobalt);
  color: var(--paper);
  border-color: var(--cobalt);
}

.button--outline {
  background: transparent;
  color: var(--paper);
  border-color: currentColor;
}

.button--outline:hover {
  background: var(--paper);
  color: var(--cobalt);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
  transition: padding 200ms var(--ease);
}

.site-header[data-scrolled="true"] {
  padding-top: 8px;
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  background: rgba(7, 26, 64, 0.28);
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime) 0%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: left center;
}

.nav-shell {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  width: 100%;
  max-width: var(--container);
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 10px 8px 16px;
  background:
    linear-gradient(to right, rgba(198, 242, 78, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(198, 242, 78, 0.04) 1px, transparent 1px),
    rgba(7, 26, 64, 0.94);
  background-size: 32px 32px, 32px 32px, auto;
  color: var(--paper);
  border: 1px solid rgba(198, 242, 78, 0.24);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(7, 26, 64, 0.18);
  backdrop-filter: blur(14px);
  transition:
    max-width 220ms var(--ease),
    min-height 220ms var(--ease),
    padding 220ms var(--ease),
    border-color 220ms var(--ease);
}

.site-header[data-scrolled="true"] .nav-shell {
  max-width: 1100px;
  min-height: 54px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-color: rgba(198, 242, 78, 0.42);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
}

.brand:hover {
  color: var(--paper);
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(198, 242, 78, 0.72);
  background-image:
    linear-gradient(to right, rgba(198, 242, 78, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(198, 242, 78, 0.16) 1px, transparent 1px);
  background-size: 8px 8px;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--lime);
  opacity: 0.9;
}

.brand-mark::before {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.brand-mark::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.brand-mark__dot {
  position: absolute;
  inset: 9px;
  border: 1px solid var(--lime);
  transform: rotate(45deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-copy__name {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-copy__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: rgba(247, 248, 244, 0.5);
}

.primary-nav {
  min-width: 0;
  justify-self: center;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(247, 248, 244, 0.72);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 180ms var(--ease),
    color 180ms var(--ease);
}

.nav-link::before {
  content: none;
}

.nav-link:hover {
  background: rgba(198, 242, 78, 0.12);
  color: var(--paper);
}

.nav-link[aria-current="page"] {
  background: var(--lime);
  color: var(--navy);
  font-weight: 700;
}

.nav-link[aria-current="true"] {
  color: var(--lime);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  background: rgba(198, 242, 78, 0.06);
  color: var(--lime-pale);
  border: 1px solid rgba(198, 242, 78, 0.3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.04em;
  transition:
    background-color 180ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease);
}

.version-chip:hover {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--lime);
}

.version-chip__dot {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(198, 242, 78, 0.12);
}

.version-chip:hover .version-chip__dot {
  background: var(--navy);
  box-shadow: 0 0 0 3px rgba(7, 26, 64, 0.14);
}

.version-chip__text {
  white-space: nowrap;
}

.header-cta {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 11px;
  background: rgba(198, 242, 78, 0.08);
  color: var(--paper);
  border: 1px solid rgba(198, 242, 78, 0.34);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.06em;
  transition:
    background-color 180ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease);
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--lime);
}

.nav-toggle__bars {
  display: grid;
  gap: 5px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms var(--ease);
}

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

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

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 130;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  background: var(--lime);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 2px;
  box-shadow: 6px 6px 0 rgba(7, 26, 64, 0.25);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition:
    opacity 180ms var(--ease),
    transform 180ms var(--ease);
}

.copy-toast[data-visible="true"] {
  opacity: 1;
  transform: translate(-50%, 0);
}

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 9vw, 128px);
}

.section--paper {
  background-color: var(--paper);
  color: var(--charcoal);
}

.section--dark {
  background-color: var(--cobalt);
  background-image:
    linear-gradient(to right, rgba(198, 242, 78, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(198, 242, 78, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--paper);
}

.section--lime {
  background-color: var(--lime-pale);
  color: var(--charcoal);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: clamp(26px, 5vw, 84px);
  padding-top: clamp(20px, 3vw, 36px);
  margin-bottom: clamp(36px, 6vw, 72px);
  border-top: 1px solid var(--grid-line);
}

.section--dark .section-heading {
  border-color: rgba(247, 248, 244, 0.2);
}

.section-index {
  margin: 0 0 12px;
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section--dark .section-index {
  color: var(--lime);
}

.section-title {
  margin: 0;
  color: inherit;
  font-size: clamp(34px, 5vw, 64px);
}

.section-lede {
  max-width: 58ch;
  margin: 0;
  color: var(--rock);
  font-size: 16px;
  line-height: 1.65;
}

.section--dark .section-lede {
  color: rgba(247, 248, 244, 0.72);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
  letter-spacing: 0.04em;
}

.serif-note {
  color: var(--moss);
  font-family: var(--font-serif);
  font-size: 0.95em;
  font-style: italic;
  letter-spacing: 0.01em;
}

.section--dark .serif-note {
  color: var(--lime-pale);
}

.page-grid,
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.span-7 {
  grid-column: span 7;
}

.span-5 {
  grid-column: span 5;
}

.breadcrumb {
  margin: 0;
  color: var(--rock);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--grid-line);
}

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

.breadcrumb a:hover {
  color: var(--orange);
}

.rule-line {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--grid-line);
}

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--grid-line);
  border-radius: 2px;
  background:
    radial-gradient(circle at 70% 15%, rgba(198, 242, 78, 0.18), transparent 28%),
    linear-gradient(145deg, var(--cobalt), var(--navy));
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(247, 248, 244, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 248, 244, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.media-frame__inner {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
}

.media-frame__inner img,
.media-frame__inner svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  margin: 0;
  padding: 30px 18px 14px;
  background: linear-gradient(to top, rgba(7, 26, 64, 0.92), transparent);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

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

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

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 240ms var(--ease),
    transform 240ms var(--ease);
}

[data-reveal][data-visible="true"] {
  opacity: 1;
  transform: none;
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(198, 242, 78, 0.14), transparent 27%),
    linear-gradient(135deg, var(--cobalt) 0%, var(--navy) 64%);
  color: var(--paper);
  border-top: 1px solid var(--lime);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(198, 242, 78, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(198, 242, 78, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.footer-inner {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
  padding-block: clamp(42px, 6vw, 82px) 28px;
}

.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(176px, 230px);
  align-items: stretch;
  gap: clamp(22px, 4vw, 48px);
  padding: clamp(24px, 4vw, 48px);
  background: var(--lime-pale);
  color: var(--charcoal);
  border: 2px solid var(--navy);
  border-radius: 2px;
  box-shadow: 10px 10px 0 rgba(7, 26, 64, 0.34);
}

.download-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 78px;
  height: 78px;
  background-image:
    linear-gradient(to right, rgba(11, 42, 107, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 42, 107, 0.22) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
}

.download-panel__main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.download-panel .section-index {
  color: var(--moss);
}

.download-panel__title {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 0.94;
}

.download-panel__text {
  max-width: 58ch;
  margin: 0 0 20px;
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.55;
}

.download-steps {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid rgba(11, 42, 107, 0.24);
  border-bottom: 1px solid rgba(11, 42, 107, 0.24);
  list-style: none;
}

.download-step {
  display: flex;
  flex: 1 1 150px;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 14px 8px 0;
  color: var(--charcoal);
  font-size: 13px;
  line-height: 1.35;
}

.download-step + .download-step {
  padding-left: 14px;
  border-left: 1px solid rgba(11, 42, 107, 0.2);
}

.download-step__num {
  flex: 0 0 auto;
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.download-panel__cta {
  width: fit-content;
}

.download-panel__count {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  min-height: 100%;
  padding: clamp(16px, 3vw, 28px);
  background: var(--lime);
  border-left: 2px solid var(--navy);
  color: var(--navy);
  text-align: right;
}

.download-panel__count-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.download-panel__count-label {
  display: block;
  margin-top: 12px;
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 80px);
}

.footer-block {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 248, 244, 0.18);
}

.footer-block--brand {
  border-top-color: rgba(198, 242, 78, 0.46);
}

.footer-title {
  margin: 0 0 16px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--lime);
}

.footer-note {
  max-width: 34ch;
  margin: 0 0 18px;
  color: rgba(247, 248, 244, 0.66);
  font-size: 13px;
  line-height: 1.55;
}

.footer-mono {
  margin: 0;
  color: var(--lime-pale);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  line-height: 1.45;
}

.footer-links a,
.footer-contact a {
  color: rgba(247, 248, 244, 0.76);
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--lime);
}

.footer-contact li {
  color: rgba(247, 248, 244, 0.66);
}

.footer-contact a {
  display: inline-block;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(38px, 5vw, 64px);
  padding-top: 18px;
  border-top: 1px solid rgba(247, 248, 244, 0.16);
  color: rgba(247, 248, 244, 0.58);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.footer-bottom p {
  margin: 0;
}

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

.footer-legal a {
  color: rgba(247, 248, 244, 0.66);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--lime);
}

@media (max-width: 1180px) {
  .nav-link {
    padding-inline: 9px;
    font-size: 12.5px;
  }

  .brand-copy__meta {
    display: none;
  }

  .version-chip {
    padding-inline: 9px;
  }

  .header-cta {
    padding-inline: 12px;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 10px 12px 0;
  }

  .nav-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 56px;
    padding: 7px 8px 7px 14px;
    border-radius: 20px;
  }

  .site-header[data-scrolled="true"] .nav-shell {
    max-width: none;
    min-height: 56px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .brand-copy__name {
    font-size: 16px;
  }

  .header-tools {
    gap: 8px;
  }

  .version-chip,
  .header-cta {
    display: none;
  }

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

  .primary-nav {
    position: fixed;
    top: 78px;
    right: 12px;
    left: 12px;
    z-index: 90;
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
    overflow: auto;
    padding: 18px;
    background:
      linear-gradient(to right, rgba(198, 242, 78, 0.06) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(198, 242, 78, 0.05) 1px, transparent 1px),
      linear-gradient(160deg, rgba(11, 42, 107, 0.99), rgba(7, 26, 64, 0.99));
    background-size: 32px 32px, 32px 32px, auto;
    border: 1px solid rgba(198, 242, 78, 0.45);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(7, 26, 64, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity 200ms var(--ease),
      transform 200ms var(--ease),
      visibility 200ms var(--ease);
  }

  .site-header[data-open="true"] .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .site-header[data-open="true"] .nav-shell {
    border-color: var(--lime);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    counter-reset: nav-counter;
  }

  .nav-link {
    justify-content: flex-start;
    gap: 14px;
    min-height: 0;
    padding: 14px 12px;
    border: 1px solid rgba(247, 248, 244, 0.1);
    border-radius: 2px;
    color: rgba(247, 248, 244, 0.86);
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.1;
    white-space: normal;
  }

  .nav-link::before {
    content: "0" counter(nav-counter);
    counter-increment: nav-counter;
    flex: 0 0 auto;
    color: var(--lime);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .nav-link[aria-current="page"] {
    background: var(--lime);
    color: var(--navy);
    border-color: var(--lime);
  }

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

  .download-panel {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 210px);
  }

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

  .footer-block--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .page-grid,
  .grid-12 {
    grid-template-columns: 1fr;
  }

  .span-7,
  .span-5 {
    grid-column: 1 / -1;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .download-panel__count {
    align-items: flex-start;
    min-height: 0;
    padding: 18px;
    border-top: 2px solid var(--navy);
    border-left: 0;
    text-align: left;
  }

  .download-panel__count-num {
    font-size: clamp(44px, 13vw, 68px);
  }

  .download-panel__count-label {
    margin-top: 8px;
  }

  .download-step {
    flex-basis: 100%;
    padding-left: 0;
    border-left: 0;
  }

  .download-step + .download-step {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(11, 42, 107, 0.16);
  }

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

  .footer-block--brand {
    grid-column: auto;
  }

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

@media (max-width: 560px) {
  .site-header {
    padding: 8px 8px 0;
  }

  .nav-shell {
    min-height: 54px;
    padding: 6px 7px 6px 11px;
    border-radius: 16px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-mark__dot {
    inset: 8px;
  }

  .brand-copy__name {
    font-size: 14.5px;
  }

  .nav-toggle__label {
    display: none;
  }

  .primary-nav {
    top: 70px;
    right: 8px;
    left: 8px;
    padding: 12px;
    border-radius: 14px;
  }

  .nav-link {
    font-size: 19px;
  }

  .download-panel {
    padding: 22px 18px;
    box-shadow: 6px 6px 0 rgba(7, 26, 64, 0.3);
  }

  .download-panel__title {
    font-size: clamp(33px, 11vw, 48px);
  }
}

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

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
