/* ==========================================================
   c7娱乐 全局共享样式 /assets/site.css
   ========================================================== */

/* ---------- 1. CSS Variables ---------- */
:root {
  --color-bg: #0B1D3A;
  --color-bg-deep: #071126;
  --color-bg-elevated: #1A2A4A;
  --color-primary: #7B2FBE;
  --color-primary-deep: #3D1A6E;
  --color-accent: #39FF14;
  --color-accent-alt: #FF6A00;
  --color-cyan: #00F0FF;
  --color-text: #E6E6E6;
  --color-text-muted: rgba(230, 230, 230, 0.65);
  --color-border: rgba(0, 240, 255, 0.22);

  --font-heading: "Rajdhani", "Chakra Petch", "Bahnschrift", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Helvetica Neue", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", "Consolas", monospace;

  --header-width: 280px;
  --header-mobile-height: 64px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --neon-cyan: 0 0 12px rgba(0, 240, 255, 0.45);
  --neon-violet: 0 0 18px rgba(123, 47, 190, 0.5);
  --glow-title: 0 0 16px rgba(123, 47, 190, 0.6), 0 0 40px rgba(0, 240, 255, 0.25);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 240, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, #0A1930 0%, var(--color-bg) 45%, #081426 100%);
  background-size: 40px 40px, 40px 40px, auto;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--color-cyan);
  text-shadow: var(--neon-cyan);
}

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

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 3px;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

@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;
  }
}

/* ---------- 3. Skip Link & Scroll Progress ---------- */
.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 5000;
  padding: 10px 22px;
  background: var(--color-accent);
  color: var(--color-bg-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--color-accent);
  transform: translateY(-300%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.5);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--header-width);
  right: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-accent));
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
  z-index: 3000;
  pointer-events: none;
}

/* ---------- 4. Header / Sidebar ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--header-width);
  height: 100vh;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  background: rgba(11, 29, 58, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--color-border);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.45);
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-4) var(--space-4);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.8);
  box-shadow: 0 0 18px rgba(123, 47, 190, 0.5);
  line-height: 1;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.brand:hover .brand__mark {
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.55);
  transform: translateY(-2px);
}

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

.brand__name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text);
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(123, 47, 190, 0.4);
}

.brand__tagline {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-cyan);
  text-shadow: var(--neon-cyan);
  margin-top: 2px;
  white-space: nowrap;
}

/* Navigation */
.site-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-3) var(--space-3);
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  position: relative;
}

.site-nav__link::before {
  content: "";
  position: absolute;
  left: 16px;
  opacity: 0;
  width: 4px;
  height: 4px;
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
  transition: opacity 0.2s ease;
}

.site-nav__link:hover {
  background: rgba(123, 47, 190, 0.18);
  border-left-color: var(--color-cyan);
  color: var(--color-cyan);
  padding-left: 22px;
}

.site-nav__link:hover::before {
  opacity: 1;
}

.site-nav__link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(123, 47, 190, 0.35), rgba(11, 29, 58, 0));
  border-left-color: var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: 0 0 14px rgba(57, 255, 20, 0.35);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  transform: rotate(45deg);
}

/* Header foot */
.site-header__foot {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid rgba(0, 240, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-status__dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.header-version {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(230, 230, 230, 0.4);
}

/* Nav toggle (mobile only visible) */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(11, 29, 58, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--color-cyan);
  box-shadow: var(--neon-cyan);
}

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-cyan);
  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);
}

/* ---------- 5. Main Content Area ---------- */
.site-main {
  margin-left: var(--header-width);
  min-height: 100vh;
  padding: var(--space-7) var(--space-6) var(--space-8);
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse at 82% 8%, rgba(123, 47, 190, 0.09) 0%, transparent 52%),
    radial-gradient(ellipse at 8% 88%, rgba(0, 240, 255, 0.05) 0%, transparent 45%);
}

#main-content {
  scroll-margin-top: 24px;
}

/* ---------- 6. Footer ---------- */
.site-footer {
  margin-left: var(--header-width);
  background: var(--color-bg-deep);
  border-top: 1px solid rgba(0, 240, 255, 0.14);
  padding: var(--space-7) 0 0;
  position: relative;
  z-index: 1;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan) 40%, transparent 70%);
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
}

/* Footer brand */
.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.footer__logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-deep));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
  text-decoration: none;
  box-shadow: 0 0 16px rgba(123, 47, 190, 0.45);
  transition: box-shadow 0.25s ease;
}

.footer__logo:hover {
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.55);
}

.footer__brand-meta {
  min-width: 0;
}

.footer__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.footer__tagline {
  font-size: 12px;
  line-height: 1.9;
  color: var(--color-text-muted);
}

/* Footer columns */
.footer__title {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cyan);
  text-shadow: var(--neon-cyan);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(0, 240, 255, 0.14);
}

.footer__text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text);
}

.footer__text--muted {
  color: var(--color-text-muted);
  font-size: 12px;
}

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

.footer__menu a {
  color: var(--color-text);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  position: relative;
}

.footer__menu a::before {
  content: ">";
  color: var(--color-primary);
  font-family: var(--font-mono);
  margin-right: 6px;
  opacity: 0.7;
}

.footer__menu a:hover {
  color: var(--color-accent);
  padding-left: 6px;
}

/* Footer bottom */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer__copy {
  display: flex;
  gap: 6px;
}

.footer__icp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(230, 230, 230, 0.55);
  letter-spacing: 0.05em;
}

/* ---------- 7. Shared Page Components ---------- */

/* Content container */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.container--wide {
  max-width: 1280px;
}

/* Section */
.section {
  padding: var(--space-7) 0;
}

.section--sm {
  padding: var(--space-5) 0;
}

.section--lg {
  padding: var(--space-8) 0;
}

/* Page header */
.page-header {
  position: relative;
  padding: var(--space-5) 0 var(--space-4);
  margin-bottom: var(--space-6);
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -24px;
  width: 3px;
  background: linear-gradient(180deg, var(--color-cyan), var(--color-primary), transparent);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-cyan);
  text-shadow: var(--neon-cyan);
  margin-bottom: var(--space-2);
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--color-text);
  text-shadow: var(--glow-title);
  margin-bottom: var(--space-3);
}

.page-header__desc {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-muted);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

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

.breadcrumb__sep {
  color: var(--color-primary);
  font-family: var(--font-mono);
  opacity: 0.7;
}

.breadcrumb__current {
  color: var(--color-text);
  font-weight: 600;
}

/* Section heading */
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  text-shadow: 0 0 12px rgba(123, 47, 190, 0.4);
}

.section-heading__num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-cyan);
  text-shadow: var(--neon-cyan);
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cyan);
  background: transparent;
  border: 1px solid var(--color-cyan);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  background: var(--color-cyan);
  color: var(--color-bg-deep);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.4);
  text-shadow: none;
}

.btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-deep);
}

.btn--primary:hover {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.4);
}

.btn--outline {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: var(--neon-violet);
}

/* Card */
.card {
  position: relative;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 0;
  padding: var(--space-4);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--color-cyan);
  border-left: 2px solid var(--color-cyan);
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--color-accent-alt);
  border-right: 2px solid var(--color-accent-alt);
  pointer-events: none;
}

.card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 24px rgba(123, 47, 190, 0.3);
  transform: translateY(-3px);
}

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cyan);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 0;
}

.tag--hot {
  color: var(--color-accent-alt);
  border-color: rgba(255, 106, 0, 0.4);
  background: rgba(255, 106, 0, 0.06);
}

.tag--new {
  color: var(--color-accent);
  border-color: rgba(57, 255, 20, 0.35);
  background: rgba(57, 255, 20, 0.05);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}

.grid--2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

/* Stat */
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-4);
  border-left: 3px solid var(--color-cyan);
  background: linear-gradient(90deg, rgba(123, 47, 190, 0.14), transparent);
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
}

.stat__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Media placeholder */
.media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(123, 47, 190, 0.25) 0%, rgba(11, 29, 58, 0.6) 100%);
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.12);
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 48%, rgba(0, 240, 255, 0.08) 50%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255, 106, 0, 0.05) 50%, transparent 52%);
  background-size: 32px 32px, 24px 24px;
}

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

.media--square {
  aspect-ratio: 1 / 1;
}

/* Filter bar */
[data-filter-bar] {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  margin-bottom: var(--space-4);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

[data-filter-button] {
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

[data-filter-button]:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: var(--neon-cyan);
}

[data-filter-button][aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: var(--neon-violet);
}

[data-filter-item][hidden] {
  display: none !important;
}

/* Reveal */
[data-js] [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-js] [data-reveal][data-revealed] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 8. Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --header-width: 0px;
  }

  .scroll-progress {
    left: 0;
  }

  .site-header {
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--header-mobile-height);
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
    background: rgba(11, 29, 58, 0.96);
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  }

  .site-header__top {
    flex: 1;
    padding: 0;
    border-bottom: none;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
    font-size: 16px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  }

  .brand__name {
    font-size: 17px;
  }

  .brand__tagline {
    font-size: 9px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-mobile-height);
    left: 0;
    right: 0;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    background: rgba(11, 29, 58, 0.98);
    border-bottom: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: max-height 0.35s ease, border-color 0.3s ease, padding 0.3s ease;
  }

  .site-nav[data-open] {
    max-height: calc(100vh - var(--header-mobile-height));
    overflow-y: auto;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav__list {
    gap: 0;
  }

  .site-nav__link {
    padding: 14px 28px;
    border-left: none;
    border-bottom: 1px solid rgba(0, 240, 255, 0.06);
  }

  .site-nav__link:hover {
    padding-left: 34px;
  }

  .site-header__foot {
    display: none;
  }

  .site-main {
    margin-left: 0;
    padding: calc(var(--header-mobile-height) + var(--space-5)) var(--space-4) var(--space-7);
  }

  .site-footer {
    margin-left: 0;
  }

  .site-footer__inner {
    padding: 0 var(--space-4);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-main {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

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

  .footer__brand {
    flex-direction: column;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

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

  .page-header::before {
    left: -16px;
  }

  .btn {
    width: 100%;
  }
}

/* ---------- 9. Misc utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-accent {
  color: var(--color-accent);
}

.text-cyan {
  color: var(--color-cyan);
}

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

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.25), transparent);
  border: none;
  margin: var(--space-5) 0;
}
