:root {
  --primary: #ff2d55;
  --primary-dark: #d61c3f;
  --primary-light: #ff6b8a;
  --secondary: #7b2ff7;
  --secondary-dark: #5a1fd4;
  --accent: #00d4ff;
  --accent-dark: #0099cc;
  --bg: #0f0f1a;
  --bg-alt: #1a1a2e;
  --bg-card: rgba(30, 30, 50, 0.72);
  --bg-card-hover: rgba(40, 40, 65, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-hover: rgba(255, 255, 255, 0.1);
  --text: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6c6c80;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 45, 85, 0.4);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(255, 45, 85, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5fa;
    --bg-alt: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-card-hover: rgba(255, 255, 255, 0.92);
    --bg-glass: rgba(0, 0, 0, 0.04);
    --bg-glass-hover: rgba(0, 0, 0, 0.08);
    --text: #1a1a2e;
    --text-secondary: #555570;
    --text-muted: #8888a0;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(255, 45, 85, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(255, 45, 85, 0.15);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(123, 47, 247, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 45, 85, 0.08), transparent),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(0, 212, 255, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

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

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

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

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

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

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

ul, ol {
  list-style: none;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

@media (prefers-color-scheme: light) {
  header {
    background: rgba(245, 245, 250, 0.78);
  }
}

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

header nav > div:first-child {
  flex-shrink: 0;
}

header nav > div:first-child a {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

header nav > div:first-child a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

header nav ul li a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  opacity: 0;
  transform: scale(0.85);
  transition: var(--transition);
}

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

header nav ul li a:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ===== MAIN ===== */
main {
  position: relative;
  z-index: 1;
  padding-top: var(--header-height);
}

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

section:first-of-type {
  padding-top: 100px;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  max-width: 100%;
  padding: 120px 24px 100px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.15) 0%, rgba(255, 45, 85, 0.1) 50%, rgba(0, 212, 255, 0.08) 100%);
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 45, 85, 0.06), transparent, rgba(123, 47, 247, 0.06), transparent);
  animation: heroRotate 20s linear infinite;
  pointer-events: none;
}

@keyframes heroRotate {
  to { transform: rotate(360deg); }
}

#hero h1 {
  position: relative;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 28px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 40%, var(--secondary) 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease-out both;
}

#hero p {
  position: relative;
  max-width: 780px;
  margin: 0 auto 20px;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.85;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

#hero p:last-child {
  animation-delay: 0.3s;
}

/* ===== SECTION HEADINGS ===== */
section > h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--text), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

section > h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

section:hover > h2::after {
  width: 100px;
}

section > h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--text);
  position: relative;
  padding-left: 18px;
}

section > h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

section > p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.85;
}

section > ul {
  margin: 20px 0;
  display: grid;
  gap: 12px;
}

section > ul li {
  position: relative;
  padding: 14px 18px 14px 48px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
}

section > ul li::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 10px rgba(255, 45, 85, 0.5);
}

section > ul li:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

section > ol {
  counter-reset: item;
  margin: 20px 0;
  display: grid;
  gap: 12px;
}

section > ol li {
  counter-increment: item;
  position: relative;
  padding: 16px 20px 16px 60px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
}

section > ol li::before {
  content: counter(item);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255, 45, 85, 0.3);
}

section > ol li:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

/* ===== ARTICLE CARDS ===== */
#news article,
#articles article {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease;
}

#news article:hover::before,
#articles article:hover::before {
  opacity: 1;
}

#news article:hover,
#articles article:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

#news article h3,
#articles article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  transition: var(--transition);
}

#news article:hover h3,
#articles article:hover h3 {
  color: var(--primary-light);
}

#news article time,
#articles article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding: 4px 12px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

#news article p,
#articles article p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

#news article p a,
#articles article p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary-light);
  font-size: 0.9rem;
  padding: 6px 16px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

#news article p a::after,
#articles article p a::after {
  content: '→';
  transition: transform 0.3s ease;
}

#news article p a:hover,
#articles article p a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(255, 45, 85, 0.4);
}

#news article p a:hover::after,
#articles article p a:hover::after {
  transform: translateX(4px);
}

/* ===== BLOCKQUOTES ===== */
blockquote {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin-bottom: 20px;
  position: relative;
  transition: var(--transition);
}

blockquote::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 3rem;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
}

blockquote:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  border-left-color: var(--primary-light);
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

blockquote p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.8;
  padding-left: 24px;
}

/* ===== FAQ DETAILS ===== */
#faq details {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition);
}

#faq details[open] {
  border-color: var(--border-hover);
  box-shadow: var(--shadow), var(--shadow-glow);
}

#faq details:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

#faq summary {
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
  position: relative;
}

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

#faq summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--primary);
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  transition: var(--transition);
}

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

#faq summary:hover {
  color: var(--primary-light);
}

#faq details p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  animation: fadeInUp 0.3s ease-out;
}

/* ===== HOWTO ===== */
#howto h3 {
  margin-top: 32px;
}

#howto ul {
  margin: 16px 0;
}

#howto ol {
  margin: 16px 0;
}

/* ===== CONTACT ===== */
#contact p {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

#contact p:hover {
  padding-left: 8px;
  color: var(--text);
  border-bottom-color: var(--border-hover);
}

#contact p:last-child {
  border-bottom: none;
}

/* ===== SITEMAP & LINKS ===== */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#sitemap ul li,
#links ul li {
  padding: 0;
  background: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#sitemap ul li::before,
#links ul li::before {
  display: none;
}

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 10px 22px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 45, 85, 0.35);
}

#links ul li a {
  color: var(--text-muted);
}

/* ===== LEGAL ===== */
#legal h2 {
  font-size: 1.2rem;
  margin-top: 32px;
  margin-bottom: 16px;
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
}

#legal h2::after {
  width: 40px;
  height: 3px;
}

#legal p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 12px;
}

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

footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: var(--transition);
}

footer p:hover {
  color: var(--text-secondary);
}

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

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 45, 85, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 45, 85, 0.4);
  }
}

/* ===== SCROLL REVEAL ===== */
section > h2,
section > h3,
section > p,
section > ul,
section > ol,
#news article,
#articles article,
blockquote,
#faq details,
#contact p,
#legal h2,
#legal p {
  animation: fadeInUp 0.7s ease-out both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

@supports not (animation-timeline: view()) {
  section > h2,
  section > h3,
  section > p,
  section > ul,
  section > ol,
  #news article,
  #articles article,
  blockquote,
  #faq details,
  #contact p,
  #legal h2,
  #legal p {
    animation: fadeInUp 0.7s ease-out both;
    animation-play-state: paused;
  }

  .revealed {
    animation-play-state: running !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  header nav {
    padding: 0 16px;
  }

  header nav ul {
    gap: 2px;
  }

  header nav ul li a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  section {
    padding: 60px 20px;
  }

  #hero {
    padding: 100px 20px 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  header nav {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
  }

  header nav > div:first-child a {
    font-size: 1.25rem;
  }

  header nav ul {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  header nav ul li a {
    font-size: 0.78rem;
    padding: 6px 12px;
    white-space: nowrap;
  }

  main {
    padding-top: 110px;
  }

  section {
    padding: 48px 16px;
  }

  section:first-of-type {
    padding-top: 60px;
  }

  #hero {
    padding: 80px 16px 60px;
  }

  #hero h1 {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
  }

  #hero p {
    font-size: 0.92rem;
  }

  section > h2 {
    font-size: 1.35rem;
    margin-bottom: 28px;
  }

  section > h3 {
    font-size: 1.05rem;
    margin-top: 28px;
  }

  section > ul li,
  section > ol li {
    padding: 12px 14px 12px 42px;
    font-size: 0.88rem;
  }

  section > ol li {
    padding-left: 52px;
  }

  #news article,
  #articles article {
    padding: 20px;
    border-radius: var(--radius-sm);
  }

  #news article h3,
  #articles article h3 {
    font-size: 1.05rem;
  }

  blockquote {
    padding: 18px 20px;
  }

  blockquote p {
    font-size: 0.88rem;
    padding-left: 16px;
  }

  #faq summary {
    padding: 16px 18px;
    font-size: 0.92rem;
  }

  #faq details p {
    padding: 0 18px 16px;
    font-size: 0.88rem;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  footer {
    padding: 36px 16px;
  }

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

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

  main {
    padding-top: 100px;
  }

  #hero h1 {
    font-size: 1.35rem;
  }

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

  section > h2::after {
    width: 40px;
    height: 3px;
  }

  #news article p a,
  #articles article p a {
    padding: 5px 12px;
    font-size: 0.82rem;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* ===== HIGH CONTRAST ===== */
@media (prefers-contrast: more) {
  :root {
    --border: rgba(255, 255, 255, 0.3);
    --text-secondary: #d0d0e0;
    --text-muted: #a0a0b8;
  }

  @media (prefers-color-scheme: light) {
    :root {
      --border: rgba(0, 0, 0, 0.3);
      --text-secondary: #333350;
      --text-muted: #555570;
    }
  }
}

/* ===== PRINT ===== */
@media print {
  header,
  footer,
  #hero::before,
  body::before {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }

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

  #faq details {
    break-inside: avoid;
  }

  #faq details[open] summary::after {
    display: none;
  }
}