:root {
  --brand-900: #12263d;
  --brand-800: #1f3a5f;
  --brand-700: #2f5d8a;
  --brand-500: #4a86c5;
  --accent: #f2b544;
  --accent-strong: #e09a1f;
  --bg: #f5f8fc;
  --bg-soft: #eef3f9;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --text: #1c2b3a;
  --text-muted: #5a6b7d;
  --border: rgba(31, 58, 95, 0.12);
  --shadow-sm: 0 2px 8px rgba(18, 38, 61, 0.06);
  --shadow-md: 0 10px 30px rgba(18, 38, 61, 0.1);
  --shadow-lg: 0 20px 50px rgba(18, 38, 61, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --gradient-hero: linear-gradient(135deg, #1f3a5f 0%, #2f5d8a 45%, #4a86c5 100%);
  --gradient-accent: linear-gradient(135deg, #f2b544 0%, #e09a1f 100%);
  --gradient-soft: linear-gradient(160deg, rgba(74, 134, 197, 0.12), rgba(242, 181, 68, 0.1));
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;
  --header-h: 72px;
  --transition: 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-900: #0b1622;
    --brand-800: #16283d;
    --brand-700: #2a4f78;
    --brand-500: #6ba6e0;
    --bg: #0c1420;
    --bg-soft: #111d2c;
    --surface: #16232f;
    --surface-glass: rgba(22, 35, 47, 0.68);
    --text: #e6edf5;
    --text-muted: #9db0c4;
    --border: rgba(155, 190, 225, 0.16);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
    --gradient-hero: linear-gradient(135deg, #0f2237 0%, #1b3a5c 45%, #2c5f96 100%);
    --gradient-soft: linear-gradient(160deg, rgba(107, 166, 224, 0.14), rgba(242, 181, 68, 0.08));
  }
}

*,
*::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-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(74, 134, 197, 0.14), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(242, 181, 68, 0.12), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--brand-700);
  text-decoration: none;
  transition: color var(--transition);
}

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

@media (prefers-color-scheme: dark) {
  a {
    color: var(--brand-500);
  }
  a:hover,
  a:focus-visible {
    color: var(--accent);
  }
}

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

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

h1 {
  font-size: clamp(1.65rem, 1.2rem + 2vw, 2.6rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem);
  position: relative;
  padding-bottom: 0.5rem;
}

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

h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
}

p {
  margin: 0 0 1rem;
}

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

li {
  margin-bottom: 0.5rem;
}

strong {
  color: var(--brand-800);
}

@media (prefers-color-scheme: dark) {
  strong {
    color: var(--accent);
  }
}

/* ---------- Header ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(31, 58, 95, 0.3);
  transition: transform var(--transition);
}

.brand a:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-800);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  .brand-name {
    color: var(--text);
  }
}

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

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--gradient-soft);
  color: var(--brand-800);
  transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
  .main-nav a:hover,
  .main-nav a:focus-visible {
    color: var(--accent);
  }
}

#menu-toggle {
  display: none;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-hero);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

#menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ---------- Layout ---------- */
main {
  display: block;
}

main > section,
main > nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

main > section {
  padding-top: 56px;
  padding-bottom: 24px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding-top: 18px;
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border);
  font-weight: 700;
}

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

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

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

@media (prefers-color-scheme: dark) {
  .breadcrumb [aria-current="page"] {
    color: var(--accent);
  }
}

/* ---------- Hero ---------- */
#hero {
  position: relative;
  margin-top: 24px;
  padding: 48px 40px 40px;
  border-radius: var(--radius-lg);
  background: var(--gradient-hero);
  color: #f4f8fd;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(242, 181, 68, 0.28), transparent 60%),
    radial-gradient(500px 260px at 0% 100%, rgba(255, 255, 255, 0.14), transparent 65%);
  z-index: -1;
}

#hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 181, 68, 0.22), transparent 70%);
  z-index: -1;
  animation: floatSlow 12s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-18px, -22px, 0) scale(1.06); }
}

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

.hero-lead {
  max-width: 70ch;
  color: rgba(244, 248, 253, 0.88);
  font-size: 1.02rem;
}

.hero-banner {
  margin: 28px 0 32px;
}

.hero-banner figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 10px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-banner figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-banner svg {
  border-radius: var(--radius-sm);
  display: block;
}

.hero-banner figcaption {
  padding: 12px 8px 4px;
  text-align: center;
  font-size: 0.86rem;
  color: rgba(244, 248, 253, 0.78);
}

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

.hero-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 0.86rem;
  color: rgba(244, 248, 253, 0.82);
  transition: transform var(--transition), background var(--transition);
}

.hero-stats .stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-stats .num {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* ---------- Anchor nav ---------- */
#anchor-nav {
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

#anchor-nav h2 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

#anchor-nav h2::after {
  width: 40px;
  height: 3px;
}

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

#anchor-nav li {
  margin: 0;
}

#anchor-nav a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: all var(--transition);
}

#anchor-nav a:hover,
#anchor-nav a:focus-visible {
  color: #fff;
  background: var(--gradient-hero);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Generic section cards ---------- */
main > section:not(#hero):not(#anchor-nav) {
  position: relative;
}

#intro,
#products,
#advantages,
#solutions,
#applications,
#cases,
#reviews,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

#intro p,
#knowledge p {
  max-width: 78ch;
  color: var(--text-muted);
}

#intro h3,
#products h3,
#advantages h3,
#solutions h3,
#cases h3,
#howto h3 {
  margin-top: 1.6em;
}

/* Products & advantages cards */
#products > h3,
#advantages > h3,
#solutions > h3,
#applications > ul,
#cases > h3 {
  border-radius: var(--radius-md);
}

#products h3,
#advantages h3,
#solutions h3,
#cases h3 {
  padding: 18px 20px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-bottom: 0;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

#products h3 + p,
#advantages h3 + p,
#solutions h3 + p,
#cases h3 + p {
  padding: 0 20px 18px;
  margin: 0 0 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

#products h3:hover,
#products h3:hover + p,
#advantages h3:hover,
#advantages h3:hover + p,
#solutions h3:hover,
#solutions h3:hover + p,
#cases h3:hover,
#cases h3:hover + p {
  box-shadow: var(--shadow-md);
}

#products h3:hover,
#advantages h3:hover,
#solutions h3:hover,
#cases h3:hover {
  transform: translateY(-3px);
  color: var(--brand-700);
}

@media (prefers-color-scheme: dark) {
  #products h3:hover,
  #advantages h3:hover,
  #solutions h3:hover,
  #cases h3:hover {
    color: var(--accent);
  }
}

/* Applications list */
#applications ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#applications li {
  margin: 0;
  padding: 16px 18px 16px 52px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#applications li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--gradient-accent);
  box-shadow: 0 2px 8px rgba(242, 181, 68, 0.4);
}

#applications li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(242, 181, 68, 0.5);
}

/* Reviews */
#reviews blockquote {
  position: relative;
  margin: 0 0 18px;
  padding: 24px 24px 20px 56px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

#reviews blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 8px;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  opacity: 0.85;
}

#reviews blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

#reviews blockquote p {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1rem;
}

#reviews blockquote footer {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-style: normal;
}

/* News & articles */
#news article,
#articles article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 134, 197, 0.4);
}

#news h3,
#articles h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

#news time,
#articles time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

#articles article a {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-700);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

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

@media (prefers-color-scheme: dark) {
  #articles article a {
    color: var(--brand-500);
  }
  #articles article a:hover {
    color: var(--accent);
  }
}

/* FAQ */
#faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

#faq details[open] {
  border-color: rgba(242, 181, 68, 0.55);
  box-shadow: var(--shadow-md);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: background var(--transition), color var(--transition);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-800);
  background: var(--bg-soft);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

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

#faq summary:hover {
  background: var(--gradient-soft);
}

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-muted);
  animation: fadeIn 0.3s ease;
}

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

/* How-to */
#howto ol,
#howto ul {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 60px;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: var(--gradient-hero);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(31, 58, 95, 0.3);
}

#howto ul li {
  position: relative;
  padding: 12px 18px 12px 42px;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

#howto ul li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--gradient-accent);
}

#howto ol li:hover,
#howto ul li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

/* Contact */
#contact address {
  font-style: normal;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

#contact address p {
  margin: 0 0 10px;
  color: var(--text-muted);
}

#contact address p:last-child {
  margin-bottom: 0;
}

#contact address a {
  font-weight: 600;
}

/* Sitemap & links */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--gradient-hero);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Footer ---------- */
#site-footer {
  margin-top: 56px;
  padding: 48px 20px 56px;
  background: var(--brand-900);
  color: rgba(230, 237, 245, 0.78);
  border-top: 4px solid var(--accent);
}

#site-footer > section {
  max-width: var(--container);
  margin: 0 auto 26px;
}

#site-footer h2 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 10px;
}

#site-footer h2::after {
  width: 36px;
  height: 3px;
}

#site-footer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
}

#site-footer a {
  color: var(--accent);
}

#site-footer a:hover {
  color: #fff;
}

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-hero);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0.92;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition);
}

#back-to-top:hover {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(18, 38, 61, 0.4);
}

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  main > section,
  #anchor-nav {
    animation: revealUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  main > section:nth-of-type(2) { animation-delay: 0.05s; }
  main > section:nth-of-type(3) { animation-delay: 0.1s; }
  main > section:nth-of-type(4) { animation-delay: 0.15s; }

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

  @supports (animation-timeline: view()) {
    main > section {
      animation: revealView linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav a {
    padding: 7px 9px;
    font-size: 0.86rem;
  }

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

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

  #menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 12px 16px 20px;
    background: var(--surface-glass);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .main-nav a {
    display: block;
    padding: 12px 14px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

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

  #hero h1 {
    max-width: none;
  }

  #anchor-nav {
    padding: 18px;
  }

  main > section {
    padding-top: 44px;
  }
}

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

  .header-inner {
    padding: 0 14px;
  }

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

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  main > section,
  main > nav {
    padding-left: 14px;
    padding-right: 14px;
  }

  #hero {
    padding: 28px 16px 22px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-stats .stat {
    padding: 14px 8px;
    font-size: 0.78rem;
  }

  .hero-banner figure {
    padding: 6px;
  }

  #products h3,
  #advantages h3,
  #solutions h3,
  #cases h3 {
    padding: 14px 16px 4px;
  }

  #products h3 + p,
  #advantages h3 + p,
  #solutions h3 + p,
  #cases h3 + p {
    padding: 0 16px 14px;
  }

  #reviews blockquote {
    padding: 20px 18px 16px 44px;
  }

  #reviews blockquote::before {
    left: 12px;
    font-size: 2.6rem;
  }

  #howto ol li {
    padding: 12px 14px 12px 52px;
  }

  #howto ol li::before {
    left: 12px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 0.82rem;
  }

  #howto ul li {
    padding: 10px 14px 10px 36px;
  }

  #howto ul li::before {
    left: 14px;
  }

  #contact address {
    padding: 18px;
  }

  #back-to-top {
    right: 14px;
    bottom: 16px;
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  #site-footer {
    padding: 36px 14px 44px;
  }
}

/* ---------- Print ---------- */
@media print {
  #site-header,
  #back-to-top,
  #anchor-nav,
  #menu-toggle {
    display: none !important;
  }

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

  #hero {
    background: #fff;
    color: #000;
    box-shadow: none;
  }

  #hero h1,
  .hero-lead {
    color: #000;
  }

  main > section {
    animation: none !important;
    page-break-inside: avoid;
  }
}