:root {
  --bg: #0f0f1a;
  --bg-soft: #1a1a2e;
  --bg-card: rgba(30, 30, 52, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --text: #eef0f8;
  --text-soft: #b8bcd4;
  --text-dim: #8b90ad;
  --primary: #e94560;
  --primary-soft: rgba(233, 69, 96, 0.16);
  --accent: #f9d371;
  --accent-2: #5eead4;
  --accent-3: #8b7cf6;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.28);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #2b1b3d 42%, #4a1d3f 72%, #6b2340 100%);
  --grad-primary: linear-gradient(135deg, #e94560 0%, #8b7cf6 100%);
  --grad-accent: linear-gradient(135deg, #f9d371 0%, #e94560 100%);
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-soft: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-glass: rgba(255, 255, 255, 0.55);
    --text: #191a2b;
    --text-soft: #4a4d63;
    --text-dim: #6f7489;
    --border: rgba(25, 26, 43, 0.1);
    --border-strong: rgba(25, 26, 43, 0.18);
    --shadow: 0 18px 50px rgba(30, 32, 60, 0.14);
    --shadow-soft: 0 8px 28px rgba(30, 32, 60, 0.1);
    --grad-hero: linear-gradient(135deg, #ffe9ef 0%, #f3e8ff 40%, #e5f6ff 75%, #fff6e0 100%);
    --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(233, 69, 96, 0.16), transparent 62%),
    radial-gradient(760px 460px at 92% 4%, rgba(139, 124, 246, 0.16), transparent 60%),
    radial-gradient(700px 520px at 50% 100%, rgba(94, 234, 212, 0.08), transparent 65%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

ul,
ol {
  padding-left: 1.35rem;
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.45rem;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.85rem;
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.85rem);
}

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

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--grad-primary);
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--text);
}

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

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

blockquote {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

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

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

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

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

.brand:hover {
  color: var(--text);
  transform: translateY(-1px);
}

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

.brand:hover svg {
  transform: rotate(-6deg) scale(1.05);
}

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

#site-header nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.4rem 0.72rem;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.28s var(--ease), background 0.28s var(--ease), transform 0.28s var(--ease);
}

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

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--text);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

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

.site-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 1 280px;
  min-width: 180px;
}

.site-search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5rem 0.9rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease);
}

.site-search input::placeholder {
  color: var(--text-dim);
}

.site-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  background: var(--bg-card);
}

.site-search button {
  flex-shrink: 0;
  padding: 0.5rem 0.95rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-primary);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), filter 0.28s var(--ease);
}

.site-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(233, 69, 96, 0.4);
  filter: brightness(1.06);
}

.site-search button:active {
  transform: translateY(0);
}

/* ============ Main & Sections ============ */
main {
  display: block;
}

main > section,
main > nav.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main > section {
  margin-top: 2.6rem;
  margin-bottom: 2.6rem;
}

main > section:first-of-type {
  margin-top: 0;
}

/* Cards for content sections */
#about,
#products,
#services,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#knowledge,
#contact,
#sitemap,
#links {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  background-image: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

#about::before,
#products::before,
#services::before,
#solutions::before,
#cases::before,
#news::before,
#articles::before,
#faq::before,
#howto::before,
#knowledge::before,
#contact::before,
#sitemap::before,
#links::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0.85;
}

#about:hover,
#products:hover,
#services:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#knowledge:hover,
#contact:hover,
#sitemap:hover,
#links:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: var(--grad-hero);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(520px 340px at 18% 22%, rgba(233, 69, 96, 0.4), transparent 65%),
    radial-gradient(560px 380px at 82% 18%, rgba(139, 124, 246, 0.36), transparent 68%),
    radial-gradient(480px 320px at 55% 88%, rgba(249, 211, 113, 0.2), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  animation: heroFloat 16s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
  pointer-events: none;
  z-index: -1;
}

@keyframes heroFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(0, -18px, 0) scale(1.05); }
}

.hero-carousel {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.4rem 1.25rem 1.4rem;
  min-height: 320px;
}

.slide {
  position: absolute;
  inset: 3.4rem 1.25rem 1.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), visibility 0.7s;
  pointer-events: none;
}

.slide.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.slide h1,
.slide h2 {
  color: #fff;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.35);
  max-width: 900px;
}

.slide h2 {
  padding-bottom: 0;
}

.slide h2::after {
  display: none;
}

.slide p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}

.slide .hero-lead {
  font-size: 1.02rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
}

.slide .hero-meta {
  display: inline-block;
  padding: 0.32rem 0.9rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 1.15rem;
}

.cta {
  display: inline-block;
  padding: 0.78rem 1.9rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1a1a2e;
  background: linear-gradient(135deg, #f9d371 0%, #ffb86b 55%, #e94560 130%);
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 32px rgba(249, 211, 113, 0.32);
  position: relative;
  overflow: hidden;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), filter 0.32s var(--ease);
}

.cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s var(--ease);
}

.cta:hover,
.cta:focus-visible {
  color: #1a1a2e;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 42px rgba(233, 69, 96, 0.42);
  filter: brightness(1.04);
}

.cta:hover::after {
  left: 130%;
}

/* Hero stats */
.hero-stats {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.hero-stats .stat {
  padding: 1.05rem 0.9rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.hero-stats .stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(249, 211, 113, 0.5);
}

.hero-stats .num {
  display: block;
  font-size: clamp(1.5rem, 3.6vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 0%, #f9d371 60%, #ffb86b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.hero-stats .label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  padding-top: 1.4rem;
  padding-bottom: 0;
}

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

.breadcrumb li {
  margin: 0;
  color: var(--text-dim);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--text-dim);
  opacity: 0.7;
}

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

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

.breadcrumb li[aria-current] {
  color: var(--primary);
  font-weight: 600;
}

/* ============ Lists in content ============ */
#about ul,
#products ul,
#solutions ul,
#howto ul,
#howto ol,
#contact ul,
#sitemap ul,
#links ul,
#news .news-list {
  list-style: none;
  padding-left: 0;
}

#about ul li,
#products ul li,
#solutions ul li,
#howto ul li,
#howto ol li,
#contact ul li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--text-soft);
}

#about ul li::before,
#products ul li::before,
#solutions ul li::before,
#howto ul li::before,
#contact ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--grad-primary);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}

#about ul li:hover::before,
#products ul li:hover::before,
#solutions ul li:hover::before,
#howto ul li:hover::before,
#contact ul li:hover::before {
  transform: rotate(135deg) scale(1.15);
}

#howto ol {
  counter-reset: step;
}

#howto ol li {
  counter-increment: step;
  padding-left: 2.5rem;
  margin-bottom: 0.7rem;
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-primary);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.35);
  transition: transform 0.3s var(--ease);
}

#howto ol li:hover::before {
  transform: scale(1.12);
}

/* News list */
.news-list li {
  position: relative;
  padding: 0.7rem 0.9rem 0.7rem 1.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-soft);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.32s var(--ease), background 0.32s var(--ease), border-color 0.32s var(--ease);
}

.news-list li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1.15rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.16);
}

.news-list li:hover {
  transform: translateX(5px);
  background: var(--bg-card);
  border-color: var(--border-strong);
}

.news-list time {
  display: inline-block;
  margin-right: 0.6rem;
  padding: 0.05rem 0.55rem;
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(249, 211, 113, 0.12);
  border-radius: var(--radius-pill);
  vertical-align: middle;
}

/* ============ Articles ============ */
#articles article {
  position: relative;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

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

#articles article:hover {
  transform: translateY(-4px);
  background: var(--bg-card);
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: var(--shadow-soft);
}

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

#articles article h3 {
  margin-bottom: 0.35rem;
  transition: color 0.3s var(--ease);
}

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

#articles article p {
  font-size: 0.94rem;
  margin-bottom: 0.55rem;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

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

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

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

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 0.7rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#faq details:hover {
  border-color: var(--border-strong);
}

#faq details[open] {
  background: var(--bg-card);
  border-color: rgba(233, 69, 96, 0.42);
  box-shadow: var(--shadow-soft);
}

#faq summary {
  position: relative;
  padding: 0.9rem 2.6rem 0.9rem 1.1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

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

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

#faq details p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  animation: faqIn 0.45s var(--ease);
}

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

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

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

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

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-primary);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(233, 69, 96, 0.32);
}

/* ============ Contact ============ */
#contact ul li {
  padding: 0.5rem 0.9rem 0.5rem 2rem;
  margin-bottom: 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact ul li::before {
  left: 0.9rem;
  top: 1.05em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: none;
}

#contact ul li:hover {
  transform: translateX(5px);
  border-color: rgba(249, 211, 113, 0.42);
}

/* ============ Footer ============ */
footer {
  margin-top: 3rem;
  padding: 2.6rem 1.25rem 1.6rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (prefers-color-scheme: light) {
  footer {
    background: linear-gradient(180deg, transparent, rgba(25, 26, 43, 0.05));
  }
}

footer section {
  max-width: var(--max);
  margin: 0 auto 1.6rem;
}

footer h2 {
  font-size: 1.08rem;
  padding-bottom: 0.45rem;
}

footer h2::after {
  width: 40px;
  height: 3px;
}

footer p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

footer ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-bottom: 0.9rem;
}

footer li {
  margin: 0;
}

footer a {
  color: var(--text-soft);
  font-size: 0.9rem;
  position: relative;
}

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

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

footer a:hover::after {
  width: 100%;
}

.copyright {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 1.15rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(233, 69, 96, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, box-shadow 0.35s var(--ease);
}

#back-to-top.is-visible,
#back-to-top:hover,
#back-to-top:focus-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#back-to-top:hover {
  box-shadow: 0 18px 40px rgba(233, 69, 96, 0.55);
  transform: translateY(-4px) scale(1.06);
}

#back-to-top:active {
  transform: translateY(0) scale(0.96);
}

/* ============ Scroll reveal ============ */
main > section:not(.hero),
main > nav.breadcrumb {
  animation: revealUp 0.8s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 26%;
}

@supports not (animation-timeline: view()) {
  main > section:not(.hero),
  main > nav.breadcrumb {
    animation: none;
  }
}

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

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .header-inner {
    gap: 0.75rem;
  }

  .site-search {
    flex: 1 1 100%;
    order: 3;
    max-width: none;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0.6rem 1rem;
  }

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

  .nav-list {
    gap: 0.1rem 0.2rem;
  }

  .nav-list a {
    padding: 0.35rem 0.6rem;
    font-size: 0.86rem;
  }

  .hero-carousel {
    padding: 2.4rem 1rem 1rem;
    min-height: 0;
  }

  .slide {
    position: relative;
    inset: auto;
    display: none;
    transform: none;
  }

  .slide.is-active {
    display: block;
  }

  .slide .hero-lead {
    font-size: 0.96rem;
  }

  .hero-stats {
    padding: 0 1rem 2.2rem;
    gap: 0.65rem;
  }

  .hero-stats .stat {
    padding: 0.8rem 0.5rem;
  }

  main > section,
  main > nav.breadcrumb {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #about,
  #products,
  #services,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #knowledge,
  #contact,
  #sitemap,
  #links {
    padding: 1.4rem 1.05rem;
    border-radius: var(--radius-sm);
  }

  main > section {
    margin-top: 1.8rem;
    margin-bottom: 1.8rem;
  }

  #articles article {
    padding: 1rem 1.05rem;
  }

  #faq summary {
    padding: 0.8rem 2.4rem 0.8rem 0.95rem;
    font-size: 0.94rem;
  }

  #back-to-top {
    right: 0.85rem;
    bottom: 1rem;
    width: 42px;
    height: 42px;
  }

  footer {
    padding: 2rem 1rem 1.4rem;
  }
}

@media (max-width: 420px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats .label {
    font-size: 0.74rem;
  }

  .cta {
    width: 100%;
    text-align: center;
  }
}

/* ============ Motion preferences ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero::before {
    animation: none;
  }
}

/* ============ Print ============ */
@media print {
  #site-header,
  #back-to-top,
  .site-search,
  .hero-carousel,
  .hero-stats {
    display: none !important;
  }

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

  main > section,
  #about,
  #products,
  #services,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #knowledge,
  #contact,
  #sitemap,
  #links {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    break-inside: avoid;
  }
}