:root {
  --bg: #0b0f1a;
  --bg-soft: #121a2b;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e8ecf6;
  --text-soft: #a7b1c6;
  --text-dim: #7c879e;
  --accent: #e94560;
  --accent-2: #533483;
  --accent-3: #0f3460;
  --accent-glow: rgba(233, 69, 96, 0.35);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.3);
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fb;
    --bg-soft: #ffffff;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.9);
    --border: rgba(20, 30, 60, 0.1);
    --text: #161d2e;
    --text-soft: #44506b;
    --text-dim: #6a768f;
    --accent: #d81f4a;
    --accent-2: #5b3aa8;
    --accent-3: #1a4b8c;
    --accent-glow: rgba(216, 31, 74, 0.28);
    --shadow: 0 18px 45px rgba(25, 40, 80, 0.14);
    --shadow-soft: 0 8px 24px rgba(25, 40, 80, 0.1);
    color-scheme: light;
  }
}

*,
*::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: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(83, 52, 131, 0.35), transparent 62%),
    radial-gradient(900px 520px at 6% 4%, rgba(15, 52, 96, 0.4), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(233, 69, 96, 0.16), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

a:hover {
  color: var(--text);
}

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

strong {
  color: var(--text);
}

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

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

header > div {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

header > div > a[aria-label] {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  background: linear-gradient(120deg, var(--accent), #ff8fa3 45%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

header > div > a[aria-label]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.7;
}

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

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

header nav ul li a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav ul li a:hover {
  color: var(--text);
  background: var(--surface);
  transform: translateY(-1px);
}

/* Search */
header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  position: relative;
}

header form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

header form[role="search"] input[type="search"] {
  width: 220px;
  max-width: 42vw;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

header form[role="search"] input[type="search"]::placeholder {
  color: var(--text-dim);
}

header form[role="search"] input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-strong);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

header form[role="search"] button {
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px var(--accent-glow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  white-space: nowrap;
}

header form[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--accent-glow);
  filter: brightness(1.08);
}

header form[role="search"] button:active {
  transform: translateY(0) scale(0.98);
}

/* ============ Main layout ============ */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

main > section {
  margin-bottom: 56px;
  animation: rise 0.7s var(--ease) both;
}

main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.05s; }
main > section:nth-of-type(3) { animation-delay: 0.08s; }
main > section:nth-of-type(4) { animation-delay: 0.11s; }
main > section:nth-of-type(5) { animation-delay: 0.14s; }
main > section:nth-of-type(6) { animation-delay: 0.17s; }
main > section:nth-of-type(7) { animation-delay: 0.2s; }

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

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

/* ============ Breadcrumb ============ */
main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: fit-content;
}

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

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

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

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

main > nav[aria-label="面包屑导航"] ol li[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ============ Hero ============ */
#hero {
  position: relative;
  padding: 52px 40px 44px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(233, 69, 96, 0.22), rgba(83, 52, 131, 0.28) 45%, rgba(15, 52, 96, 0.32)),
    rgba(18, 26, 43, 0.72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: light) {
  #hero {
    background:
      linear-gradient(135deg, rgba(216, 31, 74, 0.14), rgba(91, 58, 168, 0.16) 45%, rgba(26, 75, 140, 0.16)),
      rgba(255, 255, 255, 0.78);
  }
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--accent-glow), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -12%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(83, 52, 131, 0.4), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  animation: floatGlow 16s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-24px, 22px, 0) scale(1.08); }
}

#hero > * {
  position: relative;
  z-index: 1;
}

#hero h1 {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}

#hero h1::after {
  content: "";
  display: block;
  width: 88px;
  height: 4px;
  margin-top: 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
}

#hero p {
  max-width: 76ch;
  font-size: 1rem;
  color: var(--text-soft);
}

#hero figure {
  margin: 32px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

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

#hero figure svg {
  width: 100%;
  height: auto;
}

#hero figcaption {
  padding: 14px 20px;
  font-size: 0.86rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* ============ Section headings ============ */
main > section > h2 {
  position: relative;
  margin: 0 0 24px;
  padding-left: 18px;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px var(--accent-glow);
}

main > section > h3 {
  margin: 28px 0 12px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

main > section > h3::before {
  content: "◆";
  display: inline-block;
  margin-right: 8px;
  font-size: 0.7em;
  vertical-align: 0.12em;
  color: var(--accent);
}

/* ============ Cards (generic sections) ============ */
#about,
#solutions,
#cases,
#howto,
#contact {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-soft);
}

/* ============ Lists ============ */
main > section ul {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

main > section > ul > li {
  position: relative;
  padding: 12px 16px 12px 42px;
  font-size: 0.95rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

main > section > ul > li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-glow);
}

main > section > ul > li:hover {
  transform: translateX(4px);
  border-color: var(--accent);
  background: var(--surface-strong);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

main > section ol {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 10px;
}

main > section ol > li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 58px;
  font-size: 0.95rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

main > section ol > li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 14px var(--accent-glow);
}

main > section ol > li:hover {
  transform: translateX(4px);
  border-color: var(--accent);
  background: var(--surface-strong);
}

/* ============ Products ============ */
#products {
  padding: 0;
}

#products > p {
  margin-bottom: 26px;
}

#products > h3 {
  margin-top: 0;
}

#products {
  display: block;
}

#products > h3,
#products > p,
#products > ul {
  position: relative;
}

#products > h3 + p,
#products > p + h3 {
  margin-top: 0;
}

/* Product blocks as cards via h3 siblings */
#products > h3 {
  padding: 20px 22px 8px;
  margin: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.14), rgba(83, 52, 131, 0.14));
  border: 1px solid var(--border);
  border-bottom: none;
  transition: background 0.35s var(--ease);
}

#products > h3::before {
  color: var(--accent);
}

#products > h3 + p {
  margin: 0 0 22px;
  padding: 0 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#products > h3 + p:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

#products > ul {
  margin-top: 8px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 52, 96, 0.22), rgba(83, 52, 131, 0.18));
  border: 1px solid var(--border);
}

/* ============ News ============ */
#news {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-soft);
}

#news > h2,
#news > p {
  grid-column: 1 / -1;
}

#news > p {
  margin-bottom: 4px;
}

#news article {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
}

#news article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.85;
}

#news article:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

#news article h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--text);
}

#news article h3::before {
  content: none;
}

#news article p {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

#news article time {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: var(--accent-glow);
  border-radius: 999px;
}

/* ============ Articles ============ */
#articles {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

#articles > h2,
#articles > p {
  grid-column: 1 / -1;
}

#articles > p {
  margin-bottom: 4px;
}

#articles article {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-soft);
  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:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--surface-strong);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.36);
}

#articles article h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--text);
}

#articles article h3::before {
  content: none;
}

#articles article time {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-soft);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
}

#articles article p {
  flex: 1 1 auto;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

#articles article a {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px var(--accent-glow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

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

#articles article a:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px var(--accent-glow);
  filter: brightness(1.08);
}

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

/* ============ FAQ ============ */
#faq {
  display: grid;
  gap: 12px;
}

#faq > h2 {
  margin-bottom: 12px;
}

#faq details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#faq details:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

#faq details[open] {
  background: var(--surface-strong);
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

#faq details summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}

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

#faq details summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  border-radius: 50%;
  background: var(--accent-glow);
  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);
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

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

#faq details p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.93rem;
  color: var(--text-soft);
  animation: fadeIn 0.4s var(--ease);
}

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

/* ============ Cases / blockquote ============ */
#cases blockquote {
  margin: 24px 0 0;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.12), rgba(83, 52, 131, 0.14));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}

#cases blockquote p {
  position: relative;
  margin: 0;
  padding-left: 22px;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
}

#cases blockquote p + p {
  margin-top: 12px;
}

#cases blockquote p::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -6px;
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.85;
}

/* ============ Contact / address ============ */
#contact address {
  font-style: normal;
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

#contact address p {
  margin: 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.94rem;
}

#contact address p::before {
  content: "›";
  position: absolute;
  left: 6px;
  top: 0;
  font-weight: 800;
  color: var(--accent);
}

#contact address a {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent-glow);
}

#contact address a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

#sitemap ul li::before,
#links ul li::before {
  content: "→";
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-weight: 700;
  color: var(--accent);
  transform: translateY(-50%);
  left: 16px;
}

#sitemap ul li,
#links ul li {
  padding: 10px 14px 10px 36px;
}

#sitemap ul li a,
#links ul li a {
  color: var(--text-soft);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: var(--accent);
}

/* ============ Legal sections ============ */
#privacy,
#disclaimer,
#copyright {
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-soft);
}

#privacy h2,
#disclaimer h2,
#copyright h2 {
  font-size: 1.2rem;
}

#privacy p,
#disclaimer p,
#copyright p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ============ Footer ============ */
footer {
  position: relative;
  margin-top: 20px;
  padding: 40px 20px 46px;
  text-align: center;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28)),
    var(--bg-soft);
}

@media (prefers-color-scheme: light) {
  footer {
    background:
      linear-gradient(180deg, transparent, rgba(25, 40, 80, 0.05)),
      var(--bg-soft);
  }
}

footer p {
  margin: 0 auto 8px;
  max-width: 900px;
  font-size: 0.86rem;
  color: var(--text-dim);
}

footer p:first-child {
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

footer a {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

footer a:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px var(--accent-glow);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  header > div {
    gap: 12px;
  }

  header nav ul li a {
    padding: 7px 9px;
    font-size: 0.85rem;
  }

  header form[role="search"] input[type="search"] {
    width: 180px;
  }

  #hero {
    padding: 40px 28px 34px;
  }

  #about,
  #solutions,
  #cases,
  #howto,
  #contact,
  #news {
    padding: 26px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: auto;
  }

  header > div {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  header nav {
    order: 3;
    flex: 1 1 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

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

  header nav ul {
    flex-wrap: nowrap;
    gap: 2px;
  }

  header nav ul li a {
    white-space: nowrap;
    padding: 8px 11px;
    background: var(--surface);
    border: 1px solid var(--border);
  }

  header form[role="search"] {
    flex: 1 1 100%;
    margin-left: 0;
  }

  header form[role="search"] input[type="search"] {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
  }

  main {
    padding: 20px 16px 48px;
  }

  main > section {
    margin-bottom: 40px;
  }

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

  #about,
  #solutions,
  #cases,
  #howto,
  #contact,
  #news,
  #privacy,
  #disclaimer,
  #copyright {
    padding: 22px;
    border-radius: var(--radius);
  }

  #news {
    grid-template-columns: 1fr;
  }

  #articles {
    grid-template-columns: 1fr;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr 1fr;
  }
}

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

  #hero h1 {
    font-size: 1.55rem;
  }

  #hero h1::after {
    margin-top: 14px;
  }

  #hero figure {
    margin-top: 22px;
  }

  main > section > h2 {
    font-size: 1.22rem;
    padding-left: 14px;
  }

  #products > h3 {
    padding: 16px 18px 6px;
  }

  #products > h3 + p {
    padding: 0 18px 16px;
  }

  #products > ul {
    padding: 18px;
  }

  #faq details summary {
    padding: 15px 50px 15px 18px;
    font-size: 0.92rem;
  }

  #faq details p {
    padding: 0 18px 18px;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

  main > section > ul > li,
  main > section ol > li {
    font-size: 0.9rem;
  }

  #contact address {
    padding: 18px;
  }

  footer {
    padding: 32px 16px 38px;
  }
}

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

  header,
  footer,
  #hero figure,
  #sitemap,
  #links {
    display: none !important;
  }

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

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