/* شاشة المعاينة بأول الصفحة: كل كلمة بالعنوان إلها مشهد بجهازه وقياسه
   ريلز = موبايل بالطول · فيديو = موبايل بالعرض · عرض = داتا شو بقاعة · تصميم = لوحة رسم
   موقع = لابتوب + موبايل يتصفحون نفس الموقع · نظام = شاشة + موبايل + إشعارات · تطبيق = أندرويد + آيفون
   القياسات كلها بوحدات الحاوية (cqw/cqh) حتى المشهد يكبر ويصغر وياه الشاشة */
.mon-screen { position: relative; aspect-ratio: 6 / 5; container-type: size; overflow: hidden; cursor: pointer; background: radial-gradient(120% 90% at 50% 0%, #1b1830, #0a090e 72%); -webkit-tap-highlight-color: transparent; }
@media (min-width: 960px) { .mon-screen { aspect-ratio: 16 / 11; } }
.mon-bar b { font-weight: 600; color: var(--paper); transition: opacity .3s; }
.stg { position: absolute; inset: 0; }
.scn { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; --k: var(--c-video); }
.scn.on { opacity: 1; visibility: visible; transition: opacity .6s; }
.scn .glow { position: absolute; inset: 0; background: radial-gradient(42% 58% at 50% 52%, color-mix(in srgb, var(--k) 34%, transparent), transparent 72%); }
.s-video { --k: #6cb8ff; }
.dim { position: absolute; bottom: 4cqh; left: 4cqw; font-size: max(10px, 2.6cqh); color: rgba(255,255,255,.6); background: rgba(0,0,0,.4); padding: .45em .8em; border-radius: 6px; direction: ltr; }

/* ───── الأجهزة ───── */
.dev { position: absolute; margin: 0; transition: transform .95s cubic-bezier(.2,.9,.25,1); }
.dev .scr { position: absolute; overflow: hidden; background: #000; }
.dev .scr img, .dev .scr video { display: block; width: 100%; }
.dev .scr video, .dev .scr > img:not(.roll) { height: 100%; object-fit: cover; object-position: top; }
.roll { will-change: transform; }

.stg .phone { --r: 5.6cqh; --b: 1.1cqh; background: #0c0c11; border-radius: var(--r); box-shadow: 0 0 0 .35cqh #2d2c36, inset 0 0 0 .25cqh #3c3b47, 0 3cqh 7cqh -2cqh rgba(0,0,0,.85); }
.stg .phone .scr { inset: var(--b); border-radius: calc(var(--r) - var(--b)); }
.stg .phone::after { content: ''; position: absolute; z-index: 2; top: calc(var(--b) + 1.3%); left: 50%; width: 27%; height: 3%; transform: translateX(-50%); background: #000; border-radius: 99px; }

/* ريلز: موبايل بالطول بالنص */
.stg .ph-v { height: 84cqh; aspect-ratio: 9 / 19.5; top: 8cqh; left: 50%; translate: -50% 0; }
.s-reel:not(.on) .ph-v { transform: translateY(10cqh) scale(.9); }
/* فيديو: نفس الموبايل يندار بالعرض */
.stg .ph-h { --r: min(5.2cqw, 9cqh); --b: min(1cqw, 1.8cqh); width: min(84cqw, 150cqh); aspect-ratio: 19.5 / 9; top: 50%; left: 50%; translate: -50% -50%; }
.stg .ph-h .scr video { object-fit: contain; }
.stg .ph-h::after { top: 50%; left: calc(var(--b) + 1.2%); width: 1.4%; height: 27%; transform: translateY(-50%); }
.s-video:not(.on) .ph-h { transform: rotate(-90deg) scale(.5); }

/* ───── عرض تقديمي: داتا شو بقاعة ───── */
.s-deck { background: radial-gradient(75% 60% at 50% 28%, #1d1b2b, #060609 78%); }
.hall { position: absolute; inset: 0; }
.pscr { position: absolute; top: 6cqh; left: 50%; translate: -50% 0; width: min(80cqw, 112cqh); aspect-ratio: 16 / 9; background: #0b0b0f; border-radius: .4cqh; overflow: hidden; box-shadow: 0 0 0 .55cqh #dcd8cf, 0 0 0 1cqh #8f8b82, 0 0 9cqh rgba(255,248,225,.16); transition: transform .9s cubic-bezier(.2,.9,.25,1); }
.s-deck:not(.on) .pscr { transform: scaleY(.04); }
.sld img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s; }
.sld img.on { opacity: 1; animation: stKb 2.6s ease-out both; }
@keyframes stKb { from { transform: scale(1.06); } to { transform: none; } }
.beam { position: absolute; top: 6cqh; bottom: 15cqh; left: 50%; translate: -50% 0; width: min(80cqw, 112cqh); clip-path: polygon(0 0, 100% 0, 53% 100%, 47% 100%); background: linear-gradient(0deg, rgba(255,248,220,.32), rgba(255,248,220,.03) 85%); mix-blend-mode: screen; animation: stFlick 3.2s steps(1) infinite; }
@keyframes stFlick { 0%, 100% { opacity: .9; } 47% { opacity: .78; } 52% { opacity: .95; } }
.projector { position: absolute; left: 50%; bottom: 12cqh; width: 10cqh; height: 4.4cqh; translate: -50% 0; border-radius: 1cqh; background: linear-gradient(#3d3c4a, #1c1b24); box-shadow: 0 .6cqh 1.6cqh rgba(0,0,0,.6); }
.projector::after { content: ''; position: absolute; left: 50%; top: -1cqh; width: 3cqh; height: 3cqh; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, #fffbe6 0 30%, #c9b98a 45%, #2a2933 70%); box-shadow: 0 0 2.6cqh rgba(255,246,210,.7); }
.crowd { position: absolute; left: 0; right: 0; bottom: -3cqh; height: 19cqh; display: flex; justify-content: center; }
.crowd i { flex: 0 0 11.5cqw; margin: 0 -1.2cqw; height: 100%; background: radial-gradient(circle at 50% 30%, #0f0e15 0 23%, transparent 24%), radial-gradient(ellipse 48% 56% at 50% 100%, #0f0e15 0 99%, transparent 100%); }
.crowd i:nth-child(even) { translate: 0 2.6cqh; filter: brightness(1.25); }

/* ───── تصميم: لوحة رسم ───── */
.s-design { --k: var(--c-fx); background: #13121a radial-gradient(circle, rgba(255,255,255,.075) 1px, transparent 1.5px) 0 0 / 3.4cqh 3.4cqh; }
.board { position: absolute; inset: 0; }
.art { position: absolute; left: 50%; top: 9cqh; height: 74cqh; aspect-ratio: 4 / 5; translate: -50% 0; background: #1d1a2a; box-shadow: 0 2.4cqh 6cqh rgba(0,0,0,.6); }
.art img { width: 100%; height: 100%; object-fit: cover; display: block; clip-path: inset(0 0 100% 0); }
.s-design.on .art img { animation: stArt 1.5s .35s cubic-bezier(.65,0,.25,1) forwards; }
@keyframes stArt { to { clip-path: inset(0 0 0 0); } }
.sel { position: absolute; inset: -.7cqh; border: .3cqh solid #4aa3ff; opacity: 0; }
.s-design.on .sel { animation: stFade .3s 1.9s forwards; }
@keyframes stFade { to { opacity: 1; } }
.sel b { position: absolute; width: 1.9cqh; height: 1.9cqh; background: #fff; border: .3cqh solid #4aa3ff; }
.sel b:nth-child(1) { top: -1.1cqh; left: -1.1cqh; } .sel b:nth-child(2) { top: -1.1cqh; right: -1.1cqh; }
.sel b:nth-child(3) { bottom: -1.1cqh; left: -1.1cqh; } .sel b:nth-child(4) { bottom: -1.1cqh; right: -1.1cqh; }
.sel span { position: absolute; bottom: -5cqh; left: 50%; translate: -50% 0; background: #4aa3ff; color: #fff; font-size: max(9px, 2.3cqh); padding: .3em .7em; border-radius: 4px; white-space: nowrap; direction: ltr; }
.tools, .layers { position: absolute; padding: 1.4cqh; background: #1f1d2a; border: 1px solid rgba(255,255,255,.06); border-radius: 1.8cqh; display: grid; gap: 1.3cqh; }
.tools { right: 3cqw; top: 50%; translate: 0 -50%; }
.tools i { width: 4.6cqh; height: 4.6cqh; border-radius: 1.1cqh; background: rgba(255,255,255,.07); }
.tools i:nth-child(2) { background: color-mix(in srgb, var(--c-fx) 65%, transparent); }
.layers { left: 3cqw; top: 9cqh; width: 17cqw; }
.layers i { height: 3.4cqh; border-radius: .8cqh; background: rgba(255,255,255,.07); }
.layers i:first-child { background: rgba(74,163,255,.38); }
.swatch { position: absolute; left: 3cqw; bottom: 10cqh; display: grid; grid-template-columns: repeat(3, auto); gap: 1.1cqh; }
.swatch i { width: 4.2cqh; height: 4.2cqh; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.swatch i:nth-child(1) { background: #1d3c8f; } .swatch i:nth-child(2) { background: #3b82f6; } .swatch i:nth-child(3) { background: #ffc24a; }
.swatch i:nth-child(4) { background: #ff6b8b; } .swatch i:nth-child(5) { background: #fff; }
.cur { position: absolute; left: 58%; top: 62%; width: 5.4cqh; height: 5.4cqh; fill: #fff; stroke: #111; stroke-width: 1.3; stroke-linejoin: round; filter: drop-shadow(0 .5cqh .7cqh rgba(0,0,0,.5)); }
.s-design.on .cur { animation: stCur 5s ease-in-out infinite; }
@keyframes stCur { 0%, 100% { transform: none; } 25% { transform: translate(-16cqw, -30cqh); } 50% { transform: translate(10cqw, -12cqh); } 75% { transform: translate(-6cqw, 12cqh); } }

/* ───── موقع: لابتوب + موبايل يتصفحون نفس الموقع ───── */
.s-site { --k: var(--c-amber); }
.stg .laptop { width: min(72cqw, 98cqh); aspect-ratio: 16 / 10.4; left: 5cqw; top: 11cqh; background: #16151c; border-radius: 1.6cqh 1.6cqh .5cqh .5cqh; box-shadow: 0 0 0 .3cqh #34333d, 0 4cqh 8cqh -3cqh rgba(0,0,0,.85); }
.stg .laptop .scr { inset: 3.4% 2.6% 4.2%; border-radius: .4cqh; }
.stg .laptop .base { position: absolute; left: -8%; right: -8%; bottom: -3.2cqh; height: 3.2cqh; background: linear-gradient(#d4d4dc, #8b8b96); border-radius: .4cqh .4cqh 2.4cqh 2.4cqh; }
.stg .laptop .base::after { content: ''; position: absolute; left: 50%; top: 0; width: 15%; height: 1cqh; translate: -50% 0; background: #6f6f7a; border-radius: 0 0 1cqh 1cqh; }
.s-site:not(.on) .laptop { transform: translateY(6cqh) scale(.92); }
.stg .phone.sm { --r: 4.2cqh; --b: .85cqh; height: 62cqh; aspect-ratio: 9 / 19.5; right: 6cqw; bottom: 7cqh; top: auto; left: auto; translate: none; }
.s-site:not(.on) .phone.sm, .s-system:not(.on) .phone.sm { transform: translateX(18cqw) rotate(8deg); }

/* ───── نظام: شاشة + موبايل + إشعارات تشتغل ───── */
.s-system { --k: var(--c-audio); }
.stg .desk { width: min(70cqw, 100cqh); aspect-ratio: 16 / 9.4; left: 5cqw; top: 7cqh; background: #14131a; border-radius: 1.4cqh; box-shadow: 0 0 0 .3cqh #34333d, 0 4cqh 8cqh -3cqh rgba(0,0,0,.85); }
.stg .desk .scr { inset: 2.4%; border-radius: .5cqh; }
.stg .desk .stand { position: absolute; left: 50%; top: 100%; width: 14%; height: 9cqh; translate: -50% 0; background: linear-gradient(#575662, #2b2a33); clip-path: polygon(34% 0, 66% 0, 74% 88%, 100% 88%, 100% 100%, 0 100%, 0 88%, 26% 88%); }
.s-system:not(.on) .desk { transform: translateY(6cqh) scale(.92); }
.ntf { position: absolute; left: 3cqw; bottom: 5cqh; display: grid; gap: 1.3cqh; width: min(46cqw, 64cqh); z-index: 3; }
.ntf p { margin: 0; display: flex; align-items: center; gap: 1.6cqh; padding: 1.3cqh 1.8cqh; background: rgba(27,26,37,.94); border: 1px solid rgba(255,255,255,.09); border-radius: 1.8cqh; box-shadow: 0 1.4cqh 4cqh rgba(0,0,0,.55); opacity: 0; transform: translateY(3cqh) scale(.95); }
.s-system.on .ntf p { animation: stNtf .6s 1s cubic-bezier(.2,.9,.3,1.25) forwards; }
.s-system.on .ntf p:nth-child(2) { animation-delay: 2.6s; }
.s-system.on .ntf p:nth-child(3) { animation-delay: 4.2s; }
@keyframes stNtf { to { opacity: 1; transform: none; } }
.ntf i { flex: none; width: 5.2cqh; height: 5.2cqh; border-radius: 1.4cqh; display: grid; place-items: center; background: color-mix(in srgb, var(--k) 22%, transparent); }
.ntf svg { width: 58%; height: 58%; fill: none; stroke: var(--k); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.ntf span { min-width: 0; }
.ntf b { display: block; font: 700 max(10px, 2.8cqh)/1.35 var(--f-display); color: #fff; }
.ntf small { display: block; font: 500 max(9px, 2.2cqh)/1.35 var(--f-display); color: var(--mute); }

/* ───── تطبيق: أندرويد + آيفون ───── */
.s-app { --k: #ff9b5a; }
.s-app .phone { height: 74cqh; aspect-ratio: 9 / 19.5; top: 7cqh; }
.stg .android { --r: 3.2cqh; --b: .75cqh; left: calc(50% - 40cqh); rotate: -6deg; }
.stg .android::after { width: 2.4cqh; height: 2.4cqh; border-radius: 50%; top: calc(var(--b) + 1.6%); }
.stg .iphone { --r: 6cqh; --b: 1.1cqh; left: calc(50% + 4cqh); rotate: 5deg; }
.s-app:not(.on) .android { transform: translateY(40cqh) rotate(-12deg); }
.s-app:not(.on) .iphone { transform: translateY(40cqh) rotate(12deg); transition-delay: .08s; }
.s-app figcaption { position: absolute; left: 0; right: 0; top: calc(100% + 2.4cqh); text-align: center; font: 700 max(10px, 3cqh)/1 var(--f-display); color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  .dev, .pscr { transition: none; }
  .beam, .cur, .sld img.on { animation: none; }
  .art img { clip-path: none; } .sel, .ntf p { opacity: 1; transform: none; }
}
