/*
 * The visual landing pages of موشن‌ساز, صدرنشین and چندهوش
 * (tools/front/showcase + one view each). Loaded only there, after home.css
 * and front.css, so it reads their tokens and light theme. Accents come from
 * var(--purple*), so every colour palette works.
 *
 * Kept light on purpose (the owner, 2026-11-18): motion is transform and
 * opacity only, a section off screen is paused by showcase.js (.is-off), and
 * nothing here uses backdrop-filter or 3D.
 */
.sc {
    --sc-gutter: clamp(16px, 4.1vw, 74px);
    --sc-ease: cubic-bezier(.2, .8, .2, 1);
    --sc-action: color-mix(in srgb, var(--purple) 72%, #000);
    --sc-grad: linear-gradient(100deg, var(--purple-soft), var(--purple));
    --sc-c1: #ff8a5c;
    --sc-c2: #3fe0a0;
    --sc-c3: #6aa2ff;
    overflow-x: clip;
}
html[data-theme=light] .sc {
    --sc-grad: linear-gradient(100deg, color-mix(in srgb, var(--purple) 78%, #000), var(--purple-strong));
    --sc-c1: #c8501f;
    --sc-c2: #0f8a5c;
    --sc-c3: #2a63cf;
}
.sc-wrap { padding-inline: var(--sc-gutter); }
.sc-band { padding-block: clamp(48px, 6vw, 76px); }
.sc-band--tight { padding-block-start: 8px; }
.sc-off-top { padding-block-start: 0; }
.is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

.sc h1, .sc h2, .sc h3 { text-wrap: balance; }
.sc-h2 { margin: 0; font-size: clamp(25px, 3.6vw, 40px); font-weight: 800; line-height: 1.45; }
.sc-h2--center { text-align: center; }
.sc-grad { background: var(--sc-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.sc-note--center { text-align: center; }
.sc-lead { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.95; }

.sc-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px;
    border: 0; border-radius: 14px; background: var(--sc-action); color: #fff; font: inherit; font-size: 16px;
    font-weight: 800; text-decoration: none; cursor: pointer;
    transition: transform 180ms var(--sc-ease), background-color 180ms;
}
.sc-btn:hover { background: color-mix(in srgb, var(--purple) 86%, #000); color: #fff; }
.sc-btn:active { transform: scale(.97); }
.sc :focus-visible { outline: 2px solid var(--focus, var(--purple-soft)); outline-offset: 2px; }

.sc-crumbs { position: relative; z-index: 2; padding: 18px var(--sc-gutter) 0; }
.sc-crumbs .crumbs ol { margin: 0; }

/* ---------- Style cards: drawn here, one per look of the motion maker ---------- */
.st {
    position: relative; display: block; overflow: hidden; width: 100%; height: 100%;
    border-radius: 1.1em; background: var(--st-bg); color: var(--st-fg); font-size: 10px;
    isolation: isolate;
}
.st i { position: absolute; display: block; }
.st b {
    position: absolute; inset-inline: .9em; bottom: 1.7em; z-index: 2; font-size: 2.4em; font-weight: 800;
    line-height: 1.45; color: var(--st-fg);
}
.st small {
    position: absolute; inset-inline: 1.6em; top: 1.6em; z-index: 2; height: .5em; width: 42%;
    border-radius: 1em; background: var(--st-fg); opacity: .4;
}
.st--orb i:nth-of-type(1) {
    inset-inline-start: 50%; top: 24%; width: 9em; height: 9em; margin-inline-start: -4.5em; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--st-a) 42%, color-mix(in srgb, var(--st-a) 45%, #000) 100%);
}
.st--orb i:nth-of-type(2) {
    inset-inline: 12%; top: 58%; height: 1.1em; border-radius: 50%;
    background: color-mix(in srgb, var(--st-a) 45%, transparent);
}
.st--bars i { bottom: 8em; width: 1.9em; border-radius: .5em .5em 0 0; background: var(--st-a); transform-origin: bottom; }
.st--bars i:nth-of-type(1) { inset-inline-start: 14%; height: 5em; opacity: .45; }
.st--bars i:nth-of-type(2) { inset-inline-start: 34%; height: 8.5em; opacity: .65; }
.st--bars i:nth-of-type(3) { inset-inline-start: 54%; height: 12em; opacity: .85; }
.st--bars i:nth-of-type(4) { inset-inline-start: 74%; height: 16em; }
.st--rings i { inset-inline-start: 50%; top: 34%; border: .34em solid var(--st-a); border-radius: 50%; transform: translate(-50%, -50%); }
[dir=rtl] .st--rings i { transform: translate(50%, -50%); }
.st--rings i:nth-of-type(1) { width: 4.4em; height: 4.4em; background: var(--st-a); }
.st--rings i:nth-of-type(2) { width: 9em; height: 9em; opacity: .65; }
.st--rings i:nth-of-type(3) { width: 14em; height: 14em; opacity: .32; }
.st--split i:nth-of-type(1) { inset: 0 0 52%; background: var(--st-a); }
.st--split i:nth-of-type(2) {
    inset-inline-end: 14%; top: 34%; width: 7.5em; height: 7.5em; border-radius: 1.2em;
    background: var(--st-fg); transform: rotate(-9deg);
}
.st--type i:nth-of-type(1) { inset-inline: 1.5em; top: 24%; height: 2.6em; border-radius: .4em; background: var(--st-a); }
.st--type i:nth-of-type(2) { inset-inline: 1.5em 40%; top: 37%; height: 1.2em; border-radius: .4em; background: var(--st-fg); opacity: .55; }
.st--type i:nth-of-type(3) { inset-inline: 1.5em 24%; top: 45%; height: 1.2em; border-radius: .4em; background: var(--st-fg); opacity: .3; }
.st--type b { font-size: 3em; }

/* The big preview plays its card. */
.sc-screen .st { font-size: clamp(14px, 2.3vw, 21px); border-radius: 0; }
.sc-screen .st b { bottom: calc(7% + 72px); }
.sc-screen .st--bars i { bottom: calc(7% + 150px); }
.sc-screen .st--orb i:nth-of-type(1) { animation: sc-float 3.6s ease-in-out infinite alternate; }
.sc-screen .st--bars i { animation: sc-grow 2.4s var(--sc-ease) infinite alternate; }
.sc-screen .st--bars i:nth-of-type(2) { animation-delay: .2s; }
.sc-screen .st--bars i:nth-of-type(3) { animation-delay: .4s; }
.sc-screen .st--bars i:nth-of-type(4) { animation-delay: .6s; }
.sc-screen .st--rings i:nth-of-type(2) { animation: sc-pulse 2.8s ease-in-out infinite alternate; }
.sc-screen .st--rings i:nth-of-type(3) { animation: sc-pulse 2.8s .4s ease-in-out infinite alternate; }
.sc-screen .st--split i:nth-of-type(2) { animation: sc-tilt 3.2s ease-in-out infinite alternate; }
.sc-screen .st--type i:nth-of-type(1) { animation: sc-grow-x 2.6s var(--sc-ease) infinite alternate; transform-origin: right; }
@keyframes sc-float { to { transform: translate3d(0, -1.1em, 0); } }
@keyframes sc-grow { from { transform: scaleY(.45); } }
@keyframes sc-pulse { to { opacity: .12; } }
@keyframes sc-tilt { to { transform: rotate(8deg) translate3d(0, -.6em, 0); } }
@keyframes sc-grow-x { from { transform: scaleX(.4); } }

/* ---------- موشن‌ساز: hero ---------- */
.mo-hero { position: relative; display: grid; align-items: end; min-height: min(680px, 86vh); overflow: hidden; }
.mo-wall { position: absolute; inset: -30% -12%; display: flex; gap: 14px; transform: rotate(-8deg); }
.mo-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; animation: mo-up 52s linear infinite; will-change: transform; }
.mo-col:nth-child(even) { animation-direction: reverse; animation-duration: 64s; }
.mo-col .st { height: auto; aspect-ratio: 9 / 16; flex: none; font-size: clamp(9px, 1.15vw, 14px); }
@keyframes mo-up { to { transform: translate3d(0, -50%, 0); } }
.mo-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, var(--bg) 8%, color-mix(in srgb, var(--bg) 78%, transparent) 46%, color-mix(in srgb, var(--bg) 18%, transparent) 82%);
}
.mo-hero-in { position: relative; z-index: 2; padding-block: 40px; }
.mo-hero h1 { margin: 0; font-size: clamp(36px, 6.4vw, 78px); font-weight: 800; line-height: 1.35; }
.mo-ask {
    display: flex; align-items: center; gap: 10px; max-width: 760px; margin-block-start: 22px; padding: 8px;
    border: 1px solid var(--stroke); border-radius: 18px; background: var(--panel);
}
.mo-ask span { flex: 1; min-width: 0; padding-inline: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mo-ask span::after {
    content: ""; display: inline-block; width: 2px; height: 1.05em; margin-inline-start: 3px; vertical-align: middle;
    background: var(--purple); animation: mo-blink 1s steps(1) infinite;
}
@keyframes mo-blink { 50% { opacity: 0; } }

/* ---------- موشن‌ساز: the desk ---------- */
.mo-desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px) minmax(0, 1fr); gap: 26px; align-items: center; margin-block-start: 30px; }
.mo-ctl { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.mo-ctl h3 { margin: 0 0 8px; color: var(--muted); font-size: 14px; font-weight: 700; }
.mo-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sc-screen {
    position: relative; width: 100%; max-height: 560px; aspect-ratio: var(--ar, 9 / 16); overflow: hidden;
    border: 1px solid var(--stroke); border-radius: 26px; background: #000;
    box-shadow: 0 34px 80px -34px color-mix(in srgb, var(--purple) 70%, transparent);
}
.mo-cap { position: absolute; inset-inline: 8%; bottom: 7%; z-index: 3; height: 62px; overflow: hidden; border-radius: 14px; background: #120a2a; }
.mo-cap video { position: absolute; inset: 50% 0 auto; display: block; width: 100%; aspect-ratio: 9 / 16; transform: translateY(-56%); }
.mo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.mo-pick {
    position: relative; padding: 0; overflow: hidden; aspect-ratio: 9 / 16; border: 2px solid transparent; border-radius: 10px;
    background: var(--panel-2); cursor: pointer; transition: transform 180ms var(--sc-ease), border-color 180ms;
}
.mo-pick:hover { transform: translate3d(0, -3px, 0); }
.mo-pick[aria-pressed=true] { border-color: var(--purple); }
.mo-pick .st { font-size: 4px; border-radius: 0; }
.mo-caps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mo-caps .mo-pick { aspect-ratio: 2.2; }
.mo-caps img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; }
.mo-frames { display: flex; gap: 10px; align-items: flex-end; }
.mo-frame {
    display: grid; place-items: center; width: 62px; height: 62px; padding: 0; border: 2px solid var(--stroke); border-radius: 14px;
    background: var(--panel); cursor: pointer; transition: border-color 180ms;
}
.mo-frame i { display: block; border: 2px solid var(--muted); border-radius: 4px; }
.mo-frame:hover { border-color: var(--muted); }
.mo-frame[aria-pressed=true] { border-color: var(--purple); }
.mo-frame[aria-pressed=true] i { border-color: var(--purple); background: color-mix(in srgb, var(--purple) 22%, transparent); }
.mo-voices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mo-voice {
    display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 66px; padding: 10px 2px 6px;
    border: 2px solid var(--stroke); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit;
    font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color 180ms;
}
.mo-voice:hover { border-color: var(--muted); }
.mo-voice[aria-pressed=true] { border-color: var(--purple); }
.mo-bars { display: flex; align-items: center; gap: 2px; height: 22px; }
.mo-bars i { display: block; width: 3px; height: 30%; border-radius: 2px; background: var(--purple); }
.mo-bars i:nth-child(2) { height: 70%; animation-delay: .12s; }
.mo-bars i:nth-child(3) { height: 100%; animation-delay: .24s; }
.mo-bars i:nth-child(4) { height: 55%; animation-delay: .36s; }
.mo-bars i:nth-child(5) { height: 35%; animation-delay: .48s; }
.mo-voice.is-playing .mo-bars i { animation-name: mo-wave; animation-duration: .7s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; }
@keyframes mo-wave { to { transform: scaleY(.3); } }
.mo-lens { display: flex; gap: 6px; }
.mo-lens button {
    flex: 1; min-height: 46px; border: 2px solid var(--stroke); border-radius: 12px; background: var(--panel); color: var(--text);
    font: inherit; font-weight: 800; cursor: pointer; transition: border-color 180ms, color 180ms;
}
.mo-lens button:hover { border-color: var(--muted); }
.mo-lens button[aria-pressed=true] { border-color: var(--purple); color: var(--purple-soft); }
html[data-theme=light] .mo-lens button[aria-pressed=true] { color: var(--purple-strong); }
.mo-track { position: relative; display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 10px; overflow: hidden; border: 1px solid var(--stroke); border-radius: 14px; background: var(--panel); direction: ltr; }
.mo-track div { display: flex; gap: 3px; height: 15px; }
.mo-track div i { display: block; border-radius: 4px; background: var(--purple); }
.mo-track div:nth-child(1) i:nth-child(odd) { opacity: .6; }
.mo-track div:nth-child(2) i { background: var(--purple-soft); }
.mo-track div:nth-child(3) i { background: #c78a1e; }
.mo-head { position: absolute; top: 0; bottom: 0; left: 10px; width: calc(100% - 20px); animation: mo-head 6s linear infinite; }
.mo-head::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--text); }
@keyframes mo-head { to { transform: translate3d(100%, 0, 0); } }

/* ---------- موشن‌ساز: idea to video ---------- */
.mo-flow { display: grid; grid-template-columns: 1fr 70px 1.3fr 70px 1fr; align-items: center; }
.mo-step { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; text-align: center; font-size: 20px; font-weight: 800; }
.mo-bubble { display: grid; place-items: center; min-height: 190px; padding: 18px; border: 1px solid var(--stroke); border-radius: 20px 20px 20px 4px; background: var(--panel); font-size: 15px; font-weight: 500; line-height: 1.9; }
.mo-fan { position: relative; width: 100%; height: 210px; }
.mo-fan .st { position: absolute; top: 10px; left: 50%; width: 112px; height: auto; aspect-ratio: 9 / 16; margin-left: -56px; border: 2px solid var(--panel-2); font-size: 6px; transform-origin: 50% 120%; }
.mo-fan .st:nth-child(1) { transform: rotate(-20deg); }
.mo-fan .st:nth-child(2) { z-index: 2; transform: translateY(-4px); }
.mo-fan .st:nth-child(3) { transform: rotate(20deg); }
.mo-phone { width: 124px; aspect-ratio: 9 / 16; overflow: hidden; border: 3px solid var(--stroke); border-radius: 20px; }
.mo-phone .st { font-size: 6.5px; border-radius: 0; }
.mo-arrow { height: 3px; background: repeating-linear-gradient(to left, var(--purple) 0 10px, transparent 10px 18px); }
.sc-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-block-start: 34px; }
.sc-three div { padding: 26px 24px; border: 1px solid var(--stroke); border-radius: 22px; background: var(--panel); }
.sc-three b { display: block; font-size: clamp(28px, 4vw, 46px); font-weight: 800; line-height: 1.4; }
.sc-three span { color: var(--muted); }

/* ---------- صدرنشین ---------- */
.se-hero { position: relative; overflow: hidden; padding-block: 8px 44px; }
.se-covers { position: absolute; inset: -10% -8%; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: .38; transform: rotate(-5deg); }
.se-row { display: flex; gap: 14px; width: max-content; animation: se-slide 70s linear infinite; will-change: transform; }
.se-row:nth-child(2) { animation-direction: reverse; animation-duration: 88s; }
.se-row img { display: block; width: 280px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
@keyframes se-slide { to { transform: translate3d(50%, 0, 0); } }
.se-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 50% 50%, color-mix(in srgb, var(--bg) 52%, transparent), color-mix(in srgb, var(--bg) 94%, transparent)); }
.se-hero .sc-crumbs { margin-block-end: 22px; }
.se-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.se-hero h1 { margin: 0 0 24px; font-size: clamp(34px, 5vw, 62px); font-weight: 800; line-height: 1.4; }
.se-forge { position: relative; overflow: hidden; border-radius: 18px; background: #f7f8fa; color: #14161c; box-shadow: 0 34px 90px -34px color-mix(in srgb, var(--purple) 60%, transparent); }
.se-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 12px; background: #e9ebf0; }
.se-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c2c6d0; }
.se-bar span { margin-inline-start: 8px; color: #60656f; font-size: 12px; direction: ltr; }
.se-body { display: flex; flex-direction: column; gap: 9px; padding: 14px 14px 58px; }
.se-body img { display: block; width: 100%; height: auto; aspect-ratio: 2; object-fit: cover; border-radius: 10px; }
.se-body strong { font-size: clamp(16px, 2vw, 21px); font-weight: 800; line-height: 1.6; }
.se-line { height: 9px; border-radius: 5px; background: #d6d9e0; }
.se-line--s { width: 72%; }
.se-line--h { width: 46%; height: 13px; background: #9aa0ad; }
.se-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.se-chips span { padding: 1px 9px; border-radius: 7px; background: #dff8f6; color: #0a5e59; font-size: 13px; font-weight: 700; }
.se-in-seq { animation: se-in 700ms var(--sc-ease) both; }
@keyframes se-in { from { opacity: .15; transform: translate3d(0, 12px, 0); } }
.se-d1 { animation-delay: .3s; } .se-d2 { animation-delay: 1s; } .se-d3 { animation-delay: 1.5s; } .se-d4 { animation-delay: 2s; }
.se-d5 { animation-delay: 2.5s; } .se-d6 { animation-delay: 3s; } .se-d7 { animation-delay: 3.5s; }
.se-stamp { position: absolute; inset-inline-end: 14px; bottom: 14px; padding: 7px 16px; border-radius: 12px; background: #0b6f69; color: #fff; font-size: 14px; font-weight: 800; animation: se-stamp 500ms 4.2s var(--sc-ease) both; }
@keyframes se-stamp { from { opacity: 0; transform: scale(.8); } }
.se-rate { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 18px; }
.se-rate button { min-height: 46px; padding: 0 18px; border: 2px solid var(--stroke); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; transition: border-color 180ms; }
.se-rate button:hover { border-color: var(--muted); }
.se-rate button[aria-pressed=true] { border-color: var(--purple); }
.se-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; margin-block-start: 22px; }
.se-cal b { color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
.se-day { position: relative; aspect-ratio: 1.25; overflow: hidden; padding: 3px 7px; border: 1px solid var(--stroke); border-radius: 10px; background: var(--panel); color: var(--muted); font-size: 13px; }
.se-day img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; animation: se-pop 400ms var(--sc-ease) both; }
@keyframes se-pop { from { opacity: 0; transform: scale(1.25); } }
.sc-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.se-graph { display: block; width: 100%; height: auto; }
.se-graph path { fill: none; stroke: var(--purple); stroke-width: 3; stroke-dasharray: 9 9; animation: se-flow 1.1s linear infinite; }
@keyframes se-flow { to { stroke-dashoffset: -18; } }
.se-ba { position: relative; aspect-ratio: 16 / 11; overflow: hidden; border: 1px solid var(--stroke); border-radius: 20px; --x: 50%; direction: ltr; }
.se-ba > div { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px; direction: rtl; }
.se-old { background: #dcdde0; }
.se-old .se-line { background: #b4b6bc; }
.se-new { background: #f7f8fa; clip-path: inset(0 0 0 var(--x)); }
.se-new img { display: block; width: 100%; height: 42%; object-fit: cover; border-radius: 10px; }
.se-new strong { color: #14161c; font-size: clamp(15px, 2vw, 20px); font-weight: 800; }
.se-tag { position: absolute; top: 12px; z-index: 3; padding: 0 10px; border-radius: 8px; background: #14161c; color: #fff; font-size: 13px; font-weight: 800; }
.se-tag--a { left: 12px; } .se-tag--b { right: 12px; }
.se-hand { position: absolute; top: 0; bottom: 0; left: var(--x); z-index: 3; width: 3px; background: var(--purple); pointer-events: none; }
.se-hand::after { content: "⇆"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sc-action); color: #fff; font-size: 20px; font-weight: 800; transform: translate(-50%, -50%); }
.se-ba input { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.se-gates { display: flex; align-items: center; margin-block-start: 40px; }
.se-gates > i { flex: 1; height: 4px; background: var(--purple); opacity: .55; }
.se-gate { display: grid; flex: none; place-items: center; width: 58px; height: 58px; border: 2px solid var(--stroke); border-radius: 50%; background: var(--panel); }
.se-gate svg { width: 24px; height: 24px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.se-gate--lock { border-color: #d9962a; box-shadow: 0 0 0 7px color-mix(in srgb, #d9962a 15%, transparent); }
.se-gate-names { display: flex; justify-content: space-between; gap: 6px; margin-block-start: 10px; color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
.se-gate-names span { flex: 0 1 92px; }
.se-cost { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 40px; align-items: center; margin-block-start: 30px; }
.se-ring { display: block; width: 100%; height: auto; transform: rotate(-90deg); }
.se-ring circle { fill: none; stroke-width: 22; }
.se-legend { display: flex; flex-direction: column; gap: 14px; font-size: clamp(19px, 2.4vw, 28px); font-weight: 800; }
.se-legend span { display: flex; align-items: center; gap: 12px; }
.se-legend i { flex: none; width: 22px; height: 22px; border-radius: 7px; }
.se-stacks { display: flex; align-items: flex-end; justify-content: center; gap: clamp(18px, 5vw, 64px); height: 290px; margin-block-start: 26px; }
.se-stack { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; }
.se-stack i { display: block; width: clamp(58px, 10vw, 118px); border-radius: 8px 8px 3px 3px; background: repeating-linear-gradient(to bottom, #f4f5f8 0 6px, #c8ccd6 6px 8px); border: 1px solid var(--stroke); }

/* ---------- چندهوش ---------- */
.ch-hero { position: relative; overflow: hidden; background: radial-gradient(60% 70% at 50% 45%, color-mix(in srgb, var(--purple) 20%, transparent), transparent 70%); }
.ch-title { position: relative; z-index: 2; padding-block-start: 24px; text-align: center; }
.ch-title h1 { margin: 0; font-size: clamp(34px, 6vw, 72px); font-weight: 800; line-height: 1.4; }
.ch-canvas { display: block; width: 100%; height: clamp(430px, 56vw, 620px); }
.ch-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-block: 6px 10px; }
.ch-q, .ch-m {
    min-height: 46px; padding: 0 18px; border: 2px solid var(--stroke); border-radius: 999px; background: var(--panel); color: var(--text);
    font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color 180ms, opacity 180ms;
}
.ch-q:hover { border-color: var(--muted); }
.ch-q[aria-pressed=true] { border-color: var(--text); }
.ch-m { display: inline-flex; align-items: center; gap: 8px; direction: ltr; }
.ch-m::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.ch-m[aria-pressed=true] { border-color: var(--c); }
.ch-m[aria-pressed=false] { opacity: .55; }
.ch-verdict { margin: 18px auto 0; padding: 20px 24px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--panel); text-align: center; }
.ch-verdict b { display: block; font-size: clamp(19px, 2.6vw, 28px); font-weight: 800; line-height: 1.6; }
.ch-braid { display: block; width: 100%; height: auto; margin-block-start: 24px; }
.ch-braid path { fill: none; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1400; animation: ch-draw 7s var(--sc-ease) infinite; }
.ch-braid path:nth-of-type(2) { animation-delay: .25s; }
.ch-braid path:nth-of-type(3) { animation-delay: .5s; }
@keyframes ch-draw { from { stroke-dashoffset: 1400; } 60%, 100% { stroke-dashoffset: 0; } }
.ch-braid rect { fill: var(--panel-2); stroke: var(--stroke); }
.ch-braid text { fill: var(--text); font-family: inherit; font-size: 22px; font-weight: 800; text-anchor: middle; }
.ch-braid .ch-sum rect { fill: var(--sc-action); stroke: none; }
.ch-braid .ch-sum text { fill: #fff; }
.ch-purse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-block-start: 34px; text-align: center; }
.ch-pot { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: clamp(17px, 2.2vw, 24px); font-weight: 800; }
.ch-coins { display: flex; flex-wrap: wrap-reverse; align-content: flex-start; justify-content: center; gap: 5px; width: 130px; height: 130px; padding: 16px; border: 1px solid var(--stroke); border-radius: 32px; background: var(--panel); }
.ch-coins i { width: 27px; height: 27px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe29a, #e39a1f 70%); }
.ch-coins--spent i { background: radial-gradient(circle at 35% 30%, #a8f5ef, #148f89 70%); }

/* ---------- Explanation and questions ---------- */
.sc-about { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--stroke); border-radius: 24px; background: var(--panel); }
.sc-about > h2 { margin: 0 0 18px; font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; line-height: 1.5; }
.sc-about-body { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 40px; max-height: 190px; overflow: hidden; }
.sc-about-body::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(to top, var(--panel), color-mix(in srgb, var(--panel) 0%, transparent)); pointer-events: none; }
.sc-about.is-open .sc-about-body { max-height: none; overflow: visible; }
.sc-about.is-open .sc-about-body::after { display: none; }
.sc-about h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; line-height: 1.6; }
.sc-about p, .sc-qa p { margin: 0; color: var(--muted); line-height: 1.95; }
.sc-about p + p { margin-block-start: 8px; }
.sc-more {
    display: inline-flex; align-items: center; gap: 10px; min-height: 46px; margin-block-start: 16px; padding: 0 20px;
    border: 1px solid var(--stroke); border-radius: 12px; background: var(--panel-2); color: var(--text); font: inherit; font-weight: 800;
    cursor: pointer; transition: border-color 180ms;
}
.sc-more:hover { border-color: var(--purple); }
.sc-more::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 180ms var(--sc-ease); }
.sc-about.is-open .sc-more::after { transform: translateY(2px) rotate(225deg); }
.sc-faq { margin-block-start: 48px; }
.sc-faq > h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.5; }
.sc-qa { border-bottom: 1px solid var(--stroke); }
.sc-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 12px; font-size: clamp(16px, 1.8vw, 18px); font-weight: 800; line-height: 1.7; list-style: none; cursor: pointer; transition: color 180ms; }
.sc-qa summary::-webkit-details-marker { display: none; }
.sc-qa summary:hover { color: var(--purple-soft); }
html[data-theme=light] .sc-qa summary:hover { color: var(--purple-strong); }
.sc-qa summary::after { content: "+"; display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); color: var(--text); font-size: 22px; font-weight: 500; line-height: 1; transition: transform 180ms var(--sc-ease); }
.sc-qa[open] summary::after { transform: rotate(45deg); }
.sc-qa p { padding-block-end: 20px; }
.sc-end { padding: clamp(40px, 6vw, 56px) 24px; border: 1px solid var(--stroke); border-radius: 28px; background: radial-gradient(90% 140% at 50% 120%, color-mix(in srgb, var(--purple) 34%, transparent), transparent 65%), var(--panel); text-align: center; }
.sc-end h2 { margin: 0 0 20px; font-size: clamp(27px, 4.2vw, 46px); font-weight: 800; line-height: 1.5; }
.sc-siblings { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-block-start: 22px; }
.sc-siblings a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.sc-siblings a:hover { color: var(--text); }

@media (max-width: 980px) {
    .mo-desk { grid-template-columns: minmax(0, 1fr); }
    .mo-stage { order: -1; width: 100%; max-width: 330px; margin-inline: auto; }
    .se-in, .sc-two, .se-cost { grid-template-columns: minmax(0, 1fr); }
    .se-ring { max-width: 240px; margin-inline: auto; }
    .mo-flow { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .mo-arrow { width: 3px; height: 40px; margin-inline: auto; background: repeating-linear-gradient(to bottom, var(--purple) 0 10px, transparent 10px 18px); }
    .sc-about-body { grid-template-columns: minmax(0, 1fr); max-height: 230px; }
}
@media (max-width: 560px) {
    .mo-col:nth-child(n+4) { display: none; }
    .se-row { animation: none; }
    .mo-grid:not(.mo-caps) { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .sc-three { grid-template-columns: minmax(0, 1fr); }
    .se-stacks { height: 230px; }
    .se-gate { width: 44px; height: 44px; }
    .se-gate svg { width: 19px; height: 19px; }
    .se-gate-names { font-size: 12px; }
    .ch-coins { width: 92px; height: 92px; padding: 9px; gap: 3px; border-radius: 22px; }
    .ch-coins i { width: 18px; height: 18px; }
    .mo-ask span { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .sc *, .sc *::before, .sc *::after { animation: none !important; transition: none !important; }
}
