/* ==========================================================
   IM｜电竞「CN」 共享全站样式  /assets/site.css
   赛博朋克电竞指挥中心 · 深蓝紫 × 荧光绿 × 警示橙
   ========================================================== */

/* ---------- 01. Custom Properties ---------- */
:root {
  --c-primary: #2A1B5E;
  --c-primary-light: #6C4DF6;
  --c-accent: #A3FF12;
  --c-warning: #FF7A00;
  --c-dark: #12101F;
  --c-white: #F4F2EE;
  --c-gray: #2E3743;
  --c-moss: #6B8E23;
  --c-terracotta: #C96F4A;
  --c-neon-pink: #B967FF;
  --c-muted: #B8B9C4;
  --c-beige: #EFE9E0;

  --grad-primary: linear-gradient(135deg, #6C4DF6 0%, #2A1B5E 60%, #12101F 100%);
  --grad-cta: linear-gradient(135deg, #A3FF12 0%, #7BC50A 100%);
  --grad-alert: linear-gradient(135deg, #FF7A00 0%, #B967FF 100%);
  --grad-line: linear-gradient(90deg, var(--c-accent) 0%, var(--c-primary-light) 50%, var(--c-warning) 100%);

  --font-heading: "Rajdhani", "DIN Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Menlo", "Consolas", monospace;

  --container: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --radius: 0px;
  --shadow-neon: 0 0 28px rgba(108, 77, 246, 0.35);
  --shadow-green: 0 0 24px rgba(163, 255, 18, 0.3);
  --clip-cut: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  --transition-fast: 0.2s ease;
  --transition-med: 0.35s ease;
  --transition-slow: 0.6s ease;
  --maxw-article: 760px;
}

/* ---------- 02. Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  background: var(--c-dark);
  color: var(--c-white);
  overflow-x: hidden;
  min-height: 100vh;
}

main {
  display: block;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

::selection {
  background: var(--c-primary-light);
  color: var(--c-white);
}

/* ---------- 03. Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1em;
  font-size: 1rem;
  line-height: 1.8;
}

.body-lg {
  font-size: 1.125rem;
}

.caption {
  font-size: 0.875rem;
  color: var(--c-muted);
  letter-spacing: 0.04em;
}

.mono {
  font-family: var(--font-mono);
}

.text-gradient {
  background: linear-gradient(120deg, var(--c-neon-pink) 0%, var(--c-primary-light) 50%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-skew {
  display: inline-block;
  transform: skewX(-8deg);
}

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

.section {
  padding: clamp(64px, 10vw, 128px) 0;
}

.section-head {
  margin-bottom: 48px;
}

.section-head__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-primary-light);
  margin-bottom: 12px;
}

.section-head__tag::before {
  content: "// ";
  color: var(--c-warning);
  font-weight: 700;
}

.section-head__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.grid--gap-sm {
  gap: 16px;
}

.grid--gap-lg {
  gap: 40px;
}

/* ---------- 05. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, border-color 0.25s ease;
}

.btn--primary {
  background: var(--grad-cta);
  color: var(--c-dark);
  box-shadow: var(--shadow-green);
  overflow: hidden;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(163, 255, 18, 0.45);
}

.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn--primary:hover::after {
  left: 100%;
}

.btn--ghost {
  background: transparent;
  color: var(--c-white);
  border: 1px solid rgba(108, 77, 246, 0.7);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.btn--ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  box-shadow: 0 0 18px rgba(163, 255, 18, 0.25);
}

.btn--sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  line-height: 1;
}

.btn__text {
  letter-spacing: 0.08em;
}

/* ---------- 06. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--c-accent);
  color: var(--c-dark);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: top 0.25s ease;
}

.skip-link:focus-visible {
  top: 16px;
  outline: none;
}

/* ---------- 07. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header[data-scrolled="true"],
body.nav-lock .site-header {
  background: rgba(18, 16, 31, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(108, 77, 246, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

/* Scroll progress */
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  min-width: 0;
  background: var(--grad-line);
  z-index: 3;
  pointer-events: none;
  transition: width 0.15s linear;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--c-white);
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--c-primary-light) 0%, var(--c-primary) 100%);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--c-white);
  box-shadow: 0 0 18px rgba(108, 77, 246, 0.4);
  flex-shrink: 0;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.brand:hover .brand__mark {
  box-shadow: 0 0 28px rgba(108, 77, 246, 0.7);
  transform: skewX(-4deg);
}

.brand__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-white);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--c-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------- 08. Main Navigation ---------- */
.main-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(244, 242, 238, 0.82);
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.25s ease;
}

.main-nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  box-shadow: 0 0 8px rgba(163, 255, 18, 0.6);
}

.main-nav__link:hover,
.main-nav__link[aria-current="page"] {
  color: var(--c-white);
}

.main-nav__link:hover::after,
.main-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--c-accent);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

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

/* Download CTA */
.btn--download {
  flex-shrink: 0;
}

/* ---------- 09. Footer ---------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(108, 77, 246, 0.28) 0%, transparent 60%),
    linear-gradient(180deg, #12101F 0%, #1A1230 50%, #2A1B5E 100%);
  color: var(--c-muted);
  padding-top: clamp(48px, 8vw, 80px);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-line);
  z-index: 2;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 77, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 77, 246, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.site-footer > .container {
  position: relative;
  z-index: 2;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 5vw, 64px);
  padding-bottom: clamp(32px, 6vw, 56px);
}

.site-footer__brand .brand {
  margin-bottom: 16px;
}

.brand--footer .brand__mark {
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-neon-pink));
  box-shadow: 0 0 22px rgba(185, 103, 255, 0.35);
}

.site-footer__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
  max-width: 34em;
}

.site-footer__col {
  min-width: 0;
}

.site-footer__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.site-footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--c-primary-light);
  box-shadow: 0 0 8px rgba(108, 77, 246, 0.6);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__link {
  display: inline-flex;
  align-items: flex-start;
  min-height: 28px;
  font-size: 14px;
  color: var(--c-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.site-footer__link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width 0.3s ease;
}

.site-footer__link:hover {
  color: var(--c-accent);
  padding-left: 4px;
}

.site-footer__link:hover::before {
  width: 100%;
}

.site-footer__contact {
  gap: 8px;
}

.site-footer__contact-item {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-muted);
  padding-left: 14px;
  position: relative;
}

.site-footer__contact-item::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 9px;
  color: var(--c-primary-light);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__meta {
  font-size: 13px;
  margin: 0;
  color: var(--c-muted);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer__legal .site-footer__link {
  font-size: 13px;
}

.site-footer__icp {
  font-size: 12px;
  font-family: var(--font-mono);
  color: rgba(184, 185, 196, 0.6);
  margin: 0;
  letter-spacing: 0.04em;
}

/* ---------- 10. Back to Top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-primary-light) 0%, var(--c-primary) 100%);
  color: var(--c-white);
  font-size: 18px;
  border: 1px solid rgba(163, 255, 18, 0.4);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  box-shadow: 0 0 20px rgba(108, 77, 246, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 0 30px rgba(163, 255, 18, 0.5);
  border-color: var(--c-accent);
}

/* ---------- 11. Shared Components ---------- */
.card {
  position: relative;
  background: linear-gradient(160deg, rgba(42, 27, 94, 0.5) 0%, rgba(18, 16, 31, 0.9) 100%);
  border: 1px solid rgba(108, 77, 246, 0.25);
  clip-path: var(--clip-cut);
  padding: clamp(20px, 3.5vw, 36px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(163, 255, 18, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.card--glow {
  box-shadow: var(--shadow-neon);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  line-height: 1;
  white-space: nowrap;
}

.badge--new {
  background: rgba(163, 255, 18, 0.15);
  color: var(--c-accent);
  border: 1px solid rgba(163, 255, 18, 0.4);
}

.badge--hot {
  background: rgba(255, 122, 0, 0.15);
  color: var(--c-warning);
  border: 1px solid rgba(255, 122, 0, 0.4);
}

.badge--pro {
  background: rgba(185, 103, 255, 0.15);
  color: var(--c-neon-pink);
  border: 1px solid rgba(185, 103, 255, 0.4);
}

.data-num {
  font-family: var(--font-mono);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-white);
}

.data-num--green {
  color: var(--c-accent);
  text-shadow: 0 0 18px rgba(163, 255, 18, 0.45);
}

.data-num--orange {
  color: var(--c-warning);
  text-shadow: 0 0 18px rgba(255, 122, 0, 0.45);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-white);
  background: rgba(108, 77, 246, 0.18);
  border-left: 2px solid var(--c-primary-light);
}

/* Accordion / show-more */
.more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-primary-light);
  cursor: pointer;
  transition: color 0.25s ease;
}

.more-toggle:hover,
.more-toggle[aria-expanded="true"] {
  color: var(--c-accent);
}

.more-toggle__icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
  transition: transform 0.3s ease;
}

.more-toggle__icon::before,
.more-toggle__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.more-toggle__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.more-toggle__icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
}

.more-toggle[aria-expanded="true"] .more-toggle__icon::after {
  opacity: 0;
}

[data-more-content] {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}

[data-more-content][data-open="true"] {
  max-height: 520px;
  opacity: 1;
}

/* Image containers */
.img-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-gray) 0%, #1B2129 100%);
  clip-path: var(--clip-cut);
}

.img-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.img-frame--tall::before {
  padding-top: 130%;
}

.img-frame--square::before {
  padding-top: 100%;
}

.img-frame > img,
.img-frame > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame--frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(108, 77, 246, 0.4);
  box-shadow: inset 0 0 30px rgba(108, 77, 246, 0.18);
  pointer-events: none;
}

/* ---------- 12. Reveal Motion ---------- */
[data-reveal] {
  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
}

body.js-enabled [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 13. Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--c-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--c-primary-light), var(--c-primary));
  border-radius: 0;
  border: 2px solid var(--c-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-accent);
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 16, 31, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 24px var(--gutter) 48px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s ease;
    z-index: 999;
  }

  .main-nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(108, 77, 246, 0.25);
  }

  .main-nav__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .main-nav__link {
    display: flex;
    min-height: 52px;
    padding: 0 4px;
    font-size: 17px;
    font-weight: 600;
    color: rgba(244, 242, 238, 0.9);
    letter-spacing: 0.1em;
  }

  .main-nav__link::after {
    left: 0;
    right: auto;
    bottom: 0;
    width: 100%;
    transform: scaleY(0);
    transform-origin: bottom;
    height: 2px;
  }

  .main-nav__link:hover::after,
  .main-nav__link[aria-current="page"]::after {
    transform: scaleY(1);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }

  .btn--download {
    padding: 0 18px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
    --gutter: 16px;
  }

  .btn--download .btn__text {
    display: none;
  }

  .btn--download {
    width: 44px;
    padding: 0;
  }

  .btn--download .btn__icon {
    margin: 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-footer__legal {
    gap: 8px 16px;
  }

  .back-to-top {
    right: 16px;
    bottom: 20px;
  }

  .brand__sub {
    font-size: 8px;
  }

  .section-head__title {
    font-size: 30px;
  }
}

/* ---------- 15. Accessibility & Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  body.js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn--primary::after {
    display: none;
  }

  .main-nav__link::after,
  .site-footer__link::before {
    transition: none;
  }
}

body.nav-lock {
  overflow: hidden;
}
