:root {
  --bg: #0b0614;
  --bg-soft: #140a24;
  --bg-elev: #1a0b2e;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f3ecff;
  --text-soft: #c3b6dd;
  --text-dim: #8f83ab;
  --primary: #a855f7;
  --primary-2: #7c3aed;
  --accent: #ffd166;
  --accent-2: #ef476f;
  --cyan: #22d3ee;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
  --grad-hero: linear-gradient(135deg, #1a0b2e 0%, #3b0764 40%, #6d28d9 75%, #a855f7 100%);
  --grad-accent: linear-gradient(135deg, #ffd166 0%, #ef476f 100%);
  --grad-card: linear-gradient(160deg, rgba(168, 85, 247, 0.16), rgba(34, 211, 238, 0.08));
  --glass-blur: blur(18px) saturate(150%);
  --header-h: 68px;
  --maxw: 1200px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f6f2ff;
  --bg-soft: #efe8ff;
  --bg-elev: #ffffff;
  --surface: rgba(26, 11, 46, 0.04);
  --surface-strong: rgba(26, 11, 46, 0.07);
  --border: rgba(26, 11, 46, 0.12);
  --text: #1a0b2e;
  --text-soft: #4b3a68;
  --text-dim: #6f6288;
  --shadow: 0 18px 50px rgba(80, 40, 140, 0.16);
  --shadow-soft: 0 10px 30px rgba(80, 40, 140, 0.12);
  --grad-hero: linear-gradient(135deg, #ede4ff 0%, #d9c7ff 40%, #c4a5ff 75%, #a855f7 100%);
  --grad-card: linear-gradient(160deg, rgba(168, 85, 247, 0.12), rgba(34, 211, 238, 0.08));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(168, 85, 247, 0.22), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(800px 600px at 50% 120%, rgba(239, 71, 111, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
}

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

/* ============ HEADER ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 6, 20, 0.72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

[data-theme="light"] #site-header {
  background: rgba(246, 242, 255, 0.78);
}

#site-header.scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

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

.brand svg {
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--border), 0 6px 20px rgba(168, 85, 247, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 0 0 1px var(--border), 0 10px 28px rgba(239, 71, 111, 0.5);
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

#main-nav {
  flex: 1 1 auto;
}

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

#main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  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,
#main-nav a:focus-visible {
  color: var(--text);
  background: var(--surface);
  transform: translateY(-1px);
}

#main-nav a:hover::after,
#main-nav a:focus-visible::after {
  width: 40%;
}

#site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#site-search:focus-within {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.16);
  background: var(--surface-strong);
}

#search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.88rem;
  width: 160px;
  min-width: 0;
}

#search-input::placeholder {
  color: var(--text-dim);
}

#site-search button {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a0b2e;
  background: var(--grad-accent);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

#site-search button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 8px 20px rgba(239, 71, 111, 0.4);
}

#theme-toggle,
#menu-toggle {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.6);
  background: var(--surface-strong);
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
}

/* ============ MAIN / LAYOUT ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 60px;
}

section {
  margin: 56px 0;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.breadcrumb {
  margin: 20px 0 4px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-dim);
  opacity: 0.6;
}

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

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

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

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.01em;
}

section > h2 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  margin-bottom: 22px;
  position: relative;
  padding-left: 18px;
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad-accent);
  box-shadow: 0 0 18px rgba(239, 71, 111, 0.5);
}

h3 {
  font-size: 1.15rem;
  margin: 26px 0 10px;
  color: var(--text);
}

h3::before {
  content: "◆";
  font-size: 0.7em;
  margin-right: 8px;
  color: var(--primary);
  vertical-align: 0.1em;
}

p {
  color: var(--text-soft);
  margin-bottom: 14px;
}

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

blockquote {
  margin: 18px 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-soft);
}

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

blockquote p::before {
  content: "“";
  font-size: 1.6em;
  line-height: 0;
  color: var(--accent);
  margin-right: 4px;
}

time {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ============ HERO ============ */
#hero {
  position: relative;
  margin-top: 28px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background: var(--grad-hero);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 80% 10%, rgba(255, 209, 102, 0.22), transparent 60%),
    radial-gradient(500px 300px at 10% 90%, rgba(34, 211, 238, 0.18), transparent 60%);
  z-index: -1;
}

#hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 180%;
  background: conic-gradient(from 180deg, transparent, rgba(255, 255, 255, 0.08), transparent 40%);
  animation: heroSweep 12s linear infinite;
  z-index: -1;
}

@keyframes heroSweep {
  to { transform: rotate(360deg); }
}

#hero-title {
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 18px;
  background: linear-gradient(120deg, #ffffff 10%, #ffd166 55%, #ff9ecb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 2px 30px rgba(168, 85, 247, 0.3);
}

.hero-lead {
  max-width: 860px;
  color: rgba(243, 236, 255, 0.86);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.btn-primary {
  color: #1a0b2e;
  background: var(--grad-accent);
  box-shadow: 0 12px 30px rgba(239, 71, 111, 0.4);
}

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

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(239, 71, 111, 0.55);
}

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

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

/* ============ BANNER CAROUSEL ============ */
.banner-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.banner-slide {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  animation: floatIn 0.7s var(--ease) both;
}

.banner-slide:nth-child(2) { animation-delay: 0.1s; }
.banner-slide:nth-child(3) { animation-delay: 0.2s; }

.banner-slide:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.banner-slide h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #ffffff;
  padding: 0;
}

.banner-slide h2::before {
  display: none;
}

.banner-slide p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(243, 236, 255, 0.8);
}

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

/* ============ STAT LIST ============ */
.stat-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.stat-list li {
  padding: 18px 14px;
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.stat-list li:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.14);
}

.stat-number {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-list span {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(243, 236, 255, 0.78);
  letter-spacing: 0.04em;
}

/* ============ CARDS / SECTIONS ============ */
#intro,
#private-cinema,
#products,
#solutions,
#cases,
#news,
#articles,
#howto,
#contact,
#sitemap,
#links {
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

#intro:hover,
#private-cinema:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover {
  border-color: rgba(168, 85, 247, 0.35);
}

/* ============ PRODUCTS LIST ============ */
#products ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

#products ul li {
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-soft);
  position: relative;
  padding-left: 40px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

#products ul li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a0b2e;
  background: var(--grad-accent);
}

#products ul li:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 209, 102, 0.5);
  color: var(--text);
}

/* ============ CASES / NEWS / ARTICLES ============ */
#cases blockquote + blockquote {
  margin-top: 14px;
}

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

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

#news article:hover,
#articles article:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.4);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

#news article:hover::before,
#articles article:hover::before {
  opacity: 1;
}

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

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  position: relative;
}

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

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

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

/* ============ HOWTO ============ */
#howto ol {
  counter-reset: howto;
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

#howto ol li {
  counter-increment: howto;
  position: relative;
  padding: 16px 20px 16px 62px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(howto);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  color: #1a0b2e;
  background: var(--grad-accent);
  box-shadow: 0 6px 16px rgba(239, 71, 111, 0.35);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: rgba(168, 85, 247, 0.45);
  background: var(--surface-strong);
}

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

#howto ul li {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--grad-card);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.45);
}

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

#faq > h2 {
  padding-left: 18px;
}

#faq details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#faq details:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: var(--surface-strong);
}

#faq details[open] {
  border-color: rgba(255, 209, 102, 0.45);
  box-shadow: var(--shadow-soft);
}

#faq summary {
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: 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: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a0b2e;
  background: var(--grad-accent);
  transition: transform 0.35s var(--ease);
}

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

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

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

/* ============ CONTACT ============ */
#contact p {
  padding-left: 18px;
  position: relative;
}

#contact p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* ============ SITEMAP / LINKS ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  transform: translateY(-3px);
  color: #1a0b2e;
  background: var(--grad-accent);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(239, 71, 111, 0.35);
}

/* ============ FOOTER ============ */
#site-footer {
  margin-top: 40px;
  padding: 48px 20px 28px;
  background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.08) 40%, rgba(11, 6, 20, 0.6));
  border-top: 1px solid var(--border);
}

[data-theme="light"] #site-footer {
  background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.1) 40%, rgba(220, 205, 255, 0.5));
}

#site-footer > section {
  max-width: var(--maxw);
  margin: 0 auto 28px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#site-footer h2 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  padding-left: 14px;
}

#site-footer h2::before {
  width: 4px;
}

#site-footer h3 {
  font-size: 0.95rem;
  margin: 16px 0 6px;
  color: var(--text);
}

#site-footer h3::before {
  content: "·";
  font-size: 1.6em;
  vertical-align: -0.15em;
}

#site-footer p {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.copyright {
  max-width: var(--maxw);
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a0b2e;
  background: var(--grad-accent);
  box-shadow: 0 12px 30px rgba(239, 71, 111, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s var(--ease), box-shadow 0.3s var(--ease);
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 40px rgba(239, 71, 111, 0.55);
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  :root {
    --header-h: auto;
  }

  .header-inner {
    gap: 12px;
  }

  #main-nav ul {
    gap: 2px;
  }

  #main-nav a {
    padding: 7px 10px;
    font-size: 0.85rem;
  }

  #search-input {
    width: 120px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    padding: 12px 16px;
  }

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

  #main-nav {
    order: 5;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease);
    opacity: 0;
  }

  #main-nav.open {
    max-height: 520px;
    opacity: 1;
  }

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0 4px;
    border-top: 1px solid var(--border);
  }

  #main-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
  }

  #main-nav a::after {
    display: none;
  }

  #site-search {
    order: 6;
    flex-basis: 100%;
    padding: 6px 6px 6px 16px;
  }

  #search-input {
    width: 100%;
    flex: 1 1 auto;
  }

  main {
    padding: 0 16px 48px;
  }

  section {
    margin: 40px 0;
  }

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

  .stat-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

  #hero {
    padding: 26px 20px;
    border-radius: var(--radius-lg);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

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

  #intro,
  #private-cinema,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #howto,
  #contact,
  #sitemap,
  #links {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }

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

  #howto ol li {
    padding: 14px 14px 14px 56px;
  }

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

  #faq summary {
    padding: 14px 44px 14px 16px;
    font-size: 0.9rem;
  }

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

/* ============ ACCESSIBILITY / MOTION ============ */
@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;
  }

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

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

::selection {
  background: rgba(168, 85, 247, 0.45);
  color: #ffffff;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent-2));
  border-radius: 999px;
  border: 2px solid var(--bg-soft);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--primary));
}