/* ============================================================
   ZEVRA — بنفش عمیق + مشکی، کارت‌های سفید
   قانون عملکرد: فقط transform و opacity انیمیشن می‌شوند (روی کارت گرافیک، نه CPU)،
   هر چیز سنگین با html[data-fx="۰|۱|۲"] (سطح کیفیت از fx.js) خاموش می‌شود،
   و هر بخش خارج از صفحه انیمیشن‌هایش مکث می‌کند (.is-off).
   رنگ‌ها را از همین‌جا عوض کنید
   ============================================================ */
:root {
  --white: #ffffff;
  --lav-50: #efe5ff;
  --lav-100: #e4d4ff;
  --lav-200: #cfb3ff;
  --purple-300: #b78cff;
  --purple-400: #9650ff;
  --purple-500: #7a2ff0;
  --purple-600: #6317d6;
  --purple-700: #4a0fa8;
  --purple-800: #340b78;
  --purple-900: #1f0647;
  --ink: #0c0716;          /* مشکی */
  --text: #2a1a47;
  --muted: #6c5a8c;
  --pink: #ff7ad9;

  --grad: linear-gradient(135deg, #9650ff 0%, #6317d6 50%, #340b78 100%);
  --radius: 26px;
  --shadow: 0 20px 60px -20px rgba(115, 38, 224, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--ink); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Vazirmatn", system-ui, sans-serif; color: #fff; background: var(--ink);
  line-height: 1.9; overflow-x: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a, summary { touch-action: manipulation; }
h1, h2, h3 { margin: 0; color: #fff; line-height: 1.35; text-wrap: balance; }
::selection { background: var(--purple-500); color: #fff; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--purple-400); outline-offset: 3px; }

/* بخش خارج از صفحه: انیمیشن‌های بی‌پایانش مکث می‌کند (باتری و روانی) */
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

/* ---------- Loader (دو پرده‌ی مشکی) ---------- */
.loader { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; animation: loaderFailsafe .6s 7s forwards; }
.loader__p { position: absolute; left: 0; right: 0; background: var(--ink); transition: transform 1.05s var(--ease-io); will-change: transform; }
.loader__p--t { top: 0; height: 50.4%; }
.loader__p--b { bottom: 0; height: 50.4%; }
.loader__mark { position: relative; z-index: 2; width: 200px; height: 200px; display: grid; place-items: center; transition: opacity .45s, transform .6s var(--ease); }
.loader__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--purple-400); border-bottom-color: #fff; animation: spin 1.2s linear infinite; }
.loader__logo { width: 120px; height: 120px; border-radius: 50%; animation: pop 1.2s var(--ease) both; box-shadow: 0 0 60px rgba(167,107,255,.7); }
.loader__txt { position: absolute; z-index: 2; left: 0; right: 0; top: calc(50% + 124px); display: grid; justify-items: center; gap: 2px; direction: ltr; transition: opacity .4s, transform .6s var(--ease); }
.loader__txt b { font: 700 54px/1 "Space Grotesk", sans-serif; letter-spacing: .04em; color: #fff; font-variant-numeric: tabular-nums; }
.loader__txt span { font: 500 12px/1.6 "Space Grotesk", sans-serif; letter-spacing: .7em; color: var(--purple-300); padding-left: .7em; }
.loader__bar { position: absolute; z-index: 2; bottom: 11vh; width: min(240px, 52vw); height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; transition: opacity .4s; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.loader.is-done { pointer-events: none; visibility: hidden; transition: visibility 0s 1.2s; }
.loader.is-done .loader__p--t { transform: translateY(-101%); }
.loader.is-done .loader__p--b { transform: translateY(101%); }
.loader.is-done .loader__mark { opacity: 0; transform: scale(1.35); }
.loader.is-done .loader__txt, .loader.is-done .loader__bar { opacity: 0; transform: translateY(14px); }
@keyframes pop { from { transform: scale(.4) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- Utilities ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(150,80,255,.16), transparent 65%); transform: translate(-100px, -100px); will-change: transform;
}
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: linear-gradient(90deg, #ff7ad9, #9650ff, #6317d6); transform: scaleX(0); transform-origin: right; will-change: transform; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 14px; font-weight: 700;
  color: var(--lav-100); background: rgba(150,80,255,.2); border: 1px solid rgba(183,140,255,.28); padding: 5px 16px; border-radius: 999px;
}
.eyebrow i, .fab i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--purple-400); }
.eyebrow i::after, .fab i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 30px; border-radius: 999px;
  font-weight: 700; font-size: 16px; border: 0; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s; font-family: inherit; color: #fff;
}
.btn:active { transform: scale(.96); }
.btn--small { padding: 9px 22px; font-size: 14px; background: var(--grad); box-shadow: 0 10px 30px -10px rgba(122,47,240,.9); }
.btn--small:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, #9650ff, #6317d6); box-shadow: 0 18px 44px -14px rgba(150,80,255,.85), inset 0 0 0 1px rgba(255,255,255,.18); }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(120%); transition: transform .8s var(--ease); }
.btn--primary:hover::before { transform: translateX(-120%); }
.hero__cta .btn--primary::before { animation: btnSweep 5.5s 3.5s ease-in-out infinite; }
@keyframes btnSweep { 0% { transform: translateX(120%); } 28%, 100% { transform: translateX(-120%); } }
.btn--primary:hover { box-shadow: 0 26px 60px -14px rgba(150,80,255,1), inset 0 0 0 1px rgba(255,255,255,.3); }
.btn--primary svg { transition: transform .35s var(--ease); }
.btn--primary:hover svg { transform: translateX(-6px); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.28); }
.btn--ghost:hover { background: #fff; color: var(--purple-800); }
.btn--white { background: #fff; color: var(--purple-700); font-size: 18px; padding: 18px 38px; box-shadow: 0 25px 60px -20px rgba(0,0,0,.5); }
.btn--white:hover { transform: translateY(-3px) scale(1.03); }
.rip { position: absolute; z-index: -1; border-radius: 50%; background: rgba(255,255,255,.4); pointer-events: none; transform: scale(0); animation: ripple .7s ease-out forwards; }
.btn--white .rip, .btn--ghost:hover .rip { background: rgba(122,47,240,.25); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); inset-inline: 0; margin-inline: auto; z-index: 100;
  width: min(1120px, calc(100% - 28px)); height: 66px; padding: 0 14px 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(20,9,42,.86); border: 1px solid rgba(183,140,255,.22); border-radius: 999px;
  box-shadow: 0 10px 40px -16px rgba(0,0,0,.7); transition: transform .5s var(--ease);
}
html[data-fx="2"] .nav { background: rgba(20,9,42,.55); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); }
.nav.is-hidden { transform: translateY(-130px); }
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 20px; color: #fff; }
.nav__brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--purple-400); }
.nav__links { display: flex; gap: 6px; }
.nav__links a { padding: 8px 16px; border-radius: 999px; font-weight: 500; font-size: 15px; color: rgba(255,255,255,.86); transition: background .25s, color .25s; }
.nav__links a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav__links a.is-current { background: rgba(150,80,255,.38); color: #fff; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; inset-inline: 10px; height: 2px; background: #fff; transition: transform .35s var(--ease); }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav__dm { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; padding: 150px 6vw 100px; isolation: isolate; overflow: hidden; background: var(--ink);
  display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* پشتیبان بدون WebGL: گرادینت‌های بنفش که فقط با transform آرام می‌لغزند (بدون blur سنگین) */
.hero__fallback {
  position: absolute; inset: -12%; will-change: transform; transition: opacity 1.6s;
  background:
    radial-gradient(52% 46% at 18% 24%, rgba(122,47,240,.62), transparent 70%),
    radial-gradient(46% 44% at 86% 74%, rgba(99,23,214,.55), transparent 70%),
    radial-gradient(34% 34% at 62% 8%, rgba(214,60,190,.26), transparent 70%),
    radial-gradient(60% 50% at 40% 100%, rgba(74,15,168,.5), transparent 70%),
    linear-gradient(180deg, #140828, #0c0716);
  animation: fbDrift 20s ease-in-out infinite alternate;
}
@keyframes fbDrift { to { transform: translate3d(-3%, 2.5%, 0) scale(1.07); } }
#aurora { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.hero.gl-on #aurora { opacity: 1; }
.hero.gl-on .hero__fallback { opacity: 0; }
.hero__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(183,140,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(183,140,255,.09) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
}
.hero__shade { position: absolute; inset-inline: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, transparent, rgba(12,7,22,.92)); }
.hero__inner { position: relative; z-index: 2; will-change: transform, opacity; }
.hero__title { font-size: clamp(38px, 5.7vw, 86px); font-weight: 900; letter-spacing: -.5px; margin-bottom: 26px; line-height: 1.28; }
.hero__title .line { display: block; overflow: hidden; padding-block: .16em; margin-block: -.16em; white-space: nowrap; }
.hero__title .word { display: inline-block; transform: translateY(125%); }
body.is-ready .hero__title .word { animation: wordUp 1.1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * .13s + .25s); }
@keyframes wordUp { to { transform: none; } }
.rot {
  display: inline-block; padding-inline: 2px; color: transparent;
  background: linear-gradient(100deg, #fff 0%, #cfb3ff 30%, #ff9be8 55%, #b78cff 80%, #fff 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: -220% 0; } }
.hero__sub { max-width: 560px; font-size: 18px; color: rgba(255,255,255,.78); margin: 0 0 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--lav-100); font-weight: 700; font-size: 15px; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--purple-500); color: #fff; box-shadow: 0 6px 16px -6px var(--purple-400); }

/* بخش تصویری هیرو: چند لایه با عمق متفاوت که با موس پارالاکس می‌شوند */
.hero__visual { position: relative; z-index: 2; aspect-ratio: 1; max-width: 540px; width: 100%; margin-inline: auto; }
.vl { position: absolute; will-change: transform; }
.vl--orb { inset: 0; }
.orb { position: absolute; inset: 17%; border-radius: 50%; animation: bob 6s ease-in-out infinite; box-shadow: 0 40px 110px -20px rgba(150,80,255,.85), 0 0 0 10px rgba(255,255,255,.1), 0 0 0 22px rgba(255,255,255,.05); }
.orb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@keyframes bob { 50% { transform: translateY(-16px) rotate(2deg); } }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(183,140,255,.5); animation: spin 28s linear infinite; }
.orbit--2 { inset: -9%; border-style: solid; border-color: rgba(183,140,255,.2); animation-duration: 42s; animation-direction: reverse; }
.orbit--3 { inset: 7%; border: 1px solid rgba(255,122,217,.22); animation-duration: 19s; }
.orbit::after { content: ""; position: absolute; top: 8%; right: 14%; width: 16px; height: 16px; border-radius: 50%; background: var(--purple-400); box-shadow: 0 0 24px 6px rgba(150,80,255,.9); }
.orbit--2::after { background: #fff; box-shadow: 0 0 24px 6px rgba(183,140,255,.9); top: auto; bottom: 10%; right: auto; left: 12%; }
.orbit--3::after { width: 10px; height: 10px; background: var(--pink); box-shadow: 0 0 18px 5px rgba(255,122,217,.8); top: 50%; right: -5px; }
.fl { animation: fl 6s ease-in-out infinite; }
@keyframes fl { 50% { transform: translateY(-13px) rotate(1.4deg); } }
.chip {
  display: inline-block; padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; color: #fff;
  background: rgba(40,16,86,.78); border: 1px solid rgba(183,140,255,.4); box-shadow: 0 14px 40px -12px rgba(0,0,0,.7);
}
html[data-fx="2"] .chip { background: rgba(255,255,255,.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vl--k1 { top: 5%; left: -2%; } .vl--k1 .chip { animation-delay: -1s; }
.vl--k2 { top: 50%; right: -6%; } .vl--k2 .chip { animation-delay: -2.6s; animation-duration: 7s; }
.vl--k3 { bottom: 5%; left: 6%; } .vl--k3 .chip { animation-delay: -4s; animation-duration: 5.4s; }
/* کارت نمونه‌کار شناور (از عکس نمونه‌کارهای واقعی ساخته می‌شود) */
.vl--c1 { width: 27%; top: 9%; right: 1%; }
.vl--c2 { width: 24%; bottom: 8%; right: 14%; }
.hcard { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: var(--c, #7a2ff0); border: 1px solid rgba(255,255,255,.3); box-shadow: 0 26px 50px -16px rgba(0,0,0,.7), 0 0 44px -12px var(--c, #7a2ff0); transform: rotate(5deg); }
.vl--c2 .hcard { transform: rotate(-6deg); animation-delay: -3s; animation-duration: 7.4s; }
.hcard img { width: 100%; height: 100%; object-fit: cover; }
.hcard span { position: absolute; inset-inline: 0; bottom: 0; padding: 22px 8px 8px; text-align: center; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.78)); }

.scroll-hint { position: absolute; bottom: 26px; inset-inline: 0; margin-inline: auto; width: 26px; height: 42px; border: 2px solid rgba(183,140,255,.7); border-radius: 20px; z-index: 3; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- نوار مشکی ---------- */
.band { background: #07030f; color: #fff; padding: 18px 6vw; position: relative; overflow: hidden; border-block: 1px solid #2a1a47; }
.band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(167,107,255,.3) 50%, transparent 65%); transform: translateX(120%); animation: bandSweep 6s 2.5s ease-in-out infinite; }
@keyframes bandSweep { 0% { transform: translateX(120%); } 45%, 100% { transform: translateX(-120%); } }
.band__inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 26px; font-weight: 700; font-size: clamp(15px, 2vw, 20px); }
.band__inner b { color: var(--purple-400); }
.band span { opacity: 0; transform: translateY(12px); }
body.is-ready .band span { animation: bandIn .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * .12s + .2s); }
@keyframes bandIn { to { opacity: 1; transform: none; } }

/* ---------- جمله‌ی بزرگ ---------- */
.statement { position: relative; overflow: hidden; padding: 150px 7vw 160px; text-align: center; background: linear-gradient(180deg, #07030f 0%, var(--purple-900) 100%); }
.statement__orb { position: absolute; width: 820px; height: 820px; top: 50%; left: 50%; margin: -410px 0 0 -410px; border-radius: 50%; pointer-events: none; will-change: transform; background: radial-gradient(circle, rgba(122,47,240,.5), rgba(122,47,240,0) 64%); animation: orbDrift 18s ease-in-out infinite alternate; }
@keyframes orbDrift { from { transform: translate3d(-18%, -8%, 0) scale(.9); } to { transform: translate3d(18%, 10%, 0) scale(1.15); } }
.statement .eyebrow { position: relative; margin-bottom: 36px; }
.statement__text { position: relative; max-width: 1080px; margin: 0 auto; font-size: clamp(27px, 4.7vw, 66px); font-weight: 900; line-height: 1.62; text-wrap: balance; }
.sw { display: inline-block; opacity: .17; transform: translateY(10px); transition: opacity .5s ease, transform .7s var(--ease); }
.sw.on { opacity: 1; transform: none; }
.sw.hl.on { background: linear-gradient(100deg, #cfb3ff, #ff9be8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Sections ---------- */
.section { padding: 120px 6vw; position: relative; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section__head .eyebrow { display: flex; width: fit-content; margin: 0 auto 18px; }
.section__head h2 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 900; margin-bottom: 14px; position: relative; display: inline-block; }
.section__head h2::after { content: ""; display: block; height: 4px; width: 70%; margin: 12px auto 0; border-radius: 4px; background: linear-gradient(90deg, #ff7ad9, #9650ff); transform: scaleX(0); transition: transform 1.1s .3s var(--ease); }
.section__head.is-in h2::after { transform: none; }
.section__head h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .1em; margin-block: -.1em; }
.section__head h2 .w > span { display: inline-block; transform: translateY(118%) rotate(4deg); transition: transform 1s var(--ease); transition-delay: calc(var(--wi, 0) * .09s); }
.section__head.is-in h2 .w > span { transform: none; }

/* Services: کارت‌های سفید روی بنفش پررنگ */
#services { background: radial-gradient(900px 520px at 88% 26%, rgba(150,80,255,.42), transparent 70%), radial-gradient(700px 480px at 6% 100%, rgba(255,122,217,.14), transparent 70%), linear-gradient(180deg, var(--purple-900), var(--purple-700) 52%, var(--purple-800)); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1180px; margin: 0 auto; }
.card {
  --mx: 50%; --my: 0%; position: relative; padding: 34px 28px; border-radius: var(--radius); background: #fff; color: var(--text); overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.65);
  transition: transform .8s var(--ease), opacity .8s var(--ease), box-shadow .5s var(--ease); transition-delay: var(--d, 0s);
}
.card.reveal:not(.is-in) { transform: perspective(900px) rotateX(22deg) translateY(54px) scale(.94); }
.card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s; z-index: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(150,80,255,.22), transparent 60%); }
.card::after { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, #ff7ad9, #9650ff); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); z-index: 2; }
.card:hover { box-shadow: 0 34px 80px -26px rgba(0,0,0,.85), 0 0 0 1px rgba(150,80,255,.5); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: none; }
.card > * { position: relative; z-index: 1; }
.card__icon { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 22px; background: var(--grad); color: #fff; font-size: 28px; box-shadow: 0 14px 30px -10px rgba(115,38,224,.7); transition: transform .6s var(--ease); }
.card:hover .card__icon { transform: rotate(-10deg) scale(1.1); }
.card h3 { font-size: 21px; margin-bottom: 10px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card__num { position: absolute !important; top: 18px; left: 24px; font-weight: 700; font-size: 44px; color: var(--lav-100); }

/* Stats */
.stats { background: linear-gradient(135deg, var(--purple-500), var(--purple-800) 70%, var(--purple-900)); padding: 70px 6vw; position: relative; overflow: hidden; }
.stats__inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; text-align: center; }
.stat b { display: block; font-size: clamp(40px, 5vw, 64px); font-weight: 900; line-height: 1.2; }
.stat span { opacity: .85; font-weight: 500; }

/* Portfolio (شبکه) */
#work { background: var(--ink); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 46px; }
.filter { padding: 9px 22px; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 14px; background: rgba(150,80,255,.18); color: var(--purple-300); transition: all .35s var(--ease); }
.filter:hover { transform: translateY(-2px); }
.filter.is-active { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(115,38,224,.7); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--minw, 300px), 100%), var(--maxw, 380px))); justify-content: center; gap: 26px; max-width: 1240px; margin: 0 auto; }
.work { --mx: 50%; --my: 50%; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; cursor: pointer; background: var(--ink); box-shadow: 0 16px 50px -24px rgba(90,27,179,.6); opacity: 0; transform: translateY(50px) scale(.96); transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .5s; transition-delay: var(--d, 0s); }
.work.is-in { opacity: 1; transform: none; }
.work.is-in:hover { transform: translateY(-8px); box-shadow: 0 40px 80px -30px rgba(115,38,224,.8); transition-delay: 0s; }
.work.is-hide { display: none; }
.work::after { content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; transition: opacity .5s; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255,255,255,.28), transparent 65%); }
.work:hover::after { opacity: 1; }
.work__media { position: absolute; inset: 0; transition: transform 1.1s var(--ease); background: var(--ink); }
.work:hover .work__media { transform: scale(1.08); }
.work__info { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 90px 24px 24px; color: #fff; background: linear-gradient(180deg, transparent, rgba(40,8,100,.92)); transform: translateY(14px); transition: transform .6s var(--ease); }
.work:hover .work__info { transform: none; }
.work__tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.2); margin-bottom: 10px; }
.work__info h3 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.work__info p { margin: 0; font-size: 14px; opacity: 0; max-height: 0; transition: all .6s var(--ease); }
.work:hover .work__info p { opacity: .95; max-height: 80px; }
.work__zoom { position: absolute; top: 16px; left: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 300; color: var(--purple-700); background: rgba(255,255,255,.92); transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease); }
.work:hover .work__zoom, .work:focus-visible .work__zoom { transform: none; }

/* Process: کارت‌های شیشه‌ای روی بنفش عمیق + خط اتصال */
#process { background: radial-gradient(800px 480px at 12% 0%, rgba(122,47,240,.4), transparent 70%), linear-gradient(180deg, var(--ink), var(--purple-900) 60%, var(--purple-800)); }
.steps { list-style: none; max-width: 1100px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; position: relative; }
/* خط اتصال بین دایره‌ی هر قدم و قدم بعد (فقط transform انیمیت می‌شود) */
.step:not(:last-child)::after { content: ""; position: absolute; z-index: 2; top: 52px; inset-inline-start: 80px; width: calc(100% - 36px); height: 3px; border-radius: 3px; pointer-events: none; background: linear-gradient(to left, #ff7ad9, #9650ff); box-shadow: 0 0 14px rgba(150,80,255,.65); transform: scaleX(0); transform-origin: right; transition: transform .9s var(--ease); transition-delay: calc(var(--d, 0s) + .7s); }
.step:nth-child(2):not(:last-child)::after { background: linear-gradient(to left, #9650ff, #6317d6); }
.step.is-in:not(:last-child)::after { transform: none; }
.steps__cta { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 64px auto 0; text-align: center; }
.steps__cta p { margin: 0; font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; color: rgba(255,255,255,.88); }
.step { position: relative; z-index: 1; padding: 30px 26px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); transition: transform .8s var(--ease), opacity .8s var(--ease), background .4s, border-color .4s; transition-delay: var(--d, 0s); }
.step.is-in:hover { transform: translateY(-8px); background: rgba(255,255,255,.12); border-color: rgba(183,140,255,.6); transition-delay: 0s; }
.step__n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 900; margin-bottom: 16px; box-shadow: 0 0 0 6px rgba(150,80,255,.22), 0 10px 30px -8px var(--purple-400); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { margin: 0; color: rgba(255,255,255,.72); font-size: 15px; }

/* Testimonials */
.testi { background: linear-gradient(180deg, var(--purple-800), var(--purple-900)); }
.testi__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1180px; margin: 0 auto; }
.testi__card { margin: 0; padding: 32px 28px; border-radius: var(--radius); background: #fff; color: var(--text); position: relative; box-shadow: 0 24px 60px -28px rgba(0,0,0,.65); transition: transform .5s var(--ease), opacity .9s var(--ease); }
.testi__card::before { content: "“"; position: absolute; top: 4px; left: 22px; font-size: 90px; line-height: 1; color: var(--lav-100); font-family: Georgia, serif; }
.testi__card blockquote { margin: 0 0 22px; font-size: 16px; position: relative; }
.testi__card figcaption { display: flex; align-items: center; gap: 12px; }
.testi__av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 900; }
.testi__card b { display: block; color: var(--ink); }
.testi__card small { color: var(--muted); }

/* FAQ */
#faq { background: radial-gradient(800px 460px at 90% 38%, rgba(122,47,240,.3), transparent 70%), linear-gradient(180deg, var(--purple-800), var(--purple-900)); }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { background: #fff; color: var(--text); border-radius: 22px; box-shadow: 0 18px 44px -26px rgba(0,0,0,.7); transition: box-shadow .4s var(--ease), opacity .9s var(--ease), transform .9s var(--ease); }
.faq__item[open] { box-shadow: 0 28px 60px -24px rgba(0,0,0,.8), 0 0 0 2px var(--purple-400); }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 26px; font-weight: 800; color: var(--ink); font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--lav-100); position: relative; transition: background .3s, transform .5s var(--ease); }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--purple-600); transition: transform .4s var(--ease), background .3s; }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i { background: var(--purple-500); transform: rotate(180deg); }
.faq__item[open] summary i::before, .faq__item[open] summary i::after { background: #fff; }
.faq__item[open] summary i::after { transform: rotate(0); }
.faq__a { padding: 0 26px 22px; animation: faqIn .5s var(--ease); }
.faq__a p { margin: 0; color: var(--muted); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* CTA */
.cta { position: relative; padding: 130px 6vw 140px; text-align: center; color: #fff; overflow: hidden; background: linear-gradient(160deg, var(--purple-600), var(--purple-800) 55%, var(--purple-900)); }
.cta__glow { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }
.cta__glow--1 { width: 760px; height: 760px; top: -320px; right: -220px; background: radial-gradient(circle, rgba(150,80,255,.6), rgba(150,80,255,0) 65%); animation: float1 14s ease-in-out infinite alternate; }
.cta__glow--2 { width: 700px; height: 700px; bottom: -340px; left: -200px; background: radial-gradient(circle, rgba(255,122,217,.3), rgba(255,122,217,0) 65%); animation: float2 16s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translate3d(70px, 50px, 0) scale(1.12); } }
@keyframes float2 { to { transform: translate3d(-80px, -46px, 0) scale(1.18); } }
.cta__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.badge { position: relative; display: grid; place-items: center; width: 200px; height: 200px; margin: 0 auto 30px; }
.badge__ring { position: absolute; inset: 0; direction: ltr; will-change: transform; animation: spin 20s linear infinite; }
.badge__ring span { position: absolute; left: 50%; top: 0; width: var(--cw, 10px); height: 50%; margin-left: calc(var(--cw, 10px) / -2); padding-top: 8px; transform-origin: 50% 100%; transform: rotate(var(--a, 0deg)); text-align: center; font: 700 var(--fs, 13px)/1 "Space Grotesk", sans-serif; color: #fff; }
.badge img { width: 98px; height: 98px; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,255,255,.16), 0 0 46px 6px rgba(150,80,255,.75); transition: transform .6s var(--ease); }
.badge:hover img { transform: scale(1.14) rotate(-10deg); }
.cta h2 { font-size: clamp(32px, 5.4vw, 64px); font-weight: 900; margin-bottom: 14px; }
.cta p { font-size: 18px; opacity: .92; margin: 0 0 34px; }
.cta__handle { display: block; margin-top: 18px; opacity: .85; font-family: "Space Grotesk", sans-serif; letter-spacing: .04em; direction: ltr; }

/* Footer */
.footer { background: var(--ink); padding: 0 6vw 30px; border-top: 1px solid #2a1a47; overflow: hidden; }
.footer__big {
  direction: ltr; display: flex; justify-content: center; overflow: hidden; padding-top: 50px; user-select: none;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(76px, 25vw, 380px); line-height: .92; letter-spacing: -.02em;
}
.footer__big span { display: inline-block; transform: translateY(108%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * .08s); color: transparent; -webkit-text-stroke: 2px rgba(150,80,255,.6); background: linear-gradient(180deg, rgba(150,80,255,.75), rgba(52,11,120,.08) 85%); -webkit-background-clip: text; background-clip: text; }
.footer__big.is-in span { transform: none; }
.footer__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; }
.footer p { margin: 0; color: var(--purple-300); font-size: 14px; }
.footer__ig { font-weight: 700; color: #fff; padding: 8px 20px; border-radius: 999px; background: rgba(150,80,255,.2); transition: background .3s; }
.footer__ig:hover { background: var(--purple-500); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; background: rgba(8,4,16,.92); opacity: 0; transition: opacity .4s var(--ease); }
html[data-fx="2"] .lb { background: rgba(12,7,22,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lb.is-open { opacity: 1; }
.lb__box { width: min(960px, 100%); max-height: 92vh; display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; background: #fff; color: var(--text); border-radius: 30px; box-shadow: 0 50px 120px -30px rgba(0,0,0,.8); transform: translateY(40px) scale(.94); transition: transform .6s var(--ease); }
.lb.is-open .lb__box { transform: none; }
.lb__box.is-swap .lb__media { animation: lbSwap .6s var(--ease); }
.lb__box.is-swap .lb__info > * { animation: fadeUp2 .7s var(--ease) both; }
.lb__box.is-swap .lb__info > *:nth-child(2) { animation-delay: .06s; }
.lb__box.is-swap .lb__info > *:nth-child(3) { animation-delay: .12s; }
.lb__box.is-swap .lb__info > *:nth-child(4) { animation-delay: .18s; }
@keyframes lbSwap { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes fadeUp2 { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lb__media { position: relative; min-height: 360px; background: var(--ink); overflow: hidden; }
.lb__media img, .lb__media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.lb__info { padding: 38px 34px; display: flex; flex-direction: column; justify-content: center; gap: 4px; overflow: auto; }
.lb__info .work__tag { align-self: flex-start; background: var(--lav-100); color: var(--purple-700); }
.lb__info h3 { font-size: 28px; margin-bottom: 8px; color: var(--ink); }
.lb__info p { margin: 0 0 22px; color: var(--muted); }
.lb__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.lb__count { color: var(--muted); font-weight: 700; font-size: 14px; }
.lb__close, .lb__nav { position: absolute; z-index: 2; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; display: grid; place-items: center; transition: background .3s, transform .4s var(--ease); }
.lb__close:hover, .lb__nav:hover { background: var(--purple-500); transform: scale(1.1); }
.lb__close { top: 20px; left: 20px; font-size: 18px; }
.lb__nav { top: 50%; margin-top: -24px; font-size: 30px; line-height: 1; padding-bottom: 4px; }
.lb__nav--next { left: 20px; }
.lb__nav--prev { right: 20px; }

/* Back to top + دکمه‌ی شناور دایرکت */
.to-top { position: fixed; bottom: 92px; left: 24px; z-index: 90; width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer; background: var(--grad); color: #fff; font-size: 22px; box-shadow: 0 16px 40px -12px rgba(122,47,240,.9); opacity: 0; transform: translateY(20px) scale(.6); pointer-events: none; transition: opacity .4s, transform .5s var(--ease); }
.to-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }
.fab { position: fixed; bottom: 24px; right: 24px; z-index: 95; display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 20px 50px -14px rgba(122,47,240,.95), 0 0 0 1px rgba(255,255,255,.2) inset; animation: fabIn .7s var(--ease) both; transition: transform .35s var(--ease); }
.fab:hover { transform: translateY(-4px) scale(1.04); }
.fab i { background: #5cf2a0; }
@keyframes fabIn { from { opacity: 0; transform: translateY(30px) scale(.8); } to { opacity: 1; transform: none; } }

/* مکان‌نمای حلقه‌ای (فقط دسکتاپ) */
.cursor-ring { position: fixed; top: 0; left: 0; z-index: 998; width: 36px; height: 36px; border-radius: 50%; pointer-events: none; border: 2px solid var(--purple-400); opacity: 0; transition: width .35s var(--ease), height .35s var(--ease), background .3s, opacity .3s; transform: translate(-100px, -100px); will-change: transform; }
.cursor-ring.is-on { opacity: .9; }
.cursor-ring.is-hover { width: 64px; height: 64px; background: rgba(150,80,255,.18); }
@media (pointer: coarse) { .cursor-ring, .cursor-glow { display: none; } }

.burst { position: fixed; z-index: 999; width: 9px; height: 9px; border-radius: 50%; background: var(--purple-400); pointer-events: none; box-shadow: 0 0 12px 2px rgba(167,107,255,.8); }
.skip { position: fixed; top: -60px; right: 12px; z-index: 1000; background: #fff; color: var(--purple-700); padding: 10px 18px; border-radius: 12px; font-weight: 700; transition: top .3s; }
.skip:focus { top: 12px; }
.noscript { position: fixed; bottom: 0; inset-inline: 0; z-index: 1001; background: var(--ink); color: #fff; padding: 14px 20px; text-align: center; }
.noscript a { color: var(--purple-300); text-decoration: underline; }

/* ============================================================
   نمونه‌کارها: صحنه‌های سینمایی تمام‌صفحه
   ============================================================ */
section.stack { background: radial-gradient(900px 500px at 15% 0%, rgba(122,47,240,.35), transparent 70%), radial-gradient(700px 500px at 90% 90%, rgba(99,23,214,.3), transparent 70%), var(--ink); padding: 100px 0 0; }
.stack .section__head { padding-inline: 6vw; margin-bottom: 14px; }
.stack__track { position: relative; }
.stack__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stack__stage { position: absolute; inset: 0; }
.sc {
  --c: #8b46f5; --e: 1; position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; cursor: pointer; contain: layout paint;
  background: radial-gradient(900px 640px at 30% 52%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%), radial-gradient(700px 520px at 88% 12%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%), var(--ink);
}
.sc__ghost { position: absolute; inset-inline: 0; top: 50%; text-align: center; direction: ltr; pointer-events: none; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(200px, 36vw, 540px); line-height: 1; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--c) 42%, transparent); opacity: .6; transform: translateY(-52%); animation: ghostDrift 16s ease-in-out infinite alternate; }
@keyframes ghostDrift { from { transform: translate3d(-2.5%, -52%, 0); } to { transform: translate3d(2.5%, -48%, 0); } }
.sc__in { position: relative; z-index: 2; width: min(1240px, calc(100vw - 300px)); display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.sc__info { display: grid; gap: 14px; justify-items: start; }
.sc__info > * { --p: clamp(0, calc(var(--e, 1) * 1.8 - var(--k, 0)), 1); opacity: var(--p); transform: translateY(calc((1 - var(--p)) * 40px)); }
.sc__info .wlogo { height: 58px; max-width: 190px; border-radius: 14px; }
.sc__info .work__tag { background: color-mix(in srgb, var(--c) 30%, transparent); color: #fff; border: 1px solid color-mix(in srgb, var(--c) 75%, transparent); margin: 0; }
.sc__info h3 { color: #fff; font-size: clamp(34px, 5vw, 72px); line-height: 1.15; }
.sc__info p { margin: 0; color: rgba(255,255,255,.78); font-size: 18px; max-width: 440px; }
.sc__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.sc__info .btn--primary { background: var(--c); box-shadow: 0 16px 40px -14px var(--c); }
.sc__info .btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.sc__info .btn--ghost:hover { background: #fff; color: var(--ink); }
.sc__device { position: relative; display: grid; place-items: center; height: min(72vh, 640px); opacity: var(--e); transform: translateY(calc((1 - var(--e)) * 140px)) scale(calc(.8 + .2 * var(--e))); }
.sc__glow { position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, var(--c), transparent 68%); opacity: .5; }
.dev__tilt { position: relative; transform: perspective(1300px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .25s ease-out; }
.dev { position: relative; background: #0a0612; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.18); animation: devBob 6s ease-in-out infinite; box-shadow: 0 50px 110px -30px color-mix(in srgb, var(--c) 85%, #000), inset 0 0 0 1px rgba(255,255,255,.05); --ar: 1.6; width: fit-content; }
@keyframes devBob { 50% { transform: translateY(-14px); } }
.dev__bar, .dev__notch { display: none; }
.dev--browser { border-radius: 18px; }
.dev--browser .dev__screen { width: min(640px, 46vw, calc(60vh * var(--ar))); aspect-ratio: var(--ar); }
.dev--browser .dev__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255,255,255,.08); direction: ltr; }
.dev__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); }
.dev__bar span { margin-left: 10px; flex: 1; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); border-radius: 999px; padding: 1px 14px; font-size: 12px; font-family: "Space Grotesk", sans-serif; }
.dev--phone { border-radius: 46px; border: 10px solid #17111f; }
.dev--phone .dev__screen { --sh: min(62vh, 560px); height: var(--sh); width: calc(var(--sh) * var(--ar)); }
.dev--phone .dev__notch { display: block; position: absolute; top: 8px; left: 50%; width: 30%; height: 20px; margin-left: -15%; border-radius: 12px; background: #000; z-index: 6; }
.dev__screen { position: relative; flex: none; overflow: hidden; background: var(--ink); min-height: 0; }
.dev__screen img, .dev__screen video { position: absolute; inset: 0; width: 100%; height: 100%; }
.dev--phone .mfit { object-fit: cover !important; }
.dev--phone .bgfill { display: none; }

.stack__dots { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); z-index: 8; display: grid; gap: 16px; padding-left: 18px; }
.stack__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.18); border-radius: 2px; overflow: hidden; }
.stack__bar u { display: block; width: 100%; height: 100%; background: #fff; transform-origin: top; transform: scaleY(var(--pg, 0)); }
.stack__dots button { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; cursor: pointer; color: rgba(255,255,255,.45); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 15px; transition: color .4s, transform .5s var(--ease); }
.stack__dots button span { font-family: "Vazirmatn", sans-serif; font-size: 13px; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .6s var(--ease); }
.stack__dots button.is-on { color: #fff; transform: translateX(6px); }
.stack__dots button.is-on span { max-width: 150px; }

/* حالت ساده (موبایل / کم‌کردن حرکت / دستگاه ضعیف): صحنه‌ها زیر هم */
.stack--flat .stack__sticky { position: static; height: auto; overflow: visible; }
.stack--flat .stack__stage { position: static; display: grid; gap: 18px; padding: 22px 5vw 60px; }
.stack--flat .sc { position: relative; inset: auto; border-radius: 30px; padding: 40px 0 46px; }
.stack--flat .sc__in { grid-template-columns: 1fr; gap: 30px; width: 88%; }
.stack--flat .sc__device { height: auto; opacity: 1; transform: none; padding: 10px 0; }
.stack--flat .dev--phone .dev__screen { --sh: min(56vh, 440px); }
.stack--flat .dev--browser .dev__screen { width: min(78vw, 560px); }
.stack--flat .stack__dots { display: none; }
.stack--flat .sc__ghost { font-size: 46vw; }
.stack--flat .sc__info > * { opacity: 1; transform: none; }
.stack--flat .sc__glow { width: 110%; }

.wlogo { height: 44px; max-width: 150px; width: auto; object-fit: contain; border-radius: 10px; justify-self: start; align-self: flex-start; margin-bottom: 4px; }
.work__info .wlogo { height: 34px; margin-bottom: 10px; background: rgba(255,255,255,.9); padding: 4px 8px; }
.lb__info .wlogo { height: 48px; margin-bottom: 10px; }

/* نمایش کامل عکس/ویدیو بدون بریدگی، روی پس‌زمینه‌ی محو‌شده */
.work__media, .dev__screen, .lb__media { background: var(--ink); }
.bgfill { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover !important; filter: blur(26px) brightness(.65) saturate(1.2); transform: scale(1.2); z-index: 0; }
.mfit { object-fit: contain !important; position: relative; z-index: 1; width: 100%; height: 100%; }
.dev__screen .mfit, .lb__media .mfit, .work__media .mfit { position: absolute !important; inset: 0; }
.vbroken { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; padding: 20px; color: #fff; background: var(--purple-900); font-weight: 700; font-size: 14px; }

/* سایت کوچک متحرک: جای عکس نمونه‌کارِ خالی */
.mock { position: absolute; inset: 0; padding: 5% 6%; display: flex; flex-direction: column; gap: 5%; background: linear-gradient(160deg, #fff, var(--lav-50)); overflow: hidden; direction: ltr; }
.mock__nav { display: flex; align-items: center; gap: 3%; }
.mock__nav b { width: 6%; aspect-ratio: 1; border-radius: 50%; background: var(--art, var(--grad)); }
.mock__nav span { height: 6px; width: 9%; border-radius: 6px; background: var(--lav-200); }
.mock__nav b + span { margin-left: auto; }
.mock__hero { flex: 1.2; border-radius: 16px; position: relative; overflow: hidden; background: var(--art, var(--grad)); display: grid; align-content: center; gap: 10px; padding: 0 8%; }
.mock__hero::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.25); top: -30%; right: -10%; animation: float2 7s ease-in-out infinite alternate; }
.mock__hero i { display: block; height: 9px; border-radius: 9px; background: rgba(255,255,255,.88); position: relative; overflow: hidden; }
.mock__hero i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(124,58,237,.4), transparent); animation: mockShine 2.4s infinite; }
.mock__hero i:nth-child(1) { width: 68%; height: 14px; } .mock__hero i:nth-child(2) { width: 46%; }
.mock__hero u { display: block; width: 26%; height: 18px; border-radius: 999px; background: #fff; margin-top: 6px; animation: mockBtn 4s infinite; }
.mock__cards { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.mock__cards s { border-radius: 12px; background: #fff; border: 1px solid var(--lav-200); box-shadow: 0 8px 20px -12px rgba(90,27,179,.5); animation: mockUp 4s ease-in-out infinite; }
.mock__cards s:nth-child(2) { animation-delay: .25s; } .mock__cards s:nth-child(3) { animation-delay: .5s; }
.mock__cursor { position: absolute; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: var(--ink); border: 2px solid #fff; top: 52%; left: 30%; animation: mockCursor 4s ease-in-out infinite; }
@keyframes mockShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes mockUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9%); } }
@keyframes mockBtn { 0%, 55%, 100% { transform: scale(1); } 65% { transform: scale(.9); } 75% { transform: scale(1.05); } }
@keyframes mockCursor { 0% { transform: translate(110px, 90px) rotate(-45deg); } 50%, 72% { transform: translate(0, 0) rotate(-45deg); } 100% { transform: translate(110px, 90px) rotate(-45deg); } }

/* ============================================================
   سطح کیفیت: ۱ = موبایل/متوسط (بدون درخشش متن)، ۰ = سبک (بدون هیچ حلقه‌ی انیمیشن سنگین)
   ============================================================ */
html[data-fx="1"] .rot, html[data-fx="0"] .rot { animation: none; }
html[data-fx="0"] .hero__fallback, html[data-fx="0"] .orbit, html[data-fx="0"] .fl, html[data-fx="0"] .orb,
html[data-fx="0"] .band::after, html[data-fx="0"] .cta__glow, html[data-fx="0"] .statement__orb,
html[data-fx="0"] .badge__ring, html[data-fx="0"] .dev, html[data-fx="0"] .sc__ghost, html[data-fx="0"] .scroll-hint span,
html[data-fx="0"] .hero__cta .btn--primary::before { animation: none; }
html[data-fx="0"] .cursor-glow, html[data-fx="0"] .cursor-ring { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .lb__box { grid-template-columns: 1fr; overflow: auto; }
  .lb__media { min-height: 0; aspect-ratio: 4 / 3; }
  .lb__info { padding: 26px 24px 28px; }
  .lb__nav { top: 22%; width: 42px; height: 42px; }
  .hero { grid-template-columns: 1fr; padding: 104px 6vw 72px; text-align: center; gap: 14px; }
  .hero__title { font-size: clamp(36px, 10.6vw, 64px); margin-bottom: 18px; }
  .hero__sub { margin-inline: auto; font-size: 17px; margin-bottom: 26px; }
  .hero__cta, .hero__points { justify-content: center; }
  .hero__visual { max-width: 236px; order: -1; margin-bottom: 26px; }
  .vl--k1 { top: 0; left: -22%; } .vl--k2 { display: none; } .vl--k3 { bottom: 2%; left: -16%; }
  .chip { font-size: 12px; padding: 6px 14px; }
  .vl--c1 { right: -14%; top: 4%; width: 31%; } .vl--c2 { right: -6%; bottom: 0; width: 28%; }
  .scroll-hint { display: none; }
  .nav__toggle { display: block; }
  .nav .btn--small { display: none; }
  .nav__links { position: absolute; top: 76px; inset-inline: 0; flex-direction: column; padding: 14px; border-radius: 28px; background: rgba(20,9,42,.97); border: 1px solid rgba(183,140,255,.25); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .4s var(--ease); }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { text-align: center; padding: 12px; }
  .nav__links .nav__dm { display: block; margin-top: 6px; background: var(--grad); color: #fff; font-weight: 800; }
  .section { padding: 84px 6vw; }
  .statement { padding: 100px 6vw 110px; }
  .section__head { margin-bottom: 44px; }
  .reel { padding-top: 80px; }
  .fab { right: 50%; transform: translateX(50%); bottom: calc(18px + env(safe-area-inset-bottom)); padding: 15px 34px; font-size: 16px; white-space: nowrap; }
  .fab:hover { transform: translateX(50%) translateY(-3px); }
  @keyframes fabIn { from { opacity: 0; transform: translate(50%, 30px) scale(.8); } to { opacity: 1; transform: translateX(50%); } }
  .to-top { bottom: calc(90px + env(safe-area-inset-bottom)); left: 16px; }
  .steps__cta { margin-top: 44px; }
  .cta { padding: 96px 6vw 110px; }
}
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .card { padding: 28px 24px; } }
@media (min-width: 701px) and (max-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } .step { padding-inline: 20px; } .step__n { margin-inline-start: 0; } .step:not(:last-child)::after { inset-inline-start: 74px; } }
@media (max-width: 700px) {
  .step:not(:last-child)::after { display: block; top: 100%; inset-inline-start: calc(50% - 1.5px); width: 3px; height: 24px; background: linear-gradient(#9650ff, #ff7ad9); transform: scaleY(0); transform-origin: top; transition-delay: calc(var(--d, 0s) + .5s); }
  .step:nth-child(2):not(:last-child)::after { background: linear-gradient(#6317d6, #9650ff); }
  .step.is-in:not(:last-child)::after { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .band span { opacity: 1; transform: none; }
  .section__head h2 .w > span { transform: none; }
  .card.reveal:not(.is-in) { transform: none; }
  .step:not(:last-child)::after { transform: none; }
  .sw { opacity: 1; transform: none; }
  .footer__big span { transform: none; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal, .work { opacity: 1; transform: none; }
  .section__head h2::after { transform: none; }
  .hero__title .word { transform: none; }
}

/* ============================================================
   ادیت و ریلز: ویترین صدادار (ستاره: ویدیوی ماشین با موزیک و افکت‌های هماهنگ با ضرب)
   فقط transform و opacity انیمیشن می‌شوند؛ هاله‌ی اکولایزر روی canvas است و فقط وقتی بخش دیده می‌شود رسم می‌شود.
   ============================================================ */
.ed { position: relative; overflow: hidden; isolation: isolate; background: #05030a; padding: 110px 0 130px; }
.ed__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ed__glow { position: absolute; border-radius: 50%; will-change: transform; }
.ed__glow--a { width: 900px; height: 900px; left: 50%; top: 14%; margin-left: -450px; background: radial-gradient(circle, rgba(150,80,255,.34), transparent 66%); animation: orbDrift 20s ease-in-out infinite alternate; }
.ed__glow--b { width: 720px; height: 720px; right: -200px; bottom: -140px; background: radial-gradient(circle, rgba(255,45,111,.22), transparent 66%); animation: orbDrift 24s -6s ease-in-out infinite alternate-reverse; }
.ed__flash { position: absolute; inset: 0; opacity: 0; will-change: opacity; background: radial-gradient(52% 44% at 50% 48%, rgba(255,70,140,.9), transparent 70%); }
.ed .section__head { padding-inline: 6vw; margin-bottom: 26px; }
.ed__lead { margin: 6px auto 0; max-width: 520px; color: rgba(255,255,255,.7); font-size: 17px; }

.edh { --phh: min(72vh, 640px); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 70px); width: min(1320px, 94vw); margin: 0 auto; padding: 40px 0 60px; }
.edh__ghost { position: absolute; left: 50%; top: 50%; z-index: 0; direction: ltr; white-space: nowrap; pointer-events: none; user-select: none; will-change: transform; transform: translate3d(-50%, -50%, 0);
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(180px, 30vw, 460px); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(150,80,255,.22); }
.edh__info { position: relative; z-index: 3; display: grid; gap: 16px; justify-items: start; }
.edh__info .work__tag { margin: 0; background: rgba(255,45,111,.18); color: #fff; border: 1px solid rgba(255,90,150,.6); }
.edh__info h3 { font-size: clamp(38px, 5.2vw, 78px); line-height: 1.12; }
.edh__info p { margin: 0; color: rgba(255,255,255,.78); font-size: 18px; max-width: 420px; }
.edh__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.edh__tags li { padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); }

.edh__phone { position: relative; z-index: 1; display: grid; place-items: center; padding: 8px; }
.edh__glow { position: absolute; left: 50%; top: 50%; width: calc(var(--phh) * 1.25); aspect-ratio: 1; margin: calc(var(--phh) * -.625) 0 0 calc(var(--phh) * -.625); border-radius: 50%; pointer-events: none; opacity: .3; will-change: transform, opacity;
  background: radial-gradient(circle, rgba(255,60,130,.55), rgba(150,80,255,.3) 45%, transparent 68%); }
.edh__viz { position: absolute; left: 50%; top: 50%; max-width: none; width: calc(var(--phh) * 1.95); height: calc(var(--phh) * 1.95); transform: translate(-50%, -50%); pointer-events: none; }
.edh__tilt { position: relative; will-change: transform, opacity; }
.ph { position: relative; border-radius: 48px; border: 10px solid #15101d; background: #000; overflow: hidden; cursor: pointer; box-shadow: 0 60px 120px -30px rgba(255,45,111,.55), 0 0 0 1px rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.06); }
.ph__screen { position: relative; height: var(--phh); aspect-ratio: 1072 / 1920; overflow: hidden; background: #000; }
.ph__notch { position: absolute; z-index: 6; top: 8px; left: 50%; width: 30%; height: 20px; margin-left: -15%; border-radius: 12px; background: #000; }
.edv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.ph__shine { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 28%); }
.ph__hint { position: absolute; z-index: 7; left: 50%; bottom: 10%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; white-space: nowrap; font-size: 14px; font-weight: 800; color: #fff;
  background: rgba(8,4,16,.74); border: 1px solid rgba(255,255,255,.3); animation: hintPulse 2.2s ease-in-out infinite; transition: opacity .4s; pointer-events: none; }
.ph__hint .w1, .ph__hint .w2 { display: none; }
.ed.is-sound .ph__hint { opacity: 0; animation: none; }
@keyframes hintPulse { 50% { transform: translateX(-50%) scale(1.07); } }
.edh__chip { position: absolute; z-index: 3; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; font-size: 24px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); animation: chipFloat 6s ease-in-out infinite; }
html[data-fx="2"] .edh__chip { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.edh__chip--1 { top: 12%; left: -3%; } .edh__chip--2 { top: 46%; right: -5%; animation-delay: -2s; } .edh__chip--3 { bottom: 9%; left: 1%; animation-delay: -4s; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(5deg); } }

/* دکمه‌ی صدا */
.snd { position: relative; display: inline-flex; align-items: center; gap: 12px; border: 0; cursor: pointer; font: inherit; font-weight: 800; color: #fff; }
.snd svg { flex: none; }
.snd:not(.is-on) .w1, .snd:not(.is-on) .w2 { display: none; }
.snd.is-on .mx { display: none; }
.snd.is-on .w1 { animation: sndWave 1s ease-in-out infinite; } .snd.is-on .w2 { animation: sndWave 1s .25s ease-in-out infinite; }
@keyframes sndWave { 50% { opacity: .25; } }
.snd--big { margin-top: 6px; padding: 14px 30px 14px 26px; border-radius: 999px; font-size: 18px; background: linear-gradient(135deg, #ff2d6f, #9650ff); box-shadow: 0 20px 50px -14px rgba(255,45,111,.8), inset 0 0 0 1px rgba(255,255,255,.25); transition: transform .35s var(--ease), box-shadow .35s, background .35s; }
.snd--big:hover { transform: translateY(-3px) scale(1.03); }
.snd--big:active { transform: scale(.96); }
.snd--big::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #ff6fa0; animation: sndPing 2s ease-out infinite; pointer-events: none; }
@keyframes sndPing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.4, 1.7); opacity: 0; } }
.snd--big.is-on { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,120,190,.65), 0 14px 40px -16px rgba(255,45,111,.6); }
.snd--big.is-on::after { animation: none; opacity: 0; }
.snd__tx { display: grid; text-align: start; line-height: 1.35; }
.snd__tx small { font-size: 12px; font-weight: 500; opacity: .82; }
.snd--chip { position: absolute; z-index: 8; top: 14px; left: 14px; padding: 7px 14px; border-radius: 999px; font-size: 13px; background: rgba(8,4,16,.66); border: 1px solid rgba(255,255,255,.28); transition: background .3s; }
.snd--chip svg { width: 18px; height: 18px; }
.snd--chip.is-on { background: linear-gradient(135deg, #ff2d6f, #9650ff); border-color: transparent; }

/* پخش‌کننده‌ی کنار گوشی: موج واقعی آهنگ + سه شاخص باس/میان/زیر */
.edh__side { position: relative; z-index: 3; justify-self: end; width: min(100%, 340px); }
.plr { display: grid; gap: 12px; padding: 20px 20px 18px; border-radius: 26px; direction: ltr; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14); }
html[data-fx="2"] .plr { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.plr__top { display: flex; align-items: center; gap: 10px; font: 700 11px "Space Grotesk", sans-serif; letter-spacing: .22em; color: rgba(255,255,255,.65); }
.plr__live { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.plr__live i { width: 3px; height: 100%; border-radius: 2px; background: #ff4d8d; transform-origin: bottom; animation: eqBar 1s ease-in-out infinite; }
.plr__live i:nth-child(2) { animation-delay: -.3s; } .plr__live i:nth-child(3) { animation-delay: -.6s; } .plr__live i:nth-child(4) { animation-delay: -.15s; }
@keyframes eqBar { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.plr__title { font-size: 18px; font-weight: 800; text-align: start; unicode-bidi: plaintext; }
.plr__wave { width: 100%; height: 64px; }
.plr__time { display: flex; justify-content: space-between; font: 600 12px "Space Grotesk", sans-serif; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.plr__meters { display: grid; gap: 7px; }
.plr__meters label { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; font: 700 10px "Space Grotesk", sans-serif; letter-spacing: .14em; color: rgba(255,255,255,.55); }
.plr__meters i { display: block; height: 5px; border-radius: 5px; background: rgba(255,255,255,.12); overflow: hidden; }
.plr__meters u { display: block; height: 100%; background: linear-gradient(90deg, #9650ff, #ff4d8d); transform-origin: left; transform: scaleX(0); will-change: transform; }

/* دو ادیت دیگر */
.edd { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 56px); width: min(1240px, 94vw); margin: 24px auto 0; }
.edc { display: grid; gap: 18px; flex: 1 1 0; min-width: 0; }
.edc--tall { max-width: 360px; }
.edc--wide { flex: 1.8 1 0; max-width: 760px; }
.edc__tilt { transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .25s ease-out; }
.edc__frame { position: relative; isolation: isolate; aspect-ratio: var(--ar, .5588); border-radius: 26px; overflow: hidden; cursor: pointer; background: #000; box-shadow: 0 40px 90px -34px rgba(150,80,255,.8), 0 0 0 1px rgba(255,255,255,.14); }
.edc__bar { position: absolute; z-index: 3; left: 0; right: 0; height: 51%; background: #000; pointer-events: none; transition: transform 1.3s .35s var(--ease-io); }
.edc__bar--t { top: 0; transform-origin: top; } .edc__bar--b { bottom: 0; transform-origin: bottom; }
.edc.is-in .edc__bar { transform: scaleY(0); }
.edc__info { display: grid; gap: 8px; justify-items: start; padding-inline: 6px; }
.edc__info .work__tag { margin: 0; }
.edc__info h3 { font-size: clamp(22px, 2.6vw, 34px); }
.edc__info p { margin: 0; max-width: 460px; color: rgba(255,255,255,.7); font-size: 15px; }

html[data-fx="0"] .ed__glow, html[data-fx="0"] .edh__chip, html[data-fx="0"] .plr__live i, html[data-fx="0"] .snd--big::after, html[data-fx="0"] .ph__hint { animation: none; }
html[data-fx="0"] .edh__viz, html[data-fx="0"] .ed__flash { display: none; }
html[data-fx="0"] .ph__hint { transform: translateX(-50%); }
@media (max-width: 900px) {
  .ed { padding: 84px 0 90px; }
  .edh { --phh: min(62vh, 500px); grid-template-columns: 1fr; justify-items: center; gap: 28px; padding: 20px 6vw 30px; }
  .edh__phone { order: -1; }
  .edh__info { justify-items: center; text-align: center; }
  .edh__info p { margin-inline: auto; }
  .edh__tags { justify-content: center; }
  .edh__side { justify-self: center; width: min(100%, 360px); }
  .edh__chip { display: none; }
  .edh__ghost { font-size: 52vw; }
  .edd { flex-direction: column; gap: 46px; }
  .edc--tall { width: min(100%, 330px); flex: none; }
  .edc--wide { width: 100%; flex: none; }
  .edc__info { justify-items: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .edc__bar { display: none; }
  .ph__hint { transform: translateX(-50%); }
}
