/* ===========================================================
   Fortunepack — site.css : الأساس والمكوّنات المشتركة
   الألوان من الشعار: أحمر #ed1c24 + أسود + أبيض
   =========================================================== */
@property --cut { syntax: '<length>'; inherits: true; initial-value: 14px; }
:root {
  --ink: #0b0b0c; --ink2: #121214; --ink3: #1a1a1d; --ink4: #242428;
  --paper: #f5f3ee; --paper2: #ebe8e1; --white: #fff;
  --red: #ed1c24; --red2: #c8141b; --red3: #ff4a50;
  --txt: #f4f2ee; --mut: rgba(244, 242, 238, .64); --mut2: rgba(244, 242, 238, .4);
  --line: rgba(255, 255, 255, .12); --line2: rgba(255, 255, 255, .22);
  --lineL: rgba(11, 11, 12, .14); --lineL2: rgba(11, 11, 12, .26); --mutL: rgba(11, 11, 12, .62);
  --kraft: #c99c64;
  --ease: cubic-bezier(.2, .7, .1, 1); --ease2: cubic-bezier(.7, 0, .2, 1);
  --fd: 'Instrument Serif', 'Times New Roman', serif;
  --fb: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fm: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --hh: 76px; --pad: clamp(20px, 4vw, 56px); --max: 1320px;
}
html[lang="ar"] {
  --fd: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --fb: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --fm: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 20px); background: var(--ink); }
body { margin: 0; font: 400 1rem/1.6 var(--fb); background: var(--ink); color: var(--txt); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body.lock { overflow: hidden; }
.pend body { visibility: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 400; background: var(--red); color: #fff; padding: 10px 16px; transition: top .3s; }
.skip:focus { top: 12px; }
.container { width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto; position: relative; }
.container.narrow { max-width: 760px; } .container.narrow2 { max-width: 980px; }
main { display: block; }

/* اتجاه واحد في كل اللغات: التخطيط LTR دائماً، والنص العربي يُرتَّب RTL داخل عنصره */
html[lang="ar"] [data-i18n] { direction: rtl; unicode-bidi: isolate; }
html[lang="ar"] :is(h1, h2, h3, h4, p, li, dd, dt, small, td, th, figcaption, label > span, .lead, .kicker)[data-i18n] { text-align: left; }
html[lang="ar"] :is(.hero-h1, .big, .ph-h1) { direction: rtl; }
html[lang="ar"] :is(.hero-h1, .big, .ph-h1) { text-align: left; }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] em, html[lang="ar"] i { font-style: normal; }
html[lang="ar"] :is(.kicker, .btn, .chip, .nav a, .lang button, .pc-cat, .ch-k, .stat span, small, th) { text-transform: none; }
html[lang="ar"] :is(h1, h2, h3, .big, .hero-h1, .stat b, .sty-no, .gc h3, .rs h3, .why-list h3, .pc h3, .ch h2, .ccard b, .ct-form h2, .qm-card h2, .lb-copy h2, .ps-b h3, .cta h2, .inq h2, .sh h2) { line-height: 1.22; font-weight: 800; letter-spacing: 0; }
html[lang="ar"] .big-p { font-weight: 700; line-height: 1.5; }
html[lang="ar"] .hero-h1 { font-weight: 900; }

/* ---------- عناصر نصية ---------- */
.kicker { display: flex; align-items: center; gap: 12px; font: 500 .72rem/1.2 var(--fm); letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.kicker::before { content: ""; width: 30px; height: 1px; background: currentColor; flex: none; }
.lead { font-size: clamp(1.02rem, 1.2vw, 1.22rem); line-height: 1.7; color: var(--mut); max-width: 36em; }
.light .lead, .white .lead { color: var(--mutL); }
.big { font: 400 clamp(2.9rem, 7.4vw, 7.4rem)/.96 var(--fd); letter-spacing: -.028em; max-width: 14ch; }
.big .ln { display: inline; } .big em, .hero-h1 em { color: var(--red); font-style: italic; }
.big-p { font: 400 clamp(1.5rem, 2.7vw, 2.5rem)/1.28 var(--fd); letter-spacing: -.01em; }
.sh { display: grid; gap: 18px; margin-bottom: clamp(34px, 5vw, 64px); max-width: 52rem; }
.sh h2, .cta h2, .inq h2, .rel h2, .specs h2 { font: 400 clamp(2.3rem, 5vw, 4.6rem)/1 var(--fd); letter-spacing: -.025em; }
.sh .sub { color: var(--mut); font-size: 1.08rem; line-height: 1.7; max-width: 38em; }
.light .sh .sub, .white .sh .sub { color: var(--mutL); }
section { position: relative; }
.dark { background: var(--ink); color: var(--txt); }
.light { background: var(--paper); color: var(--ink); }
.white { background: #fff; color: var(--ink); }
.dark, .light, .white { padding-block: clamp(70px, 9vw, 130px); overflow: hidden; }

/* ---------- أزرار: زاوية مقصوصة تنطوي عند المرور ---------- */
.btn { --cut: 14px; position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 17px 24px 17px 28px; font: 600 .72rem/1 var(--fm); letter-spacing: .15em; text-transform: uppercase; color: #fff; background: var(--red); border: 0; cursor: pointer; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); transition: color .45s var(--ease), --cut .45s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: #fff; transform: translateY(101%); transition: transform .6s var(--ease2); z-index: -1; }
.btn::after { content: ""; position: absolute; top: 0; right: 0; width: var(--cut); height: var(--cut); background: linear-gradient(to top right, rgba(0, 0, 0, .4) 50%, transparent 50%); }
.btn:hover { --cut: 22px; color: var(--ink); } .btn:hover::before { transform: none; }
.btn span { position: relative; }
.btn .ar { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); } .btn:hover .ar { transform: translateX(6px); }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line2); color: #fff; }
.btn--ghost::after { background: linear-gradient(to top right, transparent calc(50% - .6px), var(--line2) calc(50% - .6px), var(--line2) calc(50% + .6px), transparent calc(50% + .6px)); }
.btn--dark { background: var(--ink); color: #fff; } .btn--dark::before { background: var(--red); } .btn--dark:hover { color: #fff; }
.btn--light { background: #fff; color: var(--ink); } .btn--light::before { background: var(--ink); } .btn--light:hover { color: #fff; } .btn--light::after { background: linear-gradient(to top right, rgba(0, 0, 0, .18) 50%, transparent 50%); }
.btn--line { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); color: #fff; } .btn--line::before { background: #fff; }
.btn--line::after { background: linear-gradient(to top right, transparent calc(50% - .6px), rgba(255, 255, 255, .7) calc(50% - .6px), rgba(255, 255, 255, .7) calc(50% + .6px), transparent calc(50% + .6px)); }
.btn--sm { --cut: 11px; padding: 12px 18px 12px 20px; font-size: .64rem; gap: 10px; }
.light .btn--ghost { box-shadow: inset 0 0 0 1px var(--lineL2); color: var(--ink); } .light .btn--ghost:hover { color: #fff; } .light .btn--ghost::before { background: var(--ink); }

/* ---------- الهيدر ---------- */
.site { position: fixed; inset: 0 0 auto 0; z-index: 70; height: var(--hh); transition: background .45s, backdrop-filter .45s; view-transition-name: site-header; }
.site::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line2), transparent); opacity: 0; transition: opacity .45s; }
.site.scrolled { background: rgba(11, 11, 12, .8); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.site.scrolled::after { opacity: 1; }
.hd-in { height: 100%; display: flex; align-items: center; gap: 20px; padding-inline: var(--pad); max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; }
.brand { flex: none; display: block; } .brand img { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 0; margin-inline: auto; flex-shrink: 0; }
.nav a { position: relative; display: flex; align-items: flex-start; gap: 6px; padding: 10px 10px; font: 600 .72rem/1 var(--fb); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: rgba(255, 255, 255, .74); transition: color .3s; }
.nav a i { font: 500 .52rem/1 var(--fm); color: var(--red); transform: translateY(-4px); font-style: normal; }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 1px; height: 1px; background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.nav a:hover, .nav a.on { color: #fff; } .nav a:hover::after { transform: scaleX(1); }
.nav a.on::after { transform: scaleX(1); background: var(--red); height: 2px; }
.hd-r { display: flex; align-items: center; gap: 14px; flex: none; }
.lang { --i: 0; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; width: 114px; border: 1px solid var(--line2); border-radius: 99px; background: rgba(255, 255, 255, .04); }
.lang-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 99px; background: var(--red); transform: translateX(calc(var(--i) * 100%)); transition: transform .65s var(--ease2); box-shadow: 0 0 20px rgba(237, 28, 36, .55); }
.lang button { position: relative; z-index: 1; padding: 8px 0 7px; font: 600 .66rem/1 var(--fm); letter-spacing: .08em; color: rgba(255, 255, 255, .66); transition: color .3s; }
.lang button[aria-pressed="true"] { color: #fff; } .lang button:hover { color: #fff; }
.burger { display: none; width: 44px; height: 44px; position: relative; border: 1px solid var(--line2); border-radius: 50%; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; transition: transform .5s var(--ease), opacity .3s; }
.burger i:nth-child(1) { top: 16px; } .burger i:nth-child(2) { top: 21px; } .burger i:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(5px) rotate(45deg); } .burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; } .burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 65; background: var(--ink); clip-path: circle(0 at calc(100% - 46px) 38px); visibility: hidden; transition: clip-path .85s var(--ease2), visibility 0s .85s; overflow: auto; }
.mnav.open { clip-path: circle(150vmax at calc(100% - 46px) 38px); visibility: visible; transition: clip-path .85s var(--ease2); }
.mnav-in { min-height: 100%; padding: calc(var(--hh) + 20px) var(--pad) 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; background: radial-gradient(70% 50% at 90% 0, rgba(237, 28, 36, .22), transparent 70%); }
.mnav nav { display: grid; }
.mnav nav a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 400 clamp(2.2rem, 9vw, 3.4rem)/1.1 var(--fd); opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease), color .3s; }
.mnav.open nav a { opacity: 1; transform: none; } .mnav.open nav a:nth-child(1) { transition-delay: .25s; } .mnav.open nav a:nth-child(2) { transition-delay: .3s; } .mnav.open nav a:nth-child(3) { transition-delay: .35s; } .mnav.open nav a:nth-child(4) { transition-delay: .4s; } .mnav.open nav a:nth-child(5) { transition-delay: .45s; } .mnav.open nav a:nth-child(6) { transition-delay: .5s; }
.mnav nav a i { font: 500 .66rem var(--fm); color: var(--red); font-style: normal; } .mnav nav a.on { color: var(--red); }
.mnav-b { display: grid; gap: 18px; justify-items: start; } .lang--m { width: 150px; } .mnav-a { color: var(--mut); font-size: .86rem; max-width: 30em; }

/* ---------- مؤشر + مسطرة + علامات قص ---------- */
.cur { position: fixed; inset: 0; pointer-events: none; z-index: 300; opacity: 0; transition: opacity .3s; display: none; }
.has-cur .cur { display: block; } .cur.show { opacity: 1; }
.has-cur, .has-cur * { cursor: none !important; } .has-cur :is(input, textarea, select) { cursor: text !important; }
.cur-dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); transition: opacity .2s; }
.cur-ring { position: absolute; left: 0; top: 0; width: 40px; height: 40px; translate: -50% -50%; transition: opacity .2s; }
.cur-rot { position: absolute; inset: 0; display: block; transition: rotate .45s var(--ease); }
.cur-rot::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(237, 28, 36, .9); border-radius: 50%; transition: transform .45s var(--ease), background .3s, border-color .3s; }
.cur-rot b { position: absolute; background: var(--red); transition: transform .45s var(--ease); }
.cur-rot b:nth-child(1) { left: 50%; top: 0; width: 1px; height: 9px; } .cur-rot b:nth-child(2) { left: 50%; bottom: 0; width: 1px; height: 9px; }
.cur-rot b:nth-child(3) { top: 50%; left: 0; height: 1px; width: 9px; } .cur-rot b:nth-child(4) { top: 50%; right: 0; height: 1px; width: 9px; }
.is-link .cur-rot::before { transform: scale(1.5); background: rgba(237, 28, 36, .14); } .is-link .cur-rot { rotate: 45deg; }
.is-card .cur-rot::before { transform: scale(2.7); background: var(--red); border-color: var(--red); } .is-card .cur-rot b { transform: scale(0); } .is-card .cur-dot { opacity: 0; }
.cur-lab { position: absolute; left: 0; top: 0; translate: -50% -50%; font: 600 .56rem/1 var(--fm); color: #fff; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transition: opacity .25s; white-space: nowrap; }
.is-card .cur-lab { opacity: 1; } .is-text .cur-ring, .is-text .cur-dot { opacity: 0; } .is-down .cur-rot::before { transform: scale(.8); }
.ruler { position: fixed; left: 0; top: 0; bottom: 0; width: 26px; z-index: 40; pointer-events: none; display: none; --sy: 0;
  background: linear-gradient(rgba(128, 128, 128, .5) 0 1px, transparent 1px) right 0 top calc(var(--sy) * -1px) / 5px 3.7795px repeat-y, linear-gradient(rgba(128, 128, 128, .55) 0 1px, transparent 1px) right 0 top calc(var(--sy) * -1px) / 9px 18.8975px repeat-y, linear-gradient(rgba(128, 128, 128, .7) 0 1px, transparent 1px) right 0 top calc(var(--sy) * -1px) / 15px 37.795px repeat-y; }
.ruler-flag { position: absolute; left: 0; top: 50%; translate: 0 -50%; display: block; padding: 3px 7px 3px 5px; background: var(--red); color: #fff; font: 600 .56rem/1 var(--fm); font-style: normal; letter-spacing: .04em; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%); white-space: nowrap; }
.ruler-flag b { font-weight: 600; }
.crop { display: none; position: fixed; inset: 0; pointer-events: none; z-index: 41; }
.crop i { position: absolute; width: 16px; height: 16px; border: 0 solid rgba(128, 128, 128, .6); }
.crop i:nth-child(1) { left: 36px; top: 96px; border-width: 1px 0 0 1px; } .crop i:nth-child(2) { right: 14px; top: 96px; border-width: 1px 1px 0 0; }
.crop i:nth-child(3) { left: 36px; bottom: 14px; border-width: 0 0 1px 1px; } .crop i:nth-child(4) { right: 14px; bottom: 14px; border-width: 0 1px 1px 0; }
@media (min-width: 1280px) { .ruler, .crop { display: block; } }
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 10px 30px rgba(0, 0, 0, .4); transition: transform .4s var(--ease); }
.fab svg { width: 28px; height: 28px; } .fab:hover { transform: scale(1.1) rotate(-8deg); }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .8); animation: fab 2.6s ease-out infinite; }
@keyframes fab { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- المحمِّل ---------- */
.loader { position: fixed; inset: 0; z-index: 500; background: var(--ink); display: grid; place-items: center; color: #fff; text-align: center; }
.ld-in { display: grid; justify-items: center; }
.ld-mark { width: 70px; height: auto; animation: ldp 1.1s ease-in-out infinite alternate; }
.ld-bar { width: 210px; height: 2px; background: var(--line2); margin: 26px auto 14px; overflow: hidden; } .ld-bar i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.loader p { font: 500 .66rem var(--fm); letter-spacing: .2em; text-transform: uppercase; color: var(--mut); } .loader p b { color: #fff; font-weight: 500; margin-inline: 8px 2px; }
.loader.done { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease2); pointer-events: none; }
@keyframes ldp { from { transform: scale(.92); opacity: .75; } to { transform: scale(1.04); opacity: 1; } }

/* ---------- رسومات الخلفية المتحركة (قوالب) ---------- */
.has-fx > .container, .has-fx > .hero-grid { position: relative; z-index: 1; }
.fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; color: rgba(255, 255, 255, .11); }
.light .fx, .white .fx { color: rgba(11, 11, 12, .1); }
.fx--hero { color: rgba(255, 255, 255, .13); } .fx--cta { color: rgba(255, 255, 255, .26); }
.fx-d { position: absolute; transform: translate3d(0, var(--py, 0px), 0) rotate(var(--r, 0deg)); animation: fxf 28s ease-in-out infinite alternate; animation-delay: var(--dl, 0s); will-change: transform; }
.fx-d svg { width: 100%; height: 100%; overflow: visible; }
.fx-cut { fill: none; stroke: currentColor; stroke-width: 1.2px; stroke-linejoin: round; }
.fx-cr { fill: none; stroke: var(--red); stroke-width: 1px; stroke-dasharray: 7 7; opacity: .55; }
.fx--cta .fx-cr { stroke: #fff; opacity: .5; }
@keyframes fxf { from { translate: 0 0; rotate: 0deg; } to { translate: 16px -26px; rotate: 2.4deg; } }
@keyframes march { to { stroke-dashoffset: -140; } }

/* ---------- كشف عند التمرير ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* ---------- ألوان/انتقالات ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .45s ease both; } ::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } } @keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
.vt-lang::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
.vt-lang::view-transition-new(root) { animation: vt-reveal .95s var(--ease2) both; mix-blend-mode: normal; }
@keyframes vt-reveal { from { clip-path: circle(0 at var(--vx, 50%) var(--vy, 40px)); } to { clip-path: circle(150vmax at var(--vx, 50%) var(--vy, 40px)); } }
::view-transition-group(site-header) { animation-duration: 0s; }

/* ---------- نافذة عرض السعر ---------- */
.qm { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px; visibility: hidden; opacity: 0; transition: opacity .4s, visibility 0s .4s; }
.qm.open { visibility: visible; opacity: 1; transition: opacity .4s; }
.qm-back { position: absolute; inset: 0; background: rgba(5, 5, 6, .76); backdrop-filter: blur(10px); }
.qm-card { --cut: 26px; position: relative; width: min(740px, 100%); max-height: calc(100dvh - 36px); overflow: auto; background: var(--ink2); color: #fff; border: 0; padding: clamp(24px, 4vw, 42px); display: grid; gap: 16px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); transform: translateY(30px) scale(.98); transition: transform .7s var(--ease); box-shadow: inset 0 0 0 1px var(--line2); }
.qm.open .qm-card { transform: none; }
.qm-card h2 { font: 400 clamp(2rem, 4vw, 3rem)/1 var(--fd); } .qm-sub { color: var(--mut); }
.qm-x { position: absolute; right: 30px; top: 18px; width: 40px; height: 40px; border: 1px solid var(--line2); border-radius: 50%; } .qm-x i { position: absolute; left: 11px; right: 11px; top: 19px; height: 1.5px; background: #fff; } .qm-x i:first-child { rotate: 45deg; } .qm-x i:last-child { rotate: -45deg; }
.qm-x:hover { background: var(--red); border-color: var(--red); }
.qm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 6px; } .fld.wide { grid-column: 1 / -1; }
.fld span { display: block; font: 500 .62rem var(--fm); letter-spacing: .16em; text-transform: uppercase; color: var(--mut); margin-bottom: 4px; }
.fld input, .fld select, .fld textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line2); border-radius: 0; color: #fff; padding: 10px 0; font: inherit; font-size: 1rem; outline: 0; transition: border-color .3s; resize: vertical; }
.fld select { appearance: none; background: transparent; } .fld select option { background: var(--ink2); color: #fff; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--red); } .fld input::placeholder { color: var(--mut2); }
.qm-err { color: var(--red3); font-size: .9rem; } .qm-act { display: flex; justify-content: flex-end; margin-top: 4px; }

/* ---------- أقسام مشتركة ---------- */
.cta { background: var(--red); color: #fff; padding-block: clamp(70px, 9vw, 120px); overflow: hidden; }
.cta-in { display: flex; gap: 30px 60px; align-items: end; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { max-width: 14ch; } .cta p { margin-top: 18px; max-width: 34em; font-size: 1.1rem; opacity: .9; }
.cta-b { display: flex; gap: 14px; flex-wrap: wrap; }
.stats { padding-block: clamp(36px, 5vw, 64px); border-block: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { display: grid; gap: 10px; } .stat b { font: 400 clamp(3rem, 6.2vw, 5.8rem)/1 var(--fd); color: #fff; display: flex; align-items: baseline; } .stat b::after { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--red); margin-inline-start: 10px; transform: translateY(-4px); }
.stat span { font: 500 .72rem var(--fm); letter-spacing: .15em; text-transform: uppercase; color: var(--mut); }
.why-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.light .why-list { border-color: var(--lineL); }
.why-list li { padding: 30px 26px 8px 0; border-right: 1px solid var(--line); margin-right: 26px; } .why-list li:last-child { border: 0; margin: 0; }
.light .why-list li { border-color: var(--lineL); }
.w-n { font: 500 .7rem var(--fm); color: var(--red); letter-spacing: .14em; } .why-list h3 { font: 400 1.9rem/1.1 var(--fd); margin: 16px 0 10px; } .why-list p { color: var(--mut); font-size: .98rem; } .light .why-list p { color: var(--mutL); }

/* ---------- بطاقات المنتجات ---------- */
.pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pc { --cut: 26px; position: relative; display: flex; flex-direction: column; background: var(--ink2); color: #fff; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease), --cut .5s var(--ease); isolation: isolate; }
.pc::after { content: ""; position: absolute; top: 0; right: 0; width: var(--cut); height: var(--cut); background: linear-gradient(to top right, var(--red) 50%, transparent 50%); z-index: 3; transition: width .5s var(--ease), height .5s var(--ease); }
.pc:hover { --cut: 38px; transform: translateY(-6px); }
.pc[hidden] { display: none; }
.pc-art { position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; background: radial-gradient(55% 55% at 50% 56%, rgba(237, 28, 36, .2), transparent 72%), radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.3px) 0 0 / 22px 22px; }
.pc-art .art { width: 74%; transition: transform .8s var(--ease); } .pc:hover .pc-art .art { transform: translateY(-10px) rotate(-2deg) scale(1.06); }
.pc-no { position: absolute; left: 18px; top: 16px; font: 500 .64rem var(--fm); letter-spacing: .14em; color: var(--mut2); }
.pc-meta { padding: 22px 26px 26px; display: grid; gap: 10px; flex: 1; align-content: start; }
.pc-cat { font: 500 .62rem var(--fm); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.pc h3 { font: 400 clamp(1.5rem, 2vw, 1.9rem)/1.08 var(--fd); } .pc-d { color: var(--mut); font-size: .93rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-go { margin-top: 6px; display: inline-flex; align-items: center; gap: 10px; font: 600 .66rem var(--fm); letter-spacing: .15em; text-transform: uppercase; } .pc-go .ar { width: 18px; height: 18px; transition: transform .45s var(--ease); } .pc:hover .pc-go .ar { transform: translateX(6px); color: var(--red); }
.pc.pop { animation: pop .7s var(--ease) both; animation-delay: calc(var(--pi, 0) * 45ms); } @keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.pc-grid.is-list { grid-template-columns: 1fr; } .is-list .pc { flex-direction: row; align-items: stretch; } .is-list .pc-art { aspect-ratio: auto; width: 320px; flex: none; } .is-list .pc-meta { padding: 28px 40px 28px 30px; align-content: center; }
.art { line-height: 0; } .art svg { width: 100%; height: auto; display: block; overflow: visible; }

/* ---------- التذييل ---------- */
.foot { padding-block: 90px 36px; border-top: 1px solid var(--line); position: relative; }
.foot-lb { position: absolute; left: 0; right: 0; top: 0; height: 1px; } .foot-line { display: block; height: 1px; background: repeating-linear-gradient(90deg, var(--line2) 0 6px, transparent 6px 12px); }
.foot .lb { position: absolute; top: -28px; left: 0; width: 34px; height: 34px; animation: lbwalk 36s linear infinite, lbwob .5s ease-in-out infinite alternate; transition: translate 1.4s ease-in, rotate 1.4s ease-in, opacity 1.2s; pointer-events: auto; cursor: pointer; }
.foot .lb.fly { translate: 80px -180px; rotate: 35deg; opacity: 0; }
@keyframes lbwalk { 0% { transform: translateX(10px) scaleX(1); } 49% { transform: translateX(calc(100vw - 60px)) scaleX(1); } 50% { transform: translateX(calc(100vw - 60px)) scaleX(-1); } 99% { transform: translateX(10px) scaleX(-1); } 100% { transform: translateX(10px) scaleX(1); } }
@keyframes lbwob { to { rotate: 4deg; } }
.foot-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1.4fr; gap: 40px; }
.foot-brand img { height: 42px; width: auto; } .foot-brand p { margin-top: 18px; color: var(--mut); max-width: 28em; } .foot-co { font: 500 .66rem var(--fm); letter-spacing: .06em; color: var(--mut2) !important; }
.foot h4 { font: 500 .66rem var(--fm); letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.foot li { margin-bottom: 10px; } .foot li a, .foot-c a { color: var(--mut); transition: color .3s; } .foot li a:hover, .foot-c a:hover { color: #fff; }
.foot-c p { display: flex; gap: 12px; margin-bottom: 14px; color: var(--mut); line-height: 1.5; } .foot .ic { width: 20px; height: 20px; flex: none; color: var(--red); margin-top: 1px; }
.foot-c a { display: flex; gap: 12px; align-items: flex-start; }
.foot-bot { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--line); font: 500 .74rem var(--fm); color: var(--mut2); }
.foot-bot a:hover { color: #fff; } .foot-luck { margin-inline-start: auto; } .cbar { display: inline-flex; gap: 3px; } .cbar i { width: 10px; height: 10px; display: block; }
.foot-demo { margin-top: 18px; font-size: .74rem; color: var(--mut2); }

/* ---------- أداء: إيقاف الحركات خارج الشاشة ---------- */
main > section:not(.vis) *, main > section:not(.vis) *::before, main > section:not(.vis) *::after, footer.foot:not(.vis) *, footer.foot:not(.vis) .lb { animation-play-state: paused !important; }

/* ---------- حركة مخفّضة ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; } html { scroll-behavior: auto; }
}

/* ---------- استجابة ---------- */
@media (max-width: 1320px) {
  .nav, .hd-r .btn { display: none; } .burger { display: block; } .hd-r { margin-inline-start: auto; }
  .hd-in { gap: 12px; }
}
@media (max-width: 980px) {
  .pc-grid { grid-template-columns: repeat(2, 1fr); } .why-list { grid-template-columns: repeat(2, 1fr); } .why-list li { border: 0; margin: 0 0 16px; padding: 22px 12px 8px 0; border-top: 1px solid var(--line); }
  .light .why-list li { border-color: var(--lineL); } .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats-in { gap: 14px; }
}
@media (max-width: 640px) {
  :root { --hh: 66px; }
  .pc-grid { grid-template-columns: 1fr; } .why-list { grid-template-columns: 1fr; } .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .brand img { height: 28px; } .qm-grid { grid-template-columns: 1fr; } .qm-x { right: 16px; }
  .stat b { font-size: 2.6rem; } .stat span { font-size: .6rem; letter-spacing: .08em; }
  .fab { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .btn { padding: 16px 20px 16px 22px; }
  .is-list .pc { flex-direction: column; } .is-list .pc-art { width: auto; aspect-ratio: 5 / 4; }
  .cta-b .btn { width: 100%; }
}

/* ---------- العربية (Cairo): مقاسات النصوص الصغيرة ---------- */
html[lang="ar"] body { line-height: 1.7; }
html[lang="ar"] .kicker { font-size: .88rem; font-weight: 700; }
html[lang="ar"] .btn { font-size: .84rem; font-weight: 700; }
html[lang="ar"] .btn--sm { font-size: .78rem; }
html[lang="ar"] .nav a { font-size: .9rem; font-weight: 600; }
html[lang="ar"] .nav a i { font-size: .52rem; }
html[lang="ar"] .chip, html[lang="ar"] .opt, html[lang="ar"] .dw-types button { font-size: .84rem; font-weight: 600; }
html[lang="ar"] .pc-cat, html[lang="ar"] .gc-n, html[lang="ar"] .ch-k, html[lang="ar"] .pc-no { font-size: .78rem; font-weight: 600; }
html[lang="ar"] .pc-go, html[lang="ar"] .ct-count, html[lang="ar"] .crumb { font-size: .82rem; font-weight: 600; }
html[lang="ar"] .stat span, html[lang="ar"] .hero-hint, html[lang="ar"] .foot-bot, html[lang="ar"] .foot h4 { font-size: .86rem; font-weight: 600; }
html[lang="ar"] .fl-lab, html[lang="ar"] .dw-leg, html[lang="ar"] .ruler-flag { font-size: .72rem; font-weight: 600; }
html[lang="ar"] .fld span, html[lang="ar"] .dwi > span, html[lang="ar"] .dw-res dt, html[lang="ar"] .mini-k, html[lang="ar"] .ps-n span, html[lang="ar"] .chips2 small, html[lang="ar"] .mrow small, html[lang="ar"] #sel-list small, html[lang="ar"] .pn small, html[lang="ar"] .ccard small { font-size: .74rem; font-weight: 600; }
html[lang="ar"] .spec th[scope="row"], html[lang="ar"] .spec thead th { font-size: .82rem; font-weight: 700; }
html[lang="ar"] .ps-c, html[lang="ar"] .rs small, html[lang="ar"] .mr-v { font-size: .86rem; }
html[lang="ar"] .lead, html[lang="ar"] .sh .sub, html[lang="ar"] .hero .lead, html[lang="ar"] .sty-t p, html[lang="ar"] .ps-b p, html[lang="ar"] .lb-copy p { line-height: 1.95; }
html[lang="ar"] .pc-d, html[lang="ar"] .gc p, html[lang="ar"] .rs p, html[lang="ar"] .why-list p, html[lang="ar"] .ch p { line-height: 1.85; }
html[lang="ar"] .ltr[data-i18n] { direction: ltr; unicode-bidi: isolate; text-align: left; }

/* ---------- المؤشر: يعكس لون الخلفية (يبقى ظاهراً فوق الأحمر والأبيض والأسود) ---------- */
.cur-dot { background: var(--red); box-shadow: 0 0 0 2px #fff, 0 0 7px 2px rgba(0, 0, 0, .45); }
.cur-rot::before { border: 1.5px solid var(--red); box-shadow: 0 0 0 1.5px #fff, 0 0 10px 1px rgba(0, 0, 0, .4); }
.cur-rot b { background: var(--red); box-shadow: 0 0 0 1px #fff; }
.is-link .cur-rot::before { background: rgba(237, 28, 36, .2); }
.is-card .cur-rot::before { background: var(--red); border-color: var(--red); }
.cur-lab { color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, .4); }

/* ---------- سهم الصعود + توقيع الاستوديو ---------- */
.totop { position: fixed; right: 26px; bottom: 92px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 11, 12, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; opacity: 0; visibility: hidden; translate: 0 14px; transition: opacity .4s, translate .5s var(--ease), visibility 0s .4s, background .3s; }
.totop.show { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .4s, translate .5s var(--ease), background .3s; }
.totop:hover { background: var(--red); }
.tt-ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.tt-bg { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 2; } .tt-pr { fill: none; stroke: var(--red); stroke-width: 2.4; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.totop:hover .tt-pr { stroke: #fff; }
.tt-ar { position: relative; width: 20px; height: 20px; rotate: -90deg; transition: translate .4s var(--ease); } .totop:hover .tt-ar { translate: 0 -3px; }
.foot-credit { color: var(--mut2); } .foot-credit a { color: #fff; border-bottom: 1px solid var(--red); padding-bottom: 1px; transition: color .3s; } .foot-credit a:hover { color: var(--red3); }
@media (max-width: 640px) { .totop { right: 17px; bottom: 76px; width: 44px; height: 44px; } }

/* ---------- أداء: لا نرسم الأقسام البعيدة عن الشاشة ---------- */
main section:not(.hero):not(.phero):not(.ph), footer.foot { content-visibility: auto; contain-intrinsic-size: auto 760px; }

/* ===== مستويات الأداء: full / lite / ultra (تُحدَّد تلقائياً من قوة الجهاز ومعدل الإطارات) ===== */
html:not([data-perf="full"]) .fx { display: none; }
html:not([data-perf="full"]) :is(.site.scrolled, .ct-bar, .totop, .stage-tog, .call, .qm-back, .dw-leg) { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html:not([data-perf="full"]) .site.scrolled { background: rgba(11, 11, 12, .97); }
html:not([data-perf="full"]) .ct-bar { background: rgba(11, 11, 12, .98); }
html:not([data-perf="full"]) .cur { mix-blend-mode: normal; }
html:not([data-perf="full"]) .cur-dot, html:not([data-perf="full"]) .cur-rot b { background: var(--red); }
html:not([data-perf="full"]) .cur-rot::before { border-color: var(--red); }
html:not([data-perf="full"]) .hero-bg::after { display: none; }
html:not([data-perf="full"]) *, html:not([data-perf="full"]) *::before, html:not([data-perf="full"]) *::after { animation-iteration-count: 1 !important; }
html:not([data-perf="full"]) .flw { animation-iteration-count: infinite !important; }
html:not([data-perf="full"]) .art--hero { animation: none; }
html[data-perf="ultra"] .flw, html[data-perf="ultra"] .v-dash, html[data-perf="ultra"] .v-w { animation: none !important; }
html[data-perf="ultra"] .rv { opacity: 1; transform: none; transition: none; }
html[data-perf="ultra"] .pc, html[data-perf="ultra"] .gc, html[data-perf="ultra"] .btn, html[data-perf="ultra"] .ccard { transition: none; }
html[data-perf="ultra"] .loader { display: none; }
html[data-perf="ultra"] .ruler, html[data-perf="ultra"] .crop { display: none !important; }
html[data-perf="ultra"] .hero { height: auto; }
html[data-perf="ultra"] .hero-pin { position: relative; height: auto; min-height: 100svh; }
html[data-perf="ultra"] .hero-grid { height: auto; min-height: 100svh; }
html[data-perf="ultra"] .hero .ch { grid-area: auto; opacity: 1; transform: none; margin-bottom: 14px; }
html[data-perf="ultra"] .hero .chap-bar, html[data-perf="ultra"] .hero-hint, html[data-perf="ultra"] .floor { display: none; }
html[data-perf="ultra"] .hero-static { display: grid; }
.hero-static { display: none; position: absolute; inset: 0; place-items: center; padding: 70px 8% 30px; } .hero-static svg { width: 100%; height: auto; max-height: 100%; }
.perf-tg { display: inline-flex; align-items: center; gap: 9px; font: 500 .74rem var(--fm); color: var(--mut2); transition: color .3s; } .perf-tg:hover { color: #fff; }
.perf-tg i { position: relative; width: 28px; height: 16px; border-radius: 99px; background: rgba(255, 255, 255, .16); transition: background .3s; } .perf-tg i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: translate .35s var(--ease); }
.perf-tg[aria-pressed="true"] i { background: var(--red); } .perf-tg[aria-pressed="true"] i::after { translate: 12px 0; }
html[lang="ar"] .perf-tg { font-size: .86rem; }

/* ===== الدعسوقة (المرافِقة): تمشي، تنتظر، وتصعد ===== */
.bug { display: block; width: 22px; height: 22px; animation: bugwob .32s ease-in-out infinite alternate; }
@keyframes bugwob { from { rotate: -8deg; } to { rotate: 8deg; } }
.bug-pos { position: absolute; display: block; pointer-events: none; line-height: 0; }
.bug-pos:not(.go) .bug { animation-play-state: paused; }
html[data-perf="ultra"] .bug { animation: none !important; }
/* شاشة التحميل: تمشي على شريط التقدّم */
.ld-track { position: relative; width: 210px; height: 2px; margin: 34px auto 14px; }
.ld-track .ld-bar { margin: 0; width: 100%; }
.ld-bug { left: 0; top: -22px; transform: translateX(-11px) rotate(90deg); }
/* شريط فصول الهيرو: تتقدّم مع التمرير (حسب الاتجاه) */
.chap-bug { left: 0; top: -12px; width: 22px; height: 22px; transform: translateX(-50%) rotate(90deg); transition: transform .35s var(--ease); }
/* خط الإنتاج العمودي */
.ps-bug { left: -10px; top: 0; width: 22px; height: 22px; transform: translateY(-4px) rotate(180deg); transition: transform .35s var(--ease); z-index: 3; }
/* نافذة عرض السعر: تعبر الحافة العلوية عند الفتح */
.qm-card { overflow: hidden auto; }
.qm-bug { left: 0; top: 4px; opacity: 0; }
.qm.open .qm-bug { animation: qmwalk 3.2s ease-in-out .55s both; }
@keyframes qmwalk { 0% { opacity: 0; transform: translateX(10px) rotate(90deg); } 10% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(min(700px, 92vw)) rotate(90deg); } }
/* لا نتائج: تتلفّت يمنة ويسرة */
.ct-none { display: grid; justify-items: center; gap: 12px; padding: 60px 0; color: var(--mut); font-size: 1.2rem; } .ct-none[hidden] { display: none; }
.ct-none .look { display: block; animation: look 3.6s ease-in-out infinite; } .ct-none .bug { width: 34px; height: 34px; }
@keyframes look { 0%, 100% { rotate: 0deg; } 20% { rotate: -50deg; } 45% { rotate: 38deg; } 70% { rotate: -24deg; } }
/* 404: دعسوقة تائهة */
.lost-sec { overflow: hidden; }
.lost-bug { position: absolute; left: 0; top: 0; width: 44px; height: 44px; z-index: 2; offset-path: path('M 40 520 C 200 380, 330 640, 520 470 S 820 260, 980 400 S 1250 560, 1400 300'); offset-rotate: auto 90deg; animation: lostwalk 16s linear infinite alternate; pointer-events: none; }
.lost-bug .bug { width: 44px; height: 44px; }
@keyframes lostwalk { from { offset-distance: 0%; } to { offset-distance: 100%; } }
/* طيران الدعسوقة عند الضغط على سهم الصعود + دعسوقة الخمول */
.bug-fly { position: fixed; z-index: 75; width: 24px; height: 24px; pointer-events: none; line-height: 0; }
.bug-fly .bug { width: 24px; height: 24px; }
.stats-in--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .stats-in--4 { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; } }
