/* ============ 1. Reset & Tokens ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #0B1026;
  --bg-card: #1A1F36;
  --gold: #FFD700;
  --gold-dim: #FFAA00;
  --purple: #9B59B6;
  --magenta: #FF1493;
  --cyan: #00E5FF;
  --white: #FFFFFF;
  --gray-light: #B0B7C3;
  --red: #C0392B;

  --font-head: Impact, 'Arial Black', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Helvetica Neue', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --grad-neon: linear-gradient(135deg, #9B59B6 0%, #FF1493 100%);
  --grad-gold: linear-gradient(135deg, #FFD700 0%, #FFAA00 100%);
  --grad-accent: linear-gradient(90deg, #00E5FF 0%, #FF1493 100%);
  --grad-progress: linear-gradient(90deg, #00E5FF 0%, #FFD700 45%, #FF1493 100%);

  --radius-cut: 4px 18px 4px 18px;
  --shadow-pop: 0 16px 48px rgba(0, 0, 0, 0.5);

  --header-h: 72px;
  --container-w: 1200px;
}

/* ============ 2. Base Typography & Elements ============ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--white);
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(255, 215, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--white);
  text-wrap: balance;
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
}
h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
}
h4 {
  font-size: 18px;
  font-weight: 700;
}

p {
  text-wrap: pretty;
}

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

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

ul, ol {
  list-style: none;
}

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

::selection {
  background: rgba(255, 215, 0, 0.25);
  color: var(--white);
}

#main-content {
  scroll-margin-top: calc(var(--header-h) + 8px);
  min-height: 70vh;
}

/* ============ 3. Header & Navigation ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(11, 16, 38, 0.82) 0%, rgba(11, 16, 38, 0.55) 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header[data-scrolled="true"] {
  background: var(--bg-deep);
  border-bottom-color: rgba(255, 215, 0, 0.22);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad-progress);
  z-index: 3;
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  display: inline-block;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--radius-cut);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.35);
  transition: top 0.25s ease;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--grad-gold);
  color: var(--bg-deep);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.brand-word {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}

.brand-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.brand-sub {
  display: inline-block;
  padding: 0 8px;
  background: var(--grad-gold);
  color: var(--bg-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  line-height: 1.7;
  border-radius: 1px 8px 1px 8px;
}

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

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 6px 8px;
  background: rgba(11, 16, 38, 0.45);
  border: 1px solid rgba(0, 229, 255, 0.14);
  border-radius: 26px 6px 26px 6px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-nav::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 10px 0 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.header-nav:hover {
  background: rgba(11, 16, 38, 0.78);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.12), inset 0 0 20px rgba(255, 215, 0, 0.03);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  border-radius: 2px 10px 2px 10px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 1px;
  height: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.06);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 4px 12px 4px 12px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: var(--gold);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 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);
}

/* ============ 4. Support Float ============ */
.support-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
}

.support-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--grad-gold);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  border: none;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(255, 215, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.support-float-btn::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.9), 0 0 20px rgba(0, 229, 255, 0.3);
  flex-shrink: 0;
  animation: support-pulse 2.4s ease-in-out infinite;
}

.support-float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(255, 215, 0, 0.5);
  filter: brightness(1.05);
}

@keyframes support-pulse {
  0%, 100% {
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.7), 0 0 12px rgba(0, 229, 255, 0.25);
  }
  50% {
    box-shadow: 0 0 16px rgba(0, 229, 255, 1), 0 0 32px rgba(0, 229, 255, 0.5);
  }
}

.support-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(280px, calc(100vw - 40px));
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 4px 22px 4px 22px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.support-pop[data-open] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.support-pop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
}

.support-pop-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.support-pop-line {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-light);
}

.support-pop-link {
  width: 100%;
  margin-top: 16px;
}

/* ============ 5. Footer ============ */
.site-footer {
  position: relative;
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 215, 0, 0.18);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(155, 89, 182, 0.28) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 20, 147, 0.16) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1.1fr;
  gap: 48px;
  padding: 72px 0 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--grad-gold);
  color: var(--bg-deep);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
}

.footer-brand-word {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.footer-brand-sub {
  display: inline-block;
  padding: 0 8px;
  background: var(--grad-gold);
  color: var(--bg-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.28em;
  line-height: 1.7;
  border-radius: 1px 8px 1px 8px;
}

.footer-trust {
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray-light);
  max-width: 300px;
}

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

.footer-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.footer-group-title::before {
  content: "";
  width: 16px;
  height: 4px;
  flex-shrink: 0;
  background: var(--grad-neon);
  border-radius: 4px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  position: relative;
  display: inline-block;
  padding: 2px 0 2px 18px;
  font-size: 14px;
  color: var(--gray-light);
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--grad-gold);
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.footer-link:hover::before {
  transform: translateY(-50%) rotate(135deg);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.footer-group-contact .footer-contact-item {
  flex-wrap: wrap;
}

.footer-contact-list {
  display: grid;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.footer-contact-label {
  flex-shrink: 0;
  min-width: 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.footer-contact-value {
  font-size: 14px;
  color: var(--white);
  word-break: break-all;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  background: rgba(11, 16, 38, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}

.footer-copy,
.footer-icp {
  font-size: 13px;
  color: var(--gray-light);
}

/* ============ 6. Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  background: var(--grad-gold);
  color: var(--bg-deep);
  border: 2px solid transparent;
  border-radius: var(--radius-cut);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 3px 14px 3px 14px;
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline:hover {
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold-dim);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn-ghost:hover {
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.18);
}

/* ============ 7. Layout & Grids ============ */
.container {
  width: min(var(--container-w), 92%);
  margin-inline: auto;
}

.container-narrow {
  width: min(860px, 92%);
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

/* ============ 8. Sections & Components ============ */
.section {
  position: relative;
  padding: 96px 0;
}

.section-band {
  position: relative;
}

.section-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(155, 89, 182, 0.16) 0%, rgba(255, 20, 147, 0.07) 55%, rgba(0, 229, 255, 0.05) 100%);
  clip-path: polygon(0 32px, 100% 0, 100% calc(100% - 32px), 0 100%);
  z-index: -1;
  pointer-events: none;
}

.section-band > * {
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 40px;
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-transform: uppercase;
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: 4px 18px 4px 18px;
  padding: 28px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 12px 36px rgba(0, 229, 255, 0.12);
  transform: translateY(-3px);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 2px 10px 2px 10px;
  white-space: nowrap;
}

.tag-gold {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
}

.tag-magenta {
  color: var(--magenta);
  background: rgba(255, 20, 147, 0.08);
  border-color: rgba(255, 20, 147, 0.3);
}

/* ============ 9. Breadcrumb ============ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 14px;
  color: var(--gray-light);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--cyan);
  font-size: 12px;
}

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

/* ============ 10. Figure / Image Placeholder ============ */
.figure-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 22%, rgba(155, 89, 182, 0.3), transparent 60%),
    radial-gradient(circle at 78% 78%, rgba(0, 229, 255, 0.18), transparent 52%),
    var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 4px 24px 4px 24px;
}

.figure-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(255, 215, 0, 0.028) 10px,
    rgba(255, 215, 0, 0.028) 11px
  );
}

.figure-frame::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  clip-path: polygon(0 50%, 25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%);
  transform: translate(-50%, -50%);
  opacity: 0.35;
}

/* ============ 11. Decorations ============ */
.deco-line {
  position: relative;
  display: block;
  height: 1px;
  margin: 32px 0;
  background: linear-gradient(90deg, var(--magenta), transparent);
  border: none;
}

.deco-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.vertical-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gray-light);
  line-height: 1.6;
}

.poster-title {
  font-family: var(--font-head);
  font-size: clamp(48px, 10vw, 112px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--white);
  text-transform: uppercase;
}

.title-glow {
  text-shadow: 0 0 32px rgba(0, 229, 255, 0.32), 0 0 64px rgba(255, 20, 147, 0.22);
}

.title-gold-glow {
  text-shadow: 0 0 32px rgba(255, 215, 0, 0.4), 0 0 64px rgba(255, 170, 0, 0.2);
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
}

.text-outline-cyan {
  color: transparent;
  -webkit-text-stroke: 2px var(--cyan);
}

/* ============ 12. Utilities ============ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

@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;
    transition-delay: 0ms !important;
  }
}

/* ============ 13. Responsive ============ */
@media (max-width: 980px) {
  :root {
    --header-h: 64px;
  }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px 16px 20px;
    background: rgba(11, 16, 38, 0.98);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-top: none;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    max-height: calc(100vh - var(--header-h) - 8px);
    overflow-y: auto;
  }

  .header-nav::before {
    display: none;
  }

  .header-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    display: block;
    padding: 14px 18px;
    font-size: 17px;
    border-left: 2px solid transparent;
    border-radius: 0 10px 0 10px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
    color: var(--gold);
    text-shadow: none;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

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

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

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
  }

  .section {
    padding: 64px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .support-float {
    right: 14px;
    bottom: 14px;
  }

  .support-float-btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .support-pop {
    width: min(280px, calc(100vw - 28px));
  }
}
