/* ═══════════════════════════════════════════════════
   WORLD-CLASS HERO & HEADER (wx-*) — Bilik Dəftəri
   ═══════════════════════════════════════════════════ */

/* Custom cursor (desktop fine pointer) */
@media (pointer: fine) {
  html.wx-cursor-on, html.wx-cursor-on * { cursor: none !important; }
}
.wx-cursor {
  position: fixed; top: 0; left: 0; width: 12px; height: 12px;
  margin: -6px 0 0 -6px; border-radius: 999px; pointer-events: none;
  z-index: 9999; background: #fff; mix-blend-mode: difference;
  transform: translate3d(-100px,-100px,0); will-change: transform;
  transition: width .2s ease, height .2s ease, margin .2s ease, opacity .2s ease;
}
.wx-cursor.is-hover { width: 36px; height: 36px; margin: -18px 0 0 -18px; opacity: .85; }
.wx-cursor-ring {
  position: fixed; top: 0; left: 0; width: 40px; height: 40px;
  margin: -20px 0 0 -20px; border-radius: 999px; pointer-events: none;
  z-index: 9998; border: 1px solid rgba(99,102,241,.45);
  transform: translate3d(-100px,-100px,0); will-change: transform;
  transition: width .25s ease, height .25s ease, margin .25s ease, opacity .25s ease;
}
.wx-cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; opacity: .5; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .wx-cursor, .wx-cursor-ring { display: none !important; }
}

/* ── Header ── */
.wx-header {
  position: sticky; top: 0; z-index: 90;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
  background: transparent; border-bottom: 1px solid transparent;
}
.wx-header.is-scrolled {
  background: color-mix(in srgb, var(--color-lp-nav-bg, rgba(3,7,18,.82)) 78%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: color-mix(in srgb, var(--color-lp-border, rgba(129,140,248,.18)) 80%, transparent);
  box-shadow: 0 12px 40px -28px rgba(15,23,42,.55);
}
.wx-header-bar {
  margin: 0 auto; max-width: 72rem; min-height: 4.25rem;
  display: flex; align-items: center; gap: .75rem;
  padding: 0 1rem;
}
@media (min-width: 640px) { .wx-header-bar { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .wx-header-bar { padding: 0 2rem; } }

.wx-brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--color-lp-heading, #fff); min-width: 0;
}
.wx-brand-text { font-size: 1.05rem; font-weight: 800; letter-spacing: -.03em; }
.wx-brand-text span {
  background: linear-gradient(120deg, #818cf8, #22d3ee 50%, #fbbf24);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.wx-nav {
  display: none; flex: 1; justify-content: center; align-items: center;
  gap: .15rem; position: relative;
}
@media (min-width: 1024px) { .wx-nav { display: flex; } }
.wx-nav-pill {
  position: absolute; left: 0; top: 50%; height: 2.2rem;
  border-radius: 999px; pointer-events: none;
  background: rgba(99,102,241,.14);
  border: 1px solid rgba(129,140,248,.22);
  transform: translate3d(0,-50%,0) scaleX(.6); opacity: 0;
  transition: transform .28s cubic-bezier(.22,1,.36,1), width .28s cubic-bezier(.22,1,.36,1), opacity .2s ease, left .28s cubic-bezier(.22,1,.36,1);
  will-change: transform, left, width;
}
.wx-nav-pill.is-on { opacity: 1; }
.wx-nav-item { position: relative; }
.wx-nav-link {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center;
  border: 0; background: transparent; cursor: pointer;
  padding: .55rem .9rem; border-radius: 999px;
  font-size: .875rem; font-weight: 600;
  color: var(--color-lp-muted, #94a3b8);
  text-decoration: none; transition: color .2s ease;
}
.wx-nav-link:hover, .wx-nav-link.is-active, .wx-nav-item.is-open > .wx-nav-link {
  color: var(--color-lp-heading, #fff);
}
.wx-nav-link::after {
  content: ''; position: absolute; left: 18%; right: 18%; bottom: 6px;
  height: 2px; border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.wx-nav-link:hover::after, .wx-nav-link.is-active::after { transform: scaleX(1); }

.wx-mega {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(560px, 70vw); padding: 1rem;
  border-radius: 1.25rem;
  border: 1px solid var(--color-lp-border, rgba(129,140,248,.2));
  background: color-mix(in srgb, var(--color-lp-nav-bg, rgba(3,7,18,.92)) 92%, transparent);
  backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .28s cubic-bezier(.22,1,.36,1);
  z-index: 20;
}
.wx-nav-item.is-open .wx-mega {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
  display: block;
}
.wx-mega[hidden] { display: none !important; }
.wx-nav-item.is-open .wx-mega:not([hidden]) { display: block; }
.wx-mega-grid { display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 640px) { .wx-mega-grid { grid-template-columns: 1fr 1fr; } }
.wx-mega-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: .75rem; row-gap: .15rem;
  padding: .85rem; border-radius: 1rem; text-decoration: none;
  border: 1px solid transparent; color: var(--color-lp-heading, #fff);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.wx-mega-card:hover {
  background: rgba(99,102,241,.1);
  border-color: rgba(129,140,248,.25);
}
.wx-mega-icon { grid-row: span 2; font-size: 1.25rem; line-height: 1; margin-top: .1rem; }
.wx-mega-title { font-size: .9rem; font-weight: 700; }
.wx-mega-desc { font-size: .75rem; color: var(--color-lp-muted, #94a3b8); }

.wx-actions { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.wx-icon-btn {
  display: inline-flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center;
  border-radius: .8rem; border: 1px solid transparent; background: transparent;
  color: var(--color-lp-muted, #94a3b8); cursor: pointer; transition: .2s ease;
}
.wx-icon-btn:hover {
  color: var(--color-lp-heading, #fff);
  border-color: var(--color-lp-border, rgba(129,140,248,.25));
  background: rgba(99,102,241,.08);
}
.wx-lang {
  display: none; padding: .35rem .55rem; border-radius: .6rem;
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-decoration: none; color: var(--color-lp-muted, #94a3b8);
  border: 1px solid transparent;
}
@media (min-width: 640px) { .wx-lang { display: inline-flex; } }
.wx-lang:hover { color: var(--color-lp-heading, #fff); border-color: var(--color-lp-border, rgba(129,140,248,.25)); }
.wx-link-login {
  display: none; padding: .45rem .7rem; font-size: .85rem; font-weight: 700;
  text-decoration: none; color: var(--color-lp-muted, #94a3b8);
}
@media (min-width: 768px) { .wx-link-login { display: inline-flex; } }
.wx-nav-link:focus-visible,
.wx-icon-btn:focus-visible,
.wx-cta:focus-visible,
.wx-btn:focus-visible,
.wx-lang:focus-visible,
.wx-link-login:focus-visible,
.wx-mega-card:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 2px;
}
.wx-cta {
  display: none; align-items: center; justify-content: center;
  padding: .55rem 1rem; border-radius: .85rem; font-size: .85rem; font-weight: 700;
  color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #4f46e5, #0891b2);
  box-shadow: 0 10px 28px -12px rgba(79,70,229,.65);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
@media (min-width: 1024px) { .wx-cta { display: inline-flex; } }
.wx-cta:hover { filter: brightness(1.06); box-shadow: 0 14px 34px -12px rgba(8,145,178,.55); }
.wx-cta-block { display: flex !important; width: 100%; margin-top: .5rem; }

.wx-burger { display: inline-flex; order: -1; }
@media (min-width: 1024px) { .wx-burger { display: none; } }
.wx-burger span { position: relative; display: block; width: 1rem; height: .875rem; }
.wx-burger i {
  position: absolute; left: 0; display: block; width: 100%; height: 2px; border-radius: 999px;
  background: currentColor; transition: .28s ease;
}
.wx-burger i:nth-child(1) { top: 0; }
.wx-burger i:nth-child(2) { top: 50%; margin-top: -1px; }
.wx-burger i:nth-child(3) { bottom: 0; }
.wx-header.is-open .wx-burger i:nth-child(1) { top: 50%; margin-top: -1px; transform: rotate(45deg); }
.wx-header.is-open .wx-burger i:nth-child(2) { opacity: 0; }
.wx-header.is-open .wx-burger i:nth-child(3) { top: 50%; bottom: auto; margin-top: -1px; transform: rotate(-45deg); }

.wx-mobile {
  border-top: 1px solid var(--color-lp-border, rgba(129,140,248,.18));
  background: color-mix(in srgb, var(--color-lp-nav-bg, rgba(3,7,18,.95)) 94%, transparent);
  backdrop-filter: blur(18px);
}
.wx-mobile-inner { margin: 0 auto; max-width: 72rem; padding: 1rem; display: flex; flex-direction: column; gap: .2rem; }
.wx-mobile-label { margin: .6rem 0 .2rem; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--color-lp-muted, #94a3b8); }
.wx-mobile-link {
  border-radius: .75rem; padding: .75rem; font-size: .9rem; font-weight: 650;
  text-decoration: none; color: var(--color-lp-heading, #fff);
}
.wx-mobile-link:hover { background: rgba(99,102,241,.1); }

@media (max-width: 1023px) {
  .wx-header-bar { display: grid; grid-template-columns: 2.5rem 1fr auto; }
  .wx-brand { justify-self: center; }
  .wx-actions { justify-self: end; margin-left: 0; }
}

/* ── Hero ── */
.wx-hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: stretch; overflow: hidden; isolation: isolate;
}
.wx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.wx-layer { position: absolute; inset: 0; will-change: transform; }
.wx-aurora {
  position: absolute; border-radius: 9999px; filter: blur(90px); opacity: .55;
  will-change: transform; animation: wxAurora 20s ease-in-out infinite;
}
.wx-aurora-a {
  width: min(52vw,560px); height: min(52vw,560px); top: -12%; left: -8%;
  background: radial-gradient(circle, rgba(99,102,241,.5), transparent 70%);
}
.wx-aurora-b {
  width: min(44vw,480px); height: min(44vw,480px); right: -10%; top: 12%;
  background: radial-gradient(circle, rgba(34,211,238,.35), transparent 70%);
  animation-delay: -7s;
}
.wx-aurora-c {
  width: min(38vw,400px); height: min(38vw,400px); left: 30%; bottom: -14%;
  background: radial-gradient(circle, rgba(251,191,36,.22), transparent 70%);
  animation-delay: -12s;
}
@keyframes wxAurora {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(4%,-5%,0) scale(1.08); }
}
.wx-mesh {
  position: absolute; inset: 0; opacity: .28;
  background-image:
    linear-gradient(rgba(148,163,184,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 35%, #000 15%, transparent 75%);
}
.wx-stars {
  position: absolute; inset: 0; opacity: .55;
  background-image: radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,.3), transparent);
  animation: wxStars 12s ease-in-out infinite;
}
@keyframes wxStars { 0%,100% { opacity: .4; } 50% { opacity: .7; } }
.wx-noise {
  position: absolute; inset: 0; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wx-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.wx-starrain {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.wx-cursor-glow {
  position: absolute; width: 380px; height: 380px; border-radius: 9999px; pointer-events: none;
  background: radial-gradient(circle, rgba(99,102,241,.28) 0%, rgba(34,211,238,.12) 42%, transparent 70%);
  transform: translate3d(-50%,-50%,0); opacity: 0; transition: opacity .35s ease;
  will-change: transform; mix-blend-mode: screen;
}
.wx-cursor-glow.is-on { opacity: 1; }
html[data-theme='light'] .wx-cursor-glow {
  mix-blend-mode: multiply;
  background: radial-gradient(circle, rgba(99,102,241,.16) 0%, rgba(251,191,36,.1) 45%, transparent 70%);
}

.wx-shell {
  position: relative; z-index: 10; margin: 0 auto; width: 100%; max-width: 72rem;
  display: flex; flex-direction: column; justify-content: center;
  padding: 1.5rem 1rem 2rem;
  min-height: calc(100vh - 4.25rem); min-height: calc(100dvh - 4.25rem);
  /* Scroll fade/blur removed — content must stay sharp after first paint */
  opacity: 1 !important;
  filter: none !important;
}
@media (min-width: 640px) { .wx-shell { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .wx-shell { padding-left: 2rem; padding-right: 2rem; } }

.wx-grid {
  display: grid; align-items: center; gap: 2.25rem;
}
@media (min-width: 1024px) { .wx-grid { grid-template-columns: 1.05fr .95fr; gap: 2rem; } }

.wx-copy { position: relative; z-index: 2; max-width: 38rem; }
.wx-eyebrow {
  margin: 0 0 1.15rem; display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem; border-radius: 999px; font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: #a5b4fc; border: 1px solid rgba(129,140,248,.28);
  background: rgba(99,102,241,.1);
}
.wx-live {
  width: .5rem; height: .5rem; border-radius: 999px; background: #34d399;
  box-shadow: 0 0 12px rgba(52,211,153,.8); animation: wxPulse 1.5s ease-in-out infinite;
}
@keyframes wxPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }

.wx-title {
  margin: 0; font-weight: 800; letter-spacing: -.05em; line-height: 1.02;
  color: var(--color-lp-heading, #fff);
  font-size: clamp(2.5rem, 7vw, 4.6rem);
}
.wx-title-brand { display: block; }
.wx-rotator {
  display: block; margin-top: .4rem; min-height: 1.15em; perspective: 900px;
}
.wx-rotator-frame {
  position: relative; display: block; min-height: 1.15em; overflow: hidden;
}
.wx-rotator-line {
  display: block; width: 100%;
  background: linear-gradient(115deg, #818cf8 0%, #22d3ee 42%, #fbbf24 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  will-change: transform, opacity, filter; transform-origin: 50% 60%;
}
.wx-rotator-line.is-in {
  opacity: 1; filter: blur(0); transform: translate3d(0,0,0) rotateX(0);
  transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1), filter .75s cubic-bezier(.22,1,.36,1);
}
.wx-rotator-line.is-out {
  position: absolute; left: 0; top: 0; width: 100%;
  opacity: 0; filter: blur(14px);
  transform: translate3d(0,-36%,0) rotateX(32deg) scale(.98);
  transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1), filter .55s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.wx-rotator-line.is-prep {
  opacity: 0; filter: blur(12px);
  transform: translate3d(0,34%,0) rotateX(-34deg) scale(.98);
  transition: none;
}

.wx-lead {
  margin: 1.25rem 0 0; max-width: 34rem;
  font-size: clamp(.98rem, 2.2vw, 1.15rem); line-height: 1.65;
  color: var(--color-lp-muted, #94a3b8);
}
.wx-ctas { margin-top: 1.85rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.wx-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.35rem; border-radius: 1rem; font-size: .9rem; font-weight: 700;
  text-decoration: none; will-change: transform;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, border-color .2s ease;
}
.wx-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #0ea5e9 55%, #4f46e5);
  background-size: 180% 180%;
  box-shadow: 0 14px 36px -14px rgba(79,70,229,.7);
}
.wx-btn-primary:hover {
  background-position: 100% 0; filter: brightness(1.06);
  box-shadow: 0 18px 44px -14px rgba(14,165,233,.55);
}
.wx-btn-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
}
.wx-btn-primary:hover .wx-btn-shine { animation: wxShine .9s ease; }
@keyframes wxShine { to { transform: translateX(120%); } }
.wx-btn-ghost {
  color: var(--color-lp-heading, #fff);
  border: 1px solid var(--color-lp-border, rgba(129,140,248,.28));
  background: color-mix(in srgb, var(--color-lp-glass, rgba(15,23,42,.45)) 80%, transparent);
  backdrop-filter: blur(12px);
}
.wx-btn-ghost:hover {
  border-color: rgba(99,102,241,.45);
  box-shadow: 0 12px 30px -18px rgba(99,102,241,.45);
}

/* Scene */
.wx-scene {
  position: relative; margin: 0 auto; width: 100%; max-width: 440px;
  min-height: 340px; display: flex; align-items: center; justify-content: center;
}
@media (min-width: 1024px) { .wx-scene { max-width: none; } }
.wx-scene-glass {
  position: relative; width: min(100%, 420px); aspect-ratio: 1;
  border-radius: 2rem;
  border: 1px solid color-mix(in srgb, var(--color-lp-border, rgba(129,140,248,.25)) 85%, transparent);
  background: linear-gradient(155deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  backdrop-filter: blur(20px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 36px 90px -42px rgba(15,23,42,.65);
  overflow: hidden; transform-style: preserve-3d; will-change: transform;
}
html[data-theme='dark'] .wx-scene-glass {
  background: linear-gradient(155deg, rgba(99,102,241,.14), rgba(15,23,42,.4));
}
.wx-scene-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: .55rem;
}
.wx-scene-badge {
  padding: .25rem .7rem; border-radius: 999px; font-size: 10px; font-weight: 800;
  letter-spacing: .08em; background: #FFD666; color: #1a1a1a;
  box-shadow: 0 8px 20px -8px rgba(251,191,36,.85);
}
.wx-neural {
  position: absolute; inset: 12%; border-radius: 999px; opacity: .35;
  background:
    radial-gradient(circle at 30% 40%, rgba(129,140,248,.35), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(34,211,238,.25), transparent 42%);
  animation: wxPulse 4s ease-in-out infinite;
}
.wx-orbit {
  position: absolute; left: 50%; top: 50%; border-radius: 9999px;
  border: 1px solid rgba(99,102,241,.18); transform: translate(-50%,-50%);
  pointer-events: none;
}
.wx-orbit-a { width: 56%; height: 56%; animation: wxSpin 26s linear infinite; }
.wx-orbit-b { width: 76%; height: 76%; border-style: dashed; opacity: .55; animation: wxSpin 40s linear infinite reverse; }
.wx-orbit-c { width: 94%; height: 94%; opacity: .28; animation: wxSpin 58s linear infinite; }
@keyframes wxSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.wx-node {
  --r: 38%;
  position: absolute; left: 50%; top: 50%;
  width: 2.7rem; height: 2.7rem; margin: -1.35rem 0 0 -1.35rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 1rem; z-index: 4; font-size: 1.05rem;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px -14px rgba(15,23,42,.5);
  will-change: transform;
  animation: wxNode 24s linear infinite;
  animation-delay: calc(var(--i) * -3s);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
html[data-theme='light'] .wx-node {
  background: rgba(255,255,255,.78); border-color: rgba(148,163,184,.3);
}
.wx-node.is-near {
  border-color: rgba(129,140,248,.55);
  box-shadow: 0 0 24px rgba(99,102,241,.35);
  filter: drop-shadow(0 0 calc(8px * var(--near, 0)) rgba(99,102,241,.45));
}
.wx-node span {
  display: block;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.wx-node.is-near span {
  transform: scale(calc(1 + 0.18 * var(--near, 0)));
}
.wx-ripple {
  position: absolute; border-radius: 999px; pointer-events: none;
  background: rgba(255,255,255,.35);
  transform: scale(0); animation: wxRipple .6s ease-out forwards;
}
@keyframes wxRipple { to { transform: scale(1); opacity: 0; } }
@keyframes wxNode {
  from { transform: rotate(calc(var(--i) * (360deg / var(--n)))) translate(var(--r)) rotate(calc(var(--i) * (-360deg / var(--n)))); }
  to { transform: rotate(calc(var(--i) * (360deg / var(--n)) + 360deg)) translate(var(--r)) rotate(calc(var(--i) * (-360deg / var(--n)) - 360deg)); }
}

/* Stats */
.wx-stats {
  margin-top: 2.25rem;
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem;
}
@media (min-width: 640px) { .wx-stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 1024px) { .wx-stats { grid-template-columns: repeat(8, minmax(0,1fr)); } }
.wx-stat {
  border-radius: 1rem; border: 1px solid var(--color-lp-border, rgba(129,140,248,.2));
  padding: .85rem .7rem; text-align: center;
  background: color-mix(in srgb, var(--color-lp-glass, rgba(15,23,42,.5)) 88%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -22px rgba(15,23,42,.4);
  transition: transform .2s ease, border-color .2s ease;
}
.wx-stat:hover { border-color: rgba(99,102,241,.4); }
.wx-stat-value {
  margin: 0; font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 800;
  letter-spacing: -.03em; color: var(--color-lp-heading, #fff);
}
.wx-stat-label {
  margin: .3rem 0 0; font-size: .65rem; font-weight: 650;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--color-lp-muted, #94a3b8);
}

.wx-scroll {
  margin-top: 1.75rem; display: flex; flex-direction: column; align-items: center; gap: .45rem;
  color: var(--color-lp-muted, #94a3b8);
}
.wx-scroll-label { font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.wx-scroll-mouse {
  position: relative; width: 22px; height: 34px; border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--color-lp-muted, #94a3b8) 55%, transparent);
}
.wx-scroll-dot {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 999px; background: currentColor;
  animation: wxScrollDot 1.8s cubic-bezier(.22,1,.36,1) infinite;
}
@keyframes wxScrollDot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 1023px) {
  .wx-shell { padding-top: 1rem; }
  .wx-scene { order: -1; max-width: 280px; min-height: 260px; }
  .wx-title { font-size: clamp(2.15rem, 9vw, 2.9rem); }
  .wx-stats { margin-top: 1.5rem; }
}
@media (max-width: 480px) {
  .wx-scene { max-width: 240px; min-height: 220px; }
  .wx-node { width: 2.25rem; height: 2.25rem; margin: -1.125rem 0 0 -1.125rem; font-size: .9rem; }
  .wx-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .wx-aurora, .wx-orbit, .wx-node, .wx-live, .wx-scroll-dot, .wx-stars { animation: none !important; }
  .wx-rotator-line { filter: none !important; transition: none !important; transform: none !important; }
  .wx-cursor-glow, .wx-particles, .wx-starrain { display: none !important; }
  .wx-nav-pill { display: none !important; }
}
@media (pointer: coarse) {
  .wx-starrain { display: none !important; }
}
