:root {
  --brand-primary: #ff6b35;
  --brand-secondary: #f7c948;
  --brand-accent: #ff3d71;
  --brand-deep: #1a1a2e;
  --brand-dark: #16213e;
  --brand-mid: #0f3460;
  --bg-page: #f5f6fa;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.45);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8888a8;
  --text-invert: #ffffff;
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 18px 48px rgba(26, 26, 46, 0.16);
  --shadow-glow: 0 8px 32px rgba(255, 107, 53, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --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.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max-width: 1180px;
  --header-height: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #0d0d1a;
    --bg-card: #1a1a2e;
    --bg-glass: rgba(26, 26, 46, 0.7);
    --bg-glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f0f0f8;
    --text-secondary: #b8b8d0;
    --text-muted: #7878a0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 8px 32px rgba(255, 107, 53, 0.35);
  }
}

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

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

body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 107, 53, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(247, 201, 72, 0.06), transparent),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(255, 61, 113, 0.05), transparent);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

ul, ol {
  list-style: none;
}

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--bg-glass-border);
  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;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

header nav > div:first-child a {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: transform var(--transition-bounce), filter var(--transition-fast);
  display: inline-block;
}

header nav > div:first-child a:hover {
  transform: scale(1.06);
  filter: brightness(1.1);
}

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-sm);
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

header nav > ul > li > a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 2px;
  transition: width var(--transition-smooth), left var(--transition-smooth);
}

header nav > ul > li > a:hover {
  color: var(--brand-primary);
  background: rgba(255, 107, 53, 0.08);
  transform: translateY(-1px);
}

header nav > ul > li > a:hover::after {
  width: 60%;
  left: 20%;
}

/* ========== MAIN ========== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ========== HERO ========== */
#hero {
  position: relative;
  margin-top: calc(var(--header-height) + 32px);
  padding: 72px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 35%, #0f3460 70%, #533483 100%);
  color: var(--text-invert);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: heroFadeIn 0.8s ease-out both;
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.25), transparent 70%);
  border-radius: 50%;
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(247, 201, 72, 0.18), transparent 70%);
  border-radius: 50%;
  animation: floatOrb 10s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.08); }
}

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

#hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f7c948 60%, #ff6b35 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#hero p {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  max-width: 780px;
  margin-bottom: 14px;
}

#hero p strong {
  color: var(--brand-secondary);
  font-weight: 700;
}

#hero p:last-child {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 8px;
}

/* ========== SECTIONS ========== */
section {
  margin-top: 56px;
  animation: sectionReveal 0.7s ease-out both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

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

@supports not (animation-timeline: view()) {
  section {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

section > h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  padding-left: 18px;
  position: relative;
  color: var(--text-primary);
  line-height: 1.4;
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.4);
}

section > h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

section > h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--brand-primary);
}

section p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.85;
}

/* ========== CARD STYLES ========== */
#intro,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(128, 128, 160, 0.08);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth), background var(--transition-smooth);
}

#intro:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ========== ARTICLES ========== */
#news article,
#articles article {
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid rgba(128, 128, 160, 0.08);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-smooth);
}

#news article:hover,
#articles article:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 53, 0.2);
}

#news article:hover::before,
#articles article:hover::before {
  transform: scaleY(1);
}

#news article:last-child,
#articles article:last-child {
  margin-bottom: 0;
}

#news article h3,
#articles article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
  line-height: 1.5;
  transition: color var(--transition-fast);
}

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

#news article time,
#articles article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding: 2px 10px;
  background: rgba(255, 107, 53, 0.08);
  border-radius: 20px;
}

#articles article p a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 201, 72, 0.1));
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

#articles article p a::after {
  content: "→";
  transition: transform var(--transition-fast);
}

#articles article p a:hover {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

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

/* ========== BLOCKQUOTE ========== */
blockquote {
  position: relative;
  margin: 16px 0;
  padding: 20px 24px 20px 56px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.06), rgba(247, 201, 72, 0.06));
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand-primary);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 10px;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--brand-primary);
  opacity: 0.4;
}

blockquote:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

blockquote p {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ========== FAQ DETAILS ========== */
#faq details {
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid rgba(128, 128, 160, 0.1);
  overflow: hidden;
  transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

#faq details:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 107, 53, 0.25);
}

#faq details[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 53, 0.3);
}

#faq details summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background var(--transition-fast), color var(--transition-fast);
  position: relative;
  user-select: none;
}

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

#faq details summary::before {
  content: "+";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--transition-bounce), background var(--transition-fast);
}

#faq details[open] summary::before {
  content: "−";
  transform: rotate(180deg);
}

#faq details summary:hover {
  background: rgba(255, 107, 53, 0.06);
  color: var(--brand-primary);
}

#faq details[open] summary {
  background: rgba(255, 107, 53, 0.08);
  color: var(--brand-primary);
  border-bottom: 1px solid rgba(255, 107, 53, 0.15);
}

#faq details p {
  padding: 16px 20px 18px 58px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  animation: faqSlideDown 0.35s ease-out;
}

@keyframes faqSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== HOWTO LIST ========== */
#howto ol {
  counter-reset: howto-step;
  margin: 16px 0;
  padding: 0;
}

#howto ol li {
  counter-increment: howto-step;
  position: relative;
  padding: 14px 18px 14px 58px;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid rgba(128, 128, 160, 0.08);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

#howto ol li::before {
  content: counter(howto-step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  transition: transform var(--transition-bounce);
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 107, 53, 0.2);
}

#howto ol li:hover::before {
  transform: translateY(-50%) scale(1.15);
}

#howto h3 {
  margin-top: 24px;
}

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

/* ========== CONTACT ========== */
#contact p {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(128, 128, 160, 0.15);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

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

#contact h3 {
  margin-top: 24px;
}

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

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

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-page);
  color: var(--text-secondary);
  border: 1px solid rgba(128, 128, 160, 0.12);
  transition: all var(--transition-fast);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ========== LEGAL ========== */
#legal h2 {
  font-size: 1.2rem;
  margin-top: 28px;
  margin-bottom: 12px;
  padding-left: 14px;
}

#legal h2:first-child {
  margin-top: 0;
}

#legal h2::before {
  width: 4px;
  top: 4px;
  bottom: 4px;
}

/* ========== FOOTER ========== */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 48px;
  text-align: center;
  border-top: 1px solid rgba(128, 128, 160, 0.12);
}

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

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

footer a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent));
  border-radius: 10px;
  border: 2px solid var(--bg-page);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-accent), var(--brand-primary));
}

/* ========== SELECTION ========== */
::selection {
  background: rgba(255, 107, 53, 0.25);
  color: var(--text-primary);
}

/* ========== RESPONSIVE: TABLET ========== */
@media (max-width: 900px) {
  :root {
    --header-height: 60px;
  }

  header nav {
    padding: 0 16px;
  }

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

  main {
    padding: 0 16px 60px;
  }

  #hero {
    padding: 52px 28px;
    margin-top: calc(var(--header-height) + 20px);
    border-radius: var(--radius-lg);
  }

  #intro,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 28px 22px;
    border-radius: var(--radius-md);
  }

  section {
    margin-top: 40px;
  }
}

/* ========== RESPONSIVE: MOBILE ========== */
@media (max-width: 640px) {
  :root {
    --header-height: 56px;
    --radius-lg: 20px;
    --radius-xl: 24px;
  }

  body {
    font-size: 15px;
  }

  header nav {
    padding: 0 12px;
    gap: 8px;
  }

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

  header nav > ul {
    gap: 2px;
  }

  header nav > ul > li > a {
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  header nav > ul > li > a::after {
    display: none;
  }

  main {
    padding: 0 12px 48px;
  }

  #hero {
    padding: 40px 20px;
    margin-top: calc(var(--header-height) + 14px);
    border-radius: var(--radius-lg);
  }

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

  #hero p {
    font-size: 0.88rem;
    line-height: 1.75;
  }

  #hero p:last-child {
    font-size: 0.75rem;
  }

  section {
    margin-top: 32px;
  }

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

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

  section > h3 {
    font-size: 1.05rem;
  }

  #intro,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 22px 16px;
    border-radius: var(--radius-md);
  }

  #news article,
  #articles article {
    padding: 16px 16px;
  }

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

  blockquote {
    padding: 16px 16px 16px 44px;
  }

  blockquote::before {
    left: 12px;
    font-size: 2.2rem;
  }

  #faq details summary {
    padding: 14px 14px;
    font-size: 0.88rem;
    gap: 10px;
  }

  #faq details summary::before {
    width: 22px;
    height: 22px;
    font-size: 0.85rem;
  }

  #faq details p {
    padding: 12px 14px 14px 46px;
    font-size: 0.84rem;
  }

  #howto ol li {
    padding: 12px 14px 12px 48px;
    font-size: 0.85rem;
  }

  #howto ol li::before {
    left: 12px;
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  #sitemap ul,
  #links ul {
    gap: 8px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  #contact p {
    font-size: 0.88rem;
  }

  footer {
    padding: 28px 12px 36px;
  }

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

/* ========== RESPONSIVE: SMALL MOBILE ========== */
@media (max-width: 400px) {
  header nav > ul > li > a {
    padding: 4px 6px;
    font-size: 0.68rem;
  }

  #hero {
    padding: 32px 16px;
  }

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

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

/* ========== 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 {
    opacity: 1;
    transform: none;
  }
}

/* ========== PRINT ========== */
@media print {
  header {
    position: static;
    background: none;
    border: none;
    box-shadow: none;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }

  #hero {
    background: #f0f0f0 !important;
    color: #000000 !important;
    box-shadow: none;
  }

  #hero h1 {
    -webkit-text-fill-color: #000000;
    color: #000000;
    background: none;
  }

  #hero p {
    color: #333333;
  }

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

  section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #cccccc;
  }
}

/* ========== HIGH CONTRAST ========== */
@media (prefers-contrast: high) {
  :root {
    --text-secondary: #222222;
    --text-muted: #444444;
    --bg-glass-border: rgba(0, 0, 0, 0.3);
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --text-secondary: #e0e0e0;
      --text-muted: #b0b0b0;
      --bg-glass-border: rgba(255, 255, 255, 0.3);
    }
  }

  a:focus-visible,
  summary:focus-visible {
    outline-width: 3px;
  }
}