:root {
  --brand-1: #2b2d6e;
  --brand-2: #5b3cc4;
  --brand-3: #06d6a0;
  --accent-1: #ffd166;
  --accent-2: #ef476f;
  --accent-3: #06d6a0;
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --text: #1c1e2b;
  --text-soft: #4a4f66;
  --text-muted: #6b7189;
  --border: rgba(43, 45, 110, 0.12);
  --border-strong: rgba(43, 45, 110, 0.22);
  --shadow-sm: 0 2px 10px rgba(28, 30, 43, 0.06);
  --shadow-md: 0 10px 30px rgba(28, 30, 43, 0.1);
  --shadow-lg: 0 24px 60px rgba(28, 30, 43, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --grad-hero: linear-gradient(135deg, #2b2d6e 0%, #5b3cc4 45%, #7a4ddb 70%, #06d6a0 130%);
  --grad-accent: linear-gradient(120deg, #ffd166, #ef476f 55%, #5b3cc4);
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(246, 247, 251, 0.6));
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: 18px;
  --header-h: 72px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1020;
    --bg-soft: #161a30;
    --bg-elevated: rgba(22, 26, 48, 0.72);
    --text: #eef0fa;
    --text-soft: #c3c8e0;
    --text-muted: #9aa1c0;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --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-hero: linear-gradient(135deg, #1a1c3d 0%, #3a2a7a 45%, #5b3cc4 75%, #0a8f6e 130%);
    --grad-card: linear-gradient(160deg, rgba(30, 34, 60, 0.9), rgba(18, 21, 40, 0.6));
    --glass-bg: rgba(24, 28, 52, 0.55);
    --glass-border: rgba(255, 255, 255, 0.12);
  }
}

*,
*::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(1200px 600px at 10% -10%, rgba(91, 60, 196, 0.14), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(6, 214, 160, 0.12), transparent 55%),
    radial-gradient(700px 500px at 50% 120%, rgba(239, 71, 111, 0.08), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--accent-2);
}

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

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

h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

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

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

li {
  margin-bottom: 0.4em;
}

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

blockquote {
  margin: 0 0 1.2em;
  padding: 1.1em 1.4em;
  border-left: 4px solid var(--accent-3);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

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

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

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

address {
  font-style: normal;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  padding: 0.4rem 0;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--brand-2);
}

.brand svg {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: var(--shadow-md);
}

.brand-name {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

.main-nav li {
  margin: 0;
}

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

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

.main-nav a:hover {
  color: var(--text);
  background: rgba(91, 60, 196, 0.1);
  transform: translateY(-1px);
}

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

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

main > section,
main > nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.4rem 1.25rem;
  animation: rise-in 0.8s var(--ease) both;
}

main > section:nth-of-type(even) {
  animation-delay: 0.05s;
}

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

@supports (animation-timeline: view()) {
  main > section {
    animation: rise-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }
}

main > section > h2 {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1.1rem;
}

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

main > section:hover > h2::after {
  width: 110px;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  padding-top: 1.2rem;
  padding-bottom: 0.4rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

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

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

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

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

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

/* ============ Hero ============ */
.hero {
  position: relative;
  margin-top: 1.2rem;
  padding: clamp(2rem, 5vw, 3.6rem) clamp(1.4rem, 4vw, 3rem) !important;
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  background-size: 200% 200%;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: hero-gradient 14s ease infinite, rise-in 0.8s var(--ease) both;
  isolation: isolate;
}

@keyframes hero-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  width: 380px;
  height: 380px;
  top: -140px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.85), transparent 70%);
  animation: float-slow 12s ease-in-out infinite;
}

.hero::after {
  width: 320px;
  height: 320px;
  bottom: -160px;
  left: -60px;
  background: radial-gradient(circle, rgba(6, 214, 160, 0.8), transparent 70%);
  animation: float-slow 16s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 24px) scale(1.08); }
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  max-width: 20ch;
  margin-bottom: 0.5em;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  max-width: 62ch;
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: #fff;
  color: var(--brand-1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.btn-primary:hover {
  color: var(--brand-1);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

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

.btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.btn-primary::after,
.btn-secondary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
  transform: translateX(120%);
}

/* ============ Generic content cards ============ */
main > section:not(.hero) {
  position: relative;
}

main > section:not(.hero) > h3,
main > section:not(.hero) > h4 {
  margin-top: 1.6rem;
}

main > section:not(.hero) > h3:first-of-type {
  margin-top: 0.6rem;
}

#about,
#products,
#solutions,
#howto,
#contact {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 1.6rem;
  margin-bottom: 1.6rem;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

#about:hover,
#products:hover,
#solutions:hover,
#howto:hover,
#contact:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

/* Product advantage list as chips */
#products ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.6rem;
}

#products ul li {
  margin: 0;
  padding: 0.9rem 1.1rem 0.9rem 2.6rem;
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#products ul li::before {
  content: "✓";
  position: absolute;
  left: 0.9rem;
  top: 0.85rem;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-3), var(--brand-2));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(6, 214, 160, 0.35);
}

#products ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-3);
}

/* Solutions list */
#solutions ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

#solutions ul li {
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-left-color 0.3s var(--ease);
}

#solutions ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent-2);
}

/* HowTo lists */
#howto ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

#howto ul li {
  margin: 0;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ul li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 0 4px rgba(91, 60, 196, 0.12);
}

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

#howto ol {
  counter-reset: howto-step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

#howto ol li {
  counter-increment: howto-step;
  margin: 0;
  padding: 0.9rem 1.1rem 0.9rem 3.2rem;
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(howto-step);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-1));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(91, 60, 196, 0.35);
}

#howto ol li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-2);
}

/* ============ Cases ============ */
#cases > h3 {
  padding: 1rem 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#cases > h3:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

#cases blockquote {
  position: relative;
  border-left-color: var(--accent-2);
}

#cases blockquote::before {
  content: "“";
  position: absolute;
  top: -0.2em;
  right: 0.6rem;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--brand-2);
  opacity: 0.18;
  font-family: Georgia, serif;
}

/* ============ News & Articles ============ */
#news article,
#articles article {
  position: relative;
  padding: 1.2rem 1.3rem;
  margin-bottom: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

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

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

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

#news article h3,
#articles article h3 {
  margin-bottom: 0.3em;
}

#news article p:last-child,
#articles article p {
  margin-bottom: 0.6em;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(91, 60, 196, 0.1);
  color: var(--brand-2);
  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 {
  background: var(--brand-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 60, 196, 0.3);
}

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

/* ============ FAQ ============ */
#faq {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 1.6rem;
  margin-bottom: 1.6rem;
}

#faq dl {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

#faq dt {
  font-weight: 700;
  color: var(--text);
  padding: 0.9rem 1.1rem 0.9rem 2.9rem;
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: default;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq dt::before {
  content: "Q";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-1));
  border-radius: 50%;
}

#faq dd {
  margin: 0 0 0.4rem;
  padding: 0.4rem 1.1rem 1rem 2.9rem;
  color: var(--text-soft);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  position: relative;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq dd::before {
  content: "A";
  position: absolute;
  left: 0.9rem;
  top: 0.55rem;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-1);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  border-radius: 50%;
}

#faq dt:hover {
  background: rgba(91, 60, 196, 0.08);
  border-color: var(--border-strong);
}

#faq dt:hover + dd {
  border-color: var(--border-strong);
}

/* ============ Contact ============ */
#contact address {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

#contact address p {
  margin: 0;
  padding: 0.7rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact address p:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-3);
}

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

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 0.5rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-1));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(91, 60, 196, 0.3);
}

/* ============ Legal & Author ============ */
#legal h3,
#author h2 {
  margin-top: 1.2rem;
}

#legal p,
#author p {
  padding: 0.8rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
}

/* ============ Footer ============ */
.site-footer {
  margin-top: 2.4rem;
  padding: 2.4rem 1.25rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(43, 45, 110, 0.08));
  border-top: 1px solid var(--border);
}

.site-footer p {
  max-width: var(--maxw);
  margin: 0 auto 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-soft);
  font-weight: 500;
  padding: 0.15rem 0.3rem;
  border-radius: 6px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-footer a:hover {
  color: var(--brand-2);
  background: rgba(91, 60, 196, 0.1);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    padding: 0.5rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .main-nav ul {
    flex-wrap: nowrap;
    gap: 0.15rem;
    padding-bottom: 0.25rem;
  }

  .main-nav a {
    white-space: nowrap;
    font-size: 0.88rem;
    padding: 0.4rem 0.7rem;
  }

  main > section,
  main > nav {
    padding: 1.8rem 1rem;
  }

  .hero {
    border-radius: var(--radius-md);
    margin-top: 0.8rem;
  }

  .hero h1 {
    max-width: none;
  }
}

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

  .brand {
    font-size: 1.05rem;
  }

  .brand svg {
    width: 34px;
    height: 34px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 0.8rem 1.2rem;
  }

  #products ul,
  #solutions ul {
    grid-template-columns: 1fr;
  }

  #faq dt {
    padding-left: 2.6rem;
  }

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

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

  #sitemap ul,
  #links ul {
    gap: 0.45rem;
  }

  #sitemap a,
  #links a {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
  }
}

/* ============ Motion preferences ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero {
    animation: none;
    background-position: 0% 50%;
  }
}

/* ============ Print ============ */
@media print {
  .site-header,
  .hero-actions,
  .site-footer {
    display: none;
  }

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

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