:root {
  --bg-primary: #0d0d1a;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(22, 33, 62, 0.72);
  --bg-card-solid: #16213e;
  --bg-elevated: rgba(30, 42, 74, 0.85);
  --text-primary: #f0f0f5;
  --text-secondary: #b8b8cc;
  --text-muted: #8888a0;
  --accent-primary: #e94560;
  --accent-secondary: #f5a623;
  --accent-tertiary: #4ecca3;
  --accent-blue: #0f3460;
  --border-color: rgba(233, 69, 96, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 16px 48px rgba(233, 69, 96, 0.18);
  --glass-bg: rgba(26, 26, 46, 0.55);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 18px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --transition-fast: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.42s cubic-bezier(0.25, 0.8, 0.25, 1);
  --max-width: 1180px;
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #0f3460 35%, #16213e 65%, #e94560 140%);
  --gradient-accent: linear-gradient(120deg, #e94560 0%, #f5a623 100%);
  --gradient-card: linear-gradient(145deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 52, 96, 0.6) 100%);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f5f4f8;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-card-solid: #ffffff;
    --bg-elevated: rgba(255, 255, 255, 0.92);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a62;
    --text-muted: #7a7a92;
    --border-color: rgba(233, 69, 96, 0.22);
    --border-subtle: rgba(26, 26, 46, 0.08);
    --shadow-card: 0 8px 32px rgba(26, 26, 46, 0.08);
    --shadow-hover: 0 16px 48px rgba(233, 69, 96, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.62);
    --glass-border: rgba(26, 26, 46, 0.08);
    --gradient-hero: linear-gradient(135deg, #ffffff 0%, #eef1fa 30%, #fdeef1 70%, #fff5e6 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 241, 250, 0.7) 100%);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 15% 5%, rgba(233, 69, 96, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 45% at 85% 15%, rgba(15, 52, 96, 0.35), transparent 65%),
    radial-gradient(ellipse 55% 55% at 50% 100%, rgba(78, 204, 163, 0.06), transparent 60%);
  pointer-events: none;
}

@media (prefers-color-scheme: light) {
  body::before {
    background:
      radial-gradient(ellipse 60% 50% at 15% 5%, rgba(233, 69, 96, 0.08), transparent 60%),
      radial-gradient(ellipse 50% 45% at 85% 15%, rgba(15, 52, 96, 0.06), transparent 65%),
      radial-gradient(ellipse 55% 55% at 50% 100%, rgba(78, 204, 163, 0.05), transparent 60%);
  }
}

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

a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

svg {
  overflow: visible;
}

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

h1 {
  font-size: clamp(1.65rem, 4.2vw, 2.85rem);
  line-height: 1.25;
  margin-bottom: 1.2rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: 1.4rem;
  position: relative;
  padding-bottom: 0.7rem;
}

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

h3 {
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

ul, ol {
  margin: 0 0 1rem 1.35rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.45rem;
  padding-left: 0.15rem;
}

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

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

time {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

blockquote {
  margin: 1rem 0;
  padding: 1rem 1.4rem;
  border-left: 4px solid var(--accent-primary);
  background: var(--bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  font-style: normal;
}

blockquote p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

address {
  font-style: normal;
}

body > a[href="#main-content"] {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 0.7rem 1.4rem;
  background: var(--accent-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition-fast);
}

body > a[href="#main-content"]:focus {
  top: 16px;
}

header[role="banner"] {
  position: relative;
  overflow: hidden;
}

.brand-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.brand-bar > a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-bar > a:hover {
  text-decoration: none;
  color: var(--accent-primary);
}

.brand-bar > a svg {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.brand-bar > a:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.45);
}

.brand-bar nav {
  flex: 1;
  min-width: 0;
}

.brand-bar nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand-bar nav li {
  margin: 0;
  padding: 0;
}

.brand-bar nav a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.brand-bar nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--gradient-accent);
  transform: translateX(-50%);
  transition: width var(--transition-smooth);
}

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

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

.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 5vw, 3.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: clamp(1rem, 3vw, 2rem) 50% auto 50%;
  transform: translateX(-50%);
  width: min(100%, calc(var(--max-width) - 2rem));
  height: calc(100% - 1rem);
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  opacity: 0.55;
  z-index: -1;
  filter: blur(2px);
  animation: heroGlow 9s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.4; transform: translateX(-50%) scale(0.98); }
  100% { opacity: 0.62; transform: translateX(-50%) scale(1.01); }
}

.hero h1 {
  max-width: 900px;
  animation: fadeUp 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.hero p {
  max-width: 820px;
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  animation: fadeUp 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.hero p:nth-of-type(1) { animation-delay: 0.1s; }
.hero p:nth-of-type(2) { animation-delay: 0.2s; }
.hero p:nth-of-type(3) { animation-delay: 0.3s; }

.hero p:nth-of-type(3) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  color: var(--text-muted);
}

.hero p:nth-of-type(3) a {
  display: inline-block;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  text-decoration: none;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth), border-color var(--transition-smooth);
}

.hero p:nth-of-type(3) a:first-child {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(233, 69, 96, 0.35);
}

.hero p:nth-of-type(3) a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(233, 69, 96, 0.28);
  border-color: var(--accent-primary);
  text-decoration: none;
}

.hero figure {
  margin: 2.2rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  animation: fadeUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) 0.35s both;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hero figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.hero figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero figcaption {
  padding: 0.85rem 1.2rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 1.5rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.breadcrumb li {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb li[aria-current="page"] {
  color: var(--accent-secondary);
  font-weight: 600;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 4rem;
}

main > section {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  scroll-margin-top: 90px;
  animation: fadeUp 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

main > section:nth-child(odd) { animation-delay: 0.05s; }
main > section:nth-child(even) { animation-delay: 0.1s; }

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

main > section > article,
main > section > dl,
main > section > ul,
main > section > ol,
main > section > p,
main > section > address {
  position: relative;
}

main > section > article {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 1.9rem);
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth), background var(--transition-smooth);
}

main > section > article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.35), transparent 40%, transparent 60%, rgba(245, 166, 35, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

main > section > article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-color);
  background: var(--bg-elevated);
}

main > section > article:hover::before {
  opacity: 1;
}

main > section > article:last-child {
  margin-bottom: 0;
}

#about article:nth-of-type(1) h3,
#products article:nth-of-type(1) h3 {
  display: inline-block;
  padding: 0.15rem 0.75rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgba(233, 69, 96, 0.18), rgba(245, 166, 35, 0.12));
  border-left: 3px solid var(--accent-primary);
}

#about ul,
#products ul,
#solutions ul,
#howto ul,
#howto ol,
#news ul,
#sitemap ul,
#links ul {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem 1.1rem 2.3rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  list-style-position: outside;
}

#news ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding-left: 1.3rem;
}

#news ul li,
#sitemap ul li,
#links ul li {
  position: relative;
  padding-left: 1.4rem;
}

#news ul li::before,
#sitemap ul li::before,
#links ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 8px rgba(233, 69, 96, 0.5);
}

#news ul li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.7rem;
  align-items: baseline;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--border-subtle);
}

#news ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#news time {
  font-weight: 600;
  color: var(--accent-secondary);
  flex-shrink: 0;
}

#articles > article {
  padding-left: clamp(1.2rem, 3vw, 2rem);
  border-left: 3px solid transparent;
  background-image: linear-gradient(var(--bg-card), var(--bg-card)), var(--gradient-accent);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

#articles > article:hover {
  border-left-width: 3px;
}

#articles > article h3 {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

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

#articles > article > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(233, 69, 96, 0.12);
  border: 1px solid var(--border-color);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow 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(--gradient-accent);
  color: #fff;
  text-decoration: none;
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.3);
}

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

#faq dl {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 1.6rem);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

#faq dt {
  position: relative;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
  padding: 0.85rem 0.9rem 0.85rem 2.4rem;
  margin-top: 0.4rem;
  border-radius: var(--radius-md);
  cursor: default;
  transition: background var(--transition-fast), color var(--transition-fast);
}

#faq dt::before {
  content: "Q";
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 2px 10px rgba(233, 69, 96, 0.4);
}

#faq dt:hover {
  background: rgba(233, 69, 96, 0.08);
  color: var(--accent-secondary);
}

#faq dd {
  position: relative;
  margin: 0 0 0.35rem 0;
  padding: 0.2rem 0.9rem 1rem 2.4rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-subtle);
}

#faq dd:last-of-type {
  border-bottom: none;
  padding-bottom: 0.2rem;
}

#howto ol {
  counter-reset: howto-step;
  list-style: none;
  padding-left: 1.3rem;
}

#howto ol li {
  counter-increment: howto-step;
  position: relative;
  padding-left: 2.6rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--border-subtle);
}

#howto ol li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#howto ol li::before {
  content: counter(howto-step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-primary));
  box-shadow: 0 3px 12px rgba(233, 69, 96, 0.35);
}

#contact address {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  display: grid;
  gap: 0.5rem;
}

#contact address p {
  margin: 0;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border-subtle);
}

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

#contact address a {
  word-break: break-all;
}

#contact > p {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(78, 204, 163, 0.08);
  border: 1px solid rgba(78, 204, 163, 0.22);
  color: var(--text-secondary);
  font-size: 0.94rem;
}

#legal article h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#legal article h3::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--gradient-accent);
  flex-shrink: 0;
}

#links ul a {
  font-weight: 500;
}

footer[role="contentinfo"] {
  position: relative;
  margin-top: 2rem;
  padding: clamp(2rem, 5vw, 3.2rem) clamp(1rem, 4vw, 2rem) 2.2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, var(--max-width));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
  opacity: 0.6;
}

footer[role="contentinfo"] > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

footer[role="contentinfo"] nav {
  margin-top: 1.2rem;
}

footer[role="contentinfo"] nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer[role="contentinfo"] nav li {
  margin: 0;
  padding: 0;
}

footer[role="contentinfo"] nav a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

footer[role="contentinfo"] nav a:hover {
  color: var(--accent-primary);
  background: rgba(233, 69, 96, 0.1);
  text-decoration: none;
}

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

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

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

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

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

@media (max-width: 960px) {
  .brand-bar {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .brand-bar nav {
    flex-basis: 100%;
    order: 3;
  }

  .brand-bar nav ul {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.3rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .brand-bar nav ul::-webkit-scrollbar {
    display: none;
  }

  .brand-bar nav a {
    font-size: 0.84rem;
    padding: 0.35rem 0.6rem;
  }
}

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

  .hero {
    padding-top: 1.8rem;
  }

  .hero::before {
    inset: 0.5rem 0.5rem auto 0.5rem;
    transform: none;
    width: auto;
    height: calc(100% - 1rem);
    animation: none;
    opacity: 0.5;
    border-radius: var(--radius-lg);
  }

  .hero p:nth-of-type(3) {
    gap: 0.5rem;
  }

  .hero p:nth-of-type(3) a {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.6rem 0.9rem;
  }

  main > section > article {
    padding: 1.1rem 1rem;
    border-radius: var(--radius-md);
  }

  #about ul,
  #products ul,
  #solutions ul,
  #howto ul,
  #howto ol,
  #news ul,
  #sitemap ul,
  #links ul {
    padding: 0.9rem 1rem 0.9rem 2rem;
  }

  #news ul,
  #sitemap ul,
  #links ul {
    padding-left: 1rem;
  }

  #faq dt {
    padding-left: 2.1rem;
    font-size: 0.96rem;
  }

  #faq dd {
    padding-left: 2.1rem;
  }

  #howto ol li {
    padding-left: 2.3rem;
  }

  h2::after {
    width: 44px;
    height: 3px;
  }

  footer[role="contentinfo"] nav ul {
    gap: 0.3rem 0.8rem;
  }
}

@media (max-width: 400px) {
  .brand-bar > a span {
    font-size: 1.05rem;
  }

  .brand-bar nav a {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }

  #contact address {
    padding: 1rem;
  }
}

@media (hover: none) {
  main > section > article:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }

  .hero figure:hover {
    transform: none;
  }
}

@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;
  }
}

@media print {
  body::before,
  .brand-bar,
  .breadcrumb,
  footer[role="contentinfo"] nav {
    display: none;
  }

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

  main > section > article,
  #faq dl,
  #contact address {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    backdrop-filter: none;
  }

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