/* =========================================================
   لمسة تك — Lamsa Tech
   خطوط خفيفة · مساحات واسعة · ثيم فاتح (أساسي) + غامق
   ========================================================= */

@property --hole { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --font-ar: 'Alexandria', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --font-lat: 'Space Grotesk', 'Alexandria', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --r-xl: 36px;
  --r-lg: 26px;
  --nav-h: 62px;
}

/* ---------- فاتح: أبيض تلجي ونور بارد هادي ---------- */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --ink: #141a24;
  --ink-2: #525d6e;
  --ink-3: #8b95a5;
  --glass: rgba(255, 255, 255, .5);
  --glass-2: rgba(255, 255, 255, .6);
  --glass-border: rgba(255, 255, 255, .9);
  --line: rgba(20, 35, 60, .09);
  --shadow: 0 30px 80px -36px rgba(60, 85, 125, .3), inset 0 1px 0 rgba(255, 255, 255, .95);
  --btn: #141a24;
  --btn-ink: #ffffff;
  --accent: #f0582a;
  --accent-2: #b0569a;
  --pink: #f0476f;
  --ok: #18b26b;
  --bad: #e2483d;
  --panel: rgba(252, 253, 255, .92);

  --stars-op: 0;
  --star: 60, 85, 165;
  --galaxy: transparent;
  --grid: rgba(20, 35, 60, .05);
  --blob-op: .75;
  --b1: #d4e4ff; --b2: #e2ecff; --b3: #dde9f7; --b4: #ece6ff;
  --bokeh: 190, 214, 255;
  --bokeh-op: .5;
  --floor: rgba(150, 180, 220, .14);
  --vignette: rgba(100, 130, 175, .08);
  --stage-base: #e6edf7;
  --stage-a: #cfe0ff; --stage-b: #e3dcff; --stage-c: #f1f6ff;
  --mock-bg: #fff; --mock-ink: #141a24; --mock-soft: #f2f5f9; --mock-line: #e2e8f0;
}

/* ---------- غامق: فضاء — نجوم وسدم بنفسجي وأزرق ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #04050d;
  --ink: #eef1ff;
  --ink-2: #aab2cf;
  --ink-3: #6c7593;
  --glass: rgba(200, 210, 255, .06);
  --glass-2: rgba(200, 210, 255, .08);
  --glass-border: rgba(190, 205, 255, .16);
  --line: rgba(190, 205, 255, .1);
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(210, 220, 255, .14);
  --btn: #eef1ff;
  --btn-ink: #070914;
  --accent: #6ea8ff;
  --accent-2: #a78bfa;
  --pink: #e879f9;
  --panel: rgba(14, 17, 34, .9);

  --stars-op: 1;
  --star: 255, 255, 255;
  --galaxy: rgba(120, 110, 255, .12);
  --grid: rgba(190, 205, 255, .05);
  --blob-op: .38;
  --b1: #4f46e5; --b2: #2563eb; --b3: #3b1d8f; --b4: #7c3aed;
  --bokeh: 150, 170, 255;
  --bokeh-op: .45;
  --floor: rgba(70, 90, 200, .12);
  --vignette: rgba(0, 0, 0, .7);
  --stage-base: #0b0d1f;
  --stage-a: #2b2a7a; --stage-b: #1b2f6b; --stage-c: #4c2a8a;
  --mock-bg: #111428; --mock-ink: #eef1ff; --mock-soft: #191d36; --mock-line: #262b4a;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-ar);
  font-weight: 300;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
html.intro-on body, html.lock body { overflow: hidden; }
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
b, strong { font-weight: 500; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }

.mono {
  font-family: var(--font-lat);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.grad {
  font-style: normal;
  font-weight: 400;
  background: linear-gradient(100deg, var(--accent) 0%, var(--pink) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  box-shadow: var(--shadow);
}

.orb {
  position: relative;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 34% 22% at 32% 22%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 22% 10% at 68% 84%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 70%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .03) 56%, rgba(255, 255, 255, .22) 66%, rgba(255, 255, 255, .6) 70.5%, rgba(255, 255, 255, 0) 71%);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, .35), 0 24px 50px -18px rgba(40, 20, 10, .3);
}

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  transition: transform .35s var(--ease), background-color .3s, box-shadow .35s var(--ease);
}
.pill:active { transform: scale(.97); }
.pill--dark { background: var(--btn); color: var(--btn-ink); }
.pill--dark:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .5); }
.pill--ghost { background: var(--glass-2); border-color: var(--glass-border); color: var(--ink); }
.pill--ghost:hover { background: var(--glass-border); }
.pill--icon { padding-inline-end: 5px; }
.pill-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--btn-ink);
  color: var(--btn);
  font-family: var(--font-lat);
  font-size: 17px;
  line-height: 1;
  transition: transform .45s var(--ease);
}
.pill--ghost .pill-ic { background: var(--btn); color: var(--btn-ink); }
.pill:hover .pill-ic { transform: rotate(90deg); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-2);
  transition: transform .3s var(--ease), background-color .3s, opacity .3s;
}
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: ping 2s infinite;
  flex: none;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(24, 178, 107, .5); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(24, 178, 107, 0); }
}

/* =========================================================
   INTRO
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #05050a;
  color: #f4efe8;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: max(20px, env(safe-area-inset-top)) 24px max(20px, env(safe-area-inset-bottom));
  overflow: hidden;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1px));
  mask: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1px));
}
html.no-intro .intro { display: none; }
.intro-warp { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-meta { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.intro-meta > .mono { opacity: .55; }
.intro-skip {
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .05);
  color: #f4efe8;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 300;
  backdrop-filter: blur(10px);
}
.intro-stage { position: relative; z-index: 2; display: grid; place-items: center; text-align: center; }
.intro-orb {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 34% 22% at 32% 24%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(255, 120, 80, .16) 30%, rgba(170, 100, 255, .12) 55%, rgba(255, 255, 255, .5) 70%, transparent 71%);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, .22), 0 0 90px rgba(255, 100, 70, .3);
  animation: orbBreath 2.4s ease-in-out infinite;
  translate: 0 calc(-1 * clamp(110px, 22vh, 200px));
  transition: width 1s var(--ease), height 1s var(--ease), opacity .6s, translate 1s var(--ease), scale .5s var(--ease);
}
.intro-orb.is-big { width: min(70vw, 360px); height: min(70vw, 360px); translate: 0 0; }
.intro-orb.is-gone { scale: .15; opacity: 0; }
@keyframes orbBreath { 50% { transform: scale(1.05); } }
.intro-orb-word {
  font-size: clamp(26px, 6.4vw, 50px);
  font-weight: 300;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px) scale(.94);
  filter: blur(8px);
  transition: all .35s var(--ease);
}
.intro-orb-word.in { opacity: 1; transform: none; filter: none; }
.intro-orb-word.final { font-size: clamp(22px, 5.2vw, 36px); }
.intro-line {
  position: relative;
  max-width: 15ch;
  font-size: clamp(28px, 6.6vw, 72px);
  font-weight: 200;
  line-height: 1.3;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .6);
}
.intro-line.is-big { font-size: clamp(36px, 9vw, 104px); font-weight: 300; }
.intro-line .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(.4em);
  filter: blur(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease);
  transition-delay: calc(var(--i) * 90ms);
}
.intro-line.in .w { opacity: 1; transform: none; filter: none; }
.intro-line.out .w { opacity: 0; transform: translateY(-.35em); filter: blur(10px); transition-duration: .35s; transition-delay: calc(var(--i) * 30ms); }
.intro.reveal { animation: introHole 1.25s var(--ease-io) forwards; }
.intro.reveal.fast { animation-duration: .8s; }
@keyframes introHole {
  0% { --hole: 0px; }
  85% { opacity: 1; }
  100% { --hole: 150vmax; opacity: 0; }
}

.h-rv { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.hero-title .h-rv { display: inline-block; }
html.ready .h-rv {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms + 150ms);
}

/* =========================================================
   SCENE
   ========================================================= */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); transition: background-color .6s; }

/* نور الأوضة بيتغير شوية مع كل قسم */
html[data-sec="services"] { --b1: #dcd6ff; --b3: #d8e6fb; }
html[data-sec="work"] { --b1: #cde9ff; --b2: #dfe8ff; }
html[data-sec="pricing"] { --b1: #e6dcff; --b4: #d9ecff; }
html[data-sec="contact"] { --b2: #d3f0ec; --b3: #d9e6ff; }
[data-theme="dark"][data-sec="services"] { --b1: #6d28d9; --b3: #1e3a8a; }
[data-theme="dark"][data-sec="work"] { --b1: #1d4ed8; --b2: #0e7490; }
[data-theme="dark"][data-sec="pricing"] { --b1: #9333ea; --b4: #3730a3; }
[data-theme="dark"][data-sec="contact"] { --b2: #0891b2; --b3: #4338ca; }

.aurora { position: absolute; inset: -10%; }
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: var(--blob-op);
  filter: blur(70px);
  transition: background-color 1.6s var(--ease), opacity 1s;
  will-change: transform, opacity;
}
/* أباجورة يمين، أباجورة شمال، نور الأرضية، ونور خفيف فوق */
.b1 { background-color: var(--b1); width: 30vmax; height: 30vmax; top: 4%; right: 2%; animation: lamp 9s ease-in-out infinite; }
.b2 { background-color: var(--b2); width: 24vmax; height: 24vmax; top: 38%; left: 0; animation: lamp 11s ease-in-out infinite -4s; }
.b3 { background-color: var(--b3); width: 70vmax; height: 26vmax; bottom: -6%; left: 15%; border-radius: 50%; animation: drift 24s ease-in-out infinite; }
.b4 { background-color: var(--b4); width: 20vmax; height: 20vmax; top: -6%; left: 34%; animation: lamp 13s ease-in-out infinite -7s; }
@keyframes lamp { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.08) translateY(-10px); } 55% { transform: scale(1.05); } }
.room-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 38vh; background: linear-gradient(to top, var(--floor), transparent); }
.bokeh { position: absolute; inset: 0; }
.bokeh i {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--bokeh), var(--bokeh-op)) 0%, rgba(var(--bokeh), calc(var(--bokeh-op) * .35)) 55%, transparent 72%);
  animation: bokeh var(--t, 18s) ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}
@keyframes bokeh { 0%, 100% { transform: translate(0, 0); opacity: .55; } 50% { transform: translate(var(--dx, 10px), var(--dy, -20px)); opacity: 1; } }
.scene-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 45%, var(--vignette) 100%); }
/* شريط مجرّة خفيف مايل على الخلفية */
.aurora::after {
  content: '';
  position: absolute;
  left: -20%; right: -20%; top: 30%;
  height: 34vmax;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--galaxy), transparent 70%);
  transform: rotate(-18deg);
  filter: blur(30px);
  pointer-events: none;
}
.scene-grid { display: none;
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--grid) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  mask: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
}

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 100%; transform-origin: right; transform: scaleX(0); background: linear-gradient(90deg, var(--accent-2), var(--pink), var(--accent)); }
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
  opacity: 0;
  transition: opacity .5s;
  will-change: transform;
}
html.has-cursor .cursor-glow { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }

.scene-stars { position: absolute; inset: 0; opacity: var(--stars-op); transition: opacity .8s; }
.scene-stars i { position: absolute; top: 0; left: 0; width: 1px; height: 1px; border-radius: 50%; animation: twinkle 4s ease-in-out infinite alternate; }
.scene-stars i:nth-child(2) { animation-delay: -2s; }
.scene-stars i:nth-child(3) { animation-duration: 2.6s; animation-delay: -1s; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
.scene-grain {
  position: absolute;
  inset: -50%;
  opacity: .1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
[data-theme="dark"] .scene-grain { mix-blend-mode: screen; opacity: .05; filter: invert(1); }
.float-orb { position: absolute; animation: drift 14s ease-in-out infinite; opacity: .7; }
.fo1 { width: 110px; height: 110px; top: 24%; right: -30px; }
.fo2 { width: 60px; height: 60px; top: 70%; left: 5%; animation-delay: -6s; animation-duration: 11s; }
@keyframes drift { 50% { transform: translate(-12px, -22px); } }

/* =========================================================
   NAV
   ========================================================= */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; padding-top: env(safe-area-inset-top); }
.nav-inner {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
  height: var(--nav-h);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: 26px 9px;
  transition: background-color .4s, transform .5s var(--ease);
}
.nav.scrolled .nav-inner { background: var(--panel); }
.nav.hide .nav-inner { transform: translateY(-140%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; line-height: 1; white-space: nowrap; }
.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--accent), var(--pink), var(--accent-2), var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.nav-links { display: flex; gap: 4px; margin-inline-start: 18px; }
.nav-links a { font-size: 14px; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); transition: background-color .3s, color .3s; }
.nav-links a:hover { background: var(--glass-2); color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav-cta { min-height: 44px; padding-inline: 20px; font-size: 14px; }
.icon-btn .i-sun { display: none; }
[data-theme="dark"] .icon-btn .i-sun { display: block; }
[data-theme="dark"] .icon-btn .i-moon { display: none; }
.nav-burger { display: none; position: relative; }
.nav-burger span { position: absolute; width: 17px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease); }
.nav-burger span:first-child { transform: translateY(-3.5px); }
.nav-burger span:last-child { transform: translateY(3.5px); }
html.menu-open .nav-burger span:first-child { transform: rotate(45deg); }
html.menu-open .nav-burger span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  padding: calc(var(--nav-h) + 56px + env(safe-area-inset-top)) 24px calc(30px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  clip-path: circle(0% at 46px 46px);
  visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s linear .7s;
}
html.menu-open .menu { clip-path: circle(150% at 46px 46px); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(28px, 8.5vw, 40px);
  font-weight: 300;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.menu-links a .mono { color: var(--ink-3); }
html.menu-open .menu-links a { opacity: 1; transform: none; }
html.menu-open .menu-links a:nth-child(1) { transition-delay: .2s; }
html.menu-open .menu-links a:nth-child(2) { transition-delay: .26s; }
html.menu-open .menu-links a:nth-child(3) { transition-delay: .32s; }
html.menu-open .menu-links a:nth-child(4) { transition-delay: .38s; }
.menu-cta { align-self: flex-start; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  margin-top: calc(14px + var(--nav-h) + 16px);
  border-radius: var(--r-xl);
  padding: clamp(18px, 2.4vw, 28px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.hero-copy { padding: clamp(8px, 2.4vw, 32px); padding-inline-end: 0; }
.hero > *, .intent { min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass-2);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--ink-2);
}
.hero-title {
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  font-weight: 300;
  line-height: 1.25;
  margin: 22px 0 18px;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .1em; }
.hero-sub { max-width: 26em; font-size: clamp(15px, 1.3vw, 17px); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
/* --- اختصار: عايز تبدأ بإيه؟ --- */
.intent { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.intent-q { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.intent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.intent-chips button {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--glass-2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--ink);
  transition: transform .4s var(--ease), border-color .3s, color .3s;
}
.intent-chips button::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn);
  border-radius: inherit;
  transform: scale(0);
  transition: transform .45s var(--ease);
}
.intent-chips button { isolation: isolate; }
.intent-chips button:hover { color: var(--btn-ink); border-color: var(--btn); transform: translateY(-2px); }
.intent-chips button:hover::before { transform: scale(1); }
.intent-chips .intent-help { border-style: dashed; color: var(--ink-2); }
.intent-chips .intent-help::after { content: ' ✦'; color: var(--accent); }

/* --- الكرة --- */
.stage {
  position: relative;
  height: clamp(420px, 40vw, 540px);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 80% 15%, var(--stage-a), transparent 55%),
    radial-gradient(circle at 15% 85%, var(--stage-b), transparent 55%),
    radial-gradient(circle at 70% 90%, var(--stage-c), transparent 50%),
    var(--stage-base);
}
.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask: radial-gradient(ellipse at 50% 60%, #000 10%, transparent 70%);
  mask: radial-gradient(ellipse at 50% 60%, #000 10%, transparent 70%);
}
.stage-glow {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 48%;
  width: 70%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from var(--a), var(--accent), var(--pink), var(--accent-2), var(--accent));
  filter: blur(60px);
  opacity: .35;
  animation: rot 12s linear infinite;
}
.stage-floor {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 5%;
  width: 56%;
  height: 9%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .22), transparent 70%);
  filter: blur(4px);
}
.stage-label, .stage-tag, .stage-dots, .stage-progress { text-shadow: 0 1px 10px rgba(0, 0, 0, .15); }
[data-theme="light"] .stage-label { color: var(--ink); }
[data-theme="light"] .stage-progress { background: var(--line); }
[data-theme="light"] .stage-progress i { background: var(--ink); }
[data-theme="light"] .stage-dots button { background: color-mix(in srgb, var(--ink) 25%, transparent); }
[data-theme="light"] .stage-dots button.on { background: var(--ink); }
.stage-label { position: absolute; top: 22px; right: 24px; z-index: 5; color: #fff; direction: ltr; text-align: right; }
.stage-label b { display: block; font-family: var(--font-lat); font-size: 22px; font-weight: 400; line-height: 1; letter-spacing: .02em; }
.stage-label span { font-family: var(--font-lat); font-size: 10px; letter-spacing: .14em; opacity: .85; }
.stage-progress { position: absolute; top: 30px; left: 24px; width: 110px; height: 1.5px; background: rgba(255, 255, 255, .35); overflow: hidden; z-index: 5; }
.stage-progress i { position: absolute; inset: 0; background: #fff; transform-origin: right; transform: scaleX(0); }
.stage-progress i.run { animation: bar var(--dur, 3.4s) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }

.big-orb {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(76%, 430px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 3;
  animation: floaty 7s ease-in-out infinite;
  --tx: 0px;
  --ty: 0px;
}
@keyframes floaty {
  0%, 100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))); }
  50% { transform: translate(calc(-50% + var(--tx)), calc(-50% - 12px + var(--ty))); }
}
.orb-shell, .orb-gloss { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.orb-shell {
  background: radial-gradient(circle at 50% 55%, rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, .2) 64%, rgba(255, 255, 255, .55) 70.4%, rgba(255, 255, 255, 0) 71%);
  box-shadow: inset 0 0 70px rgba(255, 255, 255, .3), 0 50px 90px -30px rgba(30, 15, 10, .4);
  -webkit-backdrop-filter: blur(1.5px) brightness(1.06);
  backdrop-filter: blur(1.5px) brightness(1.06);
}
.orb-gloss {
  z-index: 4;
  background:
    radial-gradient(ellipse 30% 16% at 30% 20%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 18% 8% at 70% 86%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%);
}
.bub { position: absolute; z-index: 4; animation: drift 9s ease-in-out infinite; }
.bub1 { width: 78px; height: 78px; top: 20%; right: 10%; }
.bub2 { width: 100px; height: 100px; top: 56%; left: 7%; animation-delay: -5s; animation-duration: 12s; }

.mock {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  z-index: 2;
  background: var(--mock-bg);
  color: var(--mock-ink);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translate(-50%, -46%) scale(.86) rotate(-4deg);
  filter: blur(6px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease);
}
.mock.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); filter: none; }
.m-top { display: flex; gap: 4px; align-items: center; margin-bottom: 8px; direction: ltr; }
.m-top i { width: 6px; height: 6px; border-radius: 50%; background: var(--mock-line); }
.m-top i:first-child { background: #ff6b5b; }
.m-top i:nth-child(2) { background: #ffc24b; }
.m-top i:nth-child(3) { background: #36c46f; }
.m-top span { flex: 1; height: 8px; margin-inline-start: 8px; border-radius: 4px; background: var(--mock-soft); }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.m-kpis div { background: var(--mock-soft); border-radius: 8px; padding: 6px 7px; }
.m-kpis small { display: block; font-size: 7px; opacity: .6; line-height: 1.3; }
.m-kpis b { font-family: var(--font-lat); font-weight: 500; font-size: 13px; line-height: 1.2; }
.m-kpis div:first-child b { color: var(--ok); }
.m-chart { display: flex; align-items: flex-end; gap: 5px; height: 66px; margin: 8px 0; padding: 8px; border-radius: 8px; background: var(--mock-soft); }
.m-chart i { flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--accent), #ffb08a); transform-origin: bottom; }
.mock.is-active .m-chart i { animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }
.m-rows span { display: block; height: 6px; border-radius: 4px; background: var(--mock-soft); margin-top: 5px; }
.m-rows span:nth-child(2) { width: 70%; }
.w-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.w-nav b { width: 26px; height: 8px; border-radius: 3px; background: var(--mock-ink); }
.w-nav span { width: 16px; height: 5px; border-radius: 3px; background: var(--mock-line); }
.w-nav span:first-of-type { margin-inline-start: auto; }
.w-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.w-copy span { display: block; height: 7px; border-radius: 4px; background: var(--mock-ink); margin-bottom: 5px; }
.w-copy span:nth-child(2) { width: 75%; }
.w-copy span.s { height: 5px; background: var(--mock-line); width: 90%; }
.w-copy em { display: block; width: 46px; height: 14px; border-radius: 99px; background: var(--accent); margin-top: 8px; }
.w-img { aspect-ratio: 1; border-radius: 10px; background: radial-gradient(circle at 40% 35%, #fff 0 8%, transparent 9%), linear-gradient(160deg, #9fb6c9, #e9b48a); }
.w-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
.w-cards span { height: 24px; border-radius: 6px; background: var(--mock-soft); }
.s-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.s-head b { width: 34px; height: 8px; border-radius: 3px; background: var(--mock-ink); }
.s-head .cart { font-family: var(--font-lat); font-size: 9px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; }
.s-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.s-grid div { background: var(--mock-soft); border-radius: 9px; padding: 5px; }
.s-grid i { display: block; aspect-ratio: 1.3; border-radius: 6px; background: var(--c); }
.s-grid span { display: block; height: 5px; width: 70%; border-radius: 3px; background: var(--mock-line); margin: 5px 0 3px; }
.s-grid em { font-style: normal; font-family: var(--font-lat); font-size: 11px; font-weight: 500; }
.mock-app { width: 33%; aspect-ratio: 9 / 18; border-radius: 22px; padding: 18px 8px 8px; border: 3px solid var(--mock-ink); display: flex; flex-direction: column; gap: 6px; }
.a-notch { position: absolute; top: 5px; left: 50%; width: 30%; height: 6px; border-radius: 4px; background: var(--mock-ink); transform: translateX(-50%); }
.a-hello span { display: block; width: 40%; height: 4px; border-radius: 2px; background: var(--mock-line); }
.a-hello b { display: block; width: 70%; height: 7px; border-radius: 3px; background: var(--mock-ink); margin-top: 4px; }
.a-card { border-radius: 10px; padding: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.a-card small { display: block; font-size: 7px; opacity: .85; }
.a-card b { font-family: var(--font-lat); font-size: 14px; line-height: 1; }
.a-row { display: flex; align-items: center; gap: 5px; background: var(--mock-soft); border-radius: 7px; padding: 5px; }
.a-row i { width: 12px; height: 12px; border-radius: 4px; background: var(--mock-line); }
.a-row span { flex: 1; height: 4px; border-radius: 2px; background: var(--mock-line); }
.a-tab { margin-top: auto; display: flex; justify-content: space-around; padding-top: 4px; }
.a-tab i { width: 9px; height: 9px; border-radius: 3px; background: var(--mock-line); }
.a-tab i:first-child { background: var(--accent); }

.stage-tag {
  position: absolute;
  z-index: 6;
  bottom: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  padding-inline-start: 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(28, 25, 22, .45);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.stage-tag b { display: block; font-size: 13px; font-weight: 400; line-height: 1.3; }
.stage-tag small { display: block; font-size: 10px; opacity: .7; line-height: 1.2; }
.stage-tag i { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .2); position: relative; }
.stage-tag i::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.stage-tag.swap span { animation: swap .6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }
.stage-dots { position: absolute; z-index: 6; bottom: 38px; left: 26px; display: flex; gap: 6px; }
.stage-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .5); transition: width .4s var(--ease), background-color .3s; }
.stage-dots button.on { width: 24px; background: #fff; }

/* =========================================================
   MARQUEE (القطاعات)
   ========================================================= */
.marquee {
  margin-top: clamp(40px, 6vw, 70px);
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { --mg: clamp(18px, 2.6vw, 34px); display: flex; width: max-content; animation: marquee 40s linear infinite; }
.mq { display: flex; align-items: center; gap: var(--mg); padding-inline-end: var(--mg); white-space: nowrap; font-size: clamp(20px, 2.6vw, 30px); font-weight: 200; color: var(--ink-2); }
.mq i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }
@keyframes marquee { to { transform: translateX(50%); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-top: clamp(80px, 10vw, 140px); }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(26px, 3.6vw, 44px); }
.sec-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.sec-head--row > div:first-child { display: grid; gap: 12px; }
.sec-label { color: var(--ink-3); }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 300; line-height: 1.25; }

.rv { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  min-height: 230px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: opacity 1s var(--ease), transform .6s var(--ease), background-color .3s;
}
.svc:hover { transform: translateY(-4px); background: var(--glass-2); }
.svc:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.svc-ic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  margin-bottom: auto;
  transition: background-color .3s, color .3s, transform .6s var(--ease);
}
.svc-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.svc:hover .svc-ic { background: var(--btn); color: var(--btn-ink); transform: rotate(-14deg); }
.svc b { font-size: 19px; font-weight: 400; margin-top: 28px; }
.svc-line { font-size: 14px; color: var(--ink-3); }
.svc-price { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.svc-price em { font-style: normal; font-family: var(--font-lat); font-size: 17px; color: var(--ink); }

/* ---------- Work ---------- */
.work-nav { display: flex; gap: 8px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background-color .3s, color .3s, border-color .3s;
}
.filters button:hover { border-color: var(--ink-3); }
.filters button.on { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.work-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(24px, (100% - 1200px) / 2);
  padding: 6px max(24px, (100% - 1200px) / 2) 24px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.work-row::-webkit-scrollbar { display: none; }
.work-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.work-tools .filters { margin: 0; }
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 320px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass-2);
  transition: border-color .3s, box-shadow .3s, flex-basis .5s var(--ease);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); flex-basis: 380px; }
.search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { display: none; }

.work {
  all: unset;
  box-sizing: border-box;
  position: relative;
  flex: 0 0 clamp(250px, 23vw, 286px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 18px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  cursor: pointer;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  animation: cardIn .6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.work:hover { --ty: -6px; box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c1) 70%, transparent); }
.work:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }

/* الصورة: هوية كل نظام */
.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 10px;
  isolation: isolate;
  background:
    radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--c2) 90%, #fff), transparent 55%),
    linear-gradient(150deg, var(--c1), color-mix(in srgb, var(--c1) 55%, var(--c2)));
}
[data-theme="dark"] .thumb { filter: saturate(.9) brightness(.82); }
.thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask: radial-gradient(circle at 30% 65%, #000, transparent 70%);
  mask: radial-gradient(circle at 30% 65%, #000, transparent 70%);
}
.thumb-tag {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-lat);
  font-size: 13px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .9);
  direction: ltr;
}
.thumb-orb {
  position: absolute;
  width: 48%;
  aspect-ratio: 1;
  left: 10%;
  bottom: 9%;
  display: grid;
  place-items: center;
  transition: transform .8s var(--ease);
}
.thumb-orb svg {
  width: 44%;
  height: 44%;
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18));
  transition: transform .8s var(--ease);
}
.work:hover .thumb-orb { transform: translate(6px, -6px) scale(1.06); }
.work:hover .thumb-orb svg { transform: rotate(-8deg) scale(1.08); }
.thumb-chip {
  position: absolute;
  right: 12px;
  bottom: 14px;
  max-width: 52%;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.3;
  color: #fff;
  background: rgba(20, 16, 24, .32);
  border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: chipFloat 4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -300ms);
}
.thumb-chip::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-inline-end: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
@keyframes chipFloat { 50% { transform: translateY(-5px); } }

.work h3 { font-size: 17px; font-weight: 400; padding-inline: 8px; }
.work p { font-size: 13.5px; color: var(--ink-3); padding-inline: 8px; line-height: 1.6; min-height: 2.6em; }
.work-foot { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.work-foot .more { margin-inline-start: auto; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: gap .3s var(--ease), color .3s; }
.work:hover .work-foot .more { gap: 10px; color: var(--accent); }
.price { font-family: var(--font-lat); font-size: 18px; font-weight: 400; }
.price small { font-family: var(--font-ar); font-size: 12px; color: var(--ink-3); }
.price--txt { font-family: var(--font-ar); font-size: 14px; color: var(--ink-2); }
.work-foot s, .qv-price s { font-family: var(--font-lat); font-size: 13px; color: var(--ink-3); }
.work-empty { display: grid; justify-items: start; gap: 14px; padding: 10px 0 24px; color: var(--ink-2); }
.work-empty[hidden] { display: none; }
.work-more { margin-top: 8px; }

/* =========================================================
   QUICK VIEW
   ========================================================= */
.qv { position: fixed; inset: 0; z-index: 115; display: grid; place-items: center; visibility: hidden; pointer-events: none; transition: visibility 0s linear .6s; }
.qv.open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.qv-backdrop { position: absolute; inset: 0; background: rgba(12, 9, 6, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s var(--ease); }
.qv.open .qv-backdrop { opacity: 1; }
.qv-panel {
  position: relative;
  width: min(820px, 100% - 32px);
  max-height: min(640px, 100dvh - 40px);
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 26px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .5);
  outline: none;
  opacity: 0;
  transform: translateY(30px) scale(.96);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.qv.open .qv-panel { opacity: 1; transform: none; }
.qv-panel .sheet-grab { display: none; }
.qv-close { position: absolute; top: 16px; left: 16px; z-index: 3; }
.qv-thumb .thumb { height: 100%; min-height: 300px; aspect-ratio: auto; margin: 0; border-radius: 22px; }
.qv-thumb .thumb-orb { width: 52%; left: 50%; top: 46%; bottom: auto; transform: translate(-50%, -50%); animation: floatOrb 6s ease-in-out infinite; }
@keyframes floatOrb { 50% { transform: translate(-50%, calc(-50% - 10px)); } }
.qv-thumb .thumb-chip { font-size: 13px; right: 16px; bottom: 18px; max-width: 70%; }
.qv-thumb .thumb-tag { font-size: 15px; top: 18px; right: 20px; }
.qv-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 6px 6px 10px; }
.qv-body h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 300; line-height: 1.3; }
.qv-body > p { color: var(--ink-2); }
.qv-feats { list-style: none; padding: 0; margin: 10px 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qv-feats li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  opacity: 0;
  transform: translateY(10px);
}
.qv.open .qv-feats li { animation: featIn .5s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * 70ms); }
@keyframes featIn { to { opacity: 1; transform: none; } }
.qv-feats li::before { content: ''; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c1, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c1, var(--accent)) 22%, transparent); }
.qv-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.qv-price .price { font-size: 26px; }
.qv-price .note { font-size: 12.5px; color: var(--ink-3); margin-inline-start: auto; }
.qv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.qv-actions .pill--dark { flex: 1; justify-content: space-between; padding-inline-start: 22px; }

.sheet-sys {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--pink)));
}

/* =========================================================
   MOTION
   ========================================================= */
.split .wd { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(3deg); filter: blur(6px); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--w) * 60ms); }
.split.in .wd { opacity: 1; transform: none; filter: none; }
.magnet { transition: transform .4s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .work-row { cursor: grab; }
  .work-row.dragging { cursor: grabbing; scroll-snap-type: none; }
  .work-row.dragging .work { transition: none; }
}

/* ---------- Pricing ---------- */
.price-flow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pf { border-radius: var(--r-lg); padding: 26px; display: grid; gap: 4px; }
.pf .mono { color: var(--ink-3); margin-bottom: 26px; }
.pf small { font-size: 14px; color: var(--ink-3); }
.pf b { font-size: clamp(26px, 2.8vw, 34px); font-weight: 300; line-height: 1.3; }
.pf b em { font-style: normal; font-family: var(--font-lat); }
.pf p { font-size: 14px; color: var(--ink-2); }
.pf--hi { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.pf--hi .mono, .pf--hi small { color: color-mix(in srgb, var(--btn-ink) 55%, transparent); }
.pf--hi p { color: color-mix(in srgb, var(--btn-ink) 75%, transparent); }
.pf--hi b { background: linear-gradient(100deg, var(--accent), var(--pink), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.unlimited { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.unlimited li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass-2);
  font-size: 14px;
  color: var(--ink-2);
}
.unlimited li::before { content: '∞'; font-family: var(--font-lat); color: var(--accent); }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.steps::before { content: ''; position: absolute; top: 7px; right: 0; left: 0; height: 1px; background: var(--line); }
.steps::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
  right: calc(var(--p, 0) * (100% - 9px));
  transition: right .3s linear;
}
.steps .fill { position: absolute; top: 7px; right: 0; height: 1px; width: calc(var(--p, 0) * 100%); background: linear-gradient(270deg, var(--accent), var(--accent-2)); }
.steps li { transition: color .5s; color: var(--ink-3); }
.steps li.on { color: var(--ink); }
.steps li.on::before { background: var(--accent); }
.steps li { position: relative; padding-top: 34px; padding-inline-end: 16px; font-size: 17px; }
.steps li::before { content: ''; position: absolute; top: 4px; right: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.steps li .mono { display: block; color: var(--ink-3); margin-bottom: 6px; }

/* ---------- Contact ---------- */
.contact {
  border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 40px);
  display: grid;
  grid-template-columns: auto 1fr minmax(260px, 380px);
  gap: clamp(20px, 3.4vw, 48px);
  align-items: center;
}
.contact-orb {
  width: clamp(110px, 12vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 25%, var(--stage-a), transparent 60%), radial-gradient(circle at 25% 80%, var(--stage-b), transparent 60%), var(--stage-base);
  display: grid;
  place-items: center;
}
.contact-orb .orb { width: 78%; aspect-ratio: 1; animation: drift 8s ease-in-out infinite; }
.contact-copy { display: grid; gap: 10px; justify-items: start; }
.contact-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; line-height: 1.2; }
.contact-copy p { color: var(--ink-2); margin-bottom: 10px; }
.team { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.team a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  padding-inline-end: 16px;
  border-radius: 999px;
  background: var(--glass-2);
  border: 1px solid var(--glass-border);
  transition: background-color .3s, transform .4s var(--ease);
}
.team a:hover { transform: translateX(-4px); background: var(--glass-border); }
.team .av {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--pink));
}
.team li:nth-child(2) .av { background: linear-gradient(135deg, var(--pink), var(--accent-2)); }
.team li:nth-child(3) .av { background: linear-gradient(135deg, var(--accent-2), #5b8cff); }
.team li:nth-child(4) .av { background: linear-gradient(135deg, #ff9a3d, var(--accent)); }
.team a > span:nth-child(2) { display: grid; line-height: 1.35; flex: 1; }
.team b { font-size: 14.5px; font-weight: 400; }
.team small { font-family: var(--font-lat); font-size: 12.5px; color: var(--ink-3); text-align: right; }
.team .wa {
  width: 22px;
  height: 22px;
  flex: none;
  background: #25d366;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .1-3.2-.8-2.7-1.1-4.4-3.8-4.5-4-.1-.2-1.1-1.4-1.1-2.7s.7-1.9.9-2.2c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.4 0 .5l-.4.6-.4.4c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.4 2.4 1.5.3.1.5.1.6-.1l.9-1c.2-.3.4-.2.7-.1l2 1c.3.1.5.2.5.3.1.2.1.8-.1 1.4z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .1-3.2-.8-2.7-1.1-4.4-3.8-4.5-4-.1-.2-1.1-1.4-1.1-2.7s.7-1.9.9-2.2c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.4 0 .5l-.4.6-.4.4c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.4 2.4 1.5.3.1.5.1.6-.1l.9-1c.2-.3.4-.2.7-.1l2 1c.3.1.5.2.5.3.1.2.1.8-.1 1.4z'/></svg>") center / contain no-repeat;
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 50px 0 calc(110px + env(safe-area-inset-bottom));
  margin-top: 60px;
  border-top: 1px solid var(--line);
}
.footer nav { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
.footer nav a:hover { color: var(--ink); }
.footer .mono { color: var(--ink-3); }

/* =========================================================
   FAB
   ========================================================= */
.fab {
  position: fixed;
  z-index: 70;
  bottom: calc(22px + env(safe-area-inset-bottom));
  left: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-ink);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .5);
  transition: transform .6s var(--ease), opacity .4s;
}
.fab::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--a), var(--accent), var(--pink), var(--accent-2), transparent 60%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: rot 3s linear infinite;
}
@keyframes rot { to { --a: 360deg; } }
.fab::after { content: ''; position: absolute; inset: 0; border-radius: inherit; animation: fabPulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes fabPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); }
  80%, 100% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--accent) 0%, transparent); }
}
.fab:hover { transform: translateY(-3px); }
.fab-orb {
  width: 46px;
  height: 46px;
  flex: none;
  background-color: var(--accent);
  background-image:
    radial-gradient(ellipse 34% 22% at 32% 24%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(circle at 70% 75%, var(--pink), transparent 60%),
    radial-gradient(circle at 30% 70%, var(--accent-2), transparent 60%);
  animation: spinSlow 6s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.fab-text { font-size: 16px; font-weight: 400; white-space: nowrap; }
.fab-ic {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--btn-ink);
  color: var(--btn);
  font-size: 19px;
  margin-inline-start: 2px;
  transition: transform .5s var(--ease);
}
.fab:hover .fab-ic { transform: rotate(-45deg); }
html.intro-on .fab, html.sheet-open .fab, html.menu-open .fab { transform: translateY(160%); opacity: 0; pointer-events: none; }

/* =========================================================
   SHEET
   ========================================================= */
.sheet { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; visibility: hidden; pointer-events: none; transition: visibility 0s linear .6s; }
.sheet.open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(12, 9, 6, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s var(--ease); }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet-panel {
  position: relative;
  width: min(560px, 100% - 32px);
  max-height: min(760px, 100dvh - 40px);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  opacity: 0;
  transform: translateY(40px) scale(.96);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
  outline: none;
  overflow: hidden;
}
.sheet.open .sheet-panel { opacity: 1; transform: none; }
.sheet-grab { display: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 26px 26px 16px; }
.sheet-step { color: var(--ink-3); }
.sheet-head h3 { font-size: clamp(21px, 2.6vw, 26px); font-weight: 300; line-height: 1.35; margin-top: 4px; }
.sheet-progress { height: 2px; margin: 0 26px; border-radius: 2px; background: var(--line); overflow: hidden; }
.sheet-progress i { display: block; height: 100%; width: 33.33%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .6s var(--ease); }
#leadForm { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.pane { display: none; border: 0; margin: 0; padding: 24px 26px 8px; overflow-y: auto; min-width: 0; }
.pane.is-active { display: block; animation: paneIn .55s var(--ease); }
.pane.back-in { animation-name: paneBack; }
@keyframes paneIn { from { opacity: 0; transform: translateX(-30px); } }
@keyframes paneBack { from { opacity: 0; transform: translateX(30px); } }
.pane legend { font-size: 18px; font-weight: 400; padding: 0; margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pane legend small { font-size: 13px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass-2);
  font-size: 14px;
  transition: background-color .25s, color .25s, border-color .25s;
  user-select: none;
}
.chip span::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ink-3); flex: none; transition: all .25s; }
.chip:hover span { border-color: var(--ink-3); }
.chip input:checked + span { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.chip input:checked + span::before {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4L18 8'/></svg>") center / 10px no-repeat;
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 14px; color: var(--ink-2); }
.field input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--glass-2);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .25s, box-shadow .25s;
}
.field input[dir="ltr"] { text-align: right; font-family: var(--font-lat); letter-spacing: .04em; }
.field input::placeholder { color: var(--ink-3); opacity: .8; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.field input.bad { border-color: var(--bad); }
.field--other { margin-top: 12px; display: none; }
.field--other.show { display: grid; animation: paneIn .4s var(--ease); }
.pane-err { min-height: 22px; margin-top: 10px; font-size: 13px; color: var(--bad); }
.pane.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.pane--done { text-align: center; padding: 30px 26px 30px; }
.pane--done.is-active { display: grid; justify-items: center; gap: 10px; }
.done-orb { width: 110px; height: 110px; display: grid; place-items: center; background-color: var(--ok); margin-bottom: 8px; animation: pop .7s var(--ease); }
.done-orb svg { width: 48px; height: 48px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .35s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pane--done h4 { font-size: 24px; font-weight: 300; }
.pane--done p { color: var(--ink-2); margin-bottom: 8px; }
.sheet-foot { display: flex; justify-content: space-between; gap: 10px; padding: 14px 26px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: auto; }
#backBtn { visibility: hidden; }
#backBtn.show { visibility: visible; }
#nextBtn { flex: 1; max-width: 240px; margin-inline-start: auto; justify-content: space-between; padding-inline-start: 22px; }
#nextBtn[disabled] { opacity: .6; pointer-events: none; }
.sheet.done .sheet-foot, .sheet.done .sheet-progress { display: none; }

/* =========================================================
   روح الزجاج المكاني (Spatial glass)
   ========================================================= */
.glass { background-image: linear-gradient(165deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 42%); }
[data-theme="dark"] .glass { background-image: linear-gradient(165deg, rgba(210, 220, 255, .1), rgba(210, 220, 255, 0) 40%); }
.stage::before { display: none; }

/* --- تابات النافبار مع مؤشر بيتحرك --- */
.nav-links {
  position: relative;
  gap: 0;
  padding: 4px;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--glass-2);
  border: 1px solid var(--glass-border);
}
.nav-links a { position: relative; z-index: 1; }
.nav-links a.on { color: var(--ink); }
.nav-ind {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 6px 16px -8px rgba(80, 50, 25, .35);
  opacity: 0;
  transition: left .55s var(--ease), width .55s var(--ease), opacity .3s;
}
[data-theme="dark"] .nav-ind { background: rgba(210, 220, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.nav-ind.show { opacity: 1; }
.nav-end { margin-inline-start: 0; }

/* --- الشريط الجانبي --- */
.rail {
  position: fixed;
  z-index: 58;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  transition: opacity .5s, transform .6s var(--ease);
}
.rail a, .rail button {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--ink-2);
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.rail a:hover, .rail button:hover { background: var(--glass-2); color: var(--ink); transform: scale(1.08); }
.rail svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rail [data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translate(-6px, -50%);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--glass-border);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease);
}
.rail [data-tip]:hover::after { opacity: 1; transform: translate(0, -50%); }
html.intro-on .rail, html.sheet-open .rail { opacity: 0; transform: translate(-30px, -50%); pointer-events: none; }
@media (max-width: 1360px) { .rail { display: none; } }

/* =========================================================
   أعمالنا — كاروسيل ثلاثي الأبعاد
   ========================================================= */
.cf {
  position: relative;
  height: clamp(470px, 44vw, 560px);
  perspective: 1500px;
  overflow: clip;
  outline: none;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  margin-top: 6px;
}
.cf::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2%;
  width: min(520px, 80%);
  height: 60px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}
.cf:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 30px; }
.cf-stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.cf-card {
  --w: clamp(270px, 27vw, 350px);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w);
  height: calc(var(--w) * 1.36);
  border-radius: 30px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 240, 225, .4);
  box-shadow: 0 40px 80px -30px rgba(30, 15, 5, .6), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .85s var(--ease), opacity .6s var(--ease), filter .6s var(--ease);
  will-change: transform;
}
.cf.dragging .cf-card { transition: none; }
.cf-card.far { opacity: 0; pointer-events: none; }
.cf-card.side { filter: brightness(.82) saturate(.9); }
.cf-card .thumb { position: absolute; inset: 0; aspect-ratio: auto; margin: 0; border-radius: 0; }
.cf-card .thumb-chip { display: none; }
.cf-card .thumb-tag { top: 20px; right: 20px; }
.cf-card .thumb-orb { width: 54%; left: 50%; top: 36%; bottom: auto; transform: translate(-50%, -50%); animation: floatOrb 6s ease-in-out infinite; }
.cf-card:hover .thumb-orb { transform: translate(-50%, -50%) scale(1.04); }
.cf-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(18, 11, 7, .88) 0%, rgba(18, 11, 7, .5) 36%, rgba(18, 11, 7, 0) 62%); }
.cf-expand {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #fff;
  background: rgba(25, 16, 10, .28);
  border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
.cf-expand svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cf-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 20px 22px 22px; color: #fff; }
.cf-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.cf-stat::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7dffb5; box-shadow: 0 0 0 3px rgba(125, 255, 181, .25); }
.cf-body h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 25px; font-weight: 300; line-height: 1.3; transition: font-size .6s var(--ease); }
.cf-idx { font-family: var(--font-lat); font-size: 12px; opacity: .7; direction: ltr; }
.cf-body p { font-size: 13.5px; line-height: 1.6; opacity: .82; margin-top: 6px; }
.cf-foot { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.cf-foot .price, .cf-foot .price--txt { color: #fff; }
.cf-foot .price small, .cf-foot s { color: rgba(255, 255, 255, .6); }
.cf-foot s { font-family: var(--font-lat); font-size: 13px; }
.cf-card .cf-stat, .cf-card .cf-expand, .cf-card .cf-idx, .cf-card .cf-body p, .cf-card .cf-foot { transition: opacity .5s var(--ease); }
.cf-card.side .cf-stat, .cf-card.side .cf-expand, .cf-card.side .cf-idx, .cf-card.side .cf-body p, .cf-card.side .cf-foot { opacity: 0; }
.cf-card.side .cf-body h3 { font-size: 18px; }

/* شريط التحكم تحت الكاروسيل */
.cf-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 26px auto 0;
  padding: 7px;
  border-radius: 999px;
}
.cf-now { display: flex; align-items: center; gap: 12px; min-width: 210px; padding-inline: 6px 12px; }
.cf-dot {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--c1, var(--accent)), var(--c2, var(--pink)));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), 0 8px 20px -8px var(--c1, var(--accent));
  transition: background .6s;
}
.cf-dot svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cf-txt { display: grid; line-height: 1.35; min-width: 0; }
.cf-txt b { font-size: 15px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-txt small { font-size: 12px; color: var(--ink-3); }
.cf-order { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.cf-bar .icon-btn:hover { transform: scale(1.06); }
.cf-bar.swap .cf-txt { animation: swap .5s var(--ease); }

/* --- الوضع الفاتح: كروت بألوان فاتحة وظل فاتح --- */
[data-theme="light"] .cf-card,
[data-theme="light"] .qv-thumb .thumb { border-color: rgba(255, 255, 255, .9); }
[data-theme="light"] .cf-card { box-shadow: 0 30px 60px -32px rgba(60, 85, 125, .28), inset 0 1px 0 rgba(255, 255, 255, .9); }
[data-theme="light"] .cf-card .thumb,
[data-theme="light"] .qv-thumb .thumb {
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 255, 255, .85), transparent 50%),
    linear-gradient(155deg, color-mix(in srgb, var(--c1) 42%, #fff), color-mix(in srgb, var(--c2) 45%, #fff 55%));
}
[data-theme="light"] .cf-card .thumb::before,
[data-theme="light"] .qv-thumb .thumb::before { background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px); }
[data-theme="light"] .cf-card .thumb-tag,
[data-theme="light"] .qv-thumb .thumb-tag { color: color-mix(in srgb, var(--c1) 85%, #000); opacity: .7; }
[data-theme="light"] .cf-card .thumb-orb svg,
[data-theme="light"] .qv-thumb .thumb-orb svg { stroke: color-mix(in srgb, var(--c1) 88%, #000); filter: none; }
[data-theme="light"] .qv-thumb .thumb-chip { color: var(--ink); background: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .9); }
[data-theme="light"] .qv-thumb .thumb-chip::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(24, 178, 107, .2); }
[data-theme="light"] .cf-shade { background: linear-gradient(to top, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .74) 34%, rgba(255, 255, 255, 0) 60%); }
[data-theme="light"] .cf-body { color: var(--ink); }
[data-theme="light"] .cf-body p { color: var(--ink-2); opacity: 1; }
[data-theme="light"] .cf-idx { color: var(--ink-3); opacity: 1; }
[data-theme="light"] .cf-foot { border-top-color: var(--line); }
[data-theme="light"] .cf-foot .price, [data-theme="light"] .cf-foot .price--txt { color: var(--ink); }
[data-theme="light"] .cf-foot .price small, [data-theme="light"] .cf-foot s { color: var(--ink-3); }
[data-theme="light"] .cf-stat { color: var(--ink); background: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .95); }
[data-theme="light"] .cf-stat::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(24, 178, 107, .2); }
[data-theme="light"] .cf-expand { color: var(--ink); background: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .9); }
[data-theme="light"] .cf-card.side { filter: saturate(.85) brightness(.98); opacity: .92; }
[data-theme="light"] .cf-card.far { opacity: 0; }
[data-theme="light"] .cf-dot svg { stroke: color-mix(in srgb, var(--c1, var(--accent)) 88%, #000); }
[data-theme="light"] .cf-dot { background: linear-gradient(150deg, color-mix(in srgb, var(--c1, var(--accent)) 40%, #fff), color-mix(in srgb, var(--c2, var(--pink)) 45%, #fff)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), 0 8px 20px -10px var(--c1, var(--accent)); }

@media (max-width: 640px) {
  .cf { height: 470px; }
  .cf-card { --w: min(70vw, 290px); border-radius: 26px; }
  .cf-body { padding: 16px 18px 18px; }
  .cf-body h3 { font-size: 21px; }
  .cf-card.side .cf-body h3 { font-size: 15px; }
  .cf-bar { width: calc(100% - 24px); justify-content: space-between; }
  .cf-now { min-width: 0; flex: 1; padding-inline: 2px 4px; }
  .cf-dot { width: 40px; height: 40px; }
  .nav-links { display: none; }
  html.cf-near .fab { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: auto 1fr; }
  .team { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: grid; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 14px 8px 0; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 0; bottom: 0; right: 3px; left: auto; width: 1px; height: auto; }
  .steps::after { display: none; }
  .steps .fill { top: 0; right: 3px; width: 1px; height: calc(var(--p, 0) * 100%); background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
  .steps li { padding: 0 26px 26px 0; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li .mono { display: inline; margin-inline-end: 10px; }
  .price-flow { grid-template-columns: 1fr; gap: 10px; }
  .pf { grid-template-columns: 1fr auto; align-items: center; padding: 20px 22px; }
  .pf .mono { display: none; }
  .pf small { grid-column: 1; }
  .pf b { grid-column: 1; }
  .pf p { grid-column: 2; grid-row: 1 / span 2; text-align: end; max-width: 12em; font-size: 13px; }
}

/* ---------- الموبايل ---------- */
@media (max-width: 640px) {
  :root { --nav-h: 56px; --r-xl: 28px; --r-lg: 22px; }
  .wrap { width: calc(100% - 24px); }
  .nav { top: 10px; }
  .nav-inner { width: calc(100% - 24px); padding-inline: 20px 6px; gap: 8px; }
  .brand { font-size: 18px; }

  .hero { margin-top: calc(10px + var(--nav-h) + 12px); padding: 12px; gap: 22px; }
  .hero-copy { padding: 14px 8px 0; }
  .hero-title { font-size: clamp(2.1rem, 10vw, 2.7rem); margin: 18px 0 12px; }
  .hero-sub { font-size: 15px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .pill { flex: 1; }
  .hero-points { margin-top: 20px; gap: 6px 16px; font-size: 12.5px; }
  .stage { height: auto; aspect-ratio: 1 / 1.05; }
  .big-orb { width: 84%; }
  .mock { padding: 8px; border-radius: 11px; }
  .m-chart { height: 44px; }
  .stage-label { top: 16px; right: 18px; }
  .stage-label b { font-size: 18px; }
  .stage-progress { top: 22px; left: 18px; width: 70px; }
  .stage-tag { bottom: 14px; right: 14px; }
  .stage-dots { bottom: 30px; left: 20px; }
  .bub1 { width: 54px; height: 54px; }
  .bub2 { width: 64px; height: 64px; }

  .section { padding-top: 80px; }
  .sec-head { padding-inline: 4px; }
  .work-nav { display: none; }
  .work-tools { gap: 10px; }
  .search, .search:focus-within { flex: 1 1 100%; }
  .work-tools .filters { margin-inline: -12px; }
  .intent-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .intent-chips::-webkit-scrollbar { display: none; }
  .intent-chips button { flex: none; }
  .qv { place-items: end center; }
  .qv-panel { width: 100%; max-height: 92dvh; grid-template-columns: 1fr; gap: 6px; padding: 10px 12px calc(16px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; border-bottom: 0; transform: translateY(100%); opacity: 1; }
  .qv.open .qv-panel { transform: none; }
  .qv-panel .sheet-grab { display: grid; place-items: center; padding: 0 0 8px; }
  .qv-close { top: 26px; left: 22px; }
  .qv-thumb .thumb { min-height: 0; aspect-ratio: 16 / 10; }
  .qv-body { padding: 14px 6px 0; }
  .qv-feats li { font-size: 13px; padding: 9px 10px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -12px; padding-inline: 16px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .work-row { scroll-padding-inline: 12px; padding-inline: 12px; gap: 10px; }
  .work { flex-basis: 74%; }

  .svc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .svc { min-height: 0; padding: 18px; }
  .svc-ic { width: 42px; height: 42px; }
  .svc b { font-size: 16px; margin-top: 18px; line-height: 1.4; }
  .svc-line { font-size: 12.5px; line-height: 1.5; }
  .svc-price { font-size: 12px; }
  .svc-price em { font-size: 15px; }

  .unlimited li { font-size: 13px; padding: 8px 14px; }

  .contact { grid-template-columns: 1fr; padding: 22px 18px; text-align: start; }
  .contact-orb { width: 90px; }
  .team { grid-template-columns: 1fr; }

  .footer { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 36px; }
  .footer nav { flex-wrap: wrap; gap: 8px 18px; }

  .fab { left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); }
  .fab:hover { transform: translateX(-50%); }
  html.intro-on .fab, html.sheet-open .fab, html.menu-open .fab, html.fab-tuck .fab { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }

  .sheet { place-items: end center; }
  .sheet-panel {
    width: 100%;
    max-height: 92dvh;
    border-radius: 26px 26px 0 0;
    border-bottom: 0;
    transform: translateY(100%);
    opacity: 1;
    transition: transform .55s var(--ease);
  }
  .sheet.open .sheet-panel { transform: translateY(var(--drag, 0px)); }
  .sheet.dragging .sheet-panel { transition: none; }
  .sheet-grab { display: grid; place-items: center; padding: 10px 0 0; touch-action: none; }
  .sheet-grab i { width: 40px; height: 4px; border-radius: 9px; background: var(--line); }
  .sheet-head { padding: 12px 20px 14px; touch-action: none; }
  .sheet-head h3 { font-size: 20px; }
  .sheet-progress { margin: 0 20px; }
  .pane { padding: 22px 20px 6px; }
  .pane legend { font-size: 17px; }
  .chip span { padding: 0 14px; font-size: 13.5px; }
  .sheet-foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); }
  #nextBtn { max-width: none; }
}

@media (hover: none) {
  .pill--dark:hover, .svc:hover, .work:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv, .h-rv, .split .wd, .qv-feats li { opacity: 1 !important; transform: none !important; filter: none !important; }
  .blob { animation: none !important; }
}
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.footer nav { flex-wrap: wrap; row-gap: 10px; }
