:root {
  --bg: #0f0f1a;
  --bg-soft: #16162a;
  --bg-card: rgba(30, 30, 52, 0.62);
  --bg-card-hover: rgba(40, 40, 68, 0.78);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(233, 69, 96, 0.45);
  --text: #ececf4;
  --text-soft: #b6b6cc;
  --text-mute: #8a8aa3;
  --primary: #e94560;
  --primary-2: #ff7a5c;
  --accent: #7b5cff;
  --accent-2: #22d3ee;
  --grad-banner: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 38%, #3d1f3a 62%, #1a1a2e 100%);
  --grad-primary: linear-gradient(135deg, #e94560 0%, #ff7a5c 100%);
  --grad-accent: linear-gradient(135deg, #7b5cff 0%, #22d3ee 100%);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.38);
  --shadow-glow: 0 10px 40px rgba(233, 69, 96, 0.28);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5fb;
    --bg-soft: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-hover: rgba(255, 255, 255, 0.92);
    --border: rgba(26, 26, 46, 0.09);
    --border-strong: rgba(233, 69, 96, 0.4);
    --text: #1a1a2e;
    --text-soft: #4a4a63;
    --text-mute: #74748c;
    --grad-banner: linear-gradient(135deg, #fff1f3 0%, #f3ecff 40%, #ffe9e2 70%, #f5f5fb 100%);
    --shadow-sm: 0 4px 16px rgba(26, 26, 46, 0.08);
    --shadow-md: 0 12px 36px rgba(26, 26, 46, 0.12);
    --shadow-glow: 0 10px 40px rgba(233, 69, 96, 0.18);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.78;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(123, 92, 255, 0.16), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(233, 69, 96, 0.14), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(34, 211, 238, 0.08), transparent 46%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  animation: bodyFade 0.7s ease both;
}

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

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

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

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

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

h1, h2, h3, h4 {
  line-height: 1.32;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.65rem, 4.2vw, 2.7rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 4px;
  background: var(--grad-primary);
  box-shadow: 0 0 14px rgba(233, 69, 96, 0.55);
}

h3 {
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  color: var(--text);
  margin-top: 1.6em;
}

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.5em;
}

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

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

time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-mute);
  letter-spacing: 0.03em;
}

blockquote {
  margin: 1.4em 0;
  padding: 1.1em 1.4em;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-soft);
}

::selection {
  background: rgba(233, 69, 96, 0.35);
  color: var(--text);
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e94560, #7b5cff);
  border-radius: 10px;
  border: 2px solid var(--bg-soft);
}

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

@media (prefers-color-scheme: light) {
  #site-header {
    background: rgba(255, 255, 255, 0.78);
  }
}

#site-header:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover {
  transform: translateY(-2px) scale(1.02);
  color: var(--text);
}

.brand-logo svg {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.35);
  transition: box-shadow 0.3s ease, transform 0.4s ease;
}

.brand-logo:hover svg {
  transform: rotate(-4deg);
  box-shadow: 0 8px 26px rgba(233, 69, 96, 0.55);
}

.brand-name {
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-block;
  padding: 7px 13px;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-radius: 999px;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-list a:hover {
  color: var(--text);
  background: rgba(233, 69, 96, 0.1);
  transform: translateY(-1px);
}

.nav-list a:hover::after {
  width: 60%;
}

/* ============ Main layout ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px 60px;
}

main > section {
  margin: 0 0 34px;
  padding: 34px clamp(18px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

main > section:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}

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

main > section:nth-of-type(1) { animation-delay: 0.04s; }
main > section:nth-of-type(2) { animation-delay: 0.08s; }
main > section:nth-of-type(3) { animation-delay: 0.12s; }
main > section:nth-of-type(4) { animation-delay: 0.16s; }
main > section:nth-of-type(5) { animation-delay: 0.2s; }
main > section:nth-of-type(6) { animation-delay: 0.24s; }
main > section:nth-of-type(7) { animation-delay: 0.28s; }
main > section:nth-of-type(8) { animation-delay: 0.32s; }
main > section:nth-of-type(9) { animation-delay: 0.36s; }
main > section:nth-of-type(10) { animation-delay: 0.4s; }
main > section:nth-of-type(11) { animation-delay: 0.44s; }
main > section:nth-of-type(12) { animation-delay: 0.48s; }
main > section:nth-of-type(13) { animation-delay: 0.52s; }
main > section:nth-of-type(14) { animation-delay: 0.56s; }
main > section:nth-of-type(15) { animation-delay: 0.6s; }
main > section:nth-of-type(16) { animation-delay: 0.64s; }
main > section:nth-of-type(17) { animation-delay: 0.68s; }
main > section:nth-of-type(18) { animation-delay: 0.72s; }
main > section:nth-of-type(19) { animation-delay: 0.76s; }
main > section:nth-of-type(20) { animation-delay: 0.8s; }

/* ============ Banner ============ */
#banner {
  position: relative;
  margin-top: 26px;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--grad-banner);
  background-size: 220% 220%;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  animation: bannerShift 16s ease infinite, riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bannerShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#banner::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  top: -220px;
  right: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.4), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}

#banner::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  bottom: -200px;
  left: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.36), transparent 68%);
  filter: blur(24px);
  pointer-events: none;
  animation: floatOrb 14s ease-in-out infinite reverse;
}

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

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

#banner h1 {
  background: linear-gradient(120deg, #ffffff 0%, #ffd7de 40%, #d9ccff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0.5em;
  text-shadow: 0 0 60px rgba(233, 69, 96, 0.25);
}

@media (prefers-color-scheme: light) {
  #banner h1 {
    background: linear-gradient(120deg, #1a1a2e 0%, #b3264a 55%, #5b3fd6 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.banner-lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--text-soft);
  margin-bottom: 1em;
}

.banner-answer {
  font-size: 0.96rem;
  color: var(--text-mute);
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (prefers-color-scheme: light) {
  .banner-answer {
    background: rgba(255, 255, 255, 0.55);
  }
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, color 0.3s ease;
}

.btn-primary {
  color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 10px 28px rgba(233, 69, 96, 0.42);
}

.btn-primary::after,
.btn-secondary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px) scale(1.03);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 16px 40px rgba(233, 69, 96, 0.6);
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
  transform: translateX(120%);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  color: var(--text);
  background: rgba(123, 92, 255, 0.18);
  box-shadow: 0 12px 32px rgba(123, 92, 255, 0.32);
}

/* ============ Breadcrumb ============ */
#breadcrumb {
  margin: 0 0 26px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: riseIn 0.6s ease both;
}

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

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

#breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--primary);
}

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

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

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

/* ============ Section content refinements ============ */
main > section > h3:first-of-type {
  margin-top: 0.4em;
}

#about ul,
#products ul,
#howto ul,
#howto ol {
  padding: 18px 22px 18px 40px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

@media (prefers-color-scheme: light) {
  #about ul,
  #products ul,
  #howto ul,
  #howto ol {
    background: rgba(26, 26, 46, 0.03);
  }
}

/* ============ News & Articles cards ============ */
#news article,
#articles article {
  position: relative;
  padding: 20px 22px;
  margin: 0 0 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  overflow: hidden;
}

@media (prefers-color-scheme: light) {
  #news article,
  #articles article {
    background: rgba(255, 255, 255, 0.7);
  }
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}

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

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

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.4em;
  font-size: 1.08rem;
  transition: color 0.3s ease;
}

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

#news article p,
#articles article p {
  margin-bottom: 0.5em;
  font-size: 0.94rem;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#articles article a::after {
  content: "→";
  transition: transform 0.3s ease;
}

#articles article a:hover {
  background: var(--grad-primary);
  color: #fff;
  transform: translateX(3px);
  box-shadow: 0 8px 22px rgba(233, 69, 96, 0.4);
}

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

/* ============ FAQ ============ */
#faq h3 {
  position: relative;
  padding: 14px 18px 14px 46px;
  margin: 0 0 10px;
  border-radius: var(--radius-sm);
  background: rgba(233, 69, 96, 0.07);
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  border-radius: 7px;
  background: var(--grad-primary);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

#faq h3:hover {
  background: rgba(233, 69, 96, 0.14);
  border-color: var(--border-strong);
  transform: translateX(4px);
}

#faq p {
  padding: 0 18px 4px 46px;
  font-size: 0.94rem;
}

/* ============ HowTo steps ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 22px;
}

#howto ol > li {
  counter-increment: step;
  position: relative;
  padding: 12px 14px 12px 54px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: rgba(123, 92, 255, 0.07);
  border: 1px solid var(--border);
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

#howto ol > li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  border-radius: 9px;
  background: var(--grad-accent);
  box-shadow: 0 4px 14px rgba(123, 92, 255, 0.42);
}

#howto ol > li:hover {
  background: rgba(123, 92, 255, 0.14);
  border-color: rgba(123, 92, 255, 0.5);
  transform: translateX(4px);
}

#howto ul > li {
  position: relative;
  padding-left: 4px;
}

/* ============ Contact ============ */
#contact p {
  padding: 9px 16px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  font-size: 0.94rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

@media (prefers-color-scheme: light) {
  #contact p {
    background: rgba(26, 26, 46, 0.035);
  }
}

#contact p:hover {
  background: rgba(233, 69, 96, 0.08);
  border-color: var(--border-strong);
  transform: translateX(4px);
}

/* ============ 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: 7px 16px;
  font-size: 0.88rem;
  color: var(--text-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  transition: color 0.28s ease, background 0.28s ease, border-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

@media (prefers-color-scheme: light) {
  #sitemap a,
  #links a {
    background: rgba(255, 255, 255, 0.7);
  }
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-primary);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(233, 69, 96, 0.38);
}

/* ============ Privacy / Disclaimer / Copyright / Editorial ============ */
#privacy,
#disclaimer,
#copyright,
#editorial {
  border-left: 3px solid rgba(123, 92, 255, 0.5);
}

#editorial p {
  font-size: 0.92rem;
  color: var(--text-mute);
}

/* ============ Footer ============ */
#site-footer {
  position: relative;
  margin-top: 20px;
  padding: 40px 22px 34px;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.9), rgba(15, 15, 26, 0.98));
  border-top: 1px solid var(--border-strong);
  overflow: hidden;
}

@media (prefers-color-scheme: light) {
  #site-footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 245, 251, 0.98));
  }
}

#site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0.85;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

.footer-inner p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-mute);
}

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

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 16px;
}

.footer-inner nav a {
  font-size: 0.86rem;
  color: var(--text-mute);
  position: relative;
  transition: color 0.28s ease;
}

.footer-inner nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--grad-primary);
  transition: width 0.3s ease;
}

.footer-inner nav a:hover {
  color: var(--primary);
}

.footer-inner nav a:hover::after {
  width: 100%;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .header-inner {
    padding: 10px 16px;
    gap: 10px;
  }

  .nav-list {
    gap: 2px;
  }

  .nav-list a {
    padding: 6px 10px;
    font-size: 0.84rem;
  }

  main {
    padding: 0 14px 44px;
  }

  main > section {
    padding: 26px 18px;
    border-radius: var(--radius);
    margin-bottom: 22px;
  }

  #banner {
    padding: 32px 20px;
    border-radius: var(--radius);
  }

  #breadcrumb {
    padding: 10px 16px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.72;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .nav-list {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-list a {
    white-space: nowrap;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

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

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 12px 22px;
  }

  #faq h3 {
    padding: 12px 14px 12px 42px;
    font-size: 0.95rem;
  }

  #faq p {
    padding: 0 8px 4px 42px;
  }

  #howto ol {
    padding-left: 14px;
  }

  #howto ol > li {
    padding: 12px 12px 12px 48px;
  }

  #sitemap a,
  #links a {
    font-size: 0.82rem;
    padding: 6px 12px;
  }

  blockquote {
    padding: 14px 16px;
  }
}

@media (max-width: 400px) {
  .brand-name {
    font-size: 0.92rem;
  }

  main > section {
    padding: 22px 14px;
  }

  #banner {
    padding: 26px 16px;
  }
}

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

/* ============ Print ============ */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  #site-header,
  #banner::before,
  #banner::after,
  .banner-actions,
  #site-footer {
    display: none;
  }

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    break-inside: avoid;
  }

  a {
    color: #000;
  }
}