:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(30, 30, 50, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-hover: rgba(255, 255, 255, 0.1);
  --text-primary: #f0f0f5;
  --text-secondary: #a8a8c0;
  --text-muted: #6e6e88;
  --accent-pink: #e94560;
  --accent-gold: #f5a623;
  --accent-teal: #4ecdc4;
  --accent-purple: #7b5ea7;
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #e94560 130%);
  --gradient-accent: linear-gradient(135deg, #e94560, #f5a623);
  --gradient-card: linear-gradient(145deg, rgba(30, 30, 50, 0.7), rgba(20, 20, 40, 0.5));
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-hover: rgba(233, 69, 96, 0.4);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 16px 48px rgba(233, 69, 96, 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;
  --header-height: 64px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.55);
    --bg-glass-hover: rgba(255, 255, 255, 0.8);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8888a0;
    --gradient-hero: linear-gradient(135deg, #e8e8f5 0%, #d0d0f0 40%, #c8d8f0 70%, #f0c8d0 130%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(245, 245, 255, 0.6));
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-glass-hover: rgba(233, 69, 96, 0.35);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 16px 48px rgba(233, 69, 96, 0.12);
  }
}

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

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

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(233, 69, 96, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(78, 205, 196, 0.06), transparent),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(123, 94, 167, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

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

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

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

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

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
h4 { font-size: clamp(1rem, 2vw, 1.15rem); }

p {
  color: var(--text-secondary);
  margin-bottom: 0.75em;
}

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

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  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-glass);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

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

header nav > a {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: opacity var(--transition-fast);
}

header nav > a:hover {
  opacity: 0.8;
  color: transparent;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

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

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

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

/* ============ BREADCRUMB ============ */
main > nav[aria-label="面包屑导航"] {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 0;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

main > nav[aria-label="面包屑导航"] ol li {
  display: flex;
  align-items: center;
  gap: 6px;
}

main > nav[aria-label="面包屑导航"] ol li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.5;
}

main > nav[aria-label="面包屑导航"] ol li a {
  color: var(--text-muted);
}

main > nav[aria-label="面包屑导航"] ol li a:hover {
  color: var(--accent-teal);
}

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

section {
  margin-top: 64px;
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

section > h2 {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 28px;
}

section > h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-smooth);
}

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

section h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

section h4 {
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--accent-gold);
}

section > p {
  max-width: 75ch;
}

/* ============ HERO ============ */
#hero {
  position: relative;
  margin-top: 32px;
  padding: 56px 40px;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

#hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatGlow 10s ease-in-out infinite reverse;
}

#hero h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  max-width: 20ch;
}

#hero > p {
  position: relative;
  z-index: 1;
  max-width: 65ch;
  font-size: 1.05rem;
  line-height: 1.85;
}

#hero figure {
  position: relative;
  z-index: 1;
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

#hero figure:hover {
  transform: scale(1.015);
  box-shadow: 0 20px 60px rgba(233, 69, 96, 0.2);
}

#hero figure svg {
  width: 100%;
  display: block;
}

#hero figcaption {
  padding: 12px 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  border-top: 1px solid var(--border-glass);
}

#hero > p:last-child {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

#hero > p:last-child a {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition-smooth);
}

#hero > p:last-child a:first-of-type {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.35);
}

#hero > p:last-child a:first-of-type:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5);
  color: #fff;
}

#hero > p:last-child a:last-of-type {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

#hero > p:last-child a:last-of-type:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
  color: var(--text-primary);
}

/* ============ CARDS & SECTIONS ============ */
#about,
#products,
#solutions,
#cases,
#news,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

#about:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#legal:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-hover);
}

/* ============ PRODUCTS / SOLUTIONS / CASES ============ */
#products h3,
#solutions h3,
#cases h3 {
  padding-left: 16px;
  border-left: 3px solid var(--accent-pink);
  transition: border-color var(--transition-fast), padding-left var(--transition-fast);
}

#products h3:hover,
#solutions h3:hover,
#cases h3:hover {
  border-left-color: var(--accent-gold);
  padding-left: 20px;
}

#products h4,
#solutions h4,
#cases h4 {
  position: relative;
  padding-left: 20px;
}

#products h4::before,
#solutions h4::before,
#cases h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-accent);
}

/* ============ ARTICLES ============ */
#articles {
  margin-top: 64px;
}

#articles > h2 {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 28px;
}

#articles > h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-smooth);
}

#articles:hover > h2::after {
  width: 100px;
}

#articles article {
  position: relative;
  padding: 28px 32px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: var(--gradient-card);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

#articles article:hover {
  transform: translateX(6px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-hover);
}

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

#articles article h3 {
  margin-top: 0;
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

#articles article:hover h3 {
  color: var(--accent-gold);
}

#articles article > p:nth-of-type(1) {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#articles article > p:nth-of-type(1)::before {
  content: "📅";
  font-size: 0.75rem;
}

#articles article > p:nth-of-type(2) {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

#articles article > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-teal);
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-fast);
}

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

#articles article > p:last-child a:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

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

/* ============ FAQ ============ */
#faq h3 {
  position: relative;
  padding: 18px 24px 18px 52px;
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 1.05rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 50%;
}

#faq h3:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateX(4px);
}

#faq h3 + p {
  padding: 16px 24px 18px 52px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  background: transparent;
  border-left: 2px solid var(--accent-teal);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin-left: 0;
  transition: border-color var(--transition-fast);
}

#faq h3:hover + p {
  border-left-color: var(--accent-gold);
}

/* ============ HOWTO ============ */
#howto h4 {
  position: relative;
  padding: 14px 20px 14px 56px;
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  counter-increment: howto-step;
}

#howto {
  counter-reset: howto-step;
}

#howto h4::before {
  content: counter(howto-step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 50%;
}

#howto h4 + p {
  padding: 14px 20px 16px 56px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: all var(--transition-fast);
}

#howto h4:hover,
#howto h4:hover + p {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
}

/* ============ CONTACT ============ */
#contact p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-glass);
  font-size: 0.95rem;
  transition: padding-left var(--transition-fast), border-color var(--transition-fast);
}

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

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

/* ============ SITEMAP / LINKS ============ */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--transition-fast);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

/* ============ LEGAL ============ */
#legal h3 {
  color: var(--accent-gold);
  font-size: 1.05rem;
  margin-top: 24px;
}

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

#legal p {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ============ FOOTER ============ */
footer {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  padding: 48px 20px 56px;
  text-align: center;
  background: rgba(15, 15, 26, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--border-glass);
}

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

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

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

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

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

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

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

/* ============ SCROLL REVEAL (progressive enhancement) ============ */
@supports (animation-timeline: view()) {
  section {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }

  #hero {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-timeline: auto;
  }

  #articles article {
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 20%;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  #hero {
    padding: 44px 32px;
  }

  section {
    margin-top: 56px;
  }
}

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

  body {
    font-size: 15px;
  }

  header nav {
    padding: 0 16px;
    gap: 16px;
  }

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

  header nav ul {
    gap: 2px;
  }

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

  main {
    padding: 0 16px 60px;
  }

  main > nav[aria-label="面包屑导航"] {
    padding: 16px 16px 0;
  }

  #hero {
    margin-top: 24px;
    padding: 36px 24px;
    border-radius: var(--radius-lg);
  }

  #hero h1 {
    max-width: none;
  }

  #hero > p {
    font-size: 0.95rem;
  }

  #hero > p:last-child {
    flex-direction: column;
    align-items: stretch;
  }

  #hero > p:last-child a {
    text-align: center;
    padding: 12px 24px;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 28px 20px;
  }

  #articles article {
    padding: 22px 20px;
  }

  #articles article:hover {
    transform: translateX(3px);
  }

  #faq h3 {
    padding: 16px 18px 16px 46px;
    font-size: 0.98rem;
  }

  #faq h3::before {
    left: 14px;
    width: 22px;
    height: 22px;
  }

  #faq h3 + p {
    padding: 14px 18px 16px 46px;
    font-size: 0.9rem;
  }

  #howto h4 {
    padding: 12px 16px 12px 50px;
    font-size: 0.95rem;
  }

  #howto h4::before {
    left: 12px;
    width: 26px;
    height: 26px;
  }

  #howto h4 + p {
    padding: 12px 16px 14px 50px;
    font-size: 0.9rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
  }

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

  footer {
    padding: 36px 16px 44px;
    margin-top: 60px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14.5px;
  }

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

  #hero {
    padding: 28px 18px;
  }

  #hero figure {
    margin: 24px 0;
  }

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

  #articles article {
    padding: 20px 16px;
  }

  #articles article > p:last-child a {
    padding: 5px 14px;
    font-size: 0.82rem;
  }

  section > h2::after {
    width: 48px;
  }

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

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

@media (prefers-contrast: high) {
  :root {
    --border-glass: rgba(255, 255, 255, 0.3);
    --text-secondary: #c8c8d8;
  }
}

/* ============ PRINT ============ */
@media print {
  header,
  footer,
  #hero figure,
  #hero > p:last-child {
    display: none;
  }

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

  body::before {
    display: none;
  }

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

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