:root {
  --bg: #0b0b16;
  --bg-soft: #12122a;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #eef0ff;
  --text-soft: #b9bce0;
  --text-dim: #8b8fb8;
  --primary: #7b5cff;
  --primary-2: #ff4d8d;
  --accent: #35e0c8;
  --gradient-main: linear-gradient(135deg, #7b5cff 0%, #ff4d8d 55%, #ff9a3d 100%);
  --gradient-soft: linear-gradient(135deg, rgba(123, 92, 255, 0.22), rgba(255, 77, 141, 0.16) 60%, rgba(53, 224, 200, 0.12));
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 8px 26px rgba(0, 0, 0, 0.28);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(123, 92, 255, 0.28), transparent 62%),
    radial-gradient(760px 480px at 92% 4%, rgba(255, 77, 141, 0.2), transparent 60%),
    radial-gradient(820px 620px at 50% 108%, rgba(53, 224, 200, 0.14), transparent 64%),
    linear-gradient(180deg, #0b0b16 0%, #0d0d1e 46%, #0a0a14 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 78%);
}

::selection {
  background: rgba(123, 92, 255, 0.55);
  color: #fff;
}

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

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

a:hover,
a:focus-visible {
  color: #ff8ab4;
}

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

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

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

h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2.05rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 6px;
  background: var(--gradient-main);
  box-shadow: 0 0 18px rgba(255, 77, 141, 0.5);
}

h3 {
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  color: #f2f3ff;
}

h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0.85;
}

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

li {
  margin-bottom: 0.5em;
}

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

blockquote {
  margin: 1.4em 0;
  padding: 1.1em 1.3em;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--primary-2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* ============ Header / Nav ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 22, 0.62);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.32);
}

header nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

header nav > a {
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  position: relative;
  padding-right: 4px;
}

header nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

header nav > a:hover::after {
  transform: scaleX(1);
}

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

header nav ul li {
  margin: 0;
}

header nav ul a {
  display: inline-block;
  padding: 7px 13px;
  font-size: 0.92rem;
  color: var(--text-soft);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.28s var(--ease);
  white-space: nowrap;
}

header nav ul a:hover,
header nav ul a:focus-visible {
  color: #fff;
  background: rgba(123, 92, 255, 0.2);
  border-color: rgba(123, 92, 255, 0.45);
  box-shadow: 0 6px 18px rgba(123, 92, 255, 0.24);
  transform: translateY(-2px);
}

/* ============ Layout ============ */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px 60px;
  display: block;
}

main > section {
  position: relative;
  margin: 34px 0;
  padding: clamp(24px, 3.6vw, 42px);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise 0.8s var(--ease) both;
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.22), transparent 34%, transparent 66%, rgba(255, 77, 141, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

main > section:nth-child(even) {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

main > section + section {
  animation-delay: 0.05s;
}

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

/* ============ Hero ============ */
#hero {
  margin-top: 30px;
  padding: clamp(30px, 5vw, 62px) clamp(24px, 4.4vw, 54px);
  background:
    radial-gradient(620px 340px at 8% 0%, rgba(123, 92, 255, 0.5), transparent 62%),
    radial-gradient(560px 340px at 96% 12%, rgba(255, 77, 141, 0.42), transparent 60%),
    radial-gradient(520px 300px at 60% 108%, rgba(53, 224, 200, 0.3), transparent 62%),
    linear-gradient(140deg, #1a1233 0%, #20102b 48%, #0f1a26 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(123, 92, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 154, 61, 0.32), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
  animation: floaty 12s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-24px, 26px, 0) scale(1.08); }
}

#hero h1 {
  max-width: 22em;
  background: linear-gradient(100deg, #ffffff 0%, #d8ccff 42%, #ffb3cd 78%, #ffd9a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 10px 40px rgba(123, 92, 255, 0.25);
}

#hero p {
  max-width: 62em;
  font-size: 1.02rem;
  color: #d3d6f5;
}

#hero p:last-of-type {
  display: inline-block;
  margin-top: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.94rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
}

/* ============ Products / feature list ============ */
#products ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
  margin-top: 18px;
}

#products ul li {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

#products ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-main);
  opacity: 0.9;
  transform: scaleY(0.35);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

#products ul li:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(123, 92, 255, 0.5);
  box-shadow: 0 16px 36px rgba(123, 92, 255, 0.22);
  color: #fff;
}

#products ul li:hover::before {
  transform: scaleY(1);
}

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

#news ul li {
  margin: 0;
  padding: 13px 18px 13px 46px;
  position: relative;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  transition: all 0.3s var(--ease);
}

#news ul li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--gradient-main);
  box-shadow: 0 0 12px rgba(255, 77, 141, 0.8);
}

#news ul li:hover {
  background: rgba(123, 92, 255, 0.14);
  border-color: rgba(123, 92, 255, 0.4);
  color: #fff;
  transform: translateX(6px);
}

/* ============ Articles ============ */
#articles {
  display: block;
}

#articles > p {
  margin-bottom: 1.6em;
}

#articles article {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.38s var(--ease), border-color 0.38s var(--ease), background 0.38s var(--ease), box-shadow 0.38s var(--ease);
  overflow: hidden;
}

#articles article::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 160px at 100% 0%, rgba(123, 92, 255, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.38s var(--ease);
  pointer-events: none;
}

#articles article:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 77, 141, 0.42);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 77, 141, 0.12);
}

#articles article:hover::after {
  opacity: 1;
}

#articles article h3 {
  margin-bottom: 0.45em;
}

#articles article h3::after {
  display: none;
}

#articles article > p:nth-of-type(1) {
  font-size: 0.84rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-bottom: 0.7em;
}

#articles article > p:nth-of-type(2) {
  margin-bottom: 0.9em;
  color: var(--text-soft);
}

#articles article > p:last-child {
  margin-bottom: 0;
}

#articles article > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.9), rgba(255, 77, 141, 0.9));
  box-shadow: 0 8px 22px rgba(123, 92, 255, 0.32);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

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

#articles article > p:last-child a:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 12px 28px rgba(255, 77, 141, 0.42);
}

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

/* ============ HowTo ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 16px 20px 16px 62px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.14), rgba(255, 77, 141, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-soft);
  transition: all 0.32s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: var(--gradient-main);
  box-shadow: 0 6px 18px rgba(255, 77, 141, 0.4);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: rgba(53, 224, 200, 0.45);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

#howto ul {
  display: grid;
  gap: 8px;
  padding-left: 1.1em;
}

/* ============ FAQ ============ */
#faq h3 {
  margin-top: 1.5em;
  padding: 14px 18px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: rgba(123, 92, 255, 0.14);
  border: 1px solid rgba(123, 92, 255, 0.26);
  border-bottom: none;
  font-size: 1.02rem;
  color: #f0ecff;
  cursor: default;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq h3::after {
  display: none;
}

#faq h3:hover {
  background: rgba(255, 77, 141, 0.18);
  color: #fff;
}

#faq h3 + p {
  margin-top: 0;
  padding: 16px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  color: var(--text-soft);
  font-size: 0.96rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s var(--ease);
}

#faq h3 + p:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ============ Contact / info lists ============ */
#contact ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

#contact ul li {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-soft);
  font-size: 0.94rem;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

#contact ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-main);
  opacity: 0.85;
}

#contact ul li:hover {
  transform: translateY(-3px);
  background: rgba(53, 224, 200, 0.1);
  border-color: rgba(53, 224, 200, 0.4);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

/* ============ Sitemap ============ */
#sitemap ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.4em;
}

#sitemap ul li {
  margin: 0;
}

#sitemap ul li a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s var(--ease);
}

#sitemap ul li a:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.85), rgba(255, 77, 141, 0.85));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(123, 92, 255, 0.34);
}

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

/* ============ Privacy / Disclaimer ============ */
#privacy,
#disclaimer {
  background: linear-gradient(160deg, rgba(53, 224, 200, 0.08), rgba(255, 255, 255, 0.035));
}

/* ============ Footer ============ */
footer {
  margin-top: 26px;
  padding: 40px 22px 46px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.28));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

footer p {
  margin: 0 0 0.7em;
  font-size: 0.88rem;
  color: var(--text-dim);
}

footer p:first-child {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-soft);
  background: linear-gradient(100deg, #cfc4ff, #ffb3cd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

footer p:last-child {
  margin-bottom: 0;
}

footer a {
  color: var(--text-soft);
  padding: 0 2px;
}

footer a:hover {
  color: #ff8ab4;
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a14;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, #7b5cff, #ff4d8d);
  border: 2px solid #0a0a14;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8b6fff, #ff6b9e);
}

/* ============ Reveal on scroll (progressive enhancement) ============ */
@supports (animation-timeline: view()) {
  main > section {
    animation: reveal-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 34%;
  }

  @keyframes reveal-in {
    from {
      opacity: 0;
      transform: translateY(34px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  html {
    scroll-padding-top: 140px;
  }

  header nav {
    padding: 12px 16px;
    gap: 12px;
  }

  header nav ul {
    gap: 4px;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  header nav ul::-webkit-scrollbar {
    display: none;
  }

  header nav ul a {
    font-size: 0.86rem;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
  }

  main {
    padding: 0 14px 44px;
  }

  main > section {
    margin: 22px 0;
    border-radius: var(--radius);
  }

  #hero {
    margin-top: 20px;
  }
}

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

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  main > section {
    padding: 20px 16px;
  }

  #hero {
    padding: 26px 18px;
  }

  #hero p:last-of-type {
    display: block;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
  }

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

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

  #articles article {
    padding: 16px 16px;
  }

  #howto ol li {
    padding: 14px 16px 14px 54px;
  }

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

  #faq h3 {
    padding: 12px 14px;
    font-size: 0.97rem;
  }

  #faq h3 + p {
    padding: 14px;
    font-size: 0.92rem;
  }

  blockquote {
    padding: 14px 16px;
  }

  footer {
    padding: 30px 16px 36px;
  }
}

/* ============ Light mode (system preference) ============ */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5fb;
    --bg-soft: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-hover: rgba(255, 255, 255, 0.92);
    --glass: rgba(255, 255, 255, 0.62);
    --glass-border: rgba(30, 20, 70, 0.1);
    --text: #1b1633;
    --text-soft: #474166;
    --text-dim: #6b6588;
    --primary: #6a45ff;
    --primary-2: #e83a7c;
    --accent: #0fb8a4;
    --shadow: 0 18px 46px rgba(64, 48, 140, 0.14);
    --shadow-soft: 0 8px 24px rgba(64, 48, 140, 0.1);
  }

  body {
    background-image:
      radial-gradient(900px 520px at 12% -8%, rgba(123, 92, 255, 0.16), transparent 62%),
      radial-gradient(760px 480px at 92% 4%, rgba(255, 77, 141, 0.12), transparent 60%),
      radial-gradient(820px 620px at 50% 108%, rgba(53, 224, 200, 0.12), transparent 64%),
      linear-gradient(180deg, #f7f7fd 0%, #f1f2fa 50%, #f6f7fc 100%);
  }

  body::before {
    background-image:
      linear-gradient(rgba(30, 20, 70, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(30, 20, 70, 0.035) 1px, transparent 1px);
  }

  header {
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(30, 20, 70, 0.08);
    box-shadow: 0 10px 30px rgba(64, 48, 140, 0.1);
  }

  header nav ul a {
    color: var(--text-soft);
  }

  header nav ul a:hover,
  header nav ul a:focus-visible {
    color: var(--primary);
    background: rgba(106, 69, 255, 0.1);
    border-color: rgba(106, 69, 255, 0.3);
  }

  main > section {
    background: rgba(255, 255, 255, 0.72);
  }

  main > section:nth-child(even) {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  }

  #hero {
    background:
      radial-gradient(620px 340px at 8% 0%, rgba(123, 92, 255, 0.3), transparent 62%),
      radial-gradient(560px 340px at 96% 12%, rgba(255, 77, 141, 0.24), transparent 60%),
      radial-gradient(520px 300px at 60% 108%, rgba(53, 224, 200, 0.24), transparent 62%),
      linear-gradient(140deg, #ffffff 0%, #f4f0ff 48%, #eef8ff 100%);
    border-color: rgba(106, 69, 255, 0.18);
    box-shadow: 0 26px 60px rgba(106, 69, 255, 0.18);
  }

  #hero h1 {
    background: linear-gradient(100deg, #2a1d5c 0%, #6a45ff 46%, #e83a7c 82%, #ff9a3d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
  }

  #hero p {
    color: var(--text-soft);
  }

  #hero p:last-of-type {
    color: #2a1d5c;
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(106, 69, 255, 0.22);
    box-shadow: 0 10px 26px rgba(106, 69, 255, 0.12);
  }

  #products ul li {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-soft);
  }

  #products ul li:hover {
    background: #fff;
    color: var(--text);
  }

  #news ul li {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(30, 20, 70, 0.08);
  }

  #news ul li:hover {
    background: rgba(106, 69, 255, 0.08);
    color: var(--text);
  }

  #articles article {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(30, 20, 70, 0.08);
  }

  #articles article:hover {
    background: #fff;
    border-color: rgba(232, 58, 124, 0.32);
    box-shadow: 0 20px 44px rgba(64, 48, 140, 0.16);
  }

  #articles article > p:last-child a {
    color: #fff;
  }

  #howto ol li {
    background: linear-gradient(135deg, rgba(106, 69, 255, 0.1), rgba(232, 58, 124, 0.06));
    border-color: rgba(106, 69, 255, 0.14);
  }

  #howto ol li:hover {
    color: var(--text);
  }

  #faq h3 {
    background: rgba(106, 69, 255, 0.1);
    border-color: rgba(106, 69, 255, 0.2);
    color: #2a1d5c;
  }

  #faq h3:hover {
    background: rgba(232, 58, 124, 0.12);
    color: var(--text);
  }

  #faq h3 + p {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(30, 20, 70, 0.08);
    color: var(--text-soft);
  }

  #contact ul li {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-soft);
  }

  #contact ul li:hover {
    background: rgba(15, 184, 164, 0.08);
    color: var(--text);
  }

  #sitemap ul li a {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(30, 20, 70, 0.1);
    color: var(--text-soft);
  }

  #sitemap ul li a:hover {
    color: #fff;
  }

  #privacy,
  #disclaimer {
    background: linear-gradient(160deg, rgba(15, 184, 164, 0.08), rgba(255, 255, 255, 0.72));
  }

  blockquote {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(30, 20, 70, 0.1);
    border-left-color: var(--primary-2);
  }

  footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(240, 240, 250, 0.9));
    border-top-color: rgba(30, 20, 70, 0.08);
  }

  footer p {
    color: var(--text-dim);
  }

  footer p:first-child {
    background: linear-gradient(100deg, #6a45ff, #e83a7c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

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

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

  ::-webkit-scrollbar-track {
    background: #eef0f8;
  }

  ::-webkit-scrollbar-thumb {
    border-color: #eef0f8;
  }
}

/* ============ Reduced motion ============ */
@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;
  }
}

/* ============ Print ============ */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  header,
  footer,
  #hero::after {
    display: none;
  }

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

  a {
    color: #000;
    text-decoration: underline;
  }
}