:root {
  --bg-primary: #0b1e3a;
  --bg-secondary: #0f2647;
  --bg-tertiary: #132d52;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --bg-glass: rgba(15, 38, 71, 0.65);
  --bg-glass-light: rgba(255, 255, 255, 0.08);
  --text-primary: #e8edf5;
  --text-secondary: #a8b8d0;
  --text-muted: #6b7f9e;
  --accent: #4d9fff;
  --accent-light: #7ab8ff;
  --accent-dark: #2b6fd4;
  --accent-glow: rgba(77, 159, 255, 0.35);
  --star-gold: #f5c842;
  --gradient-banner: linear-gradient(135deg, #0b1e3a 0%, #1a3a6b 25%, #2b5ea7 50%, #1a3a6b 75%, #0b1e3a 100%);
  --gradient-accent: linear-gradient(135deg, #4d9fff, #6c5ce7);
  --gradient-card-hover: linear-gradient(135deg, rgba(77, 159, 255, 0.12), rgba(108, 92, 231, 0.08));
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(77, 159, 255, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(77, 159, 255, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 1200px;
  --nav-height: 64px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f0f4fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8eef8;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-light: rgba(255, 255, 255, 0.5);
    --text-primary: #1a2a4a;
    --text-secondary: #4a5f80;
    --text-muted: #8899b5;
    --accent: #2b6fd4;
    --accent-light: #4d9fff;
    --accent-dark: #1a4fa0;
    --accent-glow: rgba(43, 111, 212, 0.2);
    --star-gold: #e6a800;
    --gradient-banner: linear-gradient(135deg, #e8eef8 0%, #d0e0f8 25%, #b8d4f5 50%, #d0e0f8 75%, #e8eef8 100%);
    --gradient-accent: linear-gradient(135deg, #2b6fd4, #6c5ce7);
    --gradient-card-hover: linear-gradient(135deg, rgba(43, 111, 212, 0.08), rgba(108, 92, 231, 0.05));
    --border-color: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(43, 111, 212, 0.25);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(43, 111, 212, 0.1);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(77, 159, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(108, 92, 231, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

@media (prefers-color-scheme: light) {
  body::before {
    background:
      radial-gradient(ellipse 80% 50% at 20% 0%, rgba(43, 111, 212, 0.06) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 80% 100%, rgba(108, 92, 231, 0.04) 0%, transparent 60%);
  }
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--accent-light);
}

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

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

ul, ol {
  list-style: none;
}

/* ============ HEADER & NAV ============ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

header:hover {
  box-shadow: var(--shadow-md);
}

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header nav > a {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}

header nav > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-smooth);
}

header nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

header nav ul::-webkit-scrollbar {
  display: none;
}

header nav ul li {
  flex-shrink: 0;
}

header nav ul li a {
  display: block;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

header nav ul li a:hover {
  color: var(--text-primary);
  background: var(--bg-glass-light);
  transform: translateY(-1px);
}

/* ============ MAIN ============ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
  position: relative;
  z-index: 1;
}

/* ============ SECTIONS ============ */
section {
  margin-top: 48px;
  animation: fadeInUp 0.7s ease-out both;
}

section:nth-child(1) { animation-delay: 0.05s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.15s; }
section:nth-child(4) { animation-delay: 0.2s; }
section:nth-child(5) { animation-delay: 0.25s; }
section:nth-child(6) { animation-delay: 0.3s; }
section:nth-child(7) { animation-delay: 0.35s; }
section:nth-child(8) { animation-delay: 0.4s; }
section:nth-child(9) { animation-delay: 0.45s; }
section:nth-child(10) { animation-delay: 0.5s; }
section:nth-child(11) { animation-delay: 0.55s; }
section:nth-child(12) { animation-delay: 0.6s; }
section:nth-child(13) { animation-delay: 0.65s; }
section:nth-child(14) { animation-delay: 0.7s; }
section:nth-child(15) { animation-delay: 0.75s; }
section:nth-child(16) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(77, 159, 255, 0.1); }
  50% { box-shadow: 0 0 40px rgba(77, 159, 255, 0.25); }
}

/* ============ BRAND INTRO / HERO ============ */
#brand-intro {
  margin-top: calc(var(--nav-height) + 40px);
  padding: 56px 40px;
  background: var(--gradient-banner);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-accent);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: pulseGlow 6s ease-in-out infinite;
}

#brand-intro::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(77, 159, 255, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(108, 92, 231, 0.08) 0%, transparent 50%);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

#brand-intro::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234d9fff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

#brand-intro h1 {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 50%, var(--text-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

#brand-intro p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 800px;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

#brand-intro p:last-child {
  margin-bottom: 0;
}

/* ============ HEADINGS ============ */
section > h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 28px;
  position: relative;
  padding-left: 20px;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

section > h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background: var(--gradient-accent);
  border-radius: 3px;
  box-shadow: 0 0 12px var(--accent-glow);
}

section > h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20px;
  width: 60px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  opacity: 0.5;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 10px;
  line-height: 1.4;
}

h3:first-of-type {
  margin-top: 0;
}

/* ============ CARDS ============ */
section > p,
section > article,
section > details,
section > ol,
section > ul {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

section > p::before,
section > article::before,
section > details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

section > p:hover,
section > article:hover,
section > details:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  background: var(--gradient-card-hover), var(--bg-card-hover);
  border-color: var(--border-accent);
}

section > p:hover::before,
section > article:hover::before,
section > details:hover::before {
  opacity: 1;
}

section > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

section > p strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============ ARTICLE ============ */
article {
  position: relative;
}

article h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

article:hover h3 {
  color: var(--accent-light);
}

article p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

article p:last-child {
  margin-bottom: 0;
}

article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 0;
  position: relative;
  transition: color var(--transition-fast), gap var(--transition-fast);
}

article a::after {
  content: '→';
  font-size: 0.9em;
  transition: transform var(--transition-fast);
}

article a:hover {
  color: var(--accent-light);
  gap: 8px;
}

article a:hover::after {
  transform: translateX(3px);
}

/* ============ DETAILS / FAQ ============ */
details {
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth), border-color var(--transition-smooth);
}

details summary {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  transition: color var(--transition-fast);
  user-select: none;
  -webkit-user-select: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-glass-light);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  transition: transform var(--transition-smooth), background var(--transition-smooth), color var(--transition-smooth);
}

details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

details summary:hover {
  color: var(--accent-light);
}

details summary:hover::after {
  background: var(--accent-glow);
  border-color: var(--border-accent);
}

details > p {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.85;
  animation: fadeInUp 0.3s ease-out both;
}

/* ============ LISTS ============ */
section > ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  padding: 20px 24px;
}

section > ul li {
  padding: 0;
}

section > ul li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  position: relative;
}

section > ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: height var(--transition-smooth);
}

section > ul li a:hover {
  color: var(--text-primary);
  background: var(--bg-glass-light);
  border-color: var(--border-color);
  padding-left: 22px;
}

section > ul li a:hover::before {
  height: 60%;
}

/* ============ ORDERED LIST (HOWTO) ============ */
section > ol {
  counter-reset: step-counter;
  padding: 24px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

section > ol li {
  counter-increment: step-counter;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

section > ol li::before {
  content: counter(step-counter);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 50%;
  box-shadow: 0 2px 8px var(--accent-glow);
  margin-top: 2px;
}

section > ol li:hover {
  background: var(--bg-glass-light);
  transform: translateX(4px);
}

/* ============ CONTACT ============ */
#contact h3 {
  margin-top: 24px;
}

#contact h3:first-of-type {
  margin-top: 0;
}

#contact p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 4px 0;
}

#contact p strong {
  color: var(--text-primary);
}

/* ============ FOOTER ============ */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 80px;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-accent);
  opacity: 0.4;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 6px;
}

footer p:first-child {
  font-weight: 600;
  color: var(--text-secondary);
}

footer p:last-child {
  margin-bottom: 0;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}

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

* {
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) var(--bg-primary);
}

/* ============ SELECTION ============ */
::selection {
  background: var(--accent);
  color: #fff;
}

::-moz-selection {
  background: var(--accent);
  color: #fff;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  main {
    padding: 0 20px 48px;
  }

  #brand-intro {
    padding: 44px 32px;
  }

  section > ul {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  body {
    font-size: 15px;
    line-height: 1.7;
  }

  header nav {
    padding: 0 16px;
  }

  header nav > a {
    font-size: 1.1rem;
  }

  header nav ul li a {
    padding: 5px 9px;
    font-size: 0.76rem;
  }

  main {
    padding: 0 16px 40px;
  }

  #brand-intro {
    margin-top: calc(var(--nav-height) + 24px);
    padding: 32px 20px;
    border-radius: var(--radius-lg);
  }

  #brand-intro h1 {
    font-size: 1.35rem;
    margin-bottom: 16px;
  }

  #brand-intro p {
    font-size: 0.92rem;
  }

  section {
    margin-top: 32px;
  }

  section > h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-left: 16px;
  }

  section > h2::before {
    width: 4px;
  }

  section > h2::after {
    left: 16px;
    width: 40px;
  }

  h3 {
    font-size: 1.05rem;
    margin-top: 22px;
    margin-bottom: 8px;
  }

  section > p,
  section > article,
  section > details {
    padding: 18px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
  }

  section > p {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  section > ul {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
    padding: 16px 14px;
  }

  section > ul li a {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  section > ol {
    padding: 18px 18px;
    gap: 8px;
  }

  section > ol li {
    font-size: 0.9rem;
    padding: 8px 10px;
    gap: 10px;
  }

  section > ol li::before {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
  }

  details summary {
    font-size: 0.93rem;
  }

  details summary::after {
    width: 24px;
    height: 24px;
    font-size: 1.1rem;
  }

  details > p {
    font-size: 0.88rem;
    margin-top: 12px;
    padding-top: 12px;
  }

  article {
    padding: 18px 18px;
  }

  article h3 {
    font-size: 1rem;
  }

  article p {
    font-size: 0.88rem;
  }

  footer {
    padding: 28px 16px;
    margin-top: 48px;
  }

  footer p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  header nav ul li a {
    padding: 4px 7px;
    font-size: 0.72rem;
  }

  #brand-intro {
    padding: 24px 16px;
  }

  #brand-intro h1 {
    font-size: 1.2rem;
  }

  #brand-intro p {
    font-size: 0.88rem;
  }

  section > h2 {
    font-size: 1.1rem;
  }

  section > p,
  section > article,
  section > details {
    padding: 16px 14px;
  }

  section > ul {
    grid-template-columns: 1fr 1fr;
  }

  section > ul li a {
    padding: 7px 10px;
    font-size: 0.8rem;
  }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  section {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============ PRINT ============ */
@media print {
  header {
    position: static;
    background: none;
    backdrop-filter: none;
    border-bottom: 1px solid #ccc;
  }

  body::before {
    display: none;
  }

  section > p,
  section > article,
  section > details {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  #brand-intro {
    background: none;
    border: 1px solid #ddd;
    box-shadow: none;
    animation: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ============ HIGH CONTRAST ============ */
@media (prefers-contrast: high) {
  :root {
    --border-color: rgba(255, 255, 255, 0.3);
    --border-accent: rgba(77, 159, 255, 0.6);
    --text-secondary: #c8d8f0;
    --text-muted: #9aaccc;
  }

  section > p,
  section > article,
  section > details {
    border-width: 2px;
  }
}