/* ═════════ بداية الصفحة: «نسوّيلك [جهاز] يخبّل» بالنص ═════════
   الجهاز يتحوّل ويا كل نوع شغل ويعرض شغل حقيقي: ريلز = آيفون بالطول · فيديو = نفس الآيفون يندار بالعرض
   عرض تقديمي = شاشة داتا شو تنزل من علبتها · تصميم = برنامج تصميم والشعار ينرسم · موقع = لابتوب يفتح
   نظام = شاشة مكتب + موبايل · تطبيق = أندرويد + آيفون
   والسطر الفوق (فيديو · عروض …) الكلمة اللي يوصلها الجهاز تنبثق وتضوي مثل موقع عصفورة الأم.
   كل القياسات بوحدات الحاوية (cq) أو --u (جزء من طول الجهاز) — مو بحجم الخط، حتى تكبير الخط بالموبايل ما يخربها */

@property --k { syntax: '<color>'; inherits: true; initial-value: #3ee0c4; }
@property --u { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --ek { syntax: '<color>'; inherits: true; initial-value: #3ee0c4; }

/* ───── الترتيب: كلشي بالنص وأكبر ───── */
.hero-copy { position: relative; text-align: center; --k: var(--c-video); transition: --k .6s; }
.hero-copy[data-k="video"], .fly[data-k="video"] { --k: #6cb8ff; }
.hero-copy[data-k="deck"], .fly[data-k="deck"] { --k: var(--c-text); }
.hero-copy[data-k="design"], .fly[data-k="design"] { --k: var(--c-fx); }
.hero-copy[data-k="site"], .fly[data-k="site"] { --k: var(--c-amber); }
.hero-copy[data-k="system"], .fly[data-k="system"] { --k: var(--c-audio); }
.hero-copy[data-k="app"], .fly[data-k="app"] { --k: #ff9b5a; }
.fly[data-k="reel"] { --k: var(--c-video); }
.hero-copy .cta { justify-content: center; }
.h1 { font-size: clamp(54px, 14.5vw, 92px); line-height: 1.34; }
/* السطر الأول = «نسوّيلك» + الكلمة اللي تطير من فوق وتنزل جنبها */
.h1 .l1 { display: flex; justify-content: center; align-items: baseline; gap: .26em; white-space: nowrap; font-size: .74em; }
.l1-t { display: inline-block; }
.hw { position: relative; display: inline-block; }
#word { display: inline-block; font-size: var(--ws, 1.14em); font-weight: 900; color: var(--k); text-shadow: 0 0 .45em color-mix(in srgb, var(--k) 42%, transparent); }
/* لمّن تنزل: حلقة ضو + وهج */
.hw::before, .hw::after { content: ''; position: absolute; left: 50%; top: 56%; border-radius: 50%; pointer-events: none; opacity: 0; translate: -50% -50%; }
.hw::before { width: 1.5em; height: 1.5em; border: 2px solid var(--k); }
.hw::after { width: 3em; height: 3em; background: radial-gradient(closest-side, color-mix(in srgb, var(--k) 55%, transparent), transparent); }
.hw.land::before { animation: hwRing .75s cubic-bezier(.2,.9,.3,1); }
.hw.land::after { animation: hwGlow .9s ease-out; }
@keyframes hwRing { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(2.6); } }
@keyframes hwGlow { from { opacity: 1; transform: scale(.5); } to { opacity: 0; transform: scale(1.8); } }
/* الكلمة وهي طايرة + ذيل ضو وراها + قطرة الضو اللي تنزل للجهاز */
.fly { position: absolute; z-index: 6; display: grid; justify-items: center; white-space: nowrap; pointer-events: none; font-family: var(--f-display); font-weight: 900; line-height: 1.3; color: var(--k); text-shadow: 0 0 .5em color-mix(in srgb, var(--k) 70%, transparent); will-change: transform, opacity; }
.fly b { grid-area: 1 / 1; }
.trail, .drop { position: absolute; z-index: 5; border-radius: 50%; pointer-events: none; will-change: transform, opacity; }
.trail { background: color-mix(in srgb, var(--k) 80%, #fff); box-shadow: 0 0 12px 4px color-mix(in srgb, var(--k) 70%, transparent); }
.drop { width: 12px; height: 12px; background: #fff; box-shadow: 0 0 10px 3px var(--k), 0 0 28px 8px color-mix(in srgb, var(--k) 55%, transparent); }
/* ضو القراءة: يمر على «نسوّيلك» ثم على «يخبّل» بنفس اتجاه القراءة */
.l1-t, .h1 .l3 { background-size: 300% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.l1-t { background-image: linear-gradient(100deg, var(--mute) 0 40%, #fff 47.5%, color-mix(in srgb, var(--k) 55%, #fff) 50%, #fff 52.5%, var(--mute) 60% 100%); }
.h1 .l3 { background-image: linear-gradient(90deg, var(--paper) 0%, #d8cffd 33.3%, #fff 45%, color-mix(in srgb, var(--k) 60%, #fff) 50%, #fff 55%, var(--paper) 66.7%, #d8cffd 100%); }
.shine { animation: rdSweep 1.05s cubic-bezier(.4,0,.2,1); }
@keyframes rdSweep { from { background-position: 0 0; } to { background-position: 100% 0; } }
/* لمّن الجهاز يطلع: المنصة تومض بلونه */
.hd.zap::before { animation: hdZap 1s ease-out; }
@keyframes hdZap { from { transform: scale(.55); filter: brightness(2.4); } to { transform: none; filter: none; } }
.h1 .l2 { display: flex; justify-content: center; margin: .04em 0 .02em; }

/* ───── السطر الفوق: الكلمة الحالية تنبثق ويمر عليها ضو ───── */
.eyebrow { justify-content: center; flex-wrap: nowrap; white-space: nowrap; gap: clamp(7px, 2vw, 14px); font-size: clamp(11px, 3vw, 15px); padding: 0 2px; font-weight: 600; margin: 0 0 clamp(12px, 3vw, 22px); --ek: var(--c-video); transition: --ek .6s; }
.eyebrow[data-k="video"] { --ek: #6cb8ff; }
.eyebrow[data-k="deck"] { --ek: var(--c-text); }
.eyebrow[data-k="design"] { --ek: var(--c-fx); }
.eyebrow[data-k="site"] { --ek: var(--c-amber); }
.eyebrow[data-k="system"] { --ek: var(--c-audio); }
.eyebrow[data-k="app"] { --ek: #ff9b5a; }
.eyebrow span { position: relative; isolation: isolate; display: inline-block; padding: .25em .12em; color: var(--mute-2); transition: color .5s, transform .6s cubic-bezier(.2,.9,.3,1.25), opacity .5s; }
.eyebrow span::before { content: ''; position: absolute; inset: -90% -55%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ek) 46%, transparent), transparent); opacity: 0; transform: scale(.3); transition: opacity .5s, transform .7s cubic-bezier(.2,.9,.3,1.2); pointer-events: none; }
.eyebrow span.on { transform: translateY(-.1em) scale(1.32);
  background: linear-gradient(110deg, var(--ek) 0 32%, #fff 46%, var(--ek) 60% 100%); background-size: 280% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--ek);
  filter: drop-shadow(0 0 .55em color-mix(in srgb, var(--ek) 70%, transparent));
  animation: ePop .75s cubic-bezier(.2,.9,.3,1.3), eShim 2.4s cubic-bezier(.5,0,.5,1) .2s infinite; }
.eyebrow span.on::before { opacity: 1; transform: none; }
/* أول وآخر كلمة يكبرون لجوّا حتى ما ينقصّون على حافة الشاشة */
.eyebrow span:first-child { transform-origin: right center; }
.eyebrow span:last-child { transform-origin: left center; }
.eyebrow i { transition: background .5s; }
@keyframes ePop { 0% { transform: scale(1); } 45% { transform: translateY(-.22em) scale(1.5); } 100% { transform: translateY(-.1em) scale(1.32); } }
@keyframes eShim { 0% { background-position: 140% 0; } 70%, 100% { background-position: -40% 0; } }

/* ───── منصّة الجهاز ───── */
.hd { position: relative; display: block; width: 100%; height: clamp(250px, 82vw, 420px); container-type: size; line-height: 1; font-size: 16px; font-weight: 400; --k: var(--c-video); transition: --k .8s; }
@media (min-width: 960px) {
  .hd { height: clamp(260px, 39vh, 360px); }
  .hero { padding-top: 84px; }
  .h1 { line-height: 1.16; }
  .h1 .l1 { padding-top: .08em; }
  .hero-copy .lede { margin: 12px 0 20px; }
}
.hd[data-k="video"] { --k: #6cb8ff; }
.hd[data-k="deck"] { --k: var(--c-text); }
.hd[data-k="design"] { --k: var(--c-fx); }
.hd[data-k="site"] { --k: var(--c-amber); }
.hd[data-k="system"] { --k: var(--c-audio); }
.hd[data-k="app"] { --k: #ff9b5a; }
/* ضو ملوّن ورا الجهاز + ظل على الأرض */
.hd::before { content: ''; position: absolute; inset: -4% -8%; z-index: -1; background: radial-gradient(44% 50% at 50% 52%, color-mix(in srgb, var(--k) 30%, transparent), transparent 72%); pointer-events: none; }
.hd::after { content: ''; position: absolute; z-index: -1; left: 50%; bottom: .5cqh; width: 66cqw; height: 7cqh; translate: -50% 0; background: radial-gradient(closest-side, rgba(0,0,0,.7), transparent); pointer-events: none; }
.hd i, .hd b, .hd u { display: block; font-style: normal; text-decoration: none; }
.hd img, .hd video { display: block; }

/* كل جهاز: يطلع من جوّا ويرتفع، واللي يطلع يغطس ويختفي */
.hx { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(5cqh) scale(.9); transition: opacity .4s, transform .6s cubic-bezier(.5,0,.75,0), visibility 0s .6s; pointer-events: none; }
.hx.on { opacity: 1; visibility: visible; transform: none; transition: opacity .55s, transform 1.05s cubic-bezier(.16,1,.3,1); }
.hx > * { grid-area: 1 / 1; }

/* لمعة الزجاج + خط ضو يعبر الشاشة أول ما يطلع الجهاز */
.glare { position: absolute; inset: 0; z-index: 5; overflow: hidden; border-radius: inherit; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.035) 30%, transparent 46%); }
.glare::after { content: ''; position: absolute; top: -30%; bottom: -30%; left: 0; width: 34%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.26) 50%, transparent); transform: translateX(-130%) skewX(-16deg); }
.hx.on .glare::after { animation: gSweep 1.5s .95s cubic-bezier(.45,0,.2,1) both; }
@keyframes gSweep { to { transform: translateX(420%) skewX(-16deg); } }
.hd .bar { position: absolute; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.28); direction: ltr; }
.hd .bar b { width: 0; height: 100%; background: #fff; border-radius: inherit; }

/* ═════ آيفون (قطعة وحدة تنستعمل بكل مكان): إطار تيتانيوم، أزرار، جزيرة، زجاج ═════
   --ph = طول الجهاز، و--u = 1% منه */
.ip { --ph: 80cqh; --u: calc(var(--ph) / 100); position: relative; display: block; flex: none; width: calc(var(--u) * 49); height: calc(var(--u) * 100); border-radius: calc(var(--u) * 7.6);
  background: linear-gradient(90deg, #8a8992 0%, #45444b 2.5%, #2b2a30 9%, #222126 50%, #2b2a30 91%, #45444b 97.5%, #8a8992 100%);
  box-shadow: inset 0 0 0 calc(var(--u) * .22) #a9a8b0, inset 0 0 0 calc(var(--u) * .5) #2e2d33, 0 calc(var(--u) * 4) calc(var(--u) * 8) calc(var(--u) * -2) rgba(0,0,0,.85), 0 calc(var(--u) * 1.4) calc(var(--u) * 3) calc(var(--u) * -1) rgba(0,0,0,.55); }
.ip::before { content: ''; position: absolute; inset: calc(var(--u) * .75); border-radius: calc(var(--u) * 6.9); background: #020203; }
.ip-scr { position: absolute; inset: calc(var(--u) * 1.85); border-radius: calc(var(--u) * 5.8); overflow: hidden; background: #000; container-type: size; }
.ip-scr > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ip-isl { position: absolute; z-index: 6; top: calc(var(--u) * 1.5); left: 50%; width: calc(var(--u) * 14); height: calc(var(--u) * 4.1); translate: -50% 0; border-radius: 99px; background: #000; box-shadow: inset 0 0 0 calc(var(--u) * .1) #101013; }
.ip-isl::after { content: ''; position: absolute; right: calc(var(--u) * 2); top: 50%; width: calc(var(--u) * 1.8); height: calc(var(--u) * 1.8); translate: 0 -50%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #4a5c96 0 16%, #141827 46%, #000 72%); }
.ip-btn { position: absolute; width: calc(var(--u) * .8); border-radius: calc(var(--u) * .4); background: linear-gradient(90deg, #3e3d44, #9a99a1 50%, #3e3d44); }
.ip-b1 { left: calc(var(--u) * -.5); top: calc(var(--u) * 17); height: calc(var(--u) * 4.4); }
.ip-b2 { left: calc(var(--u) * -.5); top: calc(var(--u) * 25.5); height: calc(var(--u) * 8.5); }
.ip-b3 { left: calc(var(--u) * -.5); top: calc(var(--u) * 36); height: calc(var(--u) * 8.5); }
.ip-pw { right: calc(var(--u) * -.5); top: calc(var(--u) * 28); height: calc(var(--u) * 13); }

/* ───── ريلز ↔ فيديو: الآيفون يندار ───── */
.hx-ph .ip { --ph: min(92cqh, 92cqw); --rs: 1.12; transition: transform 1.05s cubic-bezier(.7,0,.2,1); }
@media (min-width: 600px) { .hx-ph .ip { --rs: 1.5; } }
.hd[data-k="video"] .hx-ph .ip { transform: rotate(-90deg) scale(var(--rs)); }
.ip-pv, .ip-lv { position: absolute; transition: opacity .45s .35s; }
.ip-pv { inset: 0; background: #000; }
.ip-lv { top: 50%; left: 50%; width: 100cqh; height: 100cqw; transform: translate(-50%, -50%) rotate(90deg); background: #000; opacity: 0; }
.hd[data-k="video"] .ip-pv { opacity: 0; }
.hd[data-k="video"] .ip-lv { opacity: 1; }
.ip-pv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center 42%; }
.ip-lv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* واجهة الريلز: صورة الحساب، قلب، تعليق، مشاركة، وسطرين كتابة (بلا كلام) */
.rl { position: absolute; inset: 0; }
.rl::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.rl-side { position: absolute; z-index: 2; right: 3.5cqw; bottom: 15cqh; display: grid; gap: 3cqh; justify-items: center; }
.rl-side i { width: 9cqw; height: 9cqw; }
.rl-side svg { width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 .3cqh .5cqh rgba(0,0,0,.45)); }
.rl-ava { border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffd27a, #ff7a59 60%, #c13584); box-shadow: 0 0 0 .5cqw #fff; margin-bottom: 1cqh; }
.hx.on .rl-hrt svg { animation: hBeat 2.4s 1.4s ease-in-out infinite; }
@keyframes hBeat { 0%, 30%, 100% { fill: #fff; transform: none; } 8% { fill: #ff3b5c; transform: scale(1.3); } 16%, 28% { fill: #ff3b5c; transform: none; } }
.rl-cap { position: absolute; z-index: 2; left: 5cqw; bottom: 6.5cqh; width: 62cqw; display: grid; grid-template-columns: 7cqw 1fr; gap: 1.2cqh 2.4cqw; align-items: center; direction: ltr; }
.rl-me { width: 7cqw; height: 7cqw; border-radius: 50%; background: linear-gradient(135deg, #3ee0c4, #2563eb); grid-row: span 2; }
.rl-cap b { height: 1.3cqh; border-radius: 99px; background: rgba(255,255,255,.9); width: 78%; }
.rl-cap b + b { width: 52%; background: rgba(255,255,255,.55); }
.rl-pop { position: absolute; z-index: 3; right: 6cqw; bottom: 28cqh; width: 7cqw; height: 7cqw; opacity: 0; }
.rl-pop svg { width: 100%; height: 100%; fill: #ff3b5c; }
.hx.on .rl-pop { animation: hFly 2.4s 1.55s ease-out infinite; }
@keyframes hFly { 0% { opacity: 0; transform: none; } 10% { opacity: 1; } 60%, 100% { opacity: 0; transform: translate(-5cqw, -22cqh) scale(1.5) rotate(-14deg); } }
.rl .bar { z-index: 2; left: 4cqw; right: 4cqw; bottom: 3cqh; height: .45cqh; }
.hd[data-k="reel"] .rl .bar b { animation: pBar var(--d, 6.5s) linear forwards; }
@keyframes pBar { to { width: 100%; } }
/* واجهة الفيديو بالعرض: زر تشغيل وشريط بنقطة تمشي */
.vd { position: absolute; inset: 0; }
.vd::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(transparent, rgba(0,0,0,.5)); }
.vd .bar { z-index: 2; left: 14%; right: 6%; bottom: 9%; height: 1.4%; overflow: visible; }
.vd .bar b { background: #6cb8ff; }
.vd .bar u { position: absolute; top: 50%; left: 0; width: 1.7%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .25em rgba(108,184,255,.35); }
.hd[data-k="video"] .vd .bar b { animation: pBar var(--d, 7s) linear .9s forwards; }
.hd[data-k="video"] .vd .bar u { animation: pDot var(--d, 7s) linear .9s forwards; }
@keyframes pDot { to { left: 100%; } }
.vd-play { position: absolute; z-index: 2; left: 5%; bottom: 6.2%; width: 3.6%; aspect-ratio: 1; background: #fff; clip-path: polygon(18% 8%, 92% 50%, 18% 92%); }

/* ───── عرض تقديمي: شاشة داتا شو ───── */
.pj { position: relative; display: block; width: min(94cqw, 122cqh); margin-bottom: 10cqh; }
.pj-case { position: relative; z-index: 3; height: 3.4cqh; margin: 0 -3%; border-radius: 1.7cqh; background: linear-gradient(#fafafc, #c9c9d0 40%, #8d8d96 62%, #bdbdc4); box-shadow: 0 .8cqh 1.6cqh -.4cqh rgba(0,0,0,.6), inset 0 -.2cqh .3cqh rgba(0,0,0,.25); }
.pj-case::before, .pj-case::after { content: ''; position: absolute; top: -.3cqh; bottom: -.3cqh; width: 3.2%; border-radius: 1cqh; background: linear-gradient(#55545d, #222127); }
.pj-case::before { left: -1%; } .pj-case::after { right: -1%; }
.pj-scr { position: relative; z-index: 2; display: block; margin: -1.2cqh 1.5% 0; padding: 2.4% 2.4% 3.4%; background: #141417; box-shadow: 0 2.4cqh 5cqh -1.6cqh rgba(0,0,0,.75); transform-origin: top; }
.hx-deck.on .pj-scr { animation: pjDown 1.15s .4s cubic-bezier(.65,0,.2,1) both; }
@keyframes pjDown { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -8% 0); } }
.pj-sl { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f2efe8; }
.pj-sl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.pj-sl img.on { opacity: 1; animation: pjKb 3.2s ease-out both; }
@keyframes pjKb { from { transform: scale(1.05); } to { transform: none; } }
/* الضو: أقوى بالنص ويخف عالحواف مثل صورة جهاز عرض حقيقية */
.pj-hot { position: absolute; inset: 0; z-index: 2; background: radial-gradient(70% 80% at 50% 62%, rgba(255,250,232,.2), transparent 70%); box-shadow: inset 0 0 6cqh rgba(0,0,0,.42); mix-blend-mode: screen; }
.pj-bar { position: absolute; left: -1.5%; right: -1.5%; bottom: -1.2cqh; height: 1.6cqh; border-radius: .6cqh; background: linear-gradient(#d8d8de, #8a8a92); }
.pj-bar::after { content: ''; position: absolute; left: 50%; top: 100%; width: 2.2cqh; height: 3cqh; translate: -50% 0; border-radius: 0 0 1.2cqh 1.2cqh; border: .45cqh solid #9a9aa2; border-top: 0; }
.pj-beam { position: absolute; z-index: 1; left: 50%; top: 30%; bottom: -3.4cqh; width: 94%; translate: -50% 0; clip-path: polygon(0 0, 100% 0, 52.5% 100%, 47.5% 100%); background: linear-gradient(0deg, rgba(255,248,222,.38), rgba(255,248,222,.04) 82%); mix-blend-mode: screen; opacity: 0; }
.hx-deck.on .pj-beam { animation: pjBeam 1.2s 1.2s ease-out forwards, pjFlick 3.4s 2.4s steps(1) infinite; }
@keyframes pjBeam { to { opacity: 1; } }
@keyframes pjFlick { 0%, 100% { opacity: 1; } 47% { opacity: .82; } 53% { opacity: .96; } }
.pj-dev { position: absolute; z-index: 4; left: 50%; top: 100%; width: 20cqh; height: 6.4cqh; translate: -50% 0; border-radius: 1.6cqh 1.6cqh 1cqh 1cqh; background: linear-gradient(#4b4a55, #1e1d24 70%); box-shadow: 0 1.2cqh 2.4cqh -.6cqh rgba(0,0,0,.8), inset 0 .25cqh .2cqh rgba(255,255,255,.16); }
.pj-dev b { position: absolute; left: 50%; top: 50%; width: 4.4cqh; height: 4.4cqh; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #fffbe8 0 22%, #d9c991 36%, #3a3946 58%, #16151b 72%); box-shadow: 0 0 3cqh rgba(255,246,214,.75), 0 0 0 .35cqh #2a2932; }

/* ───── تصميم: برنامج تصميم والشعار ينرسم ───── */
.ds { position: relative; display: grid; width: min(94cqw, 150cqh); aspect-ratio: 16 / 10.4; grid-template-columns: 7.5% 1fr 23%; grid-template-rows: 7.5% 1fr; border-radius: 2.2cqh; overflow: hidden; background: #17161e; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 3cqh 6cqh -2cqh rgba(0,0,0,.85); }
.ds-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.2%; padding: 0 2.4%; background: #1e1c27; border-bottom: 1px solid rgba(255,255,255,.06); direction: ltr; }
.ds-top b { width: 1.2%; aspect-ratio: 1; border-radius: 50%; background: #ff5f57; }
.ds-top b:nth-child(2) { background: #febc2e; } .ds-top b:nth-child(3) { background: #28c840; }
.ds-top u { width: 22%; height: 36%; margin: 0 auto; border-radius: 99px; background: rgba(255,255,255,.08); }
.ds-tools { display: grid; align-content: start; justify-items: center; gap: 9%; padding-top: 30%; background: #1b1a23; border-inline-end: 1px solid rgba(255,255,255,.05); }
.ds-tools i { width: 52%; aspect-ratio: 1; border-radius: 22%; background: rgba(255,255,255,.08); }
.ds-tools i.on { background: color-mix(in srgb, var(--c-fx) 70%, transparent); box-shadow: 0 0 1.2cqh color-mix(in srgb, var(--c-fx) 55%, transparent); }
.ds-cv { position: relative; display: grid; place-items: center; background: #101016 radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1.4px) 0 0 / 2.6cqh 2.6cqh; }
.ds-ab { position: relative; display: block; height: 80%; aspect-ratio: 1; background: #fff; box-shadow: 0 1.8cqh 4cqh rgba(0,0,0,.6); }
.ds-gd, .ds-pt { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ds-gd { fill: none; stroke: #4aa3ff; stroke-width: .35; stroke-dasharray: 260; stroke-dashoffset: 260; opacity: .9; vector-effect: non-scaling-stroke; }
.ds-gd path { stroke-dasharray: 2 2.2; stroke-dashoffset: 0; opacity: 0; }
.hx-design.on .ds-gd { animation: dsDraw 1.6s .55s cubic-bezier(.6,0,.3,1) forwards; }
.hx-design.on .ds-gd path { animation: dsFade .6s .7s forwards; }
@keyframes dsDraw { to { stroke-dashoffset: 0; } }
@keyframes dsFade { to { opacity: .7; } }
.ds-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; clip-path: inset(0 100% 0 0); filter: drop-shadow(0 .6cqh .9cqh rgba(29,63,214,.22)); }
.hx-design.on .ds-logo { animation: dsLogo 1.4s 1.5s cubic-bezier(.65,0,.25,1) forwards; }
@keyframes dsLogo { to { clip-path: inset(0 0 0 0); } }
.ds-pt { fill: #fff; stroke: #2f7df6; stroke-width: .45; opacity: 0; }
.ds-pt .hl { fill: none; stroke: #2f7df6; stroke-width: .3; }
.ds-pt circle { fill: #2f7df6; stroke: none; }
.hx-design.on .ds-pt { animation: dsPts 3.8s 1.1s ease-in-out forwards; }
@keyframes dsPts { 0% { opacity: 0; } 15%, 70% { opacity: 1; } 100% { opacity: .0; } }
.ds-sel { position: absolute; inset: 4%; border: .25cqh solid #2f7df6; opacity: 0; }
.hx-design.on .ds-sel { animation: dsSel .4s 3.4s forwards; }
@keyframes dsSel { to { opacity: 1; } }
.ds-sel b { position: absolute; width: 1.6cqh; height: 1.6cqh; background: #fff; border: .25cqh solid #2f7df6; }
.ds-sel b:nth-child(1) { top: -.9cqh; left: -.9cqh; } .ds-sel b:nth-child(2) { top: -.9cqh; right: -.9cqh; }
.ds-sel b:nth-child(3) { bottom: -.9cqh; left: -.9cqh; } .ds-sel b:nth-child(4) { bottom: -.9cqh; right: -.9cqh; }
.ds-pn { display: grid; align-content: start; gap: 5%; padding: 12% 10%; background: #1b1a23; border-inline-start: 1px solid rgba(255,255,255,.05); }
.ds-sw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8%; }
.ds-sw i { aspect-ratio: 1; border-radius: 50%; background: #1d3fd6; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.ds-sw i:nth-child(2) { background: #2563eb; } .ds-sw i:nth-child(3) { background: #22b8f0; } .ds-sw i:nth-child(4) { background: #64e6ff; }
.ds-sl { position: relative; height: .7cqh; border-radius: 99px; background: rgba(255,255,255,.1); margin-top: 6%; }
.ds-sl b { position: absolute; top: 50%; left: 40%; width: 2cqh; height: 2cqh; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 .3cqh .6cqh rgba(0,0,0,.5); transition: left 1.2s; }
.hx-design.on .ds-sl b { animation: dsKnob 4s 1.6s ease-in-out infinite alternate; }
.hx-design.on .ds-sl + .ds-sl b { animation-delay: 2.2s; }
@keyframes dsKnob { to { left: 72%; } }
.ds-ly { display: grid; gap: 1.2cqh; margin-top: 10%; }
.ds-ly i { height: 2.6cqh; border-radius: .7cqh; background: rgba(255,255,255,.06); }
.ds-ly i:first-child { background: rgba(47,125,246,.35); }
.ds-cur { position: relative; z-index: 3; width: 5cqh; height: 5cqh; fill: #fff; stroke: #111; stroke-width: 1.3; stroke-linejoin: round; filter: drop-shadow(0 .4cqh .6cqh rgba(0,0,0,.55)); transform: translate(18cqw, 22cqh); }
.hx-design.on .ds-cur { animation: dsCur 5.2s 1s cubic-bezier(.45,0,.25,1) infinite; }
@keyframes dsCur { 0%, 100% { transform: translate(18cqw, 22cqh); } 22% { transform: translate(-13cqw, -7cqh); } 30% { transform: translate(-13cqw, -7cqh) scale(.86); } 34% { transform: translate(-13cqw, -7cqh); } 58% { transform: translate(7cqw, -19cqh); } 78% { transform: translate(30cqw, -6cqh); } }

/* ───── موقع: لابتوب يفتح ───── */
.mb { position: relative; display: block; width: min(80cqw, 118cqh); perspective: 220cqh; }
.mb-lid { position: relative; z-index: 2; display: block; aspect-ratio: 16 / 10.4; padding: 2.1% 2.1% 2.9%; border-radius: 2.6cqh 2.6cqh .8cqh .8cqh; background: #08080a; box-shadow: 0 0 0 .4cqh #c4c4cb, 0 0 0 .55cqh #8c8c94, inset 0 0 0 .2cqh #2b2b30; transform-origin: 50% 100%; }
.hx-site.on .mb-lid { animation: lidOpen 1.35s .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes lidOpen { 0% { transform: rotateX(-92deg); } 72% { transform: rotateX(5deg); } 100% { transform: none; } }
.mb-scr { position: relative; display: block; height: 100%; overflow: hidden; border-radius: .6cqh; background: #fff; }
.mb-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 1%; height: 7%; padding: 0 2%; background: #ecebef; border-bottom: 1px solid #d6d5db; direction: ltr; }
.mb-bar b { width: 1.25%; aspect-ratio: 1; border-radius: 50%; background: #ff5f57; }
.mb-bar b:nth-child(2) { background: #febc2e; } .mb-bar b:nth-child(3) { background: #28c840; }
.mb-bar u { width: 36%; height: 56%; margin: 0 auto; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px #dedde3; }
.mb-scr video { width: 100%; height: 93%; object-fit: cover; object-position: top; background: #f4efe4; }
@keyframes siteKb { from { transform: scale(1.06); } to { transform: none; } }
.mb-cam { position: absolute; z-index: 3; top: 2.1%; left: 50%; width: 11%; height: 3.8%; translate: -50% 0; border-radius: 0 0 1cqh 1cqh; background: #08080a; }
.mb-cam::after { content: ''; position: absolute; left: 50%; top: 32%; width: 1cqh; height: 1cqh; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3d4a7c, #0b0c12 70%); }
.mb-base { position: relative; z-index: 3; display: block; height: 3.2cqh; margin: -.3cqh -9% 0; border-radius: .3cqh .3cqh 3cqh 3cqh / .3cqh .3cqh 2cqh 2cqh; background: linear-gradient(#f0f0f4, #cfcfd6 30%, #9b9ba3 75%, #6f6f78); box-shadow: 0 1.6cqh 2.6cqh -1cqh rgba(0,0,0,.85); }
.mb-base i { position: absolute; left: 50%; top: 0; width: 15%; height: 42%; translate: -50% 0; border-radius: 0 0 1.2cqh 1.2cqh; background: linear-gradient(#a8a8b0, #c9c9d0); }

/* ───── نظام: شاشة مكتب + موبايل ───── */
.sd { position: relative; display: block; width: min(78cqw, 120cqh); margin-bottom: 9cqh; }
.sd-scr { position: relative; z-index: 2; display: block; aspect-ratio: 16 / 10; padding: 1.5%; border-radius: 1.6cqh; background: #09090b; box-shadow: 0 0 0 .4cqh #cfcfd6, 0 0 0 .55cqh #92929a, 0 3cqh 6cqh -2cqh rgba(0,0,0,.85); }
.sd-in { position: relative; display: block; height: 100%; overflow: hidden; border-radius: .5cqh; background: #120d22; }
.sd-in img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hx-system.on .sd-in img { animation: siteKb 7s 1.2s ease-in-out both; }
.sd-neck { position: absolute; z-index: 1; left: 50%; top: 99%; width: 15%; height: 8cqh; translate: -50% 0; background: linear-gradient(90deg, #7d7d86, #e2e2e8 45%, #b9b9c1 60%, #84848d); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.sd-foot { position: absolute; z-index: 1; left: 50%; top: calc(99% + 7.6cqh); width: 36%; height: 1.8cqh; translate: -50% 0; border-radius: 1cqh 1cqh .5cqh .5cqh; background: linear-gradient(#ececf1, #9e9ea6); box-shadow: 0 1.4cqh 2cqh -.6cqh rgba(0,0,0,.8); }
.ip-sd { --ph: 58cqh; position: absolute; z-index: 3; left: -5%; bottom: -12cqh; rotate: -4deg; transition: transform 1s .75s cubic-bezier(.16,1,.3,1), opacity .5s .75s; }
.hx-system:not(.on) .ip-sd { transform: translate(-14cqw, 8cqh) rotate(-10deg); opacity: 0; }

/* ───── تطبيق: أندرويد + آيفون، بكل واحد الشاشة الرئيسية بأيقونة عصفورة وقصي براند ← دوسة ← التطبيق يفتح من الأيقونة ─────
   التوقيت كله على خط واحد 6.8ث يبدي بعد ما يطلع الجهاز (الأندرويد متأخر شوية حتى يبين طبيعي) */
.hx-app { --ta: 6.8s; --td: .75s; }
.ad, .ip-ap { transition: transform 1.15s .1s cubic-bezier(.16,1,.3,1); }
.ip-ap { --ph: 80cqh; z-index: 2; transform: translate(-14cqh, -5cqh) rotate(5deg); }
.ad { --ph: 76cqh; --u: calc(var(--ph) / 100); position: relative; display: block; width: calc(var(--u) * 47); height: calc(var(--u) * 100); border-radius: calc(var(--u) * 4.6); transform: translate(16cqh, -3cqh) rotate(-7deg); --td: 1.05s;
  background: linear-gradient(90deg, #565961 0%, #23252a 3%, #17181c 50%, #23252a 97%, #565961 100%);
  box-shadow: inset 0 0 0 calc(var(--u) * .25) #6e717a, 0 calc(var(--u) * 4) calc(var(--u) * 8) calc(var(--u) * -2) rgba(0,0,0,.85); }
.hx-app:not(.on) .ip-ap { transform: translate(10cqh, 8cqh) rotate(14deg); }
.hx-app:not(.on) .ad { transform: translate(-6cqh, 12cqh) rotate(-16deg); }
.ad-scr { position: absolute; inset: calc(var(--u) * 1.3); border-radius: calc(var(--u) * 3.4); overflow: hidden; background: #000; container-type: size; }
.ad-cam { position: absolute; z-index: 6; top: calc(var(--u) * 1.7); left: 50%; width: calc(var(--u) * 2.6); height: calc(var(--u) * 2.6); translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3d4a7c 0 16%, #07080c 62%); box-shadow: 0 0 0 calc(var(--u) * .35) #000; }
.ad-btn { position: absolute; right: calc(var(--u) * -.45); top: calc(var(--u) * 22); width: calc(var(--u) * .75); height: calc(var(--u) * 11); border-radius: calc(var(--u) * .3); background: linear-gradient(90deg, #2a2c31, #6e717a 50%, #2a2c31); }
.ad-b2 { top: calc(var(--u) * 36); height: calc(var(--u) * 6); }
/* الشاشة الرئيسية: خلفية كل نظام، أيقونات باهتة، وأيقونتين حقيقيتين */
.hm { position: absolute; inset: 0; }
.hm-a { background: radial-gradient(70% 45% at 20% 18%, #2f8f6f, transparent 70%), radial-gradient(80% 55% at 85% 80%, #2b3f9e, transparent 70%), linear-gradient(170deg, #0f2e2a, #101b3d 70%); }
.hm-i { background: radial-gradient(80% 50% at 80% 15%, #ff9f6e, transparent 70%), radial-gradient(90% 60% at 10% 85%, #6b3fd1, transparent 70%), linear-gradient(165deg, #f0617a, #4b2a8f 75%); }
.hd .sb { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 6.5cqh; display: flex; align-items: center; justify-content: space-between; padding: 0 7cqw; color: #fff; direction: ltr; }
.hm-i .sb { padding: 0 9cqw; }
.sb b { font: 700 4.2cqw/1 var(--f-display); }
.sb u { width: 13cqw; height: 2.6cqw; background: linear-gradient(90deg, currentColor 0 13%, transparent 13% 20%, currentColor 20% 33%, transparent 33% 44%, transparent 44%) , linear-gradient(currentColor, currentColor) 100% 50% / 42% 100% no-repeat; border-radius: 1px; opacity: .92; }
.hm-gr { position: absolute; left: 7cqw; right: 7cqw; top: 15cqh; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6.5cqh 5cqw; }
.hm-gr i { aspect-ratio: 1; background: rgba(255,255,255,.17); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.hm-a .hm-gr i { border-radius: 50%; }
.hm-i .hm-gr i { border-radius: 24%; }
.hm-gr i:nth-child(3n+1) { background: rgba(255,255,255,.24); } .hm-gr i:nth-child(4n+2) { background: rgba(255,255,255,.12); }
.aic { position: absolute; z-index: 2; top: 56%; width: 17.5cqw; translate: -50% -50%; display: grid; justify-items: center; gap: 1.2cqh; }
.aic.a1 { left: 37.5%; } .aic.a2 { left: 62.5%; }
.aic img { width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 1.2cqh 2.4cqh rgba(0,0,0,.35), 0 0 0 .6cqw rgba(255,255,255,.18); }
.hm-a .aic img { border-radius: 50%; background: #fff; }
.hm-i .aic img { border-radius: 23%; background: #fff; }
.aic small { font: 700 3.4cqw/1.2 var(--f-display); color: #fff; white-space: nowrap; text-shadow: 0 .3cqh .8cqh rgba(0,0,0,.6); }
.hx-app.on .aic::before { content: ''; position: absolute; top: 0; left: 50%; width: 100%; aspect-ratio: 1; translate: -50% 0; border-radius: 30%; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: icRing 1.6s var(--td) ease-out 2; }
@keyframes icRing { to { box-shadow: 0 0 0 4cqw rgba(255,255,255,0); } }
.hx-app.on .a1 img { animation: icPress var(--ta) var(--td) both; }
.hx-app.on .a2 img { animation: icPress2 var(--ta) var(--td) both; }
@keyframes icPress { 0%, 9% { transform: none; } 11.5% { transform: scale(.84); } 14%, 100% { transform: none; } }
@keyframes icPress2 { 0%, 61% { transform: none; } 63.5% { transform: scale(.84); } 66%, 100% { transform: none; } }
.hd .hm-dk { position: absolute; left: 5cqw; right: 5cqw; bottom: 3.5cqh; height: 10cqh; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; justify-items: center; padding: 0 3cqw; }
.hm-i .hm-dk { border-radius: 4.5cqh; background: rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.hm-dk b { width: 13cqw; aspect-ratio: 1; background: rgba(255,255,255,.28); }
.hm-a .hm-dk b { border-radius: 50%; } .hm-i .hm-dk b { border-radius: 24%; }
.hm-a .hm-dk::after { content: ''; position: absolute; left: 4cqw; right: 4cqw; bottom: -2.6cqh; height: 5cqh; border-radius: 99px; background: rgba(255,255,255,.22); }
.hd .hm-a .hm-dk { bottom: 8cqh; }
/* التطبيق يفتح من مكان أيقونته (تكبير مثل الموبايل الحقيقي) */
.ap { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(.17); border-radius: 30%; }
.ap1 { transform-origin: 37.5% 56%; } .ap2 { transform-origin: 62.5% 56%; }
.hx-app.on .ap1 { animation: apOpen1 var(--ta) var(--td) both; }
.hx-app.on .ap2 { animation: apOpen2 var(--ta) var(--td) both; }
@keyframes apOpen1 { 0%, 12.5% { opacity: 0; transform: scale(.17); border-radius: 30%; animation-timing-function: cubic-bezier(.2,.8,.2,1); } 14% { opacity: 1; } 21%, 53% { opacity: 1; transform: none; border-radius: 0; animation-timing-function: cubic-bezier(.6,0,.8,.4); } 59%, 100% { opacity: 0; transform: scale(.17); border-radius: 30%; } }
@keyframes apOpen2 { 0%, 64.5% { opacity: 0; transform: scale(.17); border-radius: 30%; animation-timing-function: cubic-bezier(.2,.8,.2,1); } 66% { opacity: 1; } 73%, 100% { opacity: 1; transform: none; border-radius: 0; } }
/* شريط الساعة يصير غامق فوق قصي براند (خلفيته فاتحة) */
.hx-app.on .sb { animation: sbDark var(--ta) var(--td) both; }
@keyframes sbDark { 0%, 66% { color: #fff; } 70%, 100% { color: #151515; } }
.tap { position: absolute; z-index: 4; top: 56%; width: 20cqw; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.75), rgba(255,255,255,.2) 60%, transparent 70%); opacity: 0; }
.t1 { left: 37.5%; } .t2 { left: 62.5%; }
.hx-app.on .t1 { animation: tap1 var(--ta) var(--td) both; }
.hx-app.on .t2 { animation: tap2 var(--ta) var(--td) both; }
@keyframes tap1 { 0%, 9.5% { opacity: 0; transform: scale(.3); } 11.5% { opacity: 1; transform: scale(.7); } 15%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes tap2 { 0%, 61.5% { opacity: 0; transform: scale(.3); } 63.5% { opacity: 1; transform: scale(.7); } 67%, 100% { opacity: 0; transform: scale(1.5); } }
.ad .ap1, .ad .ap2, .ad .t1, .ad .t2, .ad .sb, .ad .aic img { animation-delay: var(--td); }
/* شارات أندرويد وآيفون تنبثق تحت كل جهاز، وخط ضو يربطها: نفس التطبيق على الاثنين */
.os { position: relative; z-index: 4; display: inline-flex; align-items: center; gap: .45em; align-self: end; margin-bottom: 2cqh; padding: .5em .95em .5em .8em; border-radius: 99px; font: 800 max(11px, 3.4cqh)/1 var(--f-display); color: #fff; background: rgba(16,16,24,.82); border: 1px solid color-mix(in srgb, var(--oc) 55%, transparent); box-shadow: 0 0 1.6cqh color-mix(in srgb, var(--oc) 45%, transparent), 0 1cqh 2.4cqh rgba(0,0,0,.6); opacity: 0; transform: scale(.4) translateY(4cqh); }
.os svg { width: 1.25em; height: 1.25em; fill: var(--oc); color: var(--oc); }
.os b { background: linear-gradient(100deg, #fff 0 40%, var(--oc) 50%, #fff 60% 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.os-a { --oc: #3ddc84; translate: 21cqh 0; }
.os-i { --oc: #e9e9ef; translate: -19cqh 0; }
.hx-app.on .os { animation: osPop .7s 1.05s cubic-bezier(.2,.9,.3,1.35) forwards; }
.hx-app.on .os-i { animation-delay: 1.2s; }
.hx-app.on .os b { animation: rdSweep 1.2s 1.6s cubic-bezier(.4,0,.2,1); }
@keyframes osPop { to { opacity: 1; transform: none; } }
.os-ln { position: relative; z-index: 3; align-self: end; width: 15cqh; height: 2px; margin-bottom: calc(2cqh + max(11px, 3.4cqh) * 1.05); translate: 1cqh 0; border-radius: 2px; background: linear-gradient(90deg, #e9e9ef, #3ddc84); opacity: 0; transform: scaleX(0); overflow: hidden; }
.os-ln b { position: absolute; top: -2px; left: 0; width: 24%; height: 6px; border-radius: 99px; background: #fff; box-shadow: 0 0 10px 2px #fff; transform: translateX(-120%); }
.hx-app.on .os-ln { animation: lnIn .6s 1.5s ease-out forwards; }
.hx-app.on .os-ln b { animation: lnRun 1.8s 2.1s ease-in-out infinite; }
@keyframes lnIn { to { opacity: .9; transform: none; } }
@keyframes lnRun { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(520%); } }

@media (prefers-reduced-motion: reduce) {
  .hx, .hx.on, .hx-ph .ip, .ad, .ip-ap, .ip-sd { transition: none; }
  .hx-app .ap2, .hx-app .os, .hx-app .os-ln { opacity: 1 !important; transform: none !important; }
  .hx.on *, .hx.on *::after, .eyebrow span.on { animation: none !important; }
  .hx-deck .pj-beam { opacity: 1; } .ds-gd { stroke-dashoffset: 0; } .ds-logo { clip-path: none; } .ds-sel { opacity: 1; }
}
