/* ═══════════════════════════════════════════════════════════════════════════
   سایت معرفی آی‌واگ — لایه‌ی طراحی مستقل (ADR-167)
   ───────────────────────────────────────────────────────────────────────────
   ⚠️ چرا فایل جدا و نه Tailwind: باندل Vite زنده از قالب‌های همه‌ی برنامه
   ساخته می‌شود و build دوباره از این مخزن ممکن است کلاس‌های صفحه‌های دیگر را
   بیندازد (ADR-054/157). پس کامپوننت‌های تازه‌ی سایت معرفی اینجا با CSS خالص
   نوشته شده‌اند و فقط روی صفحه‌های معرفی بار می‌شوند. رنگ‌ها از توکن‌های
   `--color-brand-*` همان app.css خوانده می‌شوند (یک منبع برای برند).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --mk-brand: var(--color-brand-600, #4366b0);
    --mk-brand-700: var(--color-brand-700, #365391);
    --mk-brand-50: var(--color-brand-50, #f3f6fc);
    --mk-brand-100: var(--color-brand-100, #e7ecf9);
    --mk-navy: var(--color-brand-950, #10182a);
    --mk-ink: #0f172a;
    --mk-text: #475569;
    --mk-muted: #64748b;
    --mk-line: #e2e8f0;
    --mk-soft: #f8fafc;
    --mk-violet: #7c3aed;
    --mk-amber: #f59e0b;
    --mk-emerald: #10b981;
    --mk-radius: 1.25rem;
    --mk-shadow: 0 1px 2px rgb(15 23 42 / .04), 0 12px 32px -12px rgb(15 23 42 / .14);
    --mk-shadow-lg: 0 2px 4px rgb(15 23 42 / .04), 0 30px 60px -20px rgb(16 24 42 / .28);
    --mk-ease: cubic-bezier(.22, 1, .36, 1);
    --mk-header-h: 4.25rem;
}

/* انتقال نرم بین صفحه‌های سایت (View Transitions بین‌سندی؛ مرورگرِ بدون
   پشتیبانی بی‌صدا نادیده می‌گیرد). */
@view-transition { navigation: auto; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--mk-header-h) + 1rem); }
.mk-body { overflow-x: clip; }

/* ─── نوار پیشرفت اسکرول (فقط مرورگرهای دارای scroll-timeline) ─── */
.mk-progress { display: none; }
@supports (animation-timeline: scroll()) {
    .mk-progress {
        display: block; position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 60;
        background: linear-gradient(90deg, var(--mk-brand), var(--mk-violet));
        transform-origin: 100% 50%; transform: scaleX(0);
        animation: mk-progress linear both; animation-timeline: scroll(root);
    }
    @keyframes mk-progress { to { transform: scaleX(1); } }
}

/* ═══ هدر و مگامنو ═══════════════════════════════════════════════════════ */
.mk-header {
    position: sticky; top: 0; z-index: 50;
    background: rgb(255 255 255 / .78);
    -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent;
    transition: background-color .3s, box-shadow .3s, border-color .3s;
}
.mk-header.is-scrolled { background: rgb(255 255 255 / .92); border-color: rgb(226 232 240 / .9); box-shadow: 0 8px 30px -18px rgb(15 23 42 / .35); }
.mk-header.is-open { background: #fff; }
.mk-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 80rem; margin-inline: auto; padding: .7rem 1rem; min-height: var(--mk-header-h); }
@media (min-width: 640px) { .mk-nav { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .mk-nav { padding-inline: 2rem; } }

.mk-menu { display: none; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 1024px) { .mk-menu { display: flex; } }

.mk-nav-link {
    position: relative; display: inline-flex; align-items: center; gap: .35rem;
    padding: .55rem .8rem; border-radius: .85rem; border: 0; background: transparent;
    font: inherit; font-size: .875rem; font-weight: 600; color: #334155; cursor: pointer;
    transition: color .2s, background-color .2s; white-space: nowrap;
}
.mk-nav-link:hover, .mk-nav-link[aria-expanded="true"] { color: var(--mk-brand-700); background: var(--mk-brand-50); }
.mk-nav-link.is-active { color: var(--mk-brand-700); }
.mk-nav-link.is-active::after { content: ""; position: absolute; inset-inline: .8rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--mk-brand); }
.mk-nav-link:focus-visible { outline: 2px solid var(--mk-brand); outline-offset: 2px; }
.mk-chev { width: 1rem; height: 1rem; transition: transform .25s var(--mk-ease); opacity: .7; }
[aria-expanded="true"] > .mk-chev { transform: rotate(180deg); }

.mk-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: .1rem .45rem; font-size: .625rem; font-weight: 800; line-height: 1.5; color: #fff; background: linear-gradient(135deg, var(--mk-brand), var(--mk-violet)); }
.mk-pill--amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.mk-pill--green { background: linear-gradient(135deg, #10b981, #059669); }
.mk-pill--soft { color: var(--mk-brand-700); background: var(--mk-brand-100); }

/* پنل مگامنو: تمام‌عرض زیر هدر، با ورود نرم */
.mk-mega {
    position: absolute; inset-inline: 0; top: 100%;
    padding: 0 1rem 1.25rem; pointer-events: none;
}
.mk-mega-inner {
    max-width: 80rem; margin-inline: auto; overflow: hidden;
    background: #fff; border: 1px solid var(--mk-line); border-radius: 1.5rem;
    box-shadow: var(--mk-shadow-lg); pointer-events: auto;
    transform-origin: top center;
    animation: mk-drop .28s var(--mk-ease);
}
@keyframes mk-drop { from { opacity: 0; transform: translateY(-8px) scale(.985); } to { opacity: 1; transform: none; } }
.mk-mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 18rem; }
.mk-mega-col { padding: 1.4rem 1.1rem 1.1rem; border-inline-start: 1px solid #f1f5f9; }
.mk-mega-col:first-child { border-inline-start: 0; }
.mk-mega-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; padding-inline: .6rem; font-size: .75rem; font-weight: 800; letter-spacing: .02em; color: var(--mk-muted); }
.mk-mega-title svg { width: 1rem; height: 1rem; color: var(--mk-brand); }
.mk-mega-item { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem; border-radius: .9rem; color: inherit; text-decoration: none; transition: background-color .2s, transform .2s var(--mk-ease); }
.mk-mega-item:hover, .mk-mega-item:focus-visible { background: var(--mk-brand-50); outline: none; transform: translateX(-2px); }
.mk-mega-ico { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .75rem; color: var(--mk-brand); background: var(--mk-brand-50); border: 1px solid var(--mk-brand-100); transition: background-color .2s, color .2s; }
.mk-mega-item:hover .mk-mega-ico { color: #fff; background: var(--mk-brand); border-color: var(--mk-brand); }
.mk-mega-ico svg { width: 1.15rem; height: 1.15rem; }
.mk-mega-label { display: flex; align-items: center; gap: .35rem; font-size: .875rem; font-weight: 700; color: var(--mk-ink); }
.mk-mega-desc { display: block; margin-top: .1rem; font-size: .75rem; line-height: 1.65; color: var(--mk-muted); }
.mk-mega-side { position: relative; display: flex; flex-direction: column; gap: .8rem; padding: 1.25rem; color: #fff; background: radial-gradient(120% 90% at 100% 0%, #2e4476 0%, var(--mk-navy) 60%); }
.mk-mega-side img { width: 100%; height: auto; border-radius: .8rem; border: 1px solid rgb(255 255 255 / .15); box-shadow: 0 18px 40px -18px rgb(0 0 0 / .6); }
.mk-mega-side .mk-pill { align-self: flex-start; }
@media (max-width: 1279px) { .mk-mega-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mk-mega-side { display: none; } .mk-mega-desc { display: none; } }
.mk-mega-side h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.mk-mega-side p { margin: 0; font-size: .78rem; line-height: 1.8; color: #cbd5e1; }
.mk-mega-side a.mk-side-cta { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem .9rem; border-radius: .8rem; background: #fff; color: var(--mk-navy); font-size: .8rem; font-weight: 800; text-decoration: none; transition: transform .2s var(--mk-ease); }
.mk-mega-side a.mk-side-cta:hover { transform: translateY(-2px); }
.mk-mega-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.5rem; background: var(--mk-soft); border-top: 1px solid #f1f5f9; font-size: .8rem; color: var(--mk-muted); }
.mk-mega-foot a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: var(--mk-brand-700); text-decoration: none; }
.mk-mega-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* منوی کشویی کوچک (اتصال‌ها، منابع) */
.mk-dropdown { position: absolute; inset-inline-start: 0; top: 100%; padding-top: .6rem; width: 21rem; }
.mk-dropdown .mk-mega-inner { padding: .5rem; border-radius: 1.25rem; }

/* ─── موبایل: کشوی کناری با آکاردئون بومی (details) ─── */
.mk-burger { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: .9rem; border: 1px solid var(--mk-line); background: #fff; color: #334155; cursor: pointer; }
@media (min-width: 1024px) { .mk-burger { display: none; } }
.mk-drawer { position: fixed; inset: 0; z-index: 70; }
.mk-drawer-backdrop { position: absolute; inset: 0; background: rgb(15 23 42 / .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: mk-fade .25s ease; }
.mk-drawer-panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(24rem, 92vw); display: flex; flex-direction: column; background: #fff; box-shadow: var(--mk-shadow-lg); animation: mk-slide .32s var(--mk-ease); }
@keyframes mk-slide { from { transform: translateX(100%); } to { transform: none; } }
@keyframes mk-fade { from { opacity: 0; } to { opacity: 1; } }
.mk-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; border-bottom: 1px solid #f1f5f9; }
.mk-drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .5rem 1rem 1rem; }
.mk-drawer-foot { display: grid; gap: .5rem; padding: 1rem; border-top: 1px solid #f1f5f9; background: var(--mk-soft); }
.mk-acc { border-bottom: 1px solid #f1f5f9; }
.mk-acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .95rem .25rem; font-weight: 700; color: var(--mk-ink); cursor: pointer; }
.mk-acc > summary::-webkit-details-marker { display: none; }
.mk-acc > summary .mk-chev { transition: transform .25s var(--mk-ease); }
.mk-acc[open] > summary .mk-chev { transform: rotate(180deg); }
.mk-acc[open] > summary { color: var(--mk-brand-700); }
.mk-acc-list { display: grid; gap: .15rem; padding-bottom: .75rem; }
.mk-acc-group { margin: .5rem .25rem .25rem; font-size: .7rem; font-weight: 800; color: #94a3b8; }
.mk-drawer-link { display: flex; align-items: center; gap: .6rem; padding: .6rem .5rem; border-radius: .8rem; color: #334155; font-size: .9rem; font-weight: 600; text-decoration: none; }
.mk-drawer-link:hover, .mk-drawer-link.is-active { background: var(--mk-brand-50); color: var(--mk-brand-700); }
.mk-drawer-link svg { width: 1.1rem; height: 1.1rem; color: var(--mk-brand); flex: none; }
.mk-drawer-plain { display: block; padding: .95rem .25rem; border-bottom: 1px solid #f1f5f9; font-weight: 700; color: var(--mk-ink); text-decoration: none; }

/* ═══ دکمه‌ها ═══════════════════════════════════════════════════════════ */
.mk-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 1rem; border: 1px solid transparent; font: inherit; font-size: .9rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s var(--mk-ease), box-shadow .2s, background-color .2s, color .2s, border-color .2s; }
.mk-btn:focus-visible { outline: 2px solid var(--mk-brand); outline-offset: 3px; }
.mk-btn svg { width: 1.05rem; height: 1.05rem; }
.mk-btn--primary { color: #fff; background: linear-gradient(135deg, var(--mk-brand) 0%, #5a54c9 100%); box-shadow: 0 10px 24px -10px rgb(67 102 176 / .7); }
.mk-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgb(67 102 176 / .75); }
.mk-btn--ghost { color: #334155; background: #fff; border-color: #cbd5e1; }
.mk-btn--ghost:hover { color: var(--mk-brand-700); border-color: var(--mk-brand); transform: translateY(-2px); }
.mk-btn--light { color: var(--mk-navy); background: #fff; }
.mk-btn--light:hover { transform: translateY(-2px); }
.mk-btn--glass { color: #fff; background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .25); }
.mk-btn--glass:hover { background: rgb(255 255 255 / .18); }
.mk-btn--sm { padding: .55rem 1rem; font-size: .8rem; border-radius: .85rem; }
.mk-btn--block { width: 100%; }

/* ═══ نمایش هنگام اسکرول (Reveal) ═══════════════════════════════════════
   فقط وقتی JS فعال است پنهان می‌شود (کلاس mk-js روی html)، تا بدون JS یا
   برای خزنده‌ها محتوا همیشه دیده شود. */
.mk-js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--mk-ease), transform .7s var(--mk-ease); transition-delay: var(--d, 0s); }
.mk-js [data-reveal="left"] { transform: translateX(-24px); }
.mk-js [data-reveal="right"] { transform: translateX(24px); }
.mk-js [data-reveal="zoom"] { transform: scale(.96); }
.mk-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ═══ هیروی صفحه‌ی اصلی ════════════════════════════════════════════════ */
.mk-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #f5f7fd 0%, #fff 70%); }
.mk-aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .7; }
.mk-aurora span { position: absolute; border-radius: 50%; mix-blend-mode: multiply; animation: mk-aurora 18s ease-in-out infinite alternate; }
.mk-aurora span:nth-child(1) { width: 38rem; height: 38rem; inset-inline-end: -6rem; top: -8rem; background: #c7d4f3; }
.mk-aurora span:nth-child(2) { width: 30rem; height: 30rem; inset-inline-start: 8%; top: 4rem; background: #e3d9fb; animation-duration: 22s; animation-delay: -6s; }
.mk-aurora span:nth-child(3) { width: 24rem; height: 24rem; inset-inline-start: 40%; top: 18rem; background: #d1f2ea; animation-duration: 26s; animation-delay: -12s; }
@keyframes mk-aurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(4rem, 2rem, 0) scale(1.12); } 100% { transform: translate3d(-3rem, 3rem, 0) scale(.95); } }
.mk-grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(to right, rgb(67 102 176 / .07) 1px, transparent 1px), linear-gradient(to bottom, rgb(67 102 176 / .07) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%); }

.mk-eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .5rem .4rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--mk-brand-100); box-shadow: 0 6px 20px -12px rgb(67 102 176 / .5); font-size: .78rem; font-weight: 700; color: var(--mk-brand-700); text-decoration: none; transition: transform .2s var(--mk-ease); }
.mk-eyebrow:hover { transform: translateY(-1px); }
.mk-eyebrow .mk-pill { font-size: .66rem; }
.mk-dot { position: relative; display: inline-flex; width: .5rem; height: .5rem; border-radius: 50%; background: var(--mk-emerald); }
.mk-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: mk-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes mk-ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

.mk-h1 { margin: 1.4rem 0 0; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem); line-height: 1.45; font-weight: 800; letter-spacing: -.01em; color: var(--mk-ink); }
.mk-gradient-text { white-space: nowrap; background: linear-gradient(120deg, var(--mk-brand) 0%, #6d5bd0 50%, var(--mk-brand) 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: mk-shine 6s linear infinite; }
@keyframes mk-shine { to { background-position: -200% center; } }
.mk-lead { margin: 1.25rem 0 0; max-width: 36rem; font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 2.05; color: var(--mk-text); }

/* چرخش واژه‌ها در تیتر: «برای فروشگاه / تولیدی / پخش …» */
.mk-rotator { position: relative; display: inline-grid; vertical-align: bottom; }
.mk-rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.6em); transition: opacity .5s var(--mk-ease), transform .5s var(--mk-ease); white-space: nowrap; }
.mk-rotator > span.is-on { opacity: 1; transform: none; }
.mk-rotator > span.is-off { opacity: 0; transform: translateY(-.6em); }
.mk-rotator { color: var(--mk-brand); }

.mk-checks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: .85rem; color: var(--mk-muted); }
.mk-checks li { display: inline-flex; align-items: center; gap: .4rem; }
.mk-checks svg { width: 1.05rem; height: 1.05rem; color: var(--mk-emerald); }

/* صحنه‌ی اسکرین‌شات هیرو با کارت‌های شناور */
.mk-stage { position: relative; perspective: 1600px; }
.mk-stage-glow { position: absolute; inset: 8% 4% -6%; z-index: -1; border-radius: 2rem; background: radial-gradient(60% 60% at 50% 50%, rgb(67 102 176 / .35), transparent 70%); filter: blur(30px); }
.mk-tilt { transform-style: preserve-3d; transition: transform .6s var(--mk-ease); transform: rotateY(-6deg) rotateX(4deg); }
.mk-tilt:hover { transform: rotateY(-2deg) rotateX(1deg); }
@media (max-width: 1023px) { .mk-tilt, .mk-tilt:hover { transform: none; } }
.mk-float { position: absolute; display: flex; align-items: center; gap: .6rem; padding: .65rem .85rem; border-radius: 1rem; background: rgb(255 255 255 / .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgb(226 232 240 / .9); box-shadow: 0 18px 40px -18px rgb(15 23 42 / .45); font-size: .75rem; color: var(--mk-ink); animation: mk-bob 6s ease-in-out infinite; white-space: nowrap; }
.mk-float b { display: block; font-size: .8rem; }
.mk-float small { display: block; color: var(--mk-muted); font-size: .68rem; }
.mk-float i { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .7rem; font-style: normal; color: #fff; }
.mk-float i svg { width: 1.05rem; height: 1.05rem; }
.mk-float--a { inset-inline-start: -1.25rem; top: 18%; }
.mk-float--b { inset-inline-end: -1rem; bottom: 16%; animation-delay: -2s; }
.mk-float--c { inset-inline-start: 12%; bottom: -1.2rem; animation-delay: -4s; }
@media (max-width: 639px) { .mk-float--a { inset-inline-start: -.25rem; } .mk-float--b { inset-inline-end: -.25rem; } .mk-float--c { display: none; } }
@keyframes mk-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ═══ قاب اسکرین‌شات (پنجره‌ی مرورگر) ══════════════════════════════════ */
.mk-shot { position: relative; margin: 0; overflow: hidden; border-radius: 1.1rem; background: #fff; border: 1px solid rgb(203 213 225 / .8); box-shadow: var(--mk-shadow-lg); }
.mk-shot-bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; background: linear-gradient(#f8fafc, #f1f5f9); border-bottom: 1px solid #e2e8f0; }
.mk-shot-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #e2e8f0; }
.mk-shot-bar i:nth-child(1) { background: #fca5a5; } .mk-shot-bar i:nth-child(2) { background: #fcd34d; } .mk-shot-bar i:nth-child(3) { background: #86efac; }
.mk-shot-url { flex: 1; display: flex; align-items: center; gap: .35rem; margin-inline-start: .5rem; max-width: 22rem; padding: .2rem .7rem; border-radius: .55rem; background: #fff; border: 1px solid #e2e8f0; font-size: .68rem; color: #94a3b8; direction: ltr; justify-content: flex-start; overflow: hidden; white-space: nowrap; }
.mk-shot-url svg { width: .7rem; height: .7rem; color: var(--mk-emerald); flex: none; }
.mk-shot img { display: block; width: 100%; height: auto; }
.mk-shot-btn { all: unset; display: block; cursor: zoom-in; width: 100%; }
.mk-shot-btn:focus-visible { outline: 3px solid var(--mk-brand); outline-offset: -3px; }
.mk-shot figcaption { padding: .6rem .9rem; font-size: .78rem; color: var(--mk-muted); border-top: 1px solid #f1f5f9; background: #fff; }
.mk-shot--phone { max-width: 18rem; margin-inline: auto; border-radius: 2.2rem; padding: .55rem; background: #0f172a; border: 0; }
.mk-shot--phone img { border-radius: 1.7rem; }

.mk-lightbox { width: min(96vw, 1400px); max-height: 92vh; padding: 0; border: 0; border-radius: 1rem; background: transparent; overflow: visible; }
.mk-lightbox::backdrop { background: rgb(2 6 23 / .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mk-lightbox img { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: contain; border-radius: 1rem; background: #fff; }
.mk-lightbox p { margin: .75rem 0 0; text-align: center; color: #e2e8f0; font-size: .85rem; }
.mk-lightbox-close { position: absolute; top: -.75rem; inset-inline-start: -.75rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: #fff; color: var(--mk-ink); box-shadow: var(--mk-shadow); cursor: pointer; }
.mk-lightbox[open] { animation: mk-zoom .3s var(--mk-ease); }
@keyframes mk-zoom { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ═══ زبانه‌های «نگاهی به داخل برنامه» ═══════════════════════════════════ */
.mk-tabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .35rem; margin-inline: auto; width: fit-content; max-width: 100%; border-radius: 1.1rem; background: #fff; border: 1px solid var(--mk-line); box-shadow: var(--mk-shadow); }
.mk-tabs::-webkit-scrollbar { display: none; }
.mk-tab { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1rem; border-radius: .85rem; border: 0; background: transparent; font: inherit; font-size: .85rem; font-weight: 700; color: var(--mk-muted); cursor: pointer; transition: background-color .2s, color .2s; }
.mk-tab svg { width: 1rem; height: 1rem; }
.mk-tab:hover { color: var(--mk-ink); }
.mk-tab[aria-selected="true"] { color: #fff; background: var(--mk-navy); }
.mk-tabpanel { animation: mk-fade-up .45s var(--mk-ease); }
@keyframes mk-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ═══ نوار متحرک (marquee) ═════════════════════════════════════════════ */
.mk-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mk-marquee-track { display: flex; gap: .75rem; width: max-content; animation: mk-marquee 50s linear infinite; }
.mk-marquee:hover .mk-marquee-track { animation-play-state: paused; }
@keyframes mk-marquee { to { transform: translateX(50%); } }
.mk-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--mk-line); font-size: .85rem; font-weight: 600; color: #334155; white-space: nowrap; text-decoration: none; }
.mk-chip svg { width: 1rem; height: 1rem; color: var(--mk-brand); }
a.mk-chip:hover { border-color: var(--mk-brand); color: var(--mk-brand-700); }

/* ═══ کارت‌ها ══════════════════════════════════════════════════════════ */
.mk-card { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--mk-radius); background: #fff; border: 1px solid var(--mk-line); box-shadow: 0 1px 2px rgb(15 23 42 / .04); transition: transform .3s var(--mk-ease), box-shadow .3s, border-color .3s; color: inherit; text-decoration: none; overflow: hidden; }
a.mk-card:hover, .mk-card.is-hover:hover { transform: translateY(-4px); box-shadow: var(--mk-shadow); border-color: var(--mk-brand-100); }
.mk-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--mk-brand-50), #eef2ff); }
.mk-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top right; transition: transform .6s var(--mk-ease); }
a.mk-card:hover .mk-card-media img { transform: scale(1.04); }
.mk-card-badge { position: absolute; top: .75rem; inset-inline-start: .75rem; box-shadow: 0 6px 16px -6px rgb(67 102 176 / .7); }
/* هنر نمادین برای امکانی که اسکرین‌شات ندارد: گرادیان دسته + آیکون بزرگ + الگوی نقطه */
.mk-art { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #4366b0, #6d5bd0); }
.mk-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .18) 1px, transparent 1px); background-size: 18px 18px; }
.mk-art::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; inset-inline-end: -20%; top: -30%; background: rgb(255 255 255 / .12); }
.mk-art span { position: relative; z-index: 1; display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 1.6rem; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .3); color: #fff; box-shadow: 0 20px 40px -18px rgb(0 0 0 / .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .6s var(--mk-ease); }
.mk-art span svg { width: 2.75rem; height: 2.75rem; }
a.mk-card:hover .mk-art span { transform: scale(1.06) rotate(-3deg); }
.mk-art--finance { background: linear-gradient(135deg, #047857, #10b981); }
.mk-art--sales { background: linear-gradient(135deg, #1d4ed8, #4366b0); }
.mk-art--inventory { background: linear-gradient(135deg, #c2410c, #f59e0b); }
.mk-art--management { background: linear-gradient(135deg, #5b21b6, #8b5cf6); }
.mk-card-body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1.15rem 1.25rem 1.3rem; }
.mk-card-title { margin: 0; font-size: 1.02rem; font-weight: 800; color: var(--mk-ink); line-height: 1.7; }
.mk-card-text { margin: 0; font-size: .86rem; line-height: 1.95; color: var(--mk-text); }
.mk-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .72rem; color: var(--mk-muted); }
.mk-card-more { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 800; color: var(--mk-brand-700); }
.mk-card-more svg { width: 1rem; height: 1rem; transition: transform .25s var(--mk-ease); }
a.mk-card:hover .mk-card-more svg { transform: translateX(-4px); }
.mk-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 700; background: var(--mk-brand-50); color: var(--mk-brand-700); }
.mk-tag--finance { background: #ecfdf5; color: #047857; }
.mk-tag--sales { background: #eff6ff; color: #1d4ed8; }
.mk-tag--inventory { background: #fff7ed; color: #c2410c; }
.mk-tag--management { background: #f5f3ff; color: #6d28d9; }
.mk-ico { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .95rem; background: var(--mk-brand-50); color: var(--mk-brand); border: 1px solid var(--mk-brand-100); }
.mk-ico svg { width: 1.35rem; height: 1.35rem; }

/* کارت عکس (برای چه کسب‌وکارهایی) */
.mk-photo { position: relative; display: block; overflow: hidden; border-radius: 1.4rem; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--mk-shadow); }
.mk-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--mk-ease); }
.mk-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(16 24 42 / 0) 35%, rgb(16 24 42 / .88) 100%); }
.mk-photo:hover img { transform: scale(1.06); }
.mk-photo-body { position: absolute; inset-inline: 0; bottom: 0; padding: 1.1rem 1.15rem 1.2rem; }
.mk-photo-body h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.mk-photo-body p { margin: .35rem 0 0; font-size: .8rem; line-height: 1.85; color: #e2e8f0; }
.mk-photo-credit { position: absolute; top: .6rem; inset-inline-end: .6rem; font-size: .6rem; color: rgb(255 255 255 / .7); }

/* ردیف آماری با شمارنده */
.mk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 1.4rem; background: var(--mk-line); border: 1px solid var(--mk-line); }
@media (min-width: 768px) { .mk-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mk-stat { padding: 1.4rem 1rem; text-align: center; background: #fff; }
.mk-stat b { display: block; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; color: var(--mk-ink); }
.mk-stat span { display: block; margin-top: .25rem; font-size: .8rem; color: var(--mk-muted); }

/* بخش تیره‌ی شاخص */
.mk-dark { position: relative; overflow: hidden; isolation: isolate; color: #e2e8f0; background: radial-gradient(90% 70% at 85% 0%, #2e4476 0%, var(--mk-navy) 55%); }
.mk-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(255 255 255 / .08) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); }
.mk-dark h2, .mk-dark h3 { color: #fff; }

/* ═══ صفحه‌ی آموزش (امکانات جدید) ═══════════════════════════════════════ */
.mk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; padding: 0; list-style: none; font-size: .78rem; color: var(--mk-muted); }
.mk-crumbs a { color: var(--mk-muted); text-decoration: none; }
.mk-crumbs a:hover { color: var(--mk-brand-700); }
.mk-crumbs li + li::before { content: "‹"; margin-inline-end: .4rem; color: #cbd5e1; }

.mk-filter { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.mk-filter button { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--mk-line); background: #fff; font: inherit; font-size: .82rem; font-weight: 700; color: var(--mk-text); cursor: pointer; transition: all .2s; }
.mk-filter button:hover { border-color: var(--mk-brand); color: var(--mk-brand-700); }
.mk-filter button[aria-pressed="true"] { background: var(--mk-navy); border-color: var(--mk-navy); color: #fff; }

.mk-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .mk-layout { grid-template-columns: minmax(0, 1fr) 17rem; gap: 3rem; } }
.mk-toc { position: sticky; top: calc(var(--mk-header-h) + 1.25rem); align-self: start; display: grid; gap: .25rem; padding: 1rem; border-radius: 1.1rem; background: var(--mk-soft); border: 1px solid var(--mk-line); font-size: .82rem; }
.mk-toc b { margin-bottom: .35rem; font-size: .75rem; color: var(--mk-muted); }
.mk-toc a { display: block; padding: .4rem .6rem; border-radius: .6rem; color: var(--mk-text); text-decoration: none; border-inline-start: 2px solid transparent; }
.mk-toc a:hover, .mk-toc a.is-current { color: var(--mk-brand-700); background: #fff; border-color: var(--mk-brand); }
@media (max-width: 1023px) { .mk-toc { position: static; } }

.mk-prose { font-size: .98rem; line-height: 2.1; color: #334155; }
.mk-prose h2 { margin: 2.6rem 0 1rem; font-size: 1.35rem; font-weight: 800; color: var(--mk-ink); scroll-margin-top: calc(var(--mk-header-h) + 1rem); }
.mk-prose h2:first-child { margin-top: 0; }
.mk-prose p { margin: 0 0 1rem; }

.mk-steps { counter-reset: step; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.mk-step { position: relative; counter-increment: step; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; padding-bottom: 1.6rem; }
.mk-step::before { content: counter(step); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 1rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--mk-brand), #5a54c9); box-shadow: 0 10px 20px -10px rgb(67 102 176 / .8); position: relative; z-index: 1; }
.mk-step::after { content: ""; position: absolute; top: 2.9rem; bottom: .1rem; inset-inline-start: 1.33rem; width: 2px; background: linear-gradient(var(--mk-brand-100), transparent); }
.mk-step:last-child::after { display: none; }
.mk-step h3 { margin: .45rem 0 .35rem; font-size: 1.02rem; font-weight: 800; color: var(--mk-ink); }
.mk-step p { margin: 0; font-size: .92rem; line-height: 2.05; color: var(--mk-text); }
.mk-step .mk-shot { margin-top: 1rem; }

.mk-note { display: flex; gap: .8rem; padding: 1rem 1.1rem; border-radius: 1rem; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: .88rem; line-height: 2; }
.mk-note svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .25rem; color: #d97706; }
.mk-note--info { background: var(--mk-brand-50); border-color: var(--mk-brand-100); color: #1e3a8a; }
.mk-note--info svg { color: var(--mk-brand); }
.mk-where { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .5rem .8rem; border-radius: .8rem; background: #fff; border: 1px dashed var(--mk-brand-100); font-size: .82rem; color: var(--mk-brand-700); }

.mk-benefits { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .mk-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mk-benefits li { display: flex; gap: .65rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 1rem; background: #fff; border: 1px solid var(--mk-line); font-size: .9rem; line-height: 1.95; color: #334155; }
.mk-benefits svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .3rem; color: var(--mk-emerald); }

.mk-faq { border-radius: 1rem; background: #fff; border: 1px solid var(--mk-line); }
.mk-faq + .mk-faq { margin-top: .6rem; }
.mk-faq > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; font-weight: 700; color: var(--mk-ink); cursor: pointer; }
.mk-faq > summary::-webkit-details-marker { display: none; }
.mk-faq > summary .mk-chev { flex: none; }
.mk-faq[open] > summary .mk-chev { transform: rotate(180deg); }
.mk-faq > div { padding: 0 1.15rem 1.1rem; font-size: .9rem; line-height: 2.05; color: var(--mk-text); }

/* ═══ کسب درآمد ════════════════════════════════════════════════════════ */
.mk-earn-hero { position: relative; overflow: hidden; isolation: isolate; color: #e2e8f0; background: radial-gradient(80% 90% at 90% 10%, #3b3f9c 0%, #1b2450 40%, var(--mk-navy) 75%); }
.mk-earn-hero h1 { color: #fff; }
.mk-coins { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mk-coins span { position: absolute; bottom: -3rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 60%, #b45309); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .15); opacity: .5; animation: mk-rise 14s linear infinite; }
.mk-coins span:nth-child(1) { inset-inline-start: 8%; animation-delay: 0s; }
.mk-coins span:nth-child(2) { inset-inline-start: 22%; width: 1rem; height: 1rem; animation-delay: -4s; animation-duration: 18s; }
.mk-coins span:nth-child(3) { inset-inline-start: 46%; animation-delay: -8s; animation-duration: 16s; }
.mk-coins span:nth-child(4) { inset-inline-start: 64%; width: 1.1rem; height: 1.1rem; animation-delay: -2s; animation-duration: 20s; }
.mk-coins span:nth-child(5) { inset-inline-start: 82%; animation-delay: -11s; }
.mk-coins span:nth-child(6) { inset-inline-start: 93%; width: .9rem; height: .9rem; animation-delay: -6s; animation-duration: 15s; }
@keyframes mk-rise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: .55; } 90% { opacity: .4; } 100% { transform: translateY(-110vh) rotate(540deg); opacity: 0; } }

.mk-earn-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .mk-earn-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mk-earn-fig { padding: 1rem; border-radius: 1.1rem; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mk-earn-fig b { display: block; font-size: 1.45rem; font-weight: 800; color: #fff; }
.mk-earn-fig span { font-size: .78rem; color: #cbd5e1; }

.mk-calc { border-radius: 1.5rem; background: #fff; border: 1px solid var(--mk-line); box-shadow: var(--mk-shadow-lg); overflow: hidden; }
.mk-calc-body { display: grid; gap: 1.25rem; padding: 1.5rem; }
.mk-calc label { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; font-weight: 700; color: var(--mk-ink); }
.mk-calc label output { color: var(--mk-brand-700); }
.mk-calc select { width: 100%; margin-top: .5rem; padding: .65rem .8rem; border-radius: .8rem; border: 1px solid #cbd5e1; background: #fff; font: inherit; font-size: .88rem; }
.mk-range { width: 100%; margin-top: .65rem; accent-color: var(--mk-brand); height: 1.5rem; }
.mk-calc-result { padding: 1.4rem 1.5rem; color: #fff; background: linear-gradient(135deg, var(--mk-brand) 0%, #5a54c9 100%); }
.mk-calc-result small { display: block; font-size: .78rem; color: #dbe3ff; }
.mk-calc-result b { display: block; margin-top: .2rem; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem); font-weight: 800; }
.mk-calc-result p { margin: .5rem 0 0; font-size: .75rem; line-height: 1.9; color: #dbe3ff; }

.mk-flow { display: grid; gap: 1rem; counter-reset: flow; }
@media (min-width: 768px) { .mk-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mk-flow-item { position: relative; counter-increment: flow; padding: 1.4rem 1.2rem 1.2rem; border-radius: 1.25rem; background: #fff; border: 1px solid var(--mk-line); }
.mk-flow-item::before { content: counter(flow, persian); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: .8rem; border-radius: .85rem; font-weight: 800; color: var(--mk-brand-700); background: var(--mk-brand-50); border: 1px solid var(--mk-brand-100); }
.mk-flow-item h3 { margin: 0 0 .4rem; font-size: .98rem; font-weight: 800; color: var(--mk-ink); }
.mk-flow-item p { margin: 0; font-size: .86rem; line-height: 1.95; color: var(--mk-text); }
@media (min-width: 768px) {
    .mk-flow-item:not(:last-child)::after { content: ""; position: absolute; top: 2.6rem; inset-inline-end: -1rem; width: 1rem; height: 2px; background: repeating-linear-gradient(90deg, var(--mk-brand-100) 0 4px, transparent 4px 8px); }
}

/* ═══ ابزارهای کمکی (کلاس‌هایی که در باندل Tailwind زنده نیستند) ═══ */
.mk-container { max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .mk-container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .mk-container { padding-inline: 2rem; } }
.mk-section { padding-block: 4rem; }
@media (min-width: 1024px) { .mk-section { padding-block: 6rem; } }
.mk-h2 { margin: 0; font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.25rem); line-height: 1.6; font-weight: 800; color: var(--mk-ink); }
.mk-sub { margin: .9rem 0 0; font-size: 1rem; line-height: 2; color: var(--mk-text); }
.mk-kicker { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 999px; background: var(--mk-brand-50); border: 1px solid var(--mk-brand-100); font-size: .75rem; font-weight: 800; color: var(--mk-brand-700); }
.mk-kicker svg { width: .95rem; height: .95rem; }
.mk-dark .mk-kicker, .mk-earn-hero .mk-kicker { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .18); color: #c7d2fe; }
.mk-center { text-align: center; margin-inline: auto; }
.mk-maxw { max-width: 46rem; }
.mk-grid { display: grid; gap: 1.25rem; }
.mk-grid-2 { display: grid; gap: 1.25rem; }
.mk-grid-3 { display: grid; gap: 1.25rem; }
.mk-grid-5 { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .mk-grid-2, .mk-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .mk-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mk-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 768px) and (max-width: 1023px) { .mk-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mk-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .mk-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } .mk-split--wide { grid-template-columns: 5fr 6fr; gap: 3rem; } }
.mk-split > * { min-width: 0; }
.mk-hide-sm { display: none; }
@media (min-width: 640px) { .mk-hide-sm { display: inline; } }
.mk-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ═══ حرکت کمتر: همه‌ی انیمیشن‌ها خاموش، محتوا فوراً دیده شود ═══ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .mk-js [data-reveal] { opacity: 1; transform: none; }
    .mk-aurora, .mk-coins, .mk-progress { display: none; }
    .mk-marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .mk-marquee-track [aria-hidden="true"] { display: none; }
    .mk-tilt { transform: none; }
}

@media print {
    .mk-header, .mk-progress, .mk-drawer, footer { display: none !important; }
}
