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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-white);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 88% 8%, rgba(191, 95, 255, 0.09), transparent 34%),
    radial-gradient(circle at 8% 78%, rgba(0, 255, 178, 0.06), transparent 30%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-left: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
}

h1 { font-size: clamp(30px, 5vw, 48px); }
h2 { font-size: clamp(24px, 4vw, 36px); }
h3 { font-size: clamp(20px, 3vw, 24px); }

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

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

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

:focus-visible {
  outline: 2px solid var(--color-neon);
  outline-offset: 4px;
  border-radius: 4px;
}

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

/* ============ Custom Properties ============ */
:root {
  /* colors */
  --color-bg: #0B1437;
  --color-bg-deep: #060A1F;
  --color-bg-card: #111A3A;
  --color-bg-elevated: #1D2C4F;
  --color-neon: #00FFB2;
  --color-purple: #BF5FFF;
  --color-gold: #FFC857;
  --color-white: #E6E9F0;
  --color-muted: #A0A8C0;
  --color-success: #00E5A0;
  --color-warning: #FFB400;
  --color-danger: #FF5C7A;

  /* typography */
  --font-display: 'Rajdhani', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-mono: 'DIN Alternate', 'Roboto Mono', monospace;

  /* layout */
  --header-width: 280px;
  --container-max: 1200px;
  --container-wide: 1600px;
  --content-padding: clamp(20px, 5vw, 64px);
  --section-space: clamp(56px, 9vw, 100px);

  /* radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* shadow */
  --shadow-card: 0 12px 32px rgba(6, 10, 31, 0.4);
  --shadow-glow-green: 0 0 18px rgba(0, 255, 178, 0.25);

  /* motion */
  --ease: 260ms cubic-bezier(0.22, 0.61, 0.36, 1);

  /* layer */
  --z-header: 1000;
  --z-progress: 2000;
  --z-nav-panel: 1500;
}

/* ============ Layout ============ */
.page-main {
  flex: 1 0 auto;
  min-height: 70vh;
}

.container,
.container-narrow,
.container-wide {
  margin-inline: auto;
  padding-inline: var(--content-padding);
}

.container { width: min(100%, var(--container-max)); }
.container-narrow { width: min(100%, 820px); }
.container-wide { width: min(100%, var(--container-wide)); }

.section {
  padding-block: var(--section-space);
  border-bottom: 1px solid rgba(29, 44, 79, 0.4);
}

.section:last-child {
  border-bottom: none;
}

/* ============ Grid ============ */
.grid-2,
.grid-3,
.grid-4,
.grid-12 {
  display: grid;
  gap: clamp(16px, 3vw, 32px);
}

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

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .span-3,
  .span-4 { grid-column: span 6; }
  .span-5,
  .span-7 { grid-column: span 12; }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-9,
  .span-12 { grid-column: span 12; }
}

/* ============ Section Head ============ */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: clamp(28px, 5vw, 52px);
  max-width: 780px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--color-neon);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.12;
  color: var(--color-white);
  letter-spacing: 0.01em;
}

.section-desc {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-muted);
  max-width: 640px;
}

.chapter-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.chapter-number {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 8vw, 80px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(191, 95, 255, 0.6);
}

.chapter-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  color: var(--color-white);
  padding-top: 8px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    transform var(--ease),
    box-shadow 260ms ease,
    background-color 260ms ease,
    border-color 260ms ease,
    color 260ms ease;
}

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

.btn-primary {
  background: var(--color-neon);
  color: var(--color-bg-deep);
  box-shadow: 0 6px 20px rgba(0, 255, 178, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(0, 255, 178, 0.45);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-purple);
  color: var(--color-purple);
}

.btn-secondary:hover {
  background: rgba(191, 95, 255, 0.12);
  box-shadow: 0 8px 24px rgba(191, 95, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  border-color: var(--color-bg-elevated);
  color: var(--color-white);
}

.btn-ghost:hover {
  border-color: var(--color-neon);
  color: var(--color-neon);
}

/* ============ Labels, Badges, Plaques ============ */
.gallery-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-purple);
  background: rgba(191, 95, 255, 0.08);
  border: 1px solid rgba(191, 95, 255, 0.35);
}

.gallery-label.neon {
  color: var(--color-neon);
  background: rgba(0, 255, 178, 0.08);
  border-color: rgba(0, 255, 178, 0.4);
}

.gallery-label.gold {
  color: var(--color-gold);
  background: rgba(255, 200, 87, 0.08);
  border-color: rgba(255, 200, 87, 0.35);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.badge-green {
  color: var(--color-neon);
  background: rgba(0, 255, 178, 0.1);
  border: 1px solid rgba(0, 255, 178, 0.3);
}

.badge-purple {
  color: var(--color-purple);
  background: rgba(191, 95, 255, 0.1);
  border: 1px solid rgba(191, 95, 255, 0.3);
}

.badge-gold {
  color: var(--color-gold);
  background: rgba(255, 200, 87, 0.1);
  border: 1px solid rgba(255, 200, 87, 0.3);
}

.plaque {
  display: inline-block;
  padding: 14px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-elevated);
  border-left: 3px solid var(--color-neon);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.75;
}

.plaque strong {
  color: var(--color-white);
  font-weight: 600;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-neon);
  letter-spacing: 0.02em;
}

.stat-number.gold { color: var(--color-gold); }
.stat-number.purple { color: var(--color-purple); }

.stat-label {
  font-size: 13px;
  color: var(--color-muted);
  letter-spacing: 0.08em;
}

/* ============ Cards & Media ============ */
.exhibit-card {
  position: relative;
  padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(160deg, var(--color-bg-card) 0%, rgba(17, 26, 58, 0.85) 100%);
  border: 1px solid var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition:
    transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 320ms ease,
    border-color 320ms ease;
}

.exhibit-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 178, 0.35), transparent);
  opacity: 0;
  transition: opacity 320ms ease;
}

.exhibit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 178, 0.4);
  box-shadow: 0 16px 40px rgba(6, 10, 31, 0.55), 0 0 24px rgba(0, 255, 178, 0.12);
}

.exhibit-card:hover::after {
  opacity: 1;
}

.media-frame,
.media-frame-wide,
.media-frame-square,
.media-frame-portrait {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-elevated);
}

.media-frame { aspect-ratio: 16 / 9; }
.media-frame-wide { aspect-ratio: 21 / 9; }
.media-frame-square { aspect-ratio: 1 / 1; }
.media-frame-portrait { aspect-ratio: 3 / 4; }

.media-frame::before,
.media-frame-wide::before,
.media-frame-square::before,
.media-frame-portrait::before {
  content: 'IMG';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(160, 168, 192, 0.35);
}

.media-frame img,
.media-frame-wide img,
.media-frame-square img,
.media-frame-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ Utility ============ */
.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--color-bg-elevated), rgba(29, 44, 79, 0.2));
  margin: clamp(24px, 4vw, 48px) 0;
}

.diag-line {
  display: block;
  height: 2px;
  width: 100%;
  max-width: 220px;
  background: linear-gradient(90deg, var(--color-neon), var(--color-purple), transparent);
  border-radius: 2px;
  transform: skewX(-42deg);
  transform-origin: left center;
  pointer-events: none;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-size: 14px;
  color: var(--color-muted);
}

.breadcrumb-link {
  color: var(--color-muted);
  transition: color 240ms ease;
}

.breadcrumb-link:hover {
  color: var(--color-neon);
}

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

.breadcrumb-current {
  color: var(--color-white);
}

/* ============ Header ============ */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 3000;
  padding: 12px 20px;
  background: var(--color-neon);
  color: var(--color-bg-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top 200ms ease;
}

.skip-link:focus {
  top: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-neon), var(--color-purple));
  box-shadow: 0 0 12px rgba(0, 255, 178, 0.35);
  z-index: var(--z-progress);
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-header);
  display: flex;
  flex-direction: column;
  width: var(--header-width);
  background: linear-gradient(180deg, var(--color-bg-deep) 0%, #081126 100%);
  border-right: 1px solid var(--color-bg-elevated);
  box-shadow: 2px 0 24px rgba(6, 10, 31, 0.35);
}

.site-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-neon) 0%, var(--color-purple) 70%, transparent 100%);
  opacity: 0.35;
  pointer-events: none;
}

.header-brand {
  position: relative;
  padding: 36px 24px 24px;
  border-bottom: 1px solid rgba(29, 44, 79, 0.6);
  overflow: hidden;
}

.header-brand::after {
  content: '';
  position: absolute;
  top: -32px;
  right: -32px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 178, 0.16), transparent 70%);
  pointer-events: none;
}

.brand-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-neon) 0%, var(--color-purple) 100%);
  color: var(--color-bg-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 13px;
  transform: rotate(-4deg);
  box-shadow: var(--shadow-glow-green);
  transition: box-shadow 260ms ease;
}

.brand-link:hover .brand-mark {
  box-shadow: 0 0 26px rgba(0, 255, 178, 0.5);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--color-white);
  letter-spacing: 0.16em;
}

.brand-new {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  color: var(--color-bg-deep);
  background: var(--color-neon);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(0, 255, 178, 0.45);
  transform: translateY(-1px);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 28px 0 0;
  overflow-y: auto;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 24px;
  color: var(--color-muted);
  border-left: 3px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
  transition:
    color var(--ease),
    border-color var(--ease),
    background-color var(--ease),
    transform var(--ease);
}

.nav-index {
  width: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-purple);
  opacity: 0.75;
  letter-spacing: 0.08em;
}

.nav-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.nav-link:hover {
  color: var(--color-white);
  background-color: rgba(29, 44, 79, 0.3);
  border-left-color: var(--color-purple);
  transform: translateX(4px);
}

.nav-link[aria-current="page"] {
  color: var(--color-neon);
  border-left-color: var(--color-neon);
  background: linear-gradient(90deg, rgba(0, 255, 178, 0.08), transparent);
  text-shadow: 0 0 18px rgba(0, 255, 178, 0.35);
}

.nav-link[aria-current="page"] .nav-index {
  color: var(--color-neon);
  opacity: 1;
}

.header-meta {
  margin-top: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(29, 44, 79, 0.6);
}

.header-icp {
  font-size: 12px;
  color: var(--color-muted);
  opacity: 0.6;
  letter-spacing: 0.06em;
}

.header-support {
  font-size: 13px;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  word-break: break-all;
}

.nav-toggle {
  display: none;
  position: relative;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 255, 178, 0.08);
  border: 1px solid rgba(0, 255, 178, 0.35);
  transition:
    background-color var(--ease),
    border-color var(--ease);
}

.nav-toggle:hover {
  background: rgba(0, 255, 178, 0.15);
  border-color: var(--color-neon);
}

.nav-toggle:active {
  transform: scale(0.95);
}

.toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-neon);
  transition: transform 280ms ease, opacity 200ms ease;
}

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

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

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

@media (min-width: 1025px) {
  body {
    padding-left: var(--header-width);
  }

  body::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: var(--color-bg-elevated);
    z-index: var(--z-header);
    pointer-events: none;
  }
}

@media (max-width: 1024px) {
  body {
    padding-top: 64px;
  }

  .site-header {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(6, 10, 31, 0.98);
    border-right: none;
    border-bottom: 1px solid var(--color-bg-elevated);
    box-shadow: 0 4px 20px rgba(6, 10, 31, 0.4);
  }

  .site-header::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-neon), var(--color-purple));
    opacity: 0.5;
  }

  .header-brand {
    padding: 0;
    border-bottom: none;
    overflow: visible;
  }

  .header-brand::after {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 11px;
    border-radius: 10px;
  }

  .brand-name {
    font-size: 17px;
    letter-spacing: 0.1em;
  }

  .brand-new {
    font-size: 9px;
    padding: 1px 6px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: auto;
    right: 0;
    bottom: 0;
    width: min(340px, 85vw);
    padding: 28px 0 0;
    background: var(--color-bg-deep);
    border-left: 1px solid var(--color-bg-elevated);
    box-shadow: -16px 0 40px rgba(6, 10, 31, 0.6);
    z-index: var(--z-nav-panel);
    transform: translateX(105%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 340ms cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity 240ms ease,
      visibility 0s linear 340ms;
  }

  .site-nav[data-open="true"] {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition:
      transform 340ms cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity 240ms ease,
      visibility 0s;
  }

  .nav-link {
    padding: 15px 24px;
  }

  .header-meta {
    padding: 20px 24px;
  }
}

/* ============ Footer ============ */
.site-footer {
  position: relative;
  flex-shrink: 0;
  margin-top: auto;
  background: var(--color-bg-deep);
  border-top: 1px solid var(--color-bg-elevated);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(191, 95, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.footer-glow {
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 255, 178, 0.55), rgba(191, 95, 255, 0.4), transparent 85%);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.4fr 1fr;
  gap: 32px;
  width: min(100%, var(--container-max));
  margin-inline: auto;
  padding: 56px clamp(24px, 5vw, 48px) 40px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-neon), var(--color-purple));
  color: var(--color-bg-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  transform: rotate(-3deg);
  box-shadow: 0 0 14px rgba(0, 255, 178, 0.2);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-white);
  letter-spacing: 0.14em;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 340px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--color-white);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(29, 44, 79, 0.6);
  margin-bottom: 4px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
}

.footer-links a {
  color: var(--color-muted);
  transition: color var(--ease);
}

.footer-links a:hover {
  color: var(--color-neon);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  width: min(100%, var(--container-max));
  margin-inline: auto;
  padding: 18px clamp(24px, 5vw, 48px);
  border-top: 1px solid rgba(29, 44, 79, 0.5);
  font-size: 13px;
  color: var(--color-muted);
}

.footer-icp,
.footer-copy {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

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

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

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ============ Motion & Reveal ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ============ 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;
  }

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