/* VelikVisual — black / white / glass */
:root {
  --bg: #050506;
  --bg-2: #0b0b0e;
  --ink: #f4f4f6;
  --ink-2: #c9c9d1;
  --dim: #8b8b95;
  --mute: #55555e;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .075);
  --radius: 22px;
  --radius-s: 14px;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: #fff; color: #000; }

/* ---------- background layers ---------- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; }
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.vignette { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(0,0,0,.65) 100%); }

/* ---------- layout ---------- */
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
section { position: relative; padding: 120px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--dim); font-weight: 600;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, #fff); }
.h2 {
  font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.04;
  font-size: clamp(34px, 5.4vw, 72px); margin: 18px 0 18px;
}
.h2 .ghost { color: transparent; background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.08) 100%); -webkit-background-clip: text; background-clip: text; }
.sub { color: var(--dim); max-width: 620px; font-size: 18px; margin: 0; }

/* ---------- glass primitives ---------- */
.glass {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  backdrop-filter: blur(18px) saturate(120%); -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.12);
  isolation: isolate;
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.06) 40%, rgba(255,255,255,.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.10), transparent 45%);
}
.spot:hover::after { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
  overflow: hidden; white-space: nowrap;
}
.btn.primary { background: #fff; color: #050506; box-shadow: 0 10px 40px -10px rgba(255,255,255,.55); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 60px -12px rgba(255,255,255,.7); }
.btn.ghost { background: rgba(255,255,255,.05); border: 1px solid var(--line-2); backdrop-filter: blur(12px); }
.btn.ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg);
  transition: left .7s var(--ease);
}
.btn.primary::after { background: linear-gradient(100deg, transparent, rgba(0,0,0,.12), transparent); }
.btn:hover::after { left: 130%; }
.btn.sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1100px, calc(100% - 24px)); height: 62px; padding: 0 10px 0 16px;
  display: flex; align-items: center; justify-content: space-between; border-radius: 999px;
  transition: background .4s, transform .4s var(--ease);
}
.nav .brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .01em; }
.nav .brand img { width: 34px; height: 34px; }
.nav .links { display: flex; gap: 4px; }
.nav .links a { padding: 9px 14px; border-radius: 999px; color: var(--ink-2); font-size: 14px; transition: background .3s, color .3s; }
.nav .links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav .right { display: flex; align-items: center; gap: 8px; }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: background .3s; }
.cart-btn:hover { background: rgba(255,255,255,.12); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fff; color: #000; font-size: 11px; font-weight: 700; display: grid; place-items: center; transform: scale(0); transition: transform .4s var(--ease); }
.cart-count.on { transform: scale(1); }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }
.burger { display: none; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; padding: 140px 0 80px; display: grid; place-items: center; text-align: center; overflow: hidden; }
.floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 60%; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(64deg);
  transform-origin: 50% 0;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 35%, #000 60%, transparent);
  mask: linear-gradient(to bottom, transparent, #000 35%, #000 60%, transparent);
  animation: floor 6s linear infinite;
}
@keyframes floor { to { background-position: 0 64px, 0 0; } }

.prism-stage { position: relative; width: 220px; height: 220px; margin: 0 auto 36px; perspective: 900px; }
.prism { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .25s ease-out; }
.prism .layer { position: absolute; inset: 0; transform-style: preserve-3d; }
.prism .layer img, .prism .layer svg { width: 100%; height: 100%; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }
.prism .halo {
  position: absolute; left: 50%; top: 50%; width: 330px; height: 330px; margin: -165px 0 0 -165px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); transform: rotateX(72deg) translateZ(-30px);
  box-shadow: 0 0 40px rgba(255,255,255,.15), inset 0 0 40px rgba(255,255,255,.08);
}
.orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.orbit i {
  position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 16px 4px rgba(255,255,255,.7);
  animation: orbit 5.2s linear infinite;
}
.orbit i:nth-child(2) { animation-delay: -1.73s; width: 6px; height: 6px; }
.orbit i:nth-child(3) { animation-delay: -3.46s; width: 8px; height: 8px; }
@keyframes orbit {
  0% { transform: rotateY(0deg) translateX(170px) rotateY(0deg) translateY(-20px); }
  50% { transform: rotateY(180deg) translateX(170px) translateY(30px); }
  100% { transform: rotateY(360deg) translateX(170px) translateY(-20px); }
}
.glow-blob { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 60%); filter: blur(20px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }

.title {
  font-family: var(--display); font-weight: 700; margin: 0; line-height: .92; letter-spacing: -.03em;
  font-size: clamp(52px, 11vw, 168px); display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .22em;
}
.title .w { display: inline-flex; overflow: hidden; }
.title .c { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.title .outline .c { color: transparent; background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.08) 100%); -webkit-background-clip: text; background-clip: text; padding-bottom: .04em; }
@keyframes rise { to { transform: translateY(0); } }
.lead { margin: 26px auto 34px; max-width: 640px; color: var(--ink-2); font-size: clamp(16px, 1.6vw, 19px); opacity: 0; animation: fade 1s .7s var(--ease) forwards; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fade 1s .9s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.stats { margin: 56px auto 0; display: inline-flex; border-radius: 999px; overflow: hidden; opacity: 0; animation: fade 1s 1.1s var(--ease) forwards; }
.stats div { padding: 14px 26px; text-align: left; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-family: var(--display); font-size: 20px; font-weight: 600; }
.stats span { color: var(--dim); font-size: 13px; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 1px solid var(--line-2); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- marquee ---------- */
.marquee { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: rgba(255,255,255,.015); }
.marquee .row { display: flex; width: max-content; gap: 48px; animation: slide 38s linear infinite; }
.marquee .row.rev { animation-direction: reverse; animation-duration: 46s; margin-top: 14px; }
.marquee span { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 4vw, 52px); letter-spacing: -.02em; white-space: nowrap; }
.marquee .o { color: transparent; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.06)); -webkit-background-clip: text; background-clip: text; }
.marquee .star { opacity: .5; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- features bento ---------- */
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { padding: 26px; min-height: 290px; display: flex; flex-direction: column; overflow: hidden; }
.tile h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: auto 0 6px; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--dim); font-size: 14.5px; }
.tile .demo { position: relative; flex: 1; min-height: 150px; margin: -6px -6px 18px; display: grid; place-items: center; }
.t-a { grid-column: span 3; } .t-b { grid-column: span 3; } .t-c { grid-column: span 2; } .t-d { grid-column: span 2; } .t-e { grid-column: span 2; } .t-f { grid-column: span 6; min-height: 0; }

/* TargetHUD demo */
.thud { width: 250px; padding: 14px; display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; border-radius: 16px; }
.thud .head { width: 54px; height: 54px; border-radius: 12px; background: linear-gradient(135deg, #fff, #8a8a94); position: relative; overflow: hidden; animation: hurt 3s infinite; }
.thud .head::before, .thud .head::after { content: ""; position: absolute; top: 22px; width: 9px; height: 7px; background: #111; }
.thud .head::before { left: 12px; } .thud .head::after { right: 12px; }
@keyframes hurt { 0%, 30%, 100% { filter: none; transform: none; } 33% { filter: brightness(.6) sepia(1) hue-rotate(-50deg) saturate(5); transform: scale(.92); } 40% { filter: none; transform: none; } }
.thud b { display: block; font-size: 15px; }
.thud small { color: var(--dim); font-size: 12px; }
.hp { margin-top: 8px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.hp i { position: absolute; inset: 0; border-radius: 3px; transform-origin: left; }
.hp .ghost { background: rgba(255,255,255,.35); animation: hpg 3s infinite; }
.hp .fill { background: linear-gradient(90deg, #fff, #8a8a94); animation: hpf 3s infinite; }
@keyframes hpf { 0%, 30% { transform: scaleX(1); } 34%, 70% { transform: scaleX(.62); } 74%, 100% { transform: scaleX(1); } }
@keyframes hpg { 0%, 38% { transform: scaleX(1); } 55%, 70% { transform: scaleX(.62); } 74%, 100% { transform: scaleX(1); } }

/* jump circles demo */
.floorlet { position: relative; width: 100%; height: 170px; perspective: 500px; }
.floorlet .plane { position: absolute; inset: 0; transform: rotateX(68deg); transform-style: preserve-3d; }
.floorlet .ring { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 0 22px rgba(255,255,255,.8), inset 0 0 22px rgba(255,255,255,.35);
  animation: jump 2.4s var(--ease) infinite; opacity: 0; }
.floorlet .ring:nth-child(2) { animation-delay: .8s; } .floorlet .ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes jump { 0% { transform: scale(.1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.floorlet .dot { position: absolute; left: 50%; top: 32%; width: 26px; height: 46px; margin-left: -13px; border-radius: 8px; background: linear-gradient(#fff, #9a9aa4); animation: hop 0.8s ease-in-out infinite alternate; }
@keyframes hop { to { transform: translateY(-26px); } }

/* mini clickgui demo */
.mini-gui { width: 300px; height: 160px; border-radius: 16px; display: grid; grid-template-columns: 80px 1fr; overflow: hidden; }
.mini-gui aside { border-right: 1px solid var(--line); padding: 12px 10px; display: grid; gap: 8px; align-content: start; }
.mini-gui aside i { height: 9px; border-radius: 5px; background: rgba(255,255,255,.14); }
.mini-gui aside i:first-child { background: #fff; }
.mini-gui main { padding: 12px; display: grid; gap: 8px; }
.mini-gui .card { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); }
.mini-gui .card span { width: 70px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.4); }
.sw { width: 30px; height: 16px; border-radius: 8px; background: rgba(255,255,255,.18); position: relative; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: #bbb; transition: transform .4s var(--ease), background .4s; }
.sw.on { background: linear-gradient(90deg, #fff, #9a9aa4); }
.sw.on::after { transform: translateX(14px); background: #111; }

/* cosmetics demo (wings + halo) */
.cos-demo { position: relative; width: 200px; height: 170px; }
.cos-demo .body { position: absolute; left: 50%; top: 52px; width: 34px; height: 82px; margin-left: -17px; border-radius: 10px; background: linear-gradient(#e9e9ee, #6e6e78); }
.cos-demo .halo2 { position: absolute; left: 50%; top: 20px; width: 56px; height: 16px; margin-left: -28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 18px #fff; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.wing { position: absolute; top: 40px; width: 90px; height: 90px; transform-origin: 100% 50%; }
.wing.l { left: 12px; animation: flapL 1.6s ease-in-out infinite; }
.wing.r { right: 12px; transform-origin: 0 50%; animation: flapR 1.6s ease-in-out infinite; }
.wing svg { width: 100%; height: 100%; filter: drop-shadow(0 0 8px rgba(255,255,255,.6)); }
@keyframes flapL { 50% { transform: rotateY(55deg) rotate(-6deg); } }
@keyframes flapR { 50% { transform: rotateY(-55deg) rotate(6deg); } }

/* config code demo */
.codechip { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line); color: var(--ink-2); width: 270px; overflow: hidden; white-space: nowrap; position: relative; }
.codechip::after { content: "Скопировано ✓"; position: absolute; inset: 0; display: grid; place-items: center; background: #fff; color: #000; font-family: var(--text); font-weight: 600; transform: translateY(100%); animation: copied 4s infinite; }
@keyframes copied { 0%, 55% { transform: translateY(100%); } 62%, 85% { transform: none; } 92%, 100% { transform: translateY(-100%); } }
.typed { display: inline-block; overflow: hidden; vertical-align: bottom; max-width: 0; animation: type 4s steps(28) infinite; }
@keyframes type { 0% { max-width: 0; } 45%, 100% { max-width: 100%; } }

/* versions strip */
.versions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.versions span { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); animation: lit 7s infinite; }
@keyframes lit { 0%, 12% { background: #fff; color: #000; border-color: #fff; } 18%, 100% { background: transparent; color: var(--ink-2); } }
.t-f .row2 { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.bignum { font-family: var(--display); font-weight: 700; font-size: clamp(54px, 8vw, 110px); line-height: .9; letter-spacing: -.04em; }
.bignum small { font-size: .3em; color: var(--dim); letter-spacing: 0; font-weight: 500; display: block; margin-top: 6px; }

/* ---------- showcase gallery ---------- */
.gallery { margin-top: 50px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 30px; cursor: grab; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery.drag { cursor: grabbing; scroll-snap-type: none; }
.shot { flex: 0 0 min(780px, 86vw); scroll-snap-align: center; padding: 12px; border-radius: 26px; transition: transform .6s var(--ease); }
.shot img { border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; user-select: none; -webkit-user-drag: none; }
.shot figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 8px 4px; }
.shot figcaption b { font-family: var(--display); font-weight: 600; }
.shot figcaption span { color: var(--dim); font-size: 14px; }
.gallery-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: -10px; }
.round { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .3s; }
.round:hover { background: rgba(255,255,255,.1); }

/* ---------- shop ---------- */
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; }
.tabs button { padding: 10px 16px; border-radius: 999px; color: var(--ink-2); font-size: 14px; transition: background .3s, color .3s; }
.tabs button.on { background: #fff; color: #000; font-weight: 600; }
.tabs button:not(.on):hover { background: rgba(255,255,255,.08); }
.products { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.product { padding: 14px; display: flex; flex-direction: column; transition: transform .5s var(--ease); }
.product:hover { transform: translateY(-6px); }
.product.hide { display: none; }
.stage { position: relative; height: 200px; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 100%, rgba(255,255,255,.10), transparent 60%), rgba(0,0,0,.35); }
.stage::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.35)); pointer-events: none; }
.product .meta { padding: 16px 6px 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product .tag { align-self: flex-start; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.product h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 18px; }
.product p { margin: 0; color: var(--dim); font-size: 14px; flex: 1; }
.product .buy { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.price { font-family: var(--display); font-weight: 600; font-size: 22px; }
.price small { font-family: var(--text); color: var(--dim); font-size: 13px; font-weight: 400; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; background: #fff; color: #000; }
.add.added { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }

/* product previews */
.pv-figure { position: relative; width: 70px; height: 130px; }
.pv-figure .torso { position: absolute; left: 15px; top: 22px; width: 40px; height: 56px; border-radius: 6px; background: linear-gradient(#55555e, #2b2b31); }
.pv-figure .headb { position: absolute; left: 19px; top: -10px; width: 32px; height: 32px; border-radius: 6px; background: linear-gradient(#6a6a74, #3a3a42); }
.pv-figure .legs { position: absolute; left: 15px; top: 78px; width: 40px; height: 50px; border-radius: 0 0 6px 6px; background: linear-gradient(#3a3a42, #1d1d22); }
.cape { position: absolute; left: 8px; top: 20px; width: 54px; height: 100px; transform-origin: 50% 0; animation: sway 3s ease-in-out infinite; border-radius: 4px 4px 10px 10px; z-index: 3; }
@keyframes sway { 50% { transform: perspective(200px) rotateX(24deg) skewX(3deg); } }
.cape.glass { background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.12)); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 0 22px rgba(255,255,255,.35); }
.cape.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(170deg, transparent 30%, rgba(255,255,255,.7) 45%, transparent 60%); background-size: 100% 300%; animation: sheen 2.6s linear infinite; }
@keyframes sheen { from { background-position: 0 100%; } to { background-position: 0 -200%; } }
.cape.night { background: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 60%, #fff, transparent), radial-gradient(1px 1px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 80% 20%, #fff, transparent), linear-gradient(#18181d, #050506); border: 1px solid rgba(255,255,255,.35); }
.cape.theme { background: linear-gradient(180deg, #fff, #7e7e8a, #fff); background-size: 100% 300%; animation: sway 3s ease-in-out infinite, flow 3s linear infinite; border: 1px solid #fff; }
@keyframes flow { to { background-position: 0 300%; } }
.stage.back .pv-figure .cape { z-index: 2; }
.pv-halo { position: absolute; left: 50%; top: 34px; width: 70px; height: 20px; margin-left: -35px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 20px #fff, inset 0 0 10px rgba(255,255,255,.6); animation: bob 2.4s ease-in-out infinite; z-index: 3; }
.pv-halo.theme { border-color: #c9c9d1; box-shadow: 0 0 26px rgba(255,255,255,.8); animation: bob 2.4s ease-in-out infinite, spinhue 3s linear infinite; }
@keyframes spinhue { 50% { border-color: #fff; } }
.pv-wings { position: absolute; left: 50%; top: 40px; width: 220px; height: 120px; margin-left: -110px; }
.pv-wings .wing { top: 0; width: 110px; height: 110px; }
.pv-wings .wing.l { left: 0; } .pv-wings .wing.r { right: 0; }
.pv-wings.demon { --wf: #0c0c0f; --ws: #fff; }
.pv-wings.demon .wing svg { filter: drop-shadow(0 0 6px rgba(255,255,255,.9)); }
.pv-orb { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #a8a8b0 45%, rgba(255,255,255,.1) 70%); box-shadow: 0 0 40px rgba(255,255,255,.6); animation: float 3s ease-in-out infinite; position: relative; }
.pv-orb::before, .pv-orb::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; top: 50%; left: 50%; animation: orbit2 2.4s linear infinite; }
.pv-orb::after { animation-delay: -1.2s; }
@keyframes orbit2 { from { transform: rotate(0) translateX(40px); } to { transform: rotate(360deg) translateX(40px); } }
@keyframes float { 50% { transform: translateY(-12px); } }
.pv-cube { width: 56px; height: 56px; position: relative; transform-style: preserve-3d; animation: spin3d 6s linear infinite; }
.pv-cube i { position: absolute; inset: 0; border: 1.5px solid rgba(255,255,255,.9); background: rgba(255,255,255,.08); box-shadow: inset 0 0 18px rgba(255,255,255,.25); }
.pv-cube i:nth-child(1) { transform: translateZ(28px); } .pv-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(28px); }
.pv-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(28px); } .pv-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(28px); }
.pv-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(28px); } .pv-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(28px); }
@keyframes spin3d { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }
.pv-crystal { width: 64px; height: 100px; animation: float 3s ease-in-out infinite; }
.pv-crystal svg { width: 100%; height: 100%; animation: spinY 5s linear infinite; filter: drop-shadow(0 0 14px rgba(255,255,255,.6)); }
@keyframes spinY { to { transform: rotateY(360deg); } }
.pv-aura { position: absolute; inset: 0; }
.pv-aura i { position: absolute; bottom: 20px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; animation: rise2 2.6s linear infinite; opacity: 0; }
.pv-aura.snow i { animation-name: fall; top: 10px; bottom: auto; }
@keyframes rise2 { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-150px); } }
@keyframes fall { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(170px); } }
.pv-aura::after { content: ""; position: absolute; left: 50%; bottom: 16px; width: 120px; height: 26px; margin-left: -60px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); box-shadow: 0 0 20px rgba(255,255,255,.5); }
.pv-client { width: 110px; height: 110px; animation: float 4s ease-in-out infinite; }
.pv-bundle { display: flex; gap: 10px; align-items: center; }
.pv-bundle > * { transform: scale(.75); }

/* ---------- configs ---------- */
.cfg-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.cfg { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.cfg .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cfg h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 19px; }
.cfg .by { color: var(--dim); font-size: 13px; }
.cfg p { margin: 0; color: var(--dim); font-size: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips span { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.cfg code { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--dim); background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg .btn { align-self: flex-start; }
.steps { margin-top: 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { padding: 18px; border-radius: var(--radius-s); }
.step b { font-family: var(--display); font-size: 28px; display: block; color: transparent; background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.08) 100%); -webkit-background-clip: text; background-clip: text; }
.step span { color: var(--ink-2); font-size: 14px; }

/* ---------- install / faq ---------- */
.install { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; margin-top: 44px; }
.install .box { padding: 28px; }
.install ol { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); }
.install ol li { margin: 8px 0; }
.kbd { display: inline-block; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); font-size: 13px; font-weight: 600; }
.faq { margin-top: 44px; display: grid; gap: 12px; }
.faq details { padding: 0 24px; border-radius: 18px; transition: background .3s; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 22px; transition: transform .4s var(--ease); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--dim); }

/* ---------- footer ---------- */
footer { padding: 70px 0 50px; border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.foot .brand { display: flex; gap: 12px; align-items: center; font-family: var(--display); font-weight: 600; }
.foot .brand img { width: 40px; }
.foot small { color: var(--mute); display: block; margin-top: 20px; max-width: 760px; }
.giant { font-family: var(--display); font-weight: 700; font-size: clamp(60px, 15vw, 220px); letter-spacing: -.05em; line-height: .9; margin: 50px 0 0; color: transparent; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text; user-select: none; text-align: center; }

/* ---------- drawer / modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .4s; }
.overlay.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 90; width: min(440px, calc(100% - 24px)); border-radius: 26px; padding: 24px; display: flex; flex-direction: column;
  transform: translateX(110%); transition: transform .6s var(--ease); background: linear-gradient(180deg, rgba(24,24,28,.92), rgba(10,10,12,.94)); }
.drawer.on { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; }
.drawer h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; }
.close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; }
.close:hover { background: rgba(255,255,255,.08); }
.items { flex: 1; overflow: auto; margin: 18px -6px; padding: 0 6px; display: grid; gap: 10px; align-content: start; }
.item { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); animation: fade .4s var(--ease); }
.item b { font-size: 15px; } .item small { display: block; color: var(--dim); font-size: 12.5px; }
.item .rm { width: 30px; height: 30px; border-radius: 50%; color: var(--dim); }
.item .rm:hover { background: rgba(255,255,255,.1); color: #fff; }
.empty { color: var(--dim); text-align: center; padding: 40px 0; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; color: var(--dim); }
.field input { height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); color: #fff; padding: 0 16px; font: inherit; outline: none; transition: border .3s, box-shadow .3s; }
.field input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 16px; }
.total b { font-family: var(--display); font-size: 26px; }
.note { color: var(--mute); font-size: 12.5px; margin: 10px 0 0; text-align: center; }
.modal { position: fixed; left: 50%; top: 50%; z-index: 95; width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; padding: 30px; border-radius: 28px;
  transform: translate(-50%, -46%) scale(.96); opacity: 0; pointer-events: none; transition: all .5s var(--ease); background: linear-gradient(180deg, rgba(26,26,30,.95), rgba(10,10,12,.96)); }
.modal.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.modal h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 600; font-size: 24px; }
.modal p { color: var(--ink-2); }
.modal pre { white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--ink-2); }
.modal .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.modal .eyebrow { margin-bottom: 10px; }
.modal .note { text-align: left; }
.pay { display: grid; gap: 8px; margin-top: 16px; }
.pay-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; min-height: 52px; padding: 8px 8px 8px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.pay-row span { color: var(--dim); font-size: 13px; }
.pay-row b { font-family: ui-monospace, Consolas, monospace; font-size: 15px; font-weight: 600; letter-spacing: .02em; overflow-wrap: anywhere; }
.pay-row .btn { justify-self: end; }
.wait { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--ink-2); font-size: 14.5px; }
.wait i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin 1s linear infinite; }
.wait.ok { border-color: rgba(255,255,255,.6); color: #fff; }
.wait.ok i { animation: none; border-color: #fff; background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.6); }
.wait.bad i { animation: none; border-color: var(--dim); }
.wait a { text-decoration: underline; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .pay-row { grid-template-columns: 1fr auto; }
  .pay-row span { grid-column: 1 / -1; margin-bottom: -6px; }
}
.lightbox { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.85); opacity: 0; pointer-events: none; transition: opacity .4s; }
.lightbox.on { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 90vh; border-radius: 18px; box-shadow: 0 40px 120px rgba(0,0,0,.8); }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 120; transform: translate(-50%, 220%); opacity: 0; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: transform .5s var(--ease), opacity .3s; background: #fff; color: #000; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav .links { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-a, .t-b, .t-f { grid-column: span 2; } .t-c, .t-d, .t-e { grid-column: span 1; }
  .install { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .t-f .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 90px 0; }
  .bento { grid-template-columns: 1fr; }
  .t-a, .t-b, .t-c, .t-d, .t-e, .t-f { grid-column: span 1; }
  .stats { flex-direction: column; border-radius: 22px; }
  .stats div + div { border-left: 0; border-top: 1px solid var(--line); }
  .prism-stage { width: 170px; height: 170px; }
  .orbit i { animation-name: orbitS; }
  @keyframes orbitS { 0% { transform: rotateY(0) translateX(120px); } 100% { transform: rotateY(360deg) translateX(120px); } }
  .cfg-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .title .c { transform: none; }
}
