:root {
  --bg: #f4f7fb;
  --bg-alt: #ffffff;
  --bg-soft: #eaf0f8;
  --text: #16202e;
  --text-soft: #4b5b70;
  --text-mute: #7a8a9e;
  --primary: #2b6cff;
  --primary-deep: #1746b8;
  --accent: #f5c518;
  --accent-2: #57c785;
  --danger: #e2574c;
  --border: rgba(22, 32, 46, 0.1);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --shadow-sm: 0 2px 8px rgba(16, 35, 58, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 35, 58, 0.1);
  --shadow-lg: 0 22px 60px rgba(16, 35, 58, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 68px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #0b1a2b 0%, #123a6b 42%, #2b6cff 100%);
  --grad-accent: linear-gradient(135deg, #f5c518 0%, #ff9f1c 100%);
  --grad-soft: linear-gradient(135deg, rgba(43, 108, 255, 0.12), rgba(87, 199, 133, 0.14));
}

body.dark {
  --bg: #0a1420;
  --bg-alt: #0f1e30;
  --bg-soft: #14263a;
  --text: #e8eef7;
  --text-soft: #a9b8ca;
  --text-mute: #7f92a8;
  --primary: #5b8cff;
  --primary-deep: #3a6ce0;
  --border: rgba(232, 238, 247, 0.12);
  --glass: rgba(15, 30, 48, 0.6);
  --glass-strong: rgba(15, 30, 48, 0.85);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.55);
  --grad-hero: linear-gradient(135deg, #06101c 0%, #0e2a4d 45%, #1f4fa8 100%);
  --grad-soft: linear-gradient(135deg, rgba(91, 140, 255, 0.16), rgba(87, 199, 133, 0.12));
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(43, 108, 255, 0.1), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(87, 199, 133, 0.09), transparent 55%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--primary-deep);
}

h1, h2, h3, h4 {
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 0.6em;
  letter-spacing: 0.2px;
}

h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 750;
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad-accent);
}

h3 {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--text);
}

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.45em;
}

li::marker {
  color: var(--primary);
}

strong {
  color: var(--text);
  font-weight: 700;
}

blockquote {
  margin: 1.2em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0 0 0.5em;
  color: var(--text-soft);
}

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

time {
  font-size: 0.85rem;
  color: var(--text-mute);
  display: inline-block;
  margin-bottom: 0.4em;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ============ HEADER ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

#site-header.sticky {
  box-shadow: var(--shadow-md);
  background: var(--glass-strong);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 800;
}

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

.brand svg {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

#main-nav {
  margin-left: auto;
}

#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

#main-nav li {
  margin: 0;
}

#main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-soft);
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  background: var(--grad-soft);
  color: var(--primary);
  transform: translateY(-1px);
}

#menu-toggle,
#theme-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

#menu-toggle:hover,
#theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: var(--grad-soft);
}

#menu-toggle {
  display: none;
  margin-left: auto;
}

#theme-toggle {
  margin-left: 4px;
}

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

section {
  margin: 48px 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

section.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  section { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============ HERO ============ */
#hero {
  margin-top: 28px;
  padding: 48px 40px 40px;
  border-radius: var(--radius-xl);
  background: var(--grad-hero);
  color: #eef4ff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.28), transparent 62%);
  z-index: -1;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -12%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(87, 199, 133, 0.22), transparent 62%);
  z-index: -1;
  pointer-events: none;
}

#hero h1 {
  color: #ffffff;
  max-width: 900px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  color: rgba(238, 244, 255, 0.86);
  max-width: 860px;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 34px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  background: var(--grad-accent);
  color: #1a1300;
  box-shadow: 0 10px 26px rgba(245, 197, 24, 0.34);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(245, 197, 24, 0.46);
  color: #1a1300;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  color: #ffffff;
}

.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.banner-slide {
  display: none;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.banner-slide.active {
  display: block;
  opacity: 1;
  transform: scale(1);
  animation: slideFade 0.8s var(--ease);
}

@keyframes slideFade {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

.banner-slide svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============ BREADCRUMB ============ */
#breadcrumb {
  margin: 26px 0 -18px;
  opacity: 1;
  transform: none;
}

#breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}

#breadcrumb li {
  margin: 0;
  color: var(--text-mute);
}

#breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-mute);
  opacity: 0.6;
}

#breadcrumb a {
  color: var(--text-soft);
}

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

#breadcrumb [aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* ============ STATS ============ */
#stats {
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

#stats h2 {
  margin-bottom: 26px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(43, 108, 255, 0.35);
}

.stat-num {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: 0.5px;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--text-mute);
}

/* ============ GENERIC CARD SECTIONS ============ */
#about,
#products,
#services,
#scenarios,
#solutions,
#industry,
#cases,
#news,
#articles,
#howto,
#faq,
#notes,
#contact,
#sitemap,
#links {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

#about:hover,
#products:hover,
#services:hover,
#scenarios:hover,
#solutions:hover,
#industry:hover,
#cases:hover,
#news:hover,
#articles:hover,
#howto:hover,
#faq:hover,
#notes:hover,
#contact:hover {
  box-shadow: var(--shadow-md);
}

#about h3,
#products h3,
#services h3,
#scenarios h3,
#solutions h3,
#cases h3,
#news h3,
#howto h3,
#contact h3 {
  margin-top: 1.4em;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

#about h3:first-of-type,
#products h3:first-of-type,
#services h3:first-of-type,
#scenarios h3:first-of-type,
#solutions h3:first-of-type,
#cases h3:first-of-type {
  margin-top: 0.6em;
}

/* ============ NEWS / ARTICLES ============ */
#news article,
#articles article {
  position: relative;
  padding: 22px 24px;
  margin: 0 0 18px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--bg-alt);
}

#news article h3,
#articles article h3 {
  margin: 0 0 6px;
  padding: 0;
  border: none;
  color: var(--text);
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grad-soft);
  color: var(--primary);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

#articles article a::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

#articles article a:hover {
  transform: translateY(-2px);
  background: var(--grad-accent);
  color: #1a1300;
}

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

/* ============ FAQ ============ */
#faq details {
  margin: 0 0 12px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#faq details:hover {
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  background: var(--bg-alt);
  box-shadow: var(--shadow-md);
  border-color: rgba(43, 108, 255, 0.28);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 20px;
  font-weight: 650;
  color: var(--text);
  position: relative;
  transition: color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--grad-accent);
  color: #1a1300;
}

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

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-soft);
  animation: faqFade 0.35s var(--ease);
}

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

/* ============ HOWTO ============ */
#howto ol {
  counter-reset: howto;
  list-style: none;
  padding-left: 0;
}

#howto ol li {
  counter-increment: howto;
  position: relative;
  padding: 12px 16px 12px 54px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

#howto ol li:hover {
  transform: translateX(4px);
  background: var(--grad-soft);
}

#howto ol li::before {
  content: counter(howto);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #1a1300;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ============ CONTACT ============ */
#contact ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

#contact ul li {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* ============ SITEMAP / LINKS ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  transform: translateY(-3px);
  background: var(--grad-accent);
  color: #1a1300;
  box-shadow: var(--shadow-sm);
}

/* ============ FOOTER ============ */
#site-footer {
  margin-top: 64px;
  padding: 48px 20px 32px;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 26, 43, 0.04) 100%);
  border-top: 1px solid var(--border);
}

body.dark #site-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 100%);
}

#site-footer section {
  max-width: var(--maxw);
  margin: 0 auto 26px;
  padding: 0;
  opacity: 1;
  transform: none;
}

#site-footer h2 {
  font-size: 1rem;
  padding-left: 14px;
  margin-bottom: 8px;
}

#site-footer h2::before {
  width: 4px;
  top: 0.2em;
  bottom: 0.2em;
}

#site-footer p {
  font-size: 0.88rem;
  color: var(--text-mute);
  margin: 0 0 0.5em;
}

#site-footer nav {
  max-width: var(--maxw);
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

#site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

#site-footer nav li {
  margin: 0;
}

#site-footer nav a {
  font-size: 0.88rem;
  color: var(--text-soft);
}

#site-footer nav a:hover {
  color: var(--primary);
}

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 120;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--grad-hero);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: var(--shadow-lg);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  #main-nav a {
    padding: 8px 9px;
    font-size: 0.86rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #hero {
    padding: 40px 28px 32px;
  }
}

@media (max-width: 860px) {
  #menu-toggle {
    display: inline-flex;
  }

  #main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 16px 18px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease),
      padding 0.3s var(--ease);
  }

  #main-nav.open {
    max-height: 520px;
    opacity: 1;
    pointer-events: auto;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  #main-nav a {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  .header-inner {
    position: relative;
  }

  #theme-toggle {
    margin-left: 0;
  }

  main {
    padding: 0 16px;
  }

  section {
    margin: 36px 0;
  }

  #hero {
    padding: 34px 22px 26px;
    border-radius: var(--radius-lg);
  }

  #about,
  #products,
  #services,
  #scenarios,
  #solutions,
  #industry,
  #cases,
  #news,
  #articles,
  #howto,
  #faq,
  #notes,
  #contact,
  #sitemap,
  #links {
    padding: 26px 20px;
    border-radius: var(--radius-md);
  }

  #stats {
    padding: 26px 20px;
  }

  #contact ul {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  :root {
    --header-h: 60px;
  }

  body {
    font-size: 15px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand svg {
    width: 34px;
    height: 34px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 18px 12px;
  }

  h2 {
    padding-left: 14px;
  }

  #faq summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.95rem;
  }

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

  #back-to-top {
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  #site-footer {
    padding: 36px 16px 26px;
  }
}

/* ============ PRINT ============ */
@media print {
  #site-header,
  #back-to-top,
  #hero::before,
  #hero::after {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  section {
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
    border: 1px solid #ddd;
  }
}

/* ============ ACCESSIBILITY ============ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: rgba(43, 108, 255, 0.25);
  color: var(--text);
}