/* =====================================================================
   لایه — سیستم طراحی
   ایده بصری: «همه چیز چاپ‌شده است». سطوح مثل قطعات اکسترودشده ضخامت دارند،
   لبه‌ها خطوط لایه چاپ را نشان می‌دهند، و صفحه با اسکرول «چاپ» می‌شود.
   ===================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-var.woff2') format('woff2-variations'), url('../fonts/Vazirmatn-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #F2EEE7;
  --bg-2: #E9E3D8;
  --surface: #FBF9F5;
  --surface-2: #FFFFFF;
  --ink: #16181D;
  --ink-2: #3A3E47;
  --muted: #6C707A;
  --line: rgba(22, 24, 29, .09);
  --line-2: rgba(22, 24, 29, .16);
  --edge: #D8CFC1;          /* رنگ ضخامت قطعات */
  --edge-2: #C9BEAD;
  --tx-1: #CFC4B3;          /* ضخامت حروف اکسترودشده */
  --tx-2: #B9AC98;
  --accent: #FF5B1F;
  --accent-2: #FF8A4C;
  --accent-deep: #C53D0B;
  --accent-soft: rgba(255, 91, 31, .12);
  --blue: #2F55FF;
  --blue-deep: #1B37C4;
  --mint: #12A381;
  --butter: #F2C14E;
  --ink-section: #121419;
  --grid-strong: #9AA0AA;
  --grid-soft: #CDD0D6;
  --stage-1: #2A2E36;
  --stage-2: #111317;
  --shadow-1: 0 1px 2px rgba(22, 24, 29, .06), 0 10px 30px -14px rgba(22, 24, 29, .22);
  --shadow-2: 0 40px 80px -40px rgba(22, 24, 29, .45), 0 18px 36px -22px rgba(22, 24, 29, .28);
  --radius: 22px;
  --radius-sm: 14px;
  --font: 'Vazirmatn', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1013; --bg-2: #13161B; --surface: #171A20; --surface-2: #1D2128;
    --ink: #EEEAE3; --ink-2: #C9C5BE; --muted: #959CA8;
    --line: rgba(238, 234, 227, .08); --line-2: rgba(238, 234, 227, .15);
    --edge: #07080A; --edge-2: #050607; --tx-1: #3A3F49; --tx-2: #2A2E36;
    --accent: #FF7040; --accent-2: #FF9663; --accent-deep: #A9370B; --accent-soft: rgba(255, 112, 64, .14);
    --blue: #7088FF; --blue-deep: #3A52D6; --mint: #2DD0A5;
    --ink-section: #08090B;
    --grid-strong: #4A505B; --grid-soft: #2A2F37;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .7);
    --shadow-2: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 18px 36px -22px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1013; --bg-2: #13161B; --surface: #171A20; --surface-2: #1D2128;
  --ink: #EEEAE3; --ink-2: #C9C5BE; --muted: #959CA8;
  --line: rgba(238, 234, 227, .08); --line-2: rgba(238, 234, 227, .15);
  --edge: #07080A; --edge-2: #050607; --tx-1: #3A3F49; --tx-2: #2A2E36;
  --accent: #FF7040; --accent-2: #FF9663; --accent-deep: #A9370B; --accent-soft: rgba(255, 112, 64, .14);
  --blue: #7088FF; --blue-deep: #3A52D6; --mint: #2DD0A5;
  --ink-section: #08090B;
  --grid-strong: #4A505B; --grid-soft: #2A2F37;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .7);
  --shadow-2: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 18px 36px -22px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(1200px 700px at 80% -10%, var(--accent-soft), transparent 60%),
              radial-gradient(900px 600px at 0% 110%, rgba(47, 85, 255, .08), transparent 60%),
              linear-gradient(transparent, var(--bg) 92%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; right: 16px; z-index: 999; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 12px; }
.skip-link:focus { top: 12px; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .82rem; line-height: 1.7; }
#app { outline: none; min-height: 70vh; }
.noscript { padding: 40px; text-align: center; }

/* ---------- نوار پیشرفت فیلامنت ---------- */
.filament { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 120; pointer-events: none; --p: 0; }
.filament__line { position: absolute; inset: 0; background: linear-gradient(to left, var(--accent), var(--accent-2)); transform-origin: right; transform: scaleX(var(--p)); box-shadow: 0 0 12px var(--accent); }
.filament__nozzle { position: absolute; top: -3px; right: calc(var(--p) * 100%); width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--accent), 0 0 18px 4px var(--accent); transform: translateX(50%); opacity: calc(var(--p) * 30); }

.demo-ribbon {
  font-size: .78rem; text-align: center; padding: 7px 16px; color: var(--ink-2);
  background: repeating-linear-gradient(-45deg, var(--accent-soft) 0 12px, transparent 12px 24px), var(--surface);
  border-bottom: 1px solid var(--line);
}

/* ---------- سربرگ ---------- */
.site-header { position: sticky; top: 10px; z-index: 100; padding-inline: 16px; margin-top: 10px; }
.site-header__plate {
  width: min(1240px, 100%); margin-inline: auto; height: 64px;
  display: flex; align-items: center; gap: 20px; padding: 0 12px 0 10px; padding-inline-start: 18px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: 0 5px 0 -1px var(--edge), var(--shadow-1);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled .site-header__plate { box-shadow: 0 3px 0 -1px var(--edge), var(--shadow-2); }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { display: grid; gap: 3px; width: 34px; }
.brand__mark i { display: block; height: 6px; border-radius: 3px; background: var(--accent); transition: transform .5s var(--ease); }
.brand__mark i:nth-child(1) { width: 60%; margin-inline-start: 20%; background: var(--accent-2); }
.brand__mark i:nth-child(2) { width: 80%; margin-inline-start: 10%; }
.brand__mark i:nth-child(3) { width: 100%; background: var(--accent-deep); }
.brand__mark i:nth-child(4) { width: 100%; height: 3px; background: var(--ink); opacity: .85; }
.brand:hover .brand__mark i:nth-child(1) { transform: translateX(-6px); }
.brand:hover .brand__mark i:nth-child(2) { transform: translateX(4px); }
.brand:hover .brand__mark i:nth-child(3) { transform: translateX(-2px); }
.brand__text { display: grid; line-height: 1.05; }
.brand__text strong { font-size: 1.45rem; font-weight: 900; letter-spacing: -.02em; }
.brand__text small { font-size: .6rem; letter-spacing: .32em; color: var(--muted); font-weight: 600; }

.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a { position: relative; padding: 8px 14px; border-radius: 12px; font-weight: 600; font-size: .93rem; color: var(--ink-2); transition: background .25s, color .25s; }
.main-nav a:hover { background: var(--accent-soft); color: var(--ink); }
.main-nav a.is-active { color: var(--accent); }
.main-nav a.is-active::after { content: ""; position: absolute; inset-inline: 14px; bottom: 3px; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 9px); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink);
  box-shadow: 0 3px 0 -1px var(--edge); transition: transform .15s var(--ease), box-shadow .15s, background .2s;
}
.icon-btn:hover { background: var(--surface); transform: translateY(-1px); box-shadow: 0 4px 0 -1px var(--edge); }
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 -1px var(--edge); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn--sm { width: 34px; height: 34px; border-radius: 10px; font-size: .8rem; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }
.cart-count { position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 0 var(--accent-deep); }
.cart-btn.is-bump { animation: bump .6s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.22) rotate(-8deg); } 60% { transform: scale(.94); } 100% { transform: scale(1); } }
.menu-btn { display: none; }

/* ---------- دکمه‌ها (اکسترودشده) ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 15px; border: 1px solid transparent; font-weight: 700; font-size: .98rem; white-space: nowrap;
  transform: translate(var(--mx), var(--my)); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn--primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 6px 0 var(--accent-deep), 0 14px 28px -10px var(--accent); }
.btn--primary:hover { box-shadow: 0 8px 0 var(--accent-deep), 0 20px 36px -12px var(--accent); transform: translate(var(--mx), calc(var(--my) - 2px)); }
.btn--primary:active { transform: translate(var(--mx), calc(var(--my) + 4px)); box-shadow: 0 2px 0 var(--accent-deep), 0 6px 14px -8px var(--accent); }
.btn--ghost { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); box-shadow: 0 5px 0 -1px var(--edge); }
.btn--ghost:hover { transform: translate(var(--mx), calc(var(--my) - 2px)); box-shadow: 0 7px 0 -1px var(--edge); }
.btn--ghost:active { transform: translate(var(--mx), calc(var(--my) + 3px)); box-shadow: 0 2px 0 -1px var(--edge); }
.btn--light { background: #fff; color: var(--blue-deep); box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.btn--light:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; border-radius: 17px; }
.btn--sm { padding: 8px 14px; font-size: .86rem; border-radius: 11px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; border-top-color: transparent; animation: spin .7s linear infinite; }
.link-arrow { font-weight: 700; color: var(--accent); white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- تایپوگرافی اکسترودشده ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.eyebrow--live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }

.h-extrude {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 900; margin-top: 14px;
  text-shadow: -1px 1px 0 var(--tx-1), -2px 2px 0 var(--tx-1), -3px 3px 0 var(--tx-2), -6px 10px 18px rgba(0, 0, 0, .08);
}
.extrude {
  position: relative; display: inline-block; color: var(--ink);
  text-shadow: -1px 1px 0 var(--tx-1), -2px 2px 0 var(--tx-1), -3px 3px 0 var(--tx-1), -4px 4px 0 var(--tx-2), -5px 5px 0 var(--tx-2), -6px 6px 0 var(--tx-2), -12px 18px 26px rgba(0, 0, 0, .14);
}
.extrude::after {
  content: attr(data-text); position: absolute; inset: 0; color: transparent; pointer-events: none; text-shadow: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .0) 0 3px, rgba(255, 255, 255, .22) 3px 4px);
  -webkit-background-clip: text; background-clip: text;
}
.extrude--accent { color: var(--accent); text-shadow: -1px 1px 0 var(--accent-deep), -2px 2px 0 var(--accent-deep), -3px 3px 0 var(--accent-deep), -4px 4px 0 #8e2c05, -5px 5px 0 #8e2c05, -6px 6px 0 #7a2604, -14px 20px 30px color-mix(in srgb, var(--accent) 35%, transparent); }

/* ---------- قهرمان ---------- */
.hero { position: relative; padding: 56px 0 90px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(2.8rem, 6.6vw, 5.6rem); font-weight: 900; line-height: 1.12; margin: 22px 0 22px; letter-spacing: -.03em; }
.hero__title .line { display: block; overflow: hidden; padding: 0 0 .12em .2em; }
.hero__title .line > span { animation: rise 1s var(--ease-out) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .14s; }
@keyframes rise { from { transform: translateY(105%) rotateX(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.hero__lead { font-size: 1.12rem; color: var(--ink-2); max-width: 54ch; }
.hero__lead strong { color: var(--ink); background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero__facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__facts li { display: grid; padding: 12px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 0 -1px var(--edge); min-width: 120px; }
.hero__facts b { font-size: 1.5rem; font-weight: 900; color: var(--accent); line-height: 1.3; }
.hero__facts span { font-size: .8rem; color: var(--muted); }

.hero__stage {
  --rx: 0deg; --ry: 0deg;
  position: relative; aspect-ratio: 1 / 1.02; border-radius: 34px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 10%, var(--stage-1), var(--stage-2) 70%);
  box-shadow: 0 14px 0 -4px #08090b, 0 0 0 1px rgba(255, 255, 255, .06) inset, var(--shadow-2);
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease-out);
  animation: stageIn 1.1s .1s var(--ease-out) both;
}
@keyframes stageIn { from { opacity: 0; transform: perspective(1400px) rotateX(18deg) translateY(40px) scale(.96); } }
.hero__stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 30%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 2px, transparent 2px 4px); }
.hero__canvas { position: absolute; inset: 0; }
.hero__canvas canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.hero__canvas canvas.is-grabbing { cursor: grabbing; }
.hero__stage.no-webgl::after { content: "مرورگر شما WebGL را پشتیبانی نمی‌کند."; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.hud {
  position: absolute; z-index: 3; inset-inline: 18px; bottom: 18px; padding: 14px 16px; border-radius: 20px; color: #f3efe8;
  background: rgba(18, 20, 24, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .1); font-size: .82rem;
}
.hud__row { display: flex; align-items: center; gap: 8px; }
.hud__dot { width: 8px; height: 8px; border-radius: 50%; background: #3ef0a8; box-shadow: 0 0 10px #3ef0a8; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hud__name { margin-inline-start: auto; font-weight: 700; color: #ffb27e; }
.hud__bar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .12); margin: 10px 0; overflow: hidden; }
.hud__bar i { display: block; height: 100%; background: linear-gradient(to left, #ff5b1f, #ffb070); transform-origin: right; transform: scaleX(0); box-shadow: 0 0 12px #ff7a35; }
.hud__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hud__grid small { display: block; color: rgba(243, 239, 232, .55); font-size: .7rem; }
.hud__grid b { font-family: var(--mono); font-size: .92rem; font-weight: 600; direction: ltr; unicode-bidi: plaintext; }
.hud__actions { display: flex; gap: 8px; margin-top: 12px; }
.hud__btn { flex: 1; padding: 7px 10px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: inherit; font-size: .8rem; font-weight: 600; transition: background .2s; }
.hud__btn:hover, .hud__btn[aria-pressed="true"] { background: rgba(255, 112, 64, .3); border-color: rgba(255, 140, 90, .6); }
.hero__hint { position: absolute; z-index: 3; top: 18px; inset-inline-end: 18px; font-size: .74rem; color: rgba(243, 239, 232, .6); padding: 5px 11px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .2); }
.hero__floor { position: absolute; inset-inline: -10%; bottom: -40px; height: 220px; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 60px 60px;
  transform: perspective(500px) rotateX(62deg); transform-origin: bottom; mask-image: linear-gradient(transparent, #000 70%); -webkit-mask-image: linear-gradient(transparent, #000 70%); }

/* ---------- نوار متحرک ---------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--bg); transform: rotate(-1.6deg); margin: -10px -20px 0; padding: 14px 0; box-shadow: 0 8px 0 var(--accent); position: relative; z-index: 2; }
.marquee__track { display: flex; gap: 26px; width: max-content; animation: marquee 38s linear infinite; font-weight: 800; font-size: 1.05rem; }
.marquee__track i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(33.333%); } }

/* ---------- بخش‌ها ---------- */
.section { padding: 100px 0; position: relative; }
.section--flush { padding-top: 24px; }
.section--tint { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-2) 70%, transparent) 20%, color-mix(in srgb, var(--bg-2) 70%, transparent) 80%, transparent); }
.section-head { display: grid; gap: 4px; margin-bottom: 44px; max-width: 760px; position: relative; }
.section-head > .eyebrow { justify-self: start; }
.section-head p { color: var(--ink-2); font-size: 1.06rem; margin-top: 8px; }
.section-head .link-arrow { position: absolute; inset-inline-end: -100%; bottom: 8px; }
.section--tint .section-head, .section .section-head:has(.link-arrow) { max-width: none; }
.section-head:has(.link-arrow) { grid-template-columns: 1fr auto; align-items: end; }
.section-head:has(.link-arrow) .eyebrow { justify-self: start; grid-column: 1; }
.section-head:has(.link-arrow) h2 { grid-column: 1; }
.section-head:has(.link-arrow) .link-arrow { position: static; grid-column: 2; grid-row: 1 / span 2; }

/* ظاهرشدن لایه‌ای */
[data-reveal] { opacity: 0; translate: 0 34px; scale: .97; transition: opacity .7s var(--ease-out) var(--d, 0ms), translate .9s var(--ease-out) var(--d, 0ms), scale .9s var(--ease-out) var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; translate: 0 0; scale: 1; }

/* ---------- ستون‌های ارزش ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pillar {
  --rx: 0deg; --ry: 0deg;
  position: relative; padding: 28px 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 9px 0 -2px var(--edge), var(--shadow-1); transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.pillar.is-tilting { transition: transform .08s linear; }
.pillar:hover { box-shadow: 0 12px 0 -2px var(--edge), var(--shadow-2); }
.pillar h3 { font-size: 1.15rem; font-weight: 800; margin: 18px 0 8px; transform: translateZ(20px); }
.pillar p { color: var(--ink-2); font-size: .94rem; transform: translateZ(10px); }
.pillar__num { position: absolute; top: 20px; inset-inline-end: 22px; font-family: var(--mono); font-weight: 700; color: var(--muted); font-size: .85rem; }
.pillar__obj { height: 74px; display: grid; place-items: center start; perspective: 600px; transform: translateZ(40px); padding-inline-start: 10px; }
.cube { --s: 46px; --c: var(--accent); position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; animation: cube 12s linear infinite; }
.cube i { position: absolute; inset: 0; border-radius: 6px; background: var(--c); border: 1px solid rgba(0, 0, 0, .12);
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 4px); }
.cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); filter: brightness(.7); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.82); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.9); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(1.15); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.6); }
@keyframes cube { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }
.pillar__obj--b .cube { --c: var(--blue); animation-duration: 16s; animation-direction: reverse; }
.pillar__obj--c .cube { --c: var(--mint); --s: 40px; animation-duration: 10s; }
.pillar__obj--d .cube { --c: var(--butter); animation-duration: 20s; }
.pillar:hover .cube { animation-duration: 3s; }

/* ---------- کارت محصول ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.pcard {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
  position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 10px 0 -2px var(--edge), var(--shadow-1);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .55s var(--ease-out), box-shadow .5s var(--ease);
}
.pcard.is-tilting { transition: transform .08s linear, box-shadow .5s; box-shadow: 0 14px 0 -2px var(--edge), var(--shadow-2); }
.pcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(500px circle at var(--gx) var(--gy), rgba(255, 255, 255, .3), transparent 40%); mix-blend-mode: soft-light; }
.pcard.is-tilting::after { opacity: 1; }
.pcard__link { display: block; transform-style: preserve-3d; }
.pcard__body { padding: 16px 20px 20px; transform: translateZ(18px); }
.pcard__cat { font-size: .76rem; font-weight: 700; color: var(--accent); }
.pcard h3 { font-size: 1.08rem; font-weight: 800; margin-top: 2px; }
.pcard__en { font-size: .78rem; color: var(--muted); text-align: right; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.pcard__go { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 900; transition: transform .3s var(--ease), background .3s; }
.pcard:hover .pcard__go { transform: translateX(-4px); background: var(--accent); color: #fff; }
.pcard__quick {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 12px; border: 1px solid var(--line-2); font-size: .78rem; font-weight: 700;
  background: color-mix(in srgb, var(--surface-2) 85%, transparent); backdrop-filter: blur(8px); box-shadow: 0 3px 0 -1px var(--edge);
  transform: translateZ(50px) translateY(-6px); opacity: 0; transition: opacity .3s, transform .3s var(--ease);
}
.pcard__quick svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.pcard:hover .pcard__quick, .pcard:focus-within .pcard__quick { opacity: 1; transform: translateZ(50px); }
@media (hover: none) { .pcard__quick { opacity: 1; transform: none; } }

.price { font-weight: 800; font-size: 1rem; }
.price s { color: var(--muted); font-weight: 500; font-size: .82rem; margin-inline-end: 6px; }
.price--free { color: var(--mint); }

/* تصویرک با بستر چاپ */
.thumb {
  --tint: var(--accent);
  position: relative; aspect-ratio: 1; border-radius: calc(var(--radius) - 6px); margin: 8px; overflow: hidden; transform: translateZ(34px);
  background: radial-gradient(90% 70% at 50% 60%, color-mix(in srgb, var(--tint) 20%, var(--surface-2)), color-mix(in srgb, var(--tint) 4%, var(--surface)) 75%);
  border: 1px solid var(--line);
}
.thumb__bed { position: absolute; left: 12%; right: 12%; bottom: 8%; height: 34%; border-radius: 50%;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 14px 14px;
  mask-image: radial-gradient(closest-side, #000 60%, transparent); -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); opacity: .7; }
.thumb img { position: relative; width: 100%; height: 100%; object-fit: contain; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-out), transform .6s var(--ease-out); }
.thumb.is-ready img { clip-path: inset(0 0 0 0); }
.pcard:hover .thumb img { transform: scale(1.06) translateY(-2%); }
.thumb__scan { position: absolute; inset-inline: 0; height: 2px; bottom: 0; background: var(--tint); box-shadow: 0 0 14px 2px var(--tint); animation: scan 1.6s var(--ease) infinite; opacity: .8; }
.thumb.is-ready .thumb__scan { animation: scanOut 1.1s var(--ease-out) forwards; }
@keyframes scan { 0% { bottom: 6%; } 100% { bottom: 92%; opacity: 0; } }
@keyframes scanOut { 0% { bottom: 0; opacity: 1; } 100% { bottom: 100%; opacity: 0; } }
.thumb__chips { position: absolute; bottom: 12px; inset-inline-end: 12px; display: flex; gap: 6px; }
.thumb--sm { width: 72px; height: 72px; margin: 0; flex-shrink: 0; border-radius: 14px; transform: none; }
.thumb--xs { width: 44px; height: 44px; margin: 0; flex-shrink: 0; border-radius: 10px; transform: none; display: block; }
.thumb--wide { aspect-ratio: 16 / 10; }
.chip { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); }
.chip--free { background: var(--mint); color: #fff; border-color: transparent; }
.chip--param { background: var(--ink); color: var(--bg); border-color: transparent; }
.chip--bundle { background: var(--blue); color: #fff; border-color: transparent; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge--ok { background: color-mix(in srgb, var(--mint) 16%, transparent); color: var(--mint); }
.badge--wait { background: color-mix(in srgb, var(--butter) 22%, transparent); color: color-mix(in srgb, var(--butter) 50%, var(--ink)); }
.badge--wait::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--butter); }

/* ---------- معرفی کارگاه ---------- */
.studio-teaser { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.studio-teaser__copy h2 { margin-bottom: 14px; }
.studio-teaser__copy p { color: var(--ink-2); font-size: 1.04rem; }
.studio-teaser__copy .btn { margin-top: 26px; }
.viewer { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 10px 0 -2px var(--edge), var(--shadow-2); }
.viewer::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--blue) 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--blue) 10%, transparent) 1px, transparent 1px);
  background-size: 24px 24px; mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent); }
.viewer canvas { position: relative; width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: none; }
.viewer canvas:active { cursor: grabbing; }
.viewer--teaser { aspect-ratio: 4 / 3.2; }
.viewer.no-webgl::after { content: "پیش‌نمایش سه‌بعدی در این مرورگر در دسترس نیست."; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.teaser-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 0 -2px var(--edge); }
.teaser-controls label { display: grid; gap: 6px; font-size: .84rem; font-weight: 700; color: var(--ink-2); }
.teaser-controls output { font-family: var(--mono); color: var(--accent); float: left; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 32px; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 3px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; font-size: .76rem; font-weight: 900; background: color-mix(in srgb, var(--mint) 18%, transparent); color: var(--mint); }
.ticks li.no::before { content: "✕"; background: color-mix(in srgb, #e5484d 16%, transparent); color: #e5484d; }
.ticks li.maybe::before { content: "!"; background: color-mix(in srgb, var(--butter) 26%, transparent); color: color-mix(in srgb, var(--butter) 50%, var(--ink)); }
.ticks--sm { font-size: .92rem; gap: 8px; margin-top: 12px; }

/* ابعاد روی نمایشگر */
.dims-layer { position: absolute; inset: 0; pointer-events: none; }
.dims-layer span { position: absolute; top: 0; left: 0; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: var(--accent); color: #fff; white-space: nowrap; box-shadow: 0 3px 0 var(--accent-deep); direction: rtl; }

/* ---------- فرایند و لایه‌های منفجرشونده ---------- */
.section--ink { background: var(--ink-section); color: #EEEAE3; overflow: hidden; }
.section--ink .section-head p, .section--ink p { color: rgba(238, 234, 227, .72); }
.section--ink .h-extrude { text-shadow: -1px 1px 0 #000, -2px 2px 0 #000, -3px 3px 0 #000; }
.section--ink::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; }
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; min-height: 640px; position: relative; }
.process__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.process__steps li { display: flex; gap: 16px; padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .02); transition: background .4s, border-color .4s, transform .4s var(--ease); }
.process__steps li > span { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; background: rgba(255, 255, 255, .06); transition: background .4s; }
.process__steps h4 { font-size: 1.05rem; font-weight: 800; }
.process__steps p { font-size: .92rem; }
.process__steps li.is-active { background: rgba(255, 112, 64, .1); border-color: rgba(255, 112, 64, .45); transform: translateX(-8px); }
.process__steps li.is-active > span { background: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--accent-deep); }
.exploded { --explode: 0; height: 560px; perspective: 1400px; display: grid; place-items: center; }
.exploded__stack { position: relative; width: 260px; height: 260px; margin-top: 150px; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-38deg) translateZ(-60px); }
.plate {
  position: absolute; inset: 0; border-radius: 26px; transform-style: preserve-3d;
  transform: translateZ(calc(var(--i) * (16px + var(--explode) * 62px)));
  transition: transform .2s linear, box-shadow .4s, background .4s;
  display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 10px), var(--pc);
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .06);
}
.plate::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--pc); filter: brightness(.45); transform: translateZ(-10px); }
.plate span { font-size: 1.7rem; font-weight: 900; color: #fff; transform: rotate(0deg); text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.plate--0 { --pc: #2b2f38; }
.plate--1 { --pc: #2F55FF; inset: 22px; }
.plate--2 { --pc: #12A381; inset: 40px; border-radius: 50%; }
.plate--3 { --pc: #FF5B1F; inset: 62px; border-radius: 18px; }
.plate.is-active { box-shadow: inset 0 0 0 3px #fff, 0 0 60px 6px color-mix(in srgb, var(--pc) 70%, transparent); }

/* ---------- بسته‌ها ---------- */
.bundles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.bundle-card {
  --rx: 0deg; --ry: 0deg; display: grid; grid-template-columns: 1fr 1fr; align-items: center; border-radius: 28px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 10px 0 -2px var(--edge), var(--shadow-1);
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .5s var(--ease-out);
}
.bundle-card.is-tilting { transition: transform .08s linear; }
.bundle-card .thumb { aspect-ratio: 1; margin: 12px; }
.bundle-card__body { padding: 20px 8px 20px 24px; transform: translateZ(20px); }
.bundle-card h3 { font-size: 1.35rem; font-weight: 900; margin: 4px 0 8px; }
.bundle-card p { color: var(--ink-2); font-size: .92rem; }
.bundle-card__foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.save { font-size: .76rem; font-weight: 800; padding: 4px 10px; border-radius: 8px; background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-deep); }

/* ---------- نقشه آبی ---------- */
.blueprint-cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
  padding: 56px 56px; border-radius: 34px; color: #fff;
  background: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(135deg, #2F55FF, #1730B0);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px, auto;
  box-shadow: 0 12px 0 -2px #0f2185, var(--shadow-2);
}
.blueprint-cta .eyebrow { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .25); }
.blueprint-cta h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 900; margin: 14px 0 10px; }
.blueprint-cta p { color: rgba(255, 255, 255, .82); margin-bottom: 26px; }
.blueprint-cta__drawing { width: 100%; color: rgba(255, 255, 255, .9); stroke-dasharray: 900; stroke-dashoffset: 900; }
.is-in .blueprint-cta__drawing { animation: draw 2.6s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- فرم‌ها ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input, .inline-form select, .field input, .field select, .f input, .f select, .f textarea {
  flex: 1; min-width: 0; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, .03); transition: border-color .2s, box-shadow .2s;
}
.inline-form input { min-width: 220px; flex: 2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-note { margin-top: 12px; font-size: .9rem; min-height: 1.5em; }
.form-note.is-ok { color: var(--mint); }
.form-note.is-error { color: #e5484d; }
.faq { border-bottom: 1px dashed var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 900; transition: transform .3s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 16px; color: var(--ink-2); font-size: .95rem; animation: fadeDown .4s var(--ease-out); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }
.faq-mini { padding: 10px 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 0 -2px var(--edge); }
.faq-mini .link-arrow { display: inline-block; margin-top: 16px; }

/* ---------- سربرگ صفحات ---------- */
.page-hero { padding: 64px 0 36px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 20ch; }
.page-hero p { margin-top: 14px; color: var(--ink-2); font-size: 1.08rem; max-width: 62ch; }
.page-hero--blueprint .container, .page-hero--about .container { position: relative; }

/* ---------- فروشگاه ---------- */
.shop-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 0 -2px var(--edge); position: sticky; top: 92px; z-index: 20; }
.field { position: relative; display: flex; align-items: center; }
.field--search { flex: 1; min-width: 220px; }
.field--search svg { position: absolute; inset-inline-start: 14px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.field--search input { padding-inline-start: 42px; width: 100%; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: .88rem; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; }
.seg button[aria-checked="true"], .seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--accent); box-shadow: 0 3px 0 -1px var(--edge), var(--shadow-1); }
.seg--sm button { padding: 6px 12px; font-size: .84rem; }
.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 8px; }
.cat-chips button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: .9rem; box-shadow: 0 4px 0 -1px var(--edge); transition: transform .15s, box-shadow .15s, background .2s, color .2s; }
.cat-chips button i { font-style: normal; color: var(--accent); }
.cat-chips button small { font-size: .74rem; color: var(--muted); padding: 0 7px; border-radius: 6px; background: var(--bg-2); }
.cat-chips button:hover { transform: translateY(-2px); }
.cat-chips button[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: 0 4px 0 -1px var(--accent); transform: translateY(1px); }
.cat-chips button[aria-selected="true"] small { background: rgba(255, 255, 255, .15); color: inherit; }
.cat-blurb { color: var(--muted); margin-bottom: 22px; min-height: 1.8em; }

.empty { grid-column: 1 / -1; text-align: center; padding: 70px 20px; display: grid; justify-items: center; gap: 10px; }
.empty h3 { font-size: 1.3rem; font-weight: 800; }
.empty p { color: var(--muted); max-width: 46ch; margin-bottom: 14px; }
.empty__cube { display: grid; gap: 4px; width: 90px; margin-bottom: 14px; }
.empty__cube i { height: 14px; border-radius: 5px; background: var(--edge); animation: stack 2.4s var(--ease) infinite; }
.empty__cube i:nth-child(1) { width: 60%; justify-self: center; animation-delay: .4s; }
.empty__cube i:nth-child(2) { width: 80%; justify-self: center; animation-delay: .2s; background: var(--accent-2); }
.empty__cube i:nth-child(3) { background: var(--accent); }
@keyframes stack { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-10px); } }

/* ---------- صفحه محصول ---------- */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); padding: 20px 0 22px; }
.crumbs a:hover { color: var(--accent); }
.crumbs b { color: var(--ink); font-weight: 700; }
.product__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: start; }
.viewer--product { aspect-ratio: 1 / .92; }
.viewer__loading { position: absolute; inset: 0; display: grid; place-content: center; gap: 5px; }
.viewer__loading i { width: 70px; height: 10px; border-radius: 5px; background: var(--accent); animation: stack 1.2s var(--ease) infinite; }
.viewer__loading i:nth-child(2) { animation-delay: .15s; opacity: .7; }
.viewer__loading i:nth-child(3) { animation-delay: .3s; opacity: .45; }
.viewer-tools, .studio__bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tool { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: .84rem; box-shadow: 0 4px 0 -1px var(--edge); transition: transform .12s, box-shadow .12s, background .2s, color .2s; }
.tool:active { transform: translateY(3px); box-shadow: 0 1px 0 -1px var(--edge); }
.tool.is-on { background: var(--ink); color: var(--bg); }
.tool--range { flex: 1; min-width: 210px; gap: 12px; }
.tool--range input { flex: 1; }
.viewer-colors { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: .86rem; color: var(--muted); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 10px; border: 2px solid var(--surface-2); background: var(--c); box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 60%, #000), 0 0 0 1px var(--line-2); transition: transform .2s var(--ease); background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .1) 0 1px, transparent 1px 4px); }
.swatch:hover { transform: translateY(-3px); }
.swatch.is-active { transform: translateY(-3px) scale(1.08); box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 60%, #000), 0 0 0 3px var(--accent); }

.product__info { position: sticky; top: 100px; display: grid; gap: 16px; }
.product__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; text-shadow: -1px 1px 0 var(--tx-1), -2px 2px 0 var(--tx-1), -3px 3px 0 var(--tx-2); }
.product__en { color: var(--muted); margin-top: -12px; text-align: right; }
.problem { display: flex; gap: 14px; padding: 14px 18px; border-radius: 16px; background: var(--accent-soft); border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent); }
.problem span { flex-shrink: 0; font-weight: 900; color: var(--accent); }
.product__desc { color: var(--ink-2); }
.license { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.license legend, .pay-methods legend { font-weight: 800; margin-bottom: 8px; }
.license__opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line-2); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; box-shadow: 0 4px 0 -1px var(--edge); }
.license__opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 4px 0 -1px var(--accent), 0 0 0 4px var(--accent-soft); }
.license__opt input { accent-color: var(--accent); width: 18px; height: 18px; }
.license__opt span { display: grid; flex: 1; }
.license__opt small { color: var(--muted); font-size: .82rem; }
.license__opt em { font-style: normal; font-weight: 800; }
.buy-box { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 0 -2px var(--edge); }
.buy-box__price { font-size: 1.6rem; font-weight: 900; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buy-box__price small { font-size: .82rem; color: var(--muted); font-weight: 500; }
.buy-box__price .price { font-size: 1.6rem; }
.assure { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.assure li::before { content: "◆"; color: var(--accent); margin-inline-end: 8px; font-size: .7rem; }

.product__details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; }
.detail-card { padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 0 -2px var(--edge), var(--shadow-1); }
.detail-card h2 { font-size: 1.18rem; font-weight: 900; margin-bottom: 16px; }
.detail-card--wide { grid-column: span 1; }
.detail-card--accent { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 60%); }
.detail-card p + p { margin-top: 10px; }
.spec { margin: 0; display: grid; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: .92rem; }
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 700; text-align: left; }
.stats { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.stat { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 13px; background: var(--bg-2); }
.stat span { font-size: .84rem; color: var(--muted); }
.stat em { font-style: normal; font-size: .66rem; padding: 1px 6px; border-radius: 5px; background: color-mix(in srgb, var(--butter) 30%, transparent); color: color-mix(in srgb, var(--butter) 45%, var(--ink)); margin-inline-start: 4px; }
.stat b { font-weight: 800; font-size: .95rem; }
.bundle-parts { display: grid; gap: 10px; margin-bottom: 14px; }
.bundle-part { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; transition: background .2s; }
.bundle-part:hover { background: var(--bg-2); }
.bundle-part div { display: grid; }
.bundle-part small { color: var(--muted); }
.related { margin-top: 90px; }

/* ---------- کارگاه پارامتریک ---------- */
body.is-studio .site-footer { display: none; }
.studio { display: grid; grid-template-columns: 250px 1fr 350px; gap: 18px; padding: 22px 16px 26px; width: min(1600px, 100%); margin-inline: auto; min-height: calc(100vh - 120px); }
.studio__templates, .studio__panel { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 0 -2px var(--edge); padding: 18px; align-self: start; position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow: auto; }
.studio__templates h2, .ctrls h2 { font-size: 1rem; font-weight: 900; margin-bottom: 12px; }
.tpl-list { display: grid; gap: 6px; }
.tpl { display: flex; gap: 10px; align-items: center; padding: 7px; border-radius: 13px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.tpl span:last-child { display: grid; line-height: 1.5; }
.tpl b { font-size: .86rem; }
.tpl small { font-size: .74rem; color: var(--muted); }
.tpl:hover { background: var(--bg-2); }
.tpl.is-active { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.studio__stage { display: flex; flex-direction: column; min-width: 0; }
.studio__head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.studio__head h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 900; margin-top: 8px; }
.studio__head-actions { display: flex; gap: 8px; }
.viewer--studio { flex: 1; min-height: 480px; background: radial-gradient(90% 70% at 50% 40%, var(--surface-2), var(--surface)); }
.studio__blueprint { position: absolute; inset: 16px; border: 1px dashed color-mix(in srgb, var(--blue) 30%, transparent); border-radius: 16px; pointer-events: none; }
.ctrls { display: grid; gap: 16px; }
.ctrl { display: grid; gap: 8px; font-size: .88rem; font-weight: 700; }
.ctrl > span { display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); }
.ctrl output { font-family: var(--mono); color: var(--accent); font-size: .9rem; }
.ctrl output small { font-family: var(--font); color: var(--muted); font-size: .72rem; }
.ctrl--toggle { grid-template-columns: 1fr auto; align-items: center; cursor: pointer; }
.ctrl--toggle input { position: absolute; opacity: 0; }
.ctrl--toggle i { width: 48px; height: 28px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); position: relative; transition: background .25s; }
.ctrl--toggle i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); box-shadow: 0 2px 0 var(--edge-2); transition: transform .3s var(--ease); }
.ctrl--toggle input:checked + i { background: var(--accent); }
.ctrl--toggle input:checked + i::after { transform: translateX(-20px); }
.ctrl--toggle input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }
.stats--panel { margin: 20px 0 16px; }
.studio__buy { display: grid; gap: 12px; }

/* اسلایدر */
input[type="range"] { --p: 50%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 6px; background: linear-gradient(to left, var(--accent) var(--p), var(--bg-2) var(--p)); border: 1px solid var(--line); padding: 0; box-shadow: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 8px; background: var(--surface-2); border: 2px solid var(--accent); box-shadow: 0 3px 0 var(--accent-deep); cursor: grab; transition: transform .15s; }
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 7px; background: var(--surface-2); border: 2px solid var(--accent); box-shadow: 0 3px 0 var(--accent-deep); cursor: grab; }
.teaser-controls input[type="range"], .tool--range input[type="range"] { background: var(--bg-2); }

/* ---------- سفارشی، راهنما، درباره ---------- */
.custom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.card-form { padding: 30px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 0 -2px var(--edge), var(--shadow-1); display: grid; gap: 18px; }
.card-form h2 { font-size: 1.35rem; font-weight: 900; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { display: grid; gap: 7px; font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.f--wide { grid-column: 1 / -1; }
.f textarea { resize: vertical; line-height: 1.8; }
.f small { font-weight: 400; color: var(--muted); }
.f--file input { padding: 10px; }
.f.is-invalid input, .f.is-invalid textarea { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .14); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.check input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 5px; flex-shrink: 0; }
.check.is-invalid { color: #e5484d; }
.custom__side { display: grid; gap: 22px; position: sticky; top: 100px; }
.mini-steps { margin: 0; padding: 0; list-style: none; counter-reset: m; display: grid; gap: 14px; }
.mini-steps li { counter-increment: m; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; font-size: .92rem; }
.mini-steps li::before { content: counter(m, persian); grid-row: span 2; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 900; box-shadow: 0 3px 0 var(--accent); }
.mini-steps span { color: var(--muted); }

.guide { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; }
.guide__toc { position: sticky; top: 100px; display: grid; gap: 4px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 0 -2px var(--edge); }
.guide__toc a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.guide__toc a:hover { background: var(--accent-soft); color: var(--accent); }
.guide__body { display: grid; gap: 24px; }
.big-steps { margin: 0; padding: 0; list-style: none; counter-reset: b; display: grid; gap: 16px; }
.big-steps li { counter-increment: b; display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; }
.big-steps li::before { content: counter(b, persian); grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; font-weight: 900; background: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--accent-deep); }
.big-steps span { color: var(--ink-2); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.table th, .table td { padding: 12px 14px; text-align: right; border-bottom: 1px dashed var(--line-2); }
.table th { color: var(--muted); font-weight: 700; font-size: .84rem; }
.license-grid, .honest__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
.license-grid h3, .honest__grid h3 { font-size: 1rem; font-weight: 800; }

.about { display: grid; gap: 60px; }
.about__statement { padding: 48px; border-radius: 30px; background: var(--ink); color: var(--bg); box-shadow: 0 12px 0 -2px var(--accent); }
.quote { font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.7; }
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.road { display: flex; gap: 18px; align-items: flex-end; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 0 -2px var(--edge); }
.road__slab { flex-shrink: 0; width: 64px; height: calc(46px + var(--i) * 16px); border-radius: 14px; display: grid; place-items: end center; padding-bottom: 8px;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 2px, transparent 2px 7px), linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 900; font-size: 1.3rem;
  box-shadow: -6px 6px 0 var(--accent-deep); }
.road:nth-child(n+4) .road__slab { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 2px, transparent 2px 7px), linear-gradient(180deg, #5d7bff, var(--blue)); box-shadow: -6px 6px 0 var(--blue-deep); }
.road__body small { color: var(--accent); font-weight: 700; }
.road__body h3 { font-size: 1.05rem; font-weight: 800; }
.road__body p { font-size: .9rem; color: var(--ink-2); }

/* ---------- کتابخانه و تسویه ---------- */
.lib { display: grid; gap: 14px; }
.lib-item, .cart-item { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 5px 0 -2px var(--edge); }
.lib-item__info, .cart-item__info { flex: 1; display: grid; }
.lib-item__info small, .cart-item__info small { color: var(--muted); font-size: .8rem; }
.lib-item__actions { display: flex; gap: 8px; align-items: center; }
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.pay-methods { border: 0; padding: 0; margin: 0; }
.demo-box { padding: 14px 16px; border-radius: 14px; font-size: .88rem; color: var(--ink-2); background: repeating-linear-gradient(-45deg, var(--accent-soft) 0 10px, transparent 10px 20px), var(--bg-2); border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent); }
.order-sum { position: sticky; top: 100px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.sum-row span { display: grid; }
.sum-row small { color: var(--muted); font-size: .78rem; }
.sum-row--total { border-bottom: 0; font-size: 1.1rem; font-weight: 900; }
.success { grid-column: 1 / -1; text-align: center; display: grid; justify-items: center; gap: 12px; padding: 60px 24px; }
.success h2 { font-size: 1.5rem; }
.success__stack { display: grid; gap: 4px; width: 120px; margin-bottom: 10px; }
.success__stack i { height: 12px; border-radius: 4px; background: var(--mint); transform-origin: right; animation: lay .5s var(--ease-out) both; }
.success__stack i:nth-child(1) { animation-delay: .8s; width: 50%; justify-self: center; }
.success__stack i:nth-child(2) { animation-delay: .6s; width: 70%; justify-self: center; }
.success__stack i:nth-child(3) { animation-delay: .4s; width: 85%; justify-self: center; }
.success__stack i:nth-child(4) { animation-delay: .2s; }
.success__stack i:nth-child(5) { animation-delay: 0s; background: var(--ink); }
@keyframes lay { from { transform: scaleX(0); } }

/* ---------- کشو ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(10, 12, 15, .45); opacity: 0; transition: opacity .35s; backdrop-filter: blur(3px); }
.drawer__panel { position: absolute; top: 10px; bottom: 10px; left: 10px; width: min(420px, calc(100% - 20px)); display: flex; flex-direction: column; border-radius: 26px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); transform: translateX(-110%) rotateY(18deg); transform-origin: left; transition: transform .55s var(--ease-out); outline: none; }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px dashed var(--line-2); }
.drawer__head h3 { font-size: 1.2rem; font-weight: 900; }
.drawer__body { flex: 1; overflow: auto; padding: 16px; display: grid; gap: 12px; align-content: start; }
.drawer__body .empty { padding: 40px 10px; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px dashed var(--line-2); display: grid; gap: 12px; }
.cart-item__info span { font-weight: 800; font-size: .92rem; }

/* ---------- پالت ---------- */
.palette { position: fixed; inset: 0; z-index: 210; display: grid; justify-items: center; align-items: start; padding-top: 12vh; pointer-events: none; }
.palette__scrim { position: absolute; inset: 0; background: rgba(10, 12, 15, .5); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.palette__box { position: relative; width: min(620px, calc(100% - 24px)); border-radius: 24px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 10px 0 -2px var(--edge), var(--shadow-2); overflow: hidden; transform: perspective(900px) rotateX(-12deg) translateY(-20px); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; }
.palette.is-open { pointer-events: auto; }
.palette.is-open .palette__scrim { opacity: 1; }
.palette.is-open .palette__box { transform: none; opacity: 1; }
.palette__input { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px dashed var(--line-2); }
.palette__input svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; flex-shrink: 0; }
.palette__input input { flex: 1; border: 0; background: none; font-size: 1.05rem; padding: 6px 0; box-shadow: none; }
.palette__input input:focus { box-shadow: none; }
kbd { font-family: var(--mono); font-size: .72rem; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 2px 0 var(--edge); }
.palette__results { max-height: 50vh; overflow: auto; padding: 8px; }
.pal-row { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px; }
.pal-row span:last-child { display: grid; line-height: 1.5; }
.pal-row small { color: var(--muted); font-size: .78rem; }
.pal-row.is-active, .pal-row:hover { background: var(--accent-soft); }
.pal-row__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--accent); font-weight: 900; }
.pal-empty { padding: 24px; text-align: center; color: var(--muted); }
.pal-empty a { color: var(--accent); font-weight: 700; }

/* ---------- پیش‌نمایش سریع ---------- */
.modal { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(10, 12, 15, .55); backdrop-filter: blur(5px); opacity: 0; transition: opacity .3s; }
.modal__box { position: relative; width: min(980px, 100%); display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border-radius: 30px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 12px 0 -2px var(--edge), var(--shadow-2); transform: perspective(1200px) rotateX(14deg) translateY(40px) scale(.96); opacity: 0; transition: transform .6s var(--ease-out), opacity .3s; }
.modal.is-open { pointer-events: auto; }
.modal.is-open .modal__scrim { opacity: 1; }
.modal.is-open .modal__box { transform: none; opacity: 1; }
.viewer--quick { aspect-ratio: 1; border-radius: 0; border: 0; box-shadow: none; }
.modal__info { padding: 34px 30px; display: grid; gap: 14px; align-content: center; }
.modal__info h3 { font-size: 1.6rem; font-weight: 900; }
.modal__info p { color: var(--ink-2); }
.modal__info .price { font-size: 1.3rem; }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; }

/* ---------- پرده انتقال لایه‌ای ---------- */
.layer-curtain { position: fixed; inset: 0; z-index: 300; pointer-events: none; display: flex; flex-direction: column-reverse; }
.layer-curtain i { flex: 1; transform: scaleX(0); transform-origin: right; background: var(--ink); }
.layer-curtain i:nth-child(even) { background: color-mix(in srgb, var(--ink) 92%, var(--accent)); }
.layer-curtain i:nth-child(1) { background: var(--accent); }
.layer-curtain.is-in i { animation: layIn .32s var(--ease) forwards; }
.layer-curtain.is-out i { transform: scaleX(1); transform-origin: left; animation: layOut .42s var(--ease-out) forwards; }
.layer-curtain i:nth-child(1) { animation-delay: 0s !important; }
.layer-curtain i:nth-child(2) { animation-delay: .03s !important; }
.layer-curtain i:nth-child(3) { animation-delay: .06s !important; }
.layer-curtain i:nth-child(4) { animation-delay: .09s !important; }
.layer-curtain i:nth-child(5) { animation-delay: .12s !important; }
.layer-curtain i:nth-child(6) { animation-delay: .15s !important; }
.layer-curtain i:nth-child(7) { animation-delay: .18s !important; }
.layer-curtain i:nth-child(8) { animation-delay: .21s !important; }
@keyframes layIn { to { transform: scaleX(1); } }
@keyframes layOut { to { transform: scaleX(0); } }

/* ---------- اعلان ---------- */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 400; display: grid; gap: 10px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .92rem; box-shadow: 0 5px 0 var(--accent), var(--shadow-2); transform: translateY(30px) rotateX(-40deg); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; }
.toast.is-in { transform: none; opacity: 1; }
.toast__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.toast--info .toast__dot { background: var(--butter); }

/* ---------- پانویس ---------- */
.site-footer { margin-top: 60px; padding: 64px 0 28px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 0 -2px var(--edge) inset; position: relative; }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: -1px; height: 8px; background: repeating-linear-gradient(90deg, var(--accent) 0 40px, var(--accent-2) 40px 80px, var(--blue) 80px 120px, var(--mint) 120px 160px, var(--butter) 160px 200px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .95rem; font-weight: 900; margin-bottom: 12px; }
.footer-grid > div:not(.footer-brand) { display: grid; gap: 6px; align-content: start; }
.footer-grid a { color: var(--ink-2); font-size: .92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); margin: 16px 0; max-width: 40ch; font-size: .92rem; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { padding: 6px 12px; border-radius: 10px; background: var(--bg-2); font-size: .82rem; font-weight: 600; border: 1px solid var(--line); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px dashed var(--line-2); font-size: .82rem; color: var(--muted); }

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

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1180px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .studio { grid-template-columns: 210px 1fr 320px; }
  .main-nav a { padding: 8px 10px; font-size: .88rem; }
}
@media (max-width: 1000px) {
  .hero__grid, .studio-teaser, .process, .two-col, .product__grid, .custom, .checkout { grid-template-columns: 1fr; }
  .hero__stage { max-width: 640px; width: 100%; margin-inline: auto; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .bundles { grid-template-columns: 1fr; }
  .product__details { grid-template-columns: 1fr 1fr; }
  .product__info, .custom__side, .order-sum { position: static; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .exploded { height: 420px; order: -1; }
  .studio { grid-template-columns: 1fr; }
  .studio__stage { order: -2; }
  .studio__panel { order: -1; position: static; max-height: none; }
  .studio__templates { position: static; max-height: none; }
  .tpl-list { grid-auto-flow: column; grid-auto-columns: 210px; overflow-x: auto; padding-bottom: 6px; }
  .viewer--studio { min-height: 380px; aspect-ratio: 1 / .85; flex: none; }
  .blueprint-cta { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .guide { grid-template-columns: 1fr; }
  .guide__toc { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .main-nav { position: absolute; top: calc(100% + 10px); inset-inline: 0; flex-direction: column; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 8px 0 -2px var(--edge), var(--shadow-2); transform: perspective(800px) rotateX(-20deg) translateY(-10px); transform-origin: top; opacity: 0; pointer-events: none; transition: transform .4s var(--ease-out), opacity .25s; }
  .site-header { position: sticky; }
  .site-header__plate { position: relative; }
  .site-header.is-menu .main-nav { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; }
  .menu-btn { display: inline-grid; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .modal__box { grid-template-columns: 1fr; max-height: calc(100vh - 32px); overflow: auto; }
  .viewer--quick { aspect-ratio: 1 / .8; }
  .shop-bar { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .site-header { padding-inline: 10px; }
  .site-header__plate { gap: 8px; padding-inline-start: 12px; height: 58px; }
  .brand__text small { display: none; }
  .icon-btn { width: 38px; height: 38px; border-radius: 11px; }
  .header-actions { gap: 4px; }
  .header-actions a.icon-btn { display: none; }
  .hero { padding: 30px 0 60px; }
  .hero__stage { aspect-ratio: auto; border-radius: 26px; }
  .hero__canvas { position: relative; height: 330px; }
  .hud { position: relative; inset: auto; margin: 0 10px 10px; padding: 12px; }
  .hud__grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .hud__grid b { font-size: .8rem; }
  .hero__facts li { min-width: 0; flex: 1; padding: 10px 12px; }
  .section { padding: 70px 0; }
  .pillars { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pcard__body { padding: 10px 12px 14px; }
  .pcard h3 { font-size: .95rem; }
  .pcard__quick span { display: none; }
  .bundle-card { grid-template-columns: 1fr; }
  .bundle-card__body { padding: 0 20px 22px; }
  .teaser-controls { grid-template-columns: 1fr; }
  .product__details { grid-template-columns: 1fr; }
  .form-grid, .license-grid, .honest__grid { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about__statement { padding: 30px 22px; }
  .card-form { padding: 22px 18px; }
  .lib-item { flex-wrap: wrap; }
  .exploded__stack { width: 200px; height: 200px; }
  .marquee__track { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; translate: none; scale: none; }
  .thumb img { clip-path: none; }
}

/* =====================================================================
   حساب کاربری، ورود و ورود دومرحله‌ای
   ===================================================================== */
.acc-btn[hidden] { display: none !important; }
.acc-btn .acc-initial { display: none; }
.acc-btn.is-in svg { display: none; }
.acc-btn.is-in .acc-initial { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 900; font-size: .9rem; box-shadow: 0 2px 0 var(--accent-deep); }
@media (max-width: 560px) { .header-actions a.acc-btn { display: inline-grid; } }
.announce { text-align: center; padding: 9px 16px; font-weight: 700; font-size: .9rem; background: var(--ink); color: var(--bg); }

.auth-wrap { display: grid; place-items: center; min-height: 60vh; }
.auth-card { position: relative; width: min(470px, 100%); padding: 40px 34px 30px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 0 -2px var(--edge), var(--shadow-2); display: grid; gap: 14px; }
.auth-card h1 { font-size: 1.7rem; font-weight: 900; }
.auth-card__stack { display: grid; gap: 4px; width: 64px; }
.auth-card__stack i { height: 10px; border-radius: 4px; background: var(--accent); }
.auth-card__stack i:nth-child(1) { width: 55%; justify-self: center; background: var(--accent-2); }
.auth-card__stack i:nth-child(2) { width: 78%; justify-self: center; }
.auth-card__stack i:nth-child(3) { background: var(--accent-deep); }
.auth-form { display: grid; gap: 14px; margin-top: 6px; }
.auth-form[hidden] { display: none; }
.auth-alt { text-align: center; color: var(--muted); font-size: .92rem; }
.auth-alt a { color: var(--accent); font-weight: 700; }
.pw { position: relative; display: flex; }
.pw input { flex: 1; padding-inline-end: 46px !important; }
.pw__eye { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 1rem; opacity: .6; padding: 6px; }
.pw__eye:hover { opacity: 1; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: -6px; --c: var(--line-2); }
.pw-meter i { height: 5px; border-radius: 3px; background: var(--line-2); transition: background .3s; }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: #e5484d; }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: var(--butter); }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: var(--mint); }
.pw-meter[data-s="4"] i { background: var(--mint); }
.code-input { font-family: var(--mono); font-size: 1.5rem !important; letter-spacing: .35em; text-align: center; }
.mfa-hint { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); font-size: .9rem; }
.mfa-setup { display: grid; gap: 16px; }
.mfa-steps { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: .94rem; }
.mfa-qr { justify-self: center; width: 220px; padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 6px 0 -2px var(--edge), var(--shadow-1); }
.mfa-qr svg { width: 100%; height: auto; display: block; }
.mfa-manual summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: .9rem; }
.mfa-manual code { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); font-family: var(--mono); word-break: break-all; }
.recovery { display: grid; gap: 12px; padding: 18px; border-radius: 18px; border: 2px dashed var(--butter); background: color-mix(in srgb, var(--butter) 10%, var(--surface)); }
.recovery ol { margin: 0; padding: 0 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; }
.recovery code { font-family: var(--mono); font-size: 1rem; font-weight: 700; }
.callout { display: grid; gap: 8px; justify-items: start; padding: 18px 20px; border-radius: 18px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); margin-bottom: 18px; }
.callout p { color: var(--ink-2); font-size: .94rem; }
.callout--ok { background: color-mix(in srgb, var(--mint) 12%, transparent); border-color: color-mix(in srgb, var(--mint) 35%, transparent); }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.inline-auth { max-width: 420px; margin-top: 14px; }

.account { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.account__tabs { position: sticky; top: 100px; display: grid; gap: 4px; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 0 -2px var(--edge); }
.account__tabs a, .account__tabs button { text-align: start; padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: .93rem; color: var(--ink-2); border: 0; background: none; }
.account__tabs a:hover, .account__tabs button:hover { background: var(--bg-2); }
.account__tabs a.is-active { background: var(--ink); color: var(--bg); }
.account__admin { color: var(--blue) !important; }
.account__logout { color: #e5484d !important; margin-top: 8px; border-top: 1px dashed var(--line-2) !important; border-radius: 0 0 12px 12px !important; }
.account__body { display: grid; gap: 22px; }
.account__body .card-form { gap: 16px; }
.acc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.acc-stat { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 0 -2px var(--edge); display: grid; gap: 4px; }
.acc-stat small { color: var(--muted); }
.acc-stat b { font-size: 1.2rem; font-weight: 900; }
.acc-stat.is-ok b { color: var(--mint); }
.acc-stat.is-warn b { color: var(--accent); }
.quick-links { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-links a { padding: 10px 16px; border-radius: 12px; background: var(--bg-2); font-weight: 700; font-size: .92rem; }
.quick-links a:hover { background: var(--accent-soft); color: var(--accent); }
.order-card header { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.order-card header small { color: var(--muted); margin-inline-start: auto; }
.sessions { display: grid; gap: 10px; margin-bottom: 14px; }
.session { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); }
.session div { display: grid; }
.session small { color: var(--muted); font-size: .8rem; }
.session.is-current { outline: 2px solid color-mix(in srgb, var(--mint) 50%, transparent); }
.login-gate { grid-column: 1 / -1; text-align: center; display: grid; justify-items: center; gap: 10px; padding: 50px 24px; }
@media (max-width: 1000px) { .account { grid-template-columns: 1fr; } .account__tabs { position: static; grid-auto-flow: column; overflow-x: auto; } .acc-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .auth-card { padding: 30px 20px 24px; } .recovery ol { grid-template-columns: 1fr; } }