/* الصفحة الرئيسية: هيرو ثلاثي الأبعاد يثبت أثناء التمرير، عيّنات الحركة، لماذا نحن، نافذة الكود */

/* ---------- الهيرو ---------- */
.hero3 { position: relative; height: 460vh; height: calc(100svh * 4.6); }
.stick { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); height: calc(100svh - var(--hdr)); overflow: hidden; background: radial-gradient(ellipse 60% 70% at 85% 0%, rgba(255, 106, 61, .17), transparent 70%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(22, 33, 62, .1), transparent 70%), var(--paper); }
.h3-poster { position: absolute; inset: 0; z-index: 2; transition: opacity .9s var(--ease) .1s; pointer-events: none; } .h3-poster img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.stick.on3d .h3-poster { opacity: 0; }
.stick::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(14, 17, 23, .94) 0%, rgba(14, 17, 23, .72) 30%, rgba(14, 17, 23, 0) 62%); }
.h3-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; object-fit: cover; }
.h3-wrap { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.h3-copy { position: absolute; inset: 0; }
.chap { position: absolute; top: 50%; left: 0; width: min(560px, 100%); translate: 0 -50%; will-change: transform, opacity; }
.chap:not(:first-child) { opacity: 0; }
.chap .badge { margin-bottom: 20px; }
.chap .ck { color: var(--coral-d); font-weight: 700; font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; } .chap .ck::before { content: ''; width: 28px; height: 3px; background: var(--coral); border-radius: 2px; flex: none; }
html[lang="ar"] .chap .ck { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.chap :is(h1, h2) { font-size: clamp(2.15rem, 4.5vw, 3.7rem); line-height: 1.1; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
html[lang="ar"] .chap :is(h1, h2) { line-height: 1.28; }
.chap .cs { margin-top: 18px; font-size: 1.14rem; color: var(--text2); max-width: 31em; text-wrap: pretty; }
.h3-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.chap.on .h3-cta .btn, .chap .h3-cta .btn { pointer-events: auto; }
.h3-dots { position: absolute; z-index: 4; inset-inline-end: 20px; top: 50%; translate: 0 -50%; display: grid; gap: 14px; }
.h3-dots button { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid var(--edge); background: transparent; transition: background .3s, transform .3s var(--ease); } .h3-dots button.on { background: var(--coral); transform: scale(1.3); }
.h3-hint { position: absolute; z-index: 4; left: 50%; bottom: 18px; translate: -50% 0; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .86rem; color: var(--muted); transition: opacity .4s; }
.h3-hint::before { content: ''; width: 20px; height: 32px; border: 2px solid var(--edge); border-radius: 12px; background: radial-gradient(circle at 50% 8px, var(--coral) 3px, transparent 3.5px); animation: wheel 1.8s ease-in-out infinite; }
.h3-hint.gone { opacity: 0; }
@keyframes wheel { 0%, 100% { background-position: 0 0; } 50% { background-position: 0 10px; } }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 4px rgba(255, 106, 61, .3); } 50% { box-shadow: 0 0 0 9px rgba(255, 106, 61, 0); } }
.badge::before { animation: beat 2.2s ease-in-out infinite; }
/* محادثة واتساب HTML: بديل حين لا يعمل المشهد ثلاثي الأبعاد (الجوال في المشهد يعرض المحادثة نفسها) */
.chat { display: grid; gap: 9px; margin: 22px 0 4px; width: min(300px, 100%); position: relative; }
.stick.on3d .chat { display: none; }
.bub { background: var(--card); color: var(--fg); border: 2px solid var(--edge); border-radius: 16px 16px 16px 4px; padding: 9px 14px; font-weight: 600; font-size: .92rem; line-height: 1.5; box-shadow: 4px 4px 0 var(--sh); max-width: 90%; opacity: 0; }
.bub.me { background: #d9fdd3; justify-self: end; border-radius: 16px 16px 4px 16px; } .bub.you { grid-area: 2 / 1; }
.chap.on .bub.me { animation: bub 10s ease-in-out infinite; } .chap.on .bub.you { animation: bub2 10s ease-in-out infinite; } .chap.on .typing { animation: typ 10s ease-in-out infinite; }
.ticks { display: inline-block; width: 15px; height: 8px; margin-inline-start: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 9' fill='none' stroke='%23199ad8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 5l3 3L10 1M7 8l1 .8L15 1'/%3E%3C/svg%3E") center / contain no-repeat; }
.typing { grid-area: 2 / 1; justify-self: start; display: flex; gap: 5px; align-items: center; background: var(--card); border: 2px solid var(--edge); border-radius: 16px 16px 16px 4px; padding: 12px 14px; box-shadow: 4px 4px 0 var(--sh); opacity: 0; }
.typing b { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: dot 1s ease-in-out infinite; } .typing b:nth-child(2) { animation-delay: .15s; } .typing b:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { translate: 0 0; opacity: .45; } 50% { translate: 0 -4px; opacity: 1; } }
@keyframes bub { 0%, 5% { opacity: 0; translate: 0 14px; scale: .92; } 10%, 88% { opacity: 1; translate: 0 0; scale: 1; } 95%, 100% { opacity: 0; translate: 0 -6px; } }
@keyframes typ { 0%, 17% { opacity: 0; translate: 0 10px; } 21%, 33% { opacity: 1; translate: 0 0; } 36%, 100% { opacity: 0; } }
@keyframes bub2 { 0%, 35% { opacity: 0; translate: 0 14px; scale: .92; } 41%, 88% { opacity: 1; translate: 0 0; scale: 1; } 95%, 100% { opacity: 0; translate: 0 -6px; } }

@media (max-width: 760px) {
  .stick::after { content: ''; position: absolute; inset: auto 0 0 0; height: 58%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(14, 17, 23, 0), rgba(14, 17, 23, .94) 42%); }
  .chap { top: auto; bottom: 62px; translate: none; width: 100%; } .chap :is(h1, h2) { font-size: clamp(1.75rem, 8vw, 2.3rem); } .chap .cs { font-size: 1rem; margin-top: 12px; } .chap .badge { margin-bottom: 12px; font-size: .78rem; padding: 6px 13px; }
  .h3-cta { margin-top: 18px; padding-inline-end: 74px; } .h3-cta .btn { padding: 12px 20px; font-size: .96rem; flex: 1 1 auto; }
  .h3-dots { inset-inline-end: 10px; top: 22%; } .h3-hint { bottom: 12px; }
  .chat { margin-top: 14px; }
  .chap:nth-child(4) .h3-cta { margin-top: 14px; }
}
@media (max-height: 640px) and (min-width: 761px) { .chap :is(h1, h2) { font-size: clamp(1.9rem, 4vw, 2.7rem); } .chap .cs { margin-top: 12px; } .h3-cta { margin-top: 18px; } }
/* تقليل الحركة: لا تثبيت ولا مشهد؛ الصورة الثابتة والفصول تتتابع كنصوص عادية */
@media (prefers-reduced-motion: reduce) {
  .hero3 { height: auto; } .stick { position: relative; height: auto; overflow: visible; padding-bottom: 40px; }
  .h3-poster { bottom: auto; height: calc(100svh - var(--hdr)); opacity: 1 !important; } .h3-cv, .h3-dots, .h3-hint { display: none; }
  .h3-wrap { position: relative; inset: auto; pointer-events: auto; padding-top: 12vh; } .h3-copy { position: static; }
  .chap { position: static; translate: none; opacity: 1 !important; transform: none !important; pointer-events: auto !important; margin-bottom: 56px; width: min(560px, 100%); }
  .chap:first-child { min-height: calc(76svh - var(--hdr)); }
  .stick .chat { display: grid; } .bub, .bub.me, .bub.you { animation: none !important; opacity: 1; } .typing { display: none; } .bub.you { grid-area: auto; }
  .stick::after { display: none; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
  .h3-poster { position: relative; height: 56svh; } .h3-wrap { padding-top: 6px; } .chap:first-child { min-height: 0; } .chap { margin-bottom: 40px; } .stick { padding-bottom: 10px; }
}

/* ---------- الصفحة بعد الهيرو ---------- */
.pick { margin-top: 0; padding: 78px 0 26px; }
.sec-works { background: var(--paper) var(--dots); }
#featured .works { grid-template-columns: repeat(2, 1fr); }
#featured .sec-h { max-width: 760px; }

/* ---------- عيّنات الحركة ---------- */
.demos .sec-h { max-width: 780px; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.demo { background: var(--ink2); border: 2px solid rgba(255, 255, 255, .2); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 7px 7px 0 var(--coral); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.demo:hover { transform: translate(3px, -3px); box-shadow: 10px 10px 0 var(--coral); }
.demo-stage { aspect-ratio: 4 / 3; background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(255, 255, 255, .06), transparent 70%), #12141c; border-bottom: 2px solid rgba(255, 255, 255, .12); } .demo-stage canvas { display: block; width: 100%; height: 100%; }
.demo-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; position: relative; }
.dn { position: absolute; inset-inline-end: 22px; top: 18px; color: rgba(255, 255, 255, .18); font-weight: 700; font-size: 2.2rem; line-height: 1; }
.demo h3 { font-size: 1.4rem; line-height: 1.25; font-weight: 700; color: var(--on-ink); padding-inline-end: 56px; } .demo-body > p { color: var(--on-ink2); font-size: .98rem; text-wrap: pretty; }
.dv { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.dv b { display: flex; align-items: baseline; gap: 4px; font-size: 2.6rem; line-height: 1; font-weight: 700; color: var(--on-ink); font-variant-numeric: tabular-nums; direction: ltr; } .dv b i { font-style: normal; font-size: 1rem; font-weight: 600; color: var(--coral); }
.dv-s { border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 3px 14px; font-weight: 600; font-size: .86rem; color: var(--on-ink); white-space: nowrap; } .dv-s[data-s="2"] { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.rng-w { position: relative; padding-top: 4px; }
.rng { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 12px; margin: 8px 0; border-radius: 99px; background: var(--trk); outline-offset: 8px; }
.rng::-webkit-slider-runnable-track { height: 12px; background: transparent; border-radius: 99px; }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -8px; border-radius: 50%; background: var(--coral); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--sh), 0 4px 10px rgba(0, 0, 0, .45); transition: transform .15s; }
.rng:active::-webkit-slider-thumb { transform: scale(1.12); }
.rng::-moz-range-track { height: 12px; background: transparent; } .rng::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--coral); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--sh), 0 4px 10px rgba(0, 0, 0, .45); }
.rng-coffee { --trk: linear-gradient(90deg, #7e9150, #c1b44c 22%, #b9803b 42%, #7d4a25 62%, #4a2a15 82%, #1d100a); }
.rng-perf { --trk: linear-gradient(90deg, #ffcf6e, #ff6f91 45%, #d29a52); }
.rng-choco { --trk: linear-gradient(90deg, #5aa0e6, #d8cfb8 22%, #c4561e 62%, #ff6a3d); }
.mk { position: absolute; top: 0; left: var(--x); width: 3px; height: 9px; background: #fff; border-radius: 2px; translate: -50% 0; opacity: .8; }
.cks { display: flex; flex-wrap: wrap; gap: 8px; } .ck-i { font-size: .82rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .22); color: var(--on-ink3); transition: background .25s, color .25s, border-color .25s; } .ck-i.on { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.pl { display: inline-flex; align-items: center; gap: 8px; background: var(--coral); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 16px 6px 12px; font-weight: 700; font-size: .9rem; box-shadow: 0 0 0 2px var(--coral); } .pl svg { width: 18px; height: 18px; fill: currentColor; } .pl .i-pause { display: none; } .pl.on .i-pause { display: block; } .pl.on .i-play { display: none; }
.notes { display: grid; gap: 4px; margin-top: 2px; } .notes li { display: flex; align-items: center; gap: 10px; color: var(--on-ink3); font-size: .92rem; transition: color .25s; } .notes li i { width: 10px; height: 10px; border-radius: 50%; flex: none; opacity: .5; transition: opacity .25s, transform .25s; } .notes li.on { color: var(--on-ink); font-weight: 600; } .notes li.on i { opacity: 1; transform: scale(1.35); }
.demo-link { margin-top: auto; padding-top: 10px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; color: var(--coral); font-weight: 700; border-bottom: 2px solid transparent; transition: border-color .2s, gap .2s; } .demo-link:hover { border-color: var(--coral); gap: 12px; }

/* عيّنة «البناء»: بطاقة عريضة أكبر من الباقيات فوقها، بلا نصوص مرئية (أيقونات ومنزلق فقط) */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.demo-wide { grid-column: 1 / -1; box-shadow: 9px 9px 0 var(--coral); } .demo-wide:hover { box-shadow: 12px 12px 0 var(--coral); }
.demo-wide .demo-stage { aspect-ratio: 5 / 2; background: radial-gradient(ellipse 70% 80% at 70% 40%, rgba(255, 106, 61, .14), transparent 70%), radial-gradient(ellipse 60% 70% at 15% 60%, rgba(77, 158, 255, .1), transparent 70%), #12141c; }
.demo-bar { display: flex; align-items: center; gap: 22px; padding: 18px 26px 22px; }
.pl-i { width: 52px; height: 52px; padding: 0; justify-content: center; flex: none; box-shadow: 0 0 0 2px var(--coral), 3px 3px 0 3px var(--sh); } .pl-i svg { width: 22px; height: 22px; }
.bst-row { display: flex; gap: 10px; flex: none; }
.bst { width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .26); background: transparent; color: var(--on-ink3); transition: background .25s, color .25s, border-color .25s, transform .2s var(--ease); }
.bst svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; } .bst:hover { border-color: var(--coral); transform: translateY(-2px); }
.bst.done { color: var(--on-ink); border-color: rgba(255, 255, 255, .5); } .bst.on { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.demo-bar .rng-w { flex: 1; min-width: 0; } .rng-build { --trk: linear-gradient(90deg, #6b7088, #ff6a3d 40%, #ffd27a 75%, #2fc58a); }
@media (max-width: 1020px) { .demo-grid .demo-wide { max-width: none; } }
@media (max-width: 760px) {
  .demo-wide .demo-stage { aspect-ratio: 4 / 5.3; } .demo-bar { flex-wrap: wrap; gap: 14px 14px; padding: 16px 18px 20px; } .demo-bar .rng-w { flex: 1 1 100%; order: 3; }
  .pl-i { width: 46px; height: 46px; } .bst { width: 42px; height: 42px; flex: 1 1 0; max-width: 64px; } .bst-row { flex: 1; justify-content: flex-end; }
}

/* ---------- ما نقدّمه: قائمة وخدمة مرسومة بحركة صغيرة ---------- */
.svx { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 34px; align-items: stretch; background: var(--ink); border: 2px solid var(--ink); border-radius: 26px; padding: 30px; box-shadow: 9px 9px 0 var(--coral); color: var(--on-ink); }
.svx-vis { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 5 / 4; min-height: 300px; background: radial-gradient(ellipse 80% 70% at 50% 35%, rgba(255, 255, 255, .08), transparent 70%), #0e1017; border: 1.5px solid rgba(255, 255, 255, .14); }
.svx-vis::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 100%); }
.sc { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: scale(.94) translateY(12px); transition: opacity .55s var(--ease), transform .55s var(--ease), visibility 0s .55s; }
.sc.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sc *, .sc *::before, .sc *::after { animation-play-state: paused; } .sc.on *, .sc.on *::before, .sc.on *::after { animation-play-state: running; }
.svx.off .sc *, .svx.off .sc *::before, .svx.off .sc *::after { animation-play-state: paused !important; }
.bw { position: relative; width: 78%; height: 76%; display: flex; flex-direction: column; background: var(--paper); border-radius: 12px; border: 2px solid rgba(255, 255, 255, .22); box-shadow: 0 26px 40px -18px rgba(0, 0, 0, .75); overflow: hidden; }
.bw .bar { flex: none; height: 11%; min-height: 20px; display: flex; align-items: center; gap: 5px; padding-inline: 10px; background: #e4dfd3; } .bar i { width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; } .bar i:nth-child(2) { background: #febc2e; } .bar i:nth-child(3) { background: #28c840; } .bar b { margin-inline-start: 10px; flex: 1; max-width: 46%; height: 8px; border-radius: 4px; background: #fff; }
.bc { position: relative; flex: 1; overflow: hidden; }
.x { position: absolute; display: block; left: calc(var(--l) * 1%); top: calc(var(--t) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); border-radius: 5px; }
.x.o { height: auto; aspect-ratio: 1; } .x.r { border-radius: 99px; } .x.z { border-radius: 0; }
.x.k { background: #12141c; } .x.c { background: #ff6a3d; } .x.g { background: #d0d3de; } .x.gd { background: #a3a8bb; } .x.ik { background: #3b4052; } .x.m { background: #2fc58a; } .x.y { background: #ffd27a; } .x.bl { background: #4d9eff; } .x.p { background: #ebe6da; }
.x.w { background: #fff; border: 1.5px solid #12141c; } .x.hv { background: linear-gradient(135deg, #ff6a3d, #2a2f45); border-radius: 12px; }
/* ١ صفحة واحدة تتمرّر */
.pg { position: absolute; left: 0; top: 0; width: 100%; height: 230%; animation: pgs 9s ease-in-out infinite alternate; }
@keyframes pgs { to { transform: translateY(-56.5%); } }
.sbar { position: absolute; right: 3px; top: 5px; bottom: 5px; width: 4px; border-radius: 2px; background: rgba(18, 20, 28, .12); } .sbar u { position: absolute; left: 0; right: 0; top: 0; height: 42%; border-radius: 2px; background: #12141c; animation: sbt 9s ease-in-out infinite alternate; } @keyframes sbt { to { top: 58%; } }
/* ٢ عدة صفحات تتبدّل */
.x.pl { background: #3b4052; animation: plon 8s infinite; } .x.p2 { animation-delay: 2s; } .x.p3 { animation-delay: 4s; } .x.p4 { animation-delay: 6s; }
@keyframes plon { 0%, 23% { background: #ff6a3d; } 26%, 100% { background: #3b4052; } }
.pgs { position: absolute; left: 4%; right: 4%; top: 17%; bottom: 5%; opacity: 0; animation: pgc 8s infinite; } .pgs.g2 { animation-delay: 2s; } .pgs.g3 { animation-delay: 4s; } .pgs.g4 { animation-delay: 6s; }
@keyframes pgc { 0% { opacity: 0; transform: translateY(8px); } 3%, 23% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: translateX(-12px); } }
/* ٣ متجر ورسالة واتساب */
.x.bag { border-radius: 6px; overflow: visible; } .x.cnt { animation: cnt 6s infinite; } .x.fly { animation: fly 6s infinite; box-shadow: 0 0 0 4px rgba(255, 106, 61, .3); z-index: 3; }
@keyframes cnt { 0%, 29% { transform: scale(0); } 33% { transform: scale(1.35); } 38%, 100% { transform: scale(1); } }
@keyframes fly { 0%, 4% { opacity: 0; left: 20%; top: 30%; } 8% { opacity: 1; } 30% { left: 87%; top: 5%; opacity: 1; } 32%, 100% { opacity: 0; left: 87%; top: 5%; } }
.wab { position: absolute; z-index: 4; right: 5%; top: 16%; width: 52%; height: 24%; background: #d9fdd3; border: 2px solid #12141c; border-radius: 12px 12px 3px 12px; box-shadow: 3px 3px 0 #12141c; opacity: 0; transform-origin: 100% 0; animation: wab 6s infinite; }
.wab b { position: absolute; left: 10%; height: 11%; border-radius: 3px; background: #12141c; opacity: .72; } .wab b:nth-child(1) { top: 26%; width: 72%; } .wab b:nth-child(2) { top: 54%; width: 46%; }
.wab .tk { position: absolute; right: 8%; bottom: 12%; width: 18%; height: 14%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 9' fill='none' stroke='%23199ad8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 5l3 3L10 1M7 8l1 .8L15 1'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes wab { 0%, 34% { opacity: 0; transform: scale(.5) translateY(10px); } 40%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-6px); } }
/* ٤ مجسّم ثلاثي الأبعاد */
.st3 { position: relative; width: 100%; height: 100%; display: grid; place-items: center; perspective: 760px; }
.cube { --s: 118px; width: var(--s); height: var(--s); position: relative; transform-style: preserve-3d; animation: cspin 10s linear infinite; margin-top: -4%; }
.cube .f { position: absolute; inset: 0; border: 2px solid #12141c; }
.f1 { transform: translateZ(calc(var(--s) / 2)); background: #ff6a3d; } .f2 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); background: #12141c; border-color: #ff6a3d; } .f3 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); background: #f7f4ee; } .f4 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); background: #ffd27a; } .f5 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: #4d9eff; } .f6 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); background: #2fc58a; }
.f1 u, .f3 u { position: absolute; inset: 24%; border: 5px solid #12141c; border-radius: 50%; } .f3 u { border-radius: 8px; border-color: #ff6a3d; }
@keyframes cspin { from { transform: rotateX(-22deg) rotateY(0deg); } to { transform: rotateX(-22deg) rotateY(360deg); } }
.st3 .orb { position: absolute; left: 17%; top: 56%; width: 66%; aspect-ratio: 2.7; border: 2px dashed rgba(255, 255, 255, .38); border-radius: 50%; animation: orb 7s ease-in-out infinite alternate; }
@keyframes orb { from { transform: rotate(-6deg) scale(.96); } to { transform: rotate(6deg) scale(1.04); } }
.st3 .sh { position: absolute; left: 50%; bottom: 14%; width: 34%; height: 6%; translate: -50% 0; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(9px); animation: shp 5s ease-in-out infinite alternate; } @keyframes shp { to { width: 28%; opacity: .7; } }
.st3 .sp { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #ff6a3d; animation: spk 2.8s ease-in-out infinite; } .st3 .s1 { left: 22%; top: 24%; } .st3 .s2 { right: 20%; top: 34%; background: #ffd27a; animation-delay: .9s; } .st3 .s3 { right: 30%; top: 14%; background: #4d9eff; animation-delay: 1.8s; }
@keyframes spk { 0%, 100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1.4); opacity: 1; } }
/* ٥ حجز موعد */
.cal { position: absolute; left: 5%; top: 19%; width: 54%; height: 64%; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(4, 1fr); gap: 5px; align-items: center; justify-items: center; }
.cal i { display: block; width: 78%; aspect-ratio: 1; border-radius: 50%; background: #ddd9cd; } .cal i.a { background: #bfeedd; } .cal i.s { background: #ff6a3d; animation: dpulse 2s infinite; }
@keyframes dpulse { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 61, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(255, 106, 61, 0); } }
.x.sl.s2 { animation: slsel 7s infinite; } @keyframes slsel { 0%, 30% { background: #fff; } 36%, 100% { background: #ff6a3d; } }
.wab2 { top: auto; bottom: 6%; right: 5%; width: 58%; height: 22%; animation-duration: 7s; }
/* القائمة */
.svx-list { display: flex; flex-direction: column; justify-content: center; gap: 6px; margin: 0; }
.svx-b { position: relative; overflow: hidden; width: 100%; display: grid; grid-template-columns: 54px 1fr; column-gap: 14px; align-items: center; text-align: left; padding: 14px 18px; border-radius: 16px; border: 2px solid transparent; background: transparent; color: var(--on-ink); transition: background .3s, border-color .3s; }
.svx-b .n { grid-row: 1 / span 2; font-size: 1.9rem; line-height: 1; font-weight: 700; color: rgba(255, 255, 255, .26); font-variant-numeric: tabular-nums; transition: color .3s; }
.svx-b .t { font-size: 1.2rem; font-weight: 700; line-height: 1.3; } .svx-b .d { grid-column: 2; font-size: .96rem; color: var(--on-ink2); max-height: 0; opacity: 0; overflow: hidden; text-wrap: pretty; transition: max-height .45s var(--ease), opacity .3s, margin .3s; }
.svx-b:hover { background: rgba(255, 255, 255, .05); } .svx-b.on { background: rgba(255, 106, 61, .13); border-color: rgba(255, 106, 61, .65); } .svx-b.on .n { color: var(--coral); } .svx-b.on .d { max-height: 9em; opacity: 1; margin-top: 5px; }
.svx-b .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--coral); } .svx-b.on.auto .bar { animation: svbar 6s linear forwards; } @keyframes svbar { to { width: 100%; } }
html[lang="ar"] .svx-b :is(.t, .d) { unicode-bidi: plaintext; text-align: left; }
@media (max-width: 1020px) { .svx { grid-template-columns: 1fr; gap: 22px; padding: 22px; } .svx-vis { aspect-ratio: 4 / 3; } }
@media (max-width: 760px) { .svx { padding: 16px; border-radius: 20px; box-shadow: 6px 6px 0 var(--coral); } .svx-vis { aspect-ratio: 5 / 4; min-height: 0; } .cube { --s: 88px; } .svx-b { padding: 11px 12px; grid-template-columns: 42px 1fr; column-gap: 10px; } .svx-b .n { font-size: 1.5rem; } .svx-b .t { font-size: 1.08rem; } .bw { width: 86%; height: 82%; } }
@media (prefers-reduced-motion: reduce) { .sc *, .sc *::before, .sc *::after { animation: none !important; } .wab { opacity: 1; } .x.fly { display: none; } .pgs { opacity: 0; } .pgs.g1 { opacity: 1; } .x.pl.p1 { background: #ff6a3d; } .svx-b .bar { display: none; } }

/* ---------- لماذا نحن ---------- */
.why-in { display: grid; grid-template-columns: 1.55fr 1fr; gap: 34px; align-items: start; }
.why-table { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); overflow: hidden; box-shadow: 7px 7px 0 var(--sh); }
.why-head, .why-row { display: grid; grid-template-columns: .85fr 1.2fr 1.3fr; align-items: center; }
.why-head { background: var(--ink); color: var(--on-ink); } .why-head b, .why-head span { padding: 15px 18px; font-size: .92rem; font-weight: 700; } .why-head .us { color: var(--ink); background: var(--coral); }
.why-row { border-top: 1px solid var(--line); } .why-row > * { padding: 16px 18px; } .why-row h3 { font-size: 1rem; font-weight: 700; }
.why-row .oth { color: var(--muted); font-size: .96rem; text-wrap: pretty; }
.why-row .us { align-self: stretch; display: flex; align-items: center; gap: 12px; font-weight: 600; background: rgba(255, 106, 61, .09); font-size: .98rem; text-wrap: pretty; } .why-row .us i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--coral); display: grid; place-items: center; } .why-row .us i svg { width: 13px; height: 13px; }
.why-side { display: grid; gap: 24px; position: sticky; top: calc(var(--hdr) + 24px); }
.why-card { border: 2px solid var(--edge); border-radius: var(--r); padding: 28px 28px 30px; display: grid; gap: 12px; box-shadow: 7px 7px 0 var(--sh); }
.why-card h3 { font-size: 1.45rem; line-height: 1.25; font-weight: 700; text-wrap: balance; } .why-card p { text-wrap: pretty; font-size: 1.02rem; }
.why-price { background: var(--coral); color: var(--ink); } .why-price p { color: #2a1308; } .why-price .btn { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: 4px 4px 0 #fff; justify-self: start; margin-top: 6px; } .why-price .btn:hover { box-shadow: 6px 6px 0 #fff; }
.why-ch { background: var(--ink); color: var(--on-ink); box-shadow: 7px 7px 0 var(--coral); } .why-ch p { color: var(--on-ink2); }
.why-ch h3::before { content: ''; display: block; width: 44px; height: 4px; background: var(--coral); border-radius: 2px; margin-bottom: 14px; }

/* ---------- الكود ---------- */
.code-in { display: grid; grid-template-columns: 1fr 1.08fr; gap: 54px; align-items: center; }
.lead2 { margin-top: 14px; color: var(--text2); font-size: 1.08rem; text-wrap: pretty; max-width: 34em; }
.code-pts { display: grid; gap: 12px; margin: 26px 0 24px; } .code-pts li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: var(--fg); text-wrap: pretty; }
.code-pts i { flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--ink); color: var(--coral); display: grid; place-items: center; } .code-pts i svg { width: 13px; height: 13px; }
.chips-ink { margin-top: 0; } .chips-ink span { border-color: var(--edge); color: var(--fg); background: var(--card); }
.codewin { background: #0e1017; border: 2px solid var(--edge); border-radius: var(--r); box-shadow: 9px 9px 0 var(--coral); overflow: hidden; direction: ltr; }
.cw-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #181b26; border-bottom: 1px solid rgba(255, 255, 255, .1); } .cw-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .cw-bar i:nth-child(2) { background: #febc2e; } .cw-bar i:nth-child(3) { background: #28c840; } .cw-bar span { margin-inline-start: 12px; color: var(--on-ink3); font: 500 .82rem ui-monospace, Consolas, monospace; }
.cw-pre { margin: 0; padding: 22px 24px 28px; font: 500 .9rem/1.8 ui-monospace, 'SF Mono', 'JetBrains Mono', Consolas, monospace; color: #d6d9e6; min-height: 17.4em; white-space: pre; overflow: hidden; tab-size: 2; }
.cw-pre code { font: inherit; } .tc { color: #7a8097; font-style: italic; } .ts { color: #9be3a4; } .tk { color: #ff8a65; } .tf { color: #7cc4ff; } .tm { color: #7cc4ff; }
.cw-caret { display: inline-block; width: 9px; height: 1.15em; background: var(--coral); vertical-align: text-bottom; margin-left: 2px; animation: caret 1s steps(1) infinite; } .codewin.done .cw-caret { opacity: .0; animation: none; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- خطوات التواصل ---------- */
.steps3 { grid-template-columns: repeat(3, 1fr); } .steps3 li { padding-bottom: 14px; }
.steps3 li::before { width: 40px; height: 40px; top: -21px; font-size: 1.1rem; }
.promise { margin-top: 48px; display: inline-block; max-width: min(640px, 100%); background: var(--coral); color: var(--ink); border: 2px solid var(--on-ink); border-radius: 22px 22px 22px 4px; padding: 15px 26px; font-weight: 700; font-size: 1.08rem; box-shadow: 5px 5px 0 var(--on-ink); text-wrap: balance; }
.contact-btns .btn-line { background: transparent; }

@media (max-width: 1020px) {
  .demo-grid { grid-template-columns: 1fr 1fr; } .demo-grid .demo:last-child { grid-column: 1 / -1; max-width: 620px; width: 100%; margin-inline: auto; }
  .why-in { grid-template-columns: 1fr; } .why-side { position: static; grid-template-columns: 1fr 1fr; }
  .code-in { grid-template-columns: 1fr; gap: 38px; }
  #featured .works { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .demo-grid { grid-template-columns: 1fr; } .demo-grid .demo:last-child { max-width: none; }
  .why-side { grid-template-columns: 1fr; }
  .why-head { display: none; }
  .why-row { grid-template-columns: 1fr; padding: 14px 0 6px; } .why-row > * { padding: 6px 18px; } .why-row h3 { font-size: 1.08rem; }
  .why-row p::before { content: attr(data-c); display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 1px; } .why-row .us { background: rgba(255, 106, 61, .09); margin-top: 6px; align-items: flex-start; padding-block: 10px; } .why-row .us p::before { content: none; }
  .why-row .us::before { content: none; } .why-row .us > span { display: block; }
  #featured .works { grid-template-columns: 1fr; }
  .steps3 { grid-template-columns: 1fr; border-top: 0; } .steps3 li { padding: 18px 0 20px 58px; border-top: 1px solid rgba(255, 255, 255, .16); } .steps3 li:first-child { border-top: 2px solid var(--coral); } .steps3 li + li { border-inline-start: 0; } .steps3 li::before { top: 16px; inset-inline-start: 0; }
  .code-in { gap: 30px; } .cw-pre { font-size: .76rem; padding: 18px 16px 22px; min-height: 18.5em; }
}
@media (prefers-reduced-motion: reduce) { .cw-caret, .h3-hint::before, .badge::before { animation: none !important; } .demo { transition: none; } main { animation: none; } }

/* جهاز ضعيف (js/shared.js → deviceTier = weak): بلا مشهد ثلاثي الأبعاد، الهيرو شاشة واحدة بالصورة الثابتة والعنوان، فيُتخطّى من أول سكرول */
.hero-skip .hero3 { height: auto; }
.hero-skip .stick { position: relative; top: 0; height: calc(100svh - var(--hdr)); min-height: 520px; }
.hero-skip .chap:not(:first-child), .hero-skip .h3-dots, .hero-skip .h3-hint, .hero-skip .h3-cv { display: none; }
.hero-skip .chap:first-child { opacity: 1; }
