:root {
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-3: #06b6d4;
  --accent: #fbbf24;
  --bg: #f5f7ff;
  --bg-soft: #eef2ff;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.9);
  --text: #1e1b4b;
  --text-soft: #4c4a6e;
  --text-muted: #6b6a8c;
  --line: rgba(79, 70, 229, 0.14);
  --line-strong: rgba(79, 70, 229, 0.28);
  --shadow-sm: 0 2px 10px rgba(30, 27, 75, 0.06);
  --shadow-md: 0 10px 30px rgba(30, 27, 75, 0.1);
  --shadow-lg: 0 24px 60px rgba(30, 27, 75, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --container: 1180px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.12));
  --grad-btn: linear-gradient(135deg, #4f46e5, #7c3aed);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b1a;
    --bg-soft: #12122a;
    --surface: #16162e;
    --surface-glass: rgba(22, 22, 46, 0.66);
    --surface-glass-strong: rgba(22, 22, 46, 0.88);
    --text: #eceaff;
    --text-soft: #c3c1e6;
    --text-muted: #9d9bc4;
    --line: rgba(124, 58, 237, 0.24);
    --line-strong: rgba(124, 58, 237, 0.42);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
    --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(6, 182, 212, 0.16));
  }
}

html[data-theme="dark"] {
  --bg: #0b0b1a;
  --bg-soft: #12122a;
  --surface: #16162e;
  --surface-glass: rgba(22, 22, 46, 0.66);
  --surface-glass-strong: rgba(22, 22, 46, 0.88);
  --text: #eceaff;
  --text-soft: #c3c1e6;
  --text-muted: #9d9bc4;
  --line: rgba(124, 58, 237, 0.24);
  --line-strong: rgba(124, 58, 237, 0.42);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(6, 182, 212, 0.16));
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(79, 70, 229, 0.14), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(6, 182, 212, 0.12), transparent 55%);
  background-attachment: fixed;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.3rem); }
h4 { font-size: 1.05rem; }

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

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
  color: var(--text-soft);
}

li { margin-bottom: 0.35em; }

ul li::marker { color: var(--brand-3); }

time {
  color: var(--text-muted);
  font-size: 0.86em;
}

::selection {
  background: rgba(124, 58, 237, 0.28);
  color: var(--text);
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

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

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 6px 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.brand-slogan {
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

#main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.logo svg {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.5);
}

.logo:hover {
  text-decoration: none;
  color: var(--brand);
}

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

.nav-list li { margin: 0; }

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

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

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

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

.site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 260px;
}

.site-search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface-glass-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.site-search input:focus {
  outline: none;
  border-color: var(--brand-3);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.18);
}

.site-search button,
#theme-toggle,
#mobile-menu-toggle {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-btn);
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

#theme-toggle,
#mobile-menu-toggle {
  background: var(--surface-glass-strong);
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.site-search button:hover,
#theme-toggle:hover,
#mobile-menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.05);
}

.site-search button:active,
#theme-toggle:active,
#mobile-menu-toggle:active {
  transform: translateY(0) scale(0.97);
}

#mobile-menu-toggle { display: none; }

/* ============ Main layout ============ */
main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 40px;
}

main > section {
  margin: 0 0 56px;
  padding: 36px clamp(18px, 3vw, 40px);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
  opacity: 0;
  transform: translateY(26px);
  animation: riseIn 0.7s var(--ease) forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

@supports not (animation-timeline: view()) {
  main > section {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

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

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

main > section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-btn);
}

main > section > h3 {
  color: var(--brand-2);
  margin-top: 1.6em;
}

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

/* ============ Hero ============ */
#hero {
  position: relative;
  margin-top: 28px !important;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px) !important;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(251, 191, 36, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(79, 70, 229, 0.95) 0%, rgba(124, 58, 237, 0.92) 45%, rgba(6, 182, 212, 0.9) 100%);
  border: none;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(closest-side, rgba(251, 191, 36, 0.18), transparent);
  background-size: 60% 60%, 50% 50%;
  background-position: 20% 30%, 80% 70%;
  background-repeat: no-repeat;
  animation: floatGlow 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes floatGlow {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(30, 27, 75, 0.35);
  max-width: 22ch;
}

#hero .hero-lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  max-width: 74ch;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 30px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 10px 28px rgba(30, 27, 75, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--brand-2);
  text-decoration: none;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(30, 27, 75, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 34px rgba(30, 27, 75, 0.3);
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.hero-figure:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 34px 80px rgba(30, 27, 75, 0.45);
}

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

.hero-figure figcaption {
  padding: 12px 18px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(30, 27, 75, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============ Breadcrumb ============ */
#breadcrumb {
  margin: 18px 0 30px;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

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

#breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }

#breadcrumb li + li::before {
  content: "›";
  color: var(--text-muted);
  font-size: 1rem;
  opacity: 0.7;
}

#breadcrumb a {
  color: var(--text-soft);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

#breadcrumb a:hover {
  color: var(--brand);
  background: var(--grad-soft);
  text-decoration: none;
}

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

/* ============ Products / feature cards ============ */
#products h3,
#services h3,
#scenarios h3,
#solutions h3,
#cases h3 {
  padding: 14px 18px;
  margin-top: 1.4em;
  background: var(--grad-soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#products h3:hover,
#services h3:hover,
#scenarios h3:hover,
#solutions h3:hover,
#cases h3:hover {
  transform: translateX(6px);
  border-left-color: var(--brand-3);
  box-shadow: var(--shadow-sm);
}

#products h4 {
  display: inline-block;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--brand-2);
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#products h4:hover {
  transform: translateY(-2px);
  background: var(--grad-soft);
  box-shadow: var(--shadow-md);
}

/* ============ Testimonials ============ */
#testimonials blockquote {
  position: relative;
  margin: 0 0 20px;
  padding: 26px 26px 22px 62px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#testimonials blockquote::before {
  content: "“";
  position: absolute;
  left: 18px;
  top: 6px;
  font-size: 3.4rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--grad-btn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

#testimonials blockquote:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

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

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

/* ============ News ============ */
#news h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 1.08rem;
}

#news h3 time {
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  color: var(--brand-2);
  font-weight: 600;
}

/* ============ Articles ============ */
#articles > p {
  padding: 16px 20px;
  background: var(--grad-soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

#articles {
  display: block;
}

#articles > article {
  position: relative;
  margin: 0 0 18px;
  padding: 22px 24px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

#articles > article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-btn);
  transform: scaleY(0.2);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

#articles > article:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

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

#articles > article h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: var(--text);
  transition: color 0.25s var(--ease);
}

#articles > article:hover h3 {
  color: var(--brand-2);
}

#articles > article time {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  color: var(--brand-2);
  font-weight: 600;
}

#articles > article p {
  margin-bottom: 12px;
  font-size: 0.93rem;
}

#articles > article > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

#articles > article > a:hover,
#articles > article > a:focus-visible {
  color: #fff;
  text-decoration: none;
  background: var(--grad-btn);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

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

/* ============ FAQ ============ */
#faq details {
  margin: 0 0 12px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

#faq details:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: var(--brand-3);
  box-shadow: 0 12px 34px rgba(6, 182, 212, 0.18);
}

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

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

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

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

#faq summary:hover {
  background: var(--grad-soft);
  color: var(--brand-2);
}

#faq details > p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.93rem;
  animation: fadeSlide 0.4s var(--ease);
}

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

/* ============ HowTo ============ */
#howto h3 {
  display: inline-block;
  padding: 6px 18px;
  margin: 1.4em 0 0.8em;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--brand-2);
  font-size: 0.98rem;
}

#howto h4 {
  position: relative;
  padding-left: 26px;
  margin-top: 1.2em;
  color: var(--text);
}

#howto h4::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad-btn);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto h4:hover::before {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.2);
}

/* ============ Contact ============ */
#contact h3 {
  color: var(--brand-2);
  margin-top: 1.6em;
}

#contact p {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

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

#contact a {
  font-weight: 600;
}

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

#sitemap a,
#links a {
  display: block;
  padding: 10px 16px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  text-decoration: none;
  background: var(--grad-btn);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.32);
}

#links a {
  font-weight: 600;
  color: var(--brand);
}

/* ============ Legal ============ */
#legal h3 {
  color: var(--brand-2);
}

#legal p {
  font-size: 0.94rem;
}

/* ============ Footer ============ */
#site-footer {
  margin-top: 20px;
  padding: 40px 20px 56px;
  text-align: center;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.88rem;
}

#site-footer p {
  margin: 0 0 8px;
  color: var(--text-muted);
}

#site-footer p:first-child {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

#site-footer a {
  color: var(--text-soft);
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

#site-footer a:hover {
  color: var(--brand);
  background: var(--grad-soft);
  text-decoration: none;
}

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

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

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

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

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .site-search { flex-basis: 200px; }
  .nav-list a { padding: 6px 9px; font-size: 0.86rem; }
}

@media (max-width: 920px) {
  :root { --header-h: 56px; }

  #main-nav {
    gap: 10px;
    padding: 10px 16px;
  }

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

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

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

  .site-search {
    order: 3;
    flex: 1 1 180px;
  }

  #mobile-menu-toggle { display: inline-flex; }

  #main-nav.is-collapsed .nav-list,
  #main-nav.is-collapsed .site-search {
    display: none;
  }

  main > section {
    padding: 28px 20px;
    border-radius: var(--radius);
  }

  #hero { border-radius: var(--radius-lg) !important; }
}

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

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 6px 16px;
    font-size: 0.72rem;
  }

  #main-nav {
    padding: 8px 14px;
    gap: 8px;
  }

  .logo { font-size: 1rem; gap: 8px; }
  .logo svg { width: 34px; height: 34px; }

  .site-search {
    order: 5;
    flex: 1 1 100%;
    margin-top: 4px;
  }

  #theme-toggle,
  #mobile-menu-toggle {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  main { padding: 0 14px 32px; }

  main > section {
    margin-bottom: 36px;
    padding: 24px 16px;
    border-radius: var(--radius);
  }

  main > section > h2 { padding-bottom: 12px; margin-bottom: 18px; }
  main > section > h2::after { width: 48px; height: 3px; }

  #hero {
    margin-top: 18px !important;
    padding: 28px 18px !important;
    border-radius: var(--radius) !important;
  }

  #hero h1 { max-width: none; font-size: 1.42rem; }

  .hero-actions { gap: 10px; margin: 20px 0 24px; }

  .btn-primary,
  .btn-secondary {
    flex: 1 1 100%;
    padding: 12px 20px;
    font-size: 0.92rem;
  }

  .hero-figure figcaption { font-size: 0.78rem; padding: 10px 14px; }

  #breadcrumb { margin: 12px 0 22px; font-size: 0.8rem; }

  #products h3,
  #services h3,
  #scenarios h3,
  #solutions h3,
  #cases h3 {
    padding: 12px 14px;
    font-size: 1rem;
  }

  #testimonials blockquote {
    padding: 22px 18px 18px 48px;
  }

  #testimonials blockquote::before { left: 12px; font-size: 2.8rem; }

  #articles > article { padding: 18px 16px; }
  #articles > article h3 { font-size: 1rem; }

  #faq summary { padding: 14px 48px 14px 16px; font-size: 0.94rem; }
  #faq summary::after { right: 14px; width: 24px; height: 24px; }
  #faq details > p { padding: 0 16px 16px; font-size: 0.9rem; }

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

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

  #site-footer { padding: 30px 16px 88px; font-size: 0.82rem; }

  #back-to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; font-size: 0.68rem; }
}

@media (max-width: 380px) {
  #sitemap ul,
  #links ul { grid-template-columns: 1fr; }
  #hero h1 { font-size: 1.28rem; }
}

/* ============ Motion & print ============ */
@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;
  }
  main > section {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media print {
  #site-header,
  #back-to-top,
  .hero-actions,
  .site-search,
  #theme-toggle,
  #mobile-menu-toggle { display: none !important; }

  body { background: #fff; color: #000; }
  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  a { color: #000; text-decoration: underline; }
}