:root {
  --brand-deep: #1f3a5f;
  --brand-deep-2: #2c5f6f;
  --brand-deep-3: #3a2f55;
  --brand-gold: #f2c14e;
  --brand-gold-2: #e8b84b;
  --accent: #5b8def;
  --accent-2: #7c5cff;
  --text: #1c2330;
  --text-soft: #4a5568;
  --text-muted: #6b7280;
  --bg: #f6f8fc;
  --bg-2: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f9fbff;
  --border: rgba(31, 58, 95, 0.12);
  --border-strong: rgba(31, 58, 95, 0.22);
  --shadow-sm: 0 2px 8px rgba(31, 58, 95, 0.06);
  --shadow-md: 0 10px 30px rgba(31, 58, 95, 0.10);
  --shadow-lg: 0 20px 50px rgba(31, 58, 95, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-blur: 16px;
  --grad-hero: linear-gradient(135deg, #1f3a5f 0%, #2c5f6f 45%, #3a2f55 100%);
  --grad-gold: linear-gradient(120deg, #f2c14e 0%, #e8b84b 55%, #d9a63a 100%);
  --grad-accent: linear-gradient(120deg, #5b8def 0%, #7c5cff 100%);
  --grad-soft: linear-gradient(160deg, rgba(91, 141, 239, 0.10), rgba(124, 92, 255, 0.06));
  --maxw: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --text: #e8edf6;
  --text-soft: #c2cbdc;
  --text-muted: #94a0b8;
  --bg: #0c1220;
  --bg-2: #111a2c;
  --surface: #16203a;
  --surface-2: #1b2742;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(22, 32, 58, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --grad-hero: linear-gradient(135deg, #0f1c33 0%, #16303c 45%, #221a3a 100%);
  --grad-soft: linear-gradient(160deg, rgba(91, 141, 239, 0.16), rgba(124, 92, 255, 0.10));
}

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

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(91, 141, 239, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(124, 92, 255, 0.08), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

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

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

h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.6rem);
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  position: relative;
  padding-bottom: 0.5rem;
}

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

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

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

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

li {
  margin-bottom: 0.45em;
}

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

blockquote {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--brand-gold);
  background: var(--grad-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-soft);
  font-style: normal;
}

blockquote p {
  margin: 0;
}

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

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

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

::selection {
  background: rgba(242, 193, 78, 0.4);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--brand-deep), var(--brand-deep-2));
  border-radius: 8px;
  border: 2px solid var(--bg-2);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(#2b3d63, #3a5178);
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.topbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border);
}

.topbar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.topbar nav {
  display: flex;
  gap: 16px;
}

.topbar nav a {
  color: var(--text-muted);
  position: relative;
}

.topbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1.5px;
  background: var(--grad-gold);
  transition: width 0.3s var(--ease);
}

.topbar nav a:hover::after {
  width: 100%;
}

.brandbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.logo svg {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(31, 58, 95, 0.28);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 26px rgba(31, 58, 95, 0.4);
}

.logo span {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

[data-theme="dark"] .logo span {
  background: linear-gradient(120deg, #dbe6ff, #a9c2ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.site-search {
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  max-width: 420px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 141, 239, 0.18);
}

.site-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  padding: 8px 6px;
  outline: none;
}

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

.site-search button {
  border: 0;
  cursor: pointer;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1c2330;
  background: var(--grad-gold);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(242, 193, 78, 0.45);
  filter: brightness(1.05);
}

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

#dark-toggle,
#menu-toggle {
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.28s var(--ease);
  white-space: nowrap;
}

#dark-toggle:hover,
#menu-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(91, 141, 239, 0.22);
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
}

#primary-nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  border-top: 1px solid var(--border);
}

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

#primary-nav li {
  margin: 0;
}

#primary-nav a {
  display: block;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

#primary-nav a::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

#primary-nav a:hover {
  color: var(--text);
  background: var(--grad-soft);
}

#primary-nav a:hover::before {
  transform: scaleX(1);
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 60px;
}

main > section {
  margin-bottom: 40px;
  padding: 28px clamp(18px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

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

main > section:hover::before {
  opacity: 1;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  width: fit-content;
}

.breadcrumb li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

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

#hero {
  background: var(--grad-hero);
  border: 0;
  color: #eaf1ff;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 3vw, 48px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 90% 0%, rgba(242, 193, 78, 0.20), transparent 60%),
    radial-gradient(500px 320px at 0% 100%, rgba(124, 92, 255, 0.22), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

#hero::before {
  display: none;
}

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

#hero > p {
  color: rgba(234, 241, 255, 0.86);
  max-width: 860px;
  font-size: 1.02rem;
}

#hero .banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 28px 0 8px;
}

#hero .slide {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.45s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#hero .slide:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
}

#hero .slide svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

#hero .slide h2 {
  font-size: 1.1rem;
  margin: 4px 0 0;
  color: #ffffff;
  padding-bottom: 0;
}

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

#hero .slide p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(234, 241, 255, 0.82);
}

#hero .stats {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

#hero .stats li {
  margin: 0;
  padding: 16px;
  text-align: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

#hero .stats li:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.18);
}

#hero .stats strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--brand-gold);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

#hero .stats span {
  display: block;
  font-size: 0.84rem;
  color: rgba(234, 241, 255, 0.85);
  margin-top: 4px;
}

#intro {
  background: var(--surface);
}

#intro h3 {
  margin-top: 1.4em;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

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

#products ul li {
  margin: 0;
  padding: 14px 16px 14px 44px;
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  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: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 4px;
  background: var(--grad-gold);
  box-shadow: 0 3px 10px rgba(242, 193, 78, 0.4);
}

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

#solutions,
#scenes,
#cases {
  background: var(--surface);
}

#cases blockquote {
  background: var(--grad-soft);
  border-left-color: var(--accent);
}

#articles article {
  padding: 20px 22px;
  margin-bottom: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#articles article::after {
  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);
}

#articles article:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

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

#articles article h3 {
  margin-bottom: 6px;
}

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

#articles article a {
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

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

#news ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

#news li {
  margin: 0;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-gold);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#news li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

#news time {
  font-weight: 700;
  color: var(--brand-deep);
  margin-right: 8px;
}

[data-theme="dark"] #news time {
  color: var(--brand-gold);
}

#faq details {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq details[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

#faq summary {
  cursor: pointer;
  padding: 16px 46px 16px 18px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  list-style: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #1c2330;
  font-weight: 800;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

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

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

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

#howto {
  background: var(--surface);
}

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

#howto ol li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 56px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
  background: var(--grad-accent);
  box-shadow: 0 4px 12px rgba(91, 141, 239, 0.4);
}

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

#howto ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

#howto ul li {
  margin: 0;
  padding: 12px 14px 12px 38px;
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

#howto ul li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 800;
}

#howto ul li:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

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

#contact li {
  margin: 0;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact li:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

#sitemap ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap li {
  margin: 0;
}

#sitemap li a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: all 0.3s var(--ease);
}

#sitemap li a:hover {
  color: #ffffff;
  background: var(--grad-accent);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(91, 141, 239, 0.35);
}

#sitemap h3 {
  margin-top: 1.6em;
}

#privacy {
  background: var(--surface);
}

#about-meta {
  background: var(--grad-soft);
}

#about-meta p {
  margin-bottom: 0.4em;
  font-size: 0.92rem;
}

footer {
  background: var(--grad-hero);
  color: rgba(234, 241, 255, 0.85);
  padding: 32px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 220px at 20% 0%, rgba(242, 193, 78, 0.16), transparent 60%);
  pointer-events: none;
}

footer p {
  color: rgba(234, 241, 255, 0.85);
  margin: 0 0 14px;
  font-size: 0.9rem;
  position: relative;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  position: relative;
}

footer nav a {
  color: rgba(234, 241, 255, 0.78);
  font-size: 0.88rem;
  position: relative;
  padding-bottom: 2px;
}

footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--brand-gold);
  transition: width 0.3s var(--ease);
}

footer nav a:hover {
  color: #ffffff;
}

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

#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s var(--ease), background 0.3s var(--ease);
}

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

#back-to-top:hover {
  background: var(--grad-gold);
  color: #1c2330;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(242, 193, 78, 0.45);
}

.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes floatSoft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 980px) {
  .site-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin-left: 0;
  }

  #menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  #primary-nav ul {
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), padding 0.3s var(--ease);
  }

  #primary-nav.is-open ul {
    max-height: 640px;
    padding: 8px 0 14px;
  }

  #primary-nav a {
    padding: 12px 12px;
    border-radius: var(--radius-sm);
  }

  #primary-nav a::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    justify-content: center;
    text-align: center;
  }

  .topbar p {
    width: 100%;
  }

  .brandbar {
    gap: 10px;
    padding: 10px 16px;
  }

  .logo {
    font-size: 1.08rem;
  }

  .logo svg {
    width: 36px;
    height: 36px;
  }

  #dark-toggle,
  #menu-toggle {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

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

  main > section {
    padding: 22px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 26px;
  }

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

  #hero .banner {
    grid-template-columns: 1fr;
  }

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

  #hero .stats li {
    padding: 12px;
  }

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

  blockquote {
    padding: 0.85rem 1rem;
  }

  #back-to-top {
    right: 14px;
    bottom: 14px;
    padding: 10px 14px;
  }
}

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

  .breadcrumb {
    font-size: 0.78rem;
    padding: 8px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .js-reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  #site-header,
  #back-to-top,
  footer {
    display: none;
  }

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

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