/* fx.css — Sadeem "nebula" skin: glass header, glows, 3D hero, card effects, sky & language transitions.
   Loaded after main.css + brand.css on every page. All colors come from the two tokens below, so a new
   logo palette only needs --fx-a / --fx-b (and brand.css) changed. Effects are driven by js/core/fx.js. */
:root {
  --fx-a: #8A00FF;            /* main glow (brand violet) */
  --fx-b: #00D4FF;            /* second glow (brand cyan) */
  --fx-c: #0066FF;            /* in-between (brand blue) */
  --fx-grad: linear-gradient(110deg, var(--fx-a), var(--fx-c) 50%, var(--fx-b));
  --fx-line: color-mix(in srgb, var(--fx-a) 22%, var(--c-border));
  --fx-panel: linear-gradient(150deg, var(--c-surface), color-mix(in srgb, var(--c-surface-2) 60%, var(--c-surface)));
  --fx-ease: cubic-bezier(.2, .8, .2, 1);
  --bgo: .075; --bgo-peak: .2;
}
:root[data-theme="light"] { --fx-a: #8A00FF; --bgo: .07; --bgo-peak: .14; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) { --fx-a: #8A00FF; --bgo: .07; --bgo-peak: .14; } }

body { position: relative; overflow-x: hidden; transition: background .65s, color .65s; }
body::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1600px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 80% 6%, color-mix(in srgb, var(--fx-a) 30%, transparent), transparent 36%),
              radial-gradient(ellipse at 6% 38%, color-mix(in srgb, var(--fx-b) 14%, transparent), transparent 28%);
}
#main, #site-footer { position: relative; z-index: 1; }
:root.theme-switching *, :root.theme-switching *::before, :root.theme-switching *::after { transition: none !important; }

/* ---------- ambient layers ---------- */
.fx-glow { position: fixed; z-index: 0; pointer-events: none; top: 14vh; inset-inline-end: 4vw; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle at 42% 42%, color-mix(in srgb, var(--fx-a) 36%, transparent), color-mix(in srgb, var(--fx-a) 10%, transparent) 40%, transparent 72%);
  filter: blur(40px); opacity: .85; }
.fx-glow::after { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--fx-b) 16%, transparent), transparent 68%); filter: blur(28px); }
.fx-cursor { position: fixed; top: 0; left: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 45% 45%, color-mix(in srgb, var(--fx-a) 30%, transparent), color-mix(in srgb, var(--fx-a) 10%, transparent) 38%, color-mix(in srgb, var(--fx-b) 9%, transparent) 58%, transparent 70%);
  filter: blur(60px); opacity: 0; transition: opacity .6s; will-change: transform; }
.fx-cursor.on { opacity: 1; }

/* background brand mark: neon line drawing → faint mark with a rotating key light */
.fx-mark { position: fixed; left: 50%; top: 54%; width: min(90vh, 900px, 96vw); aspect-ratio: 1; z-index: 0; pointer-events: none;
  transform: translate(-50%, -50%) translate3d(0, var(--bgy, 0px), 0); }
.fx-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.fx-mark .ln { fill: none; stroke-width: 1.4; opacity: .55; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 1; stroke: color-mix(in srgb, var(--fx-a) 70%, #fff); }
.fx-mark .ln.o { stroke: var(--fx-b); }
.fx-mark.draw .ln { animation: fxDraw 2.1s cubic-bezier(.55, .05, .3, 1) var(--d, 0s) forwards; }
.fx-mark.draw svg { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--fx-a) 80%, #fff)) drop-shadow(0 0 12px var(--fx-a)); }
.fx-mark .solid { opacity: 0; transition: opacity 1.6s ease; }
.fx-mark .ln.o { stroke: color-mix(in srgb, var(--fx-b) 75%, #fff); }
.fx-mark.done .ln { stroke-dashoffset: 0; animation: none; opacity: 0; transition: opacity 1.4s ease; }
.fx-mark.done svg { filter: none; }
.fx-mark.done .solid { opacity: var(--bgo); }
.fx-mark .light { opacity: 0; transition: opacity 1.6s; mix-blend-mode: screen; }
.fx-mark.done .light { opacity: calc(var(--bgo) * 1.4); }
.fx-mark .light circle { transform-origin: 128px 128px; animation: fxSpin 24s linear infinite; }
@keyframes fxDraw { to { stroke-dashoffset: 0; } }
@keyframes fxSpin { to { transform: rotate(360deg); } }
@media (max-width: 680px) { .fx-mark { width: 125vw; top: 50%; } }

/* sky transition (theme switch) */
.fx-sky { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0; overflow: hidden; visibility: hidden; }
.fx-sky.run { visibility: visible; }
.fx-sky.night { background: linear-gradient(180deg, #05081a 0%, #0B1026 35%, #2A0B5E 65%, #0066FF 100%); }
.fx-sky.day { background: linear-gradient(180deg, #7FDFFF 0%, #D6F6FF 45%, #EBDDFF 78%, #B339FF 100%); }
.fx-sky .hz { position: absolute; left: -10%; right: -10%; bottom: -30%; height: 60%; border-radius: 50%; background: radial-gradient(ellipse at 50% 0%, #ff9a3c88, transparent 65%); filter: blur(20px); }
.fx-sky .sun, .fx-sky .moon { position: absolute; left: calc(50% - 60px); width: 120px; height: 120px; border-radius: 50%; }
.fx-sky .sun { background: radial-gradient(circle at 40% 38%, #fff7d1, #ffd36b 35%, #ff8a1f 75%, #e85d10); box-shadow: 0 0 60px 20px #ff9f3a99, 0 0 160px 60px #ff7a1a55; }
.fx-sky .moon { background: radial-gradient(circle at 35% 32%, #fff, #e6defe 40%, #a99be6 80%); box-shadow: 0 0 50px 14px #b9a8ff66, 0 0 140px 50px #6a3fe033; }
.fx-sky .stars { position: absolute; inset: 0; opacity: 0; background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #fff, transparent), radial-gradient(1.5px 1.5px at 44% 26%, #e9e1ff, transparent), radial-gradient(1px 1px at 62% 12%, #fff, transparent), radial-gradient(2px 2px at 78% 22%, #fff, transparent), radial-gradient(1px 1px at 88% 6%, #e0d6ff, transparent), radial-gradient(1px 1px at 8% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 35% 44%, #fff, transparent), radial-gradient(1px 1px at 70% 38%, #fff, transparent), radial-gradient(1.5px 1.5px at 93% 34%, #fff, transparent), radial-gradient(1px 1px at 52% 50%, #e9e1ff, transparent), radial-gradient(1px 1px at 20% 58%, #fff, transparent); }

/* language wipe */
.fx-lang { position: fixed; inset: 0; z-index: 9998; pointer-events: none; visibility: hidden; }
.fx-lang.run { visibility: visible; }
.fx-lang::before { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fx-a) 22%, transparent) 40%, color-mix(in srgb, var(--fx-b) 18%, transparent) 60%, transparent); transform: translateX(var(--from, 100%)); filter: blur(8px); }
.fx-lang.run::before { animation: fxSweep .5s cubic-bezier(.65, 0, .35, 1) forwards; }
.fx-lang::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--fx-grad); transform: scaleX(0); transform-origin: var(--origin, right); }
.fx-lang.run::after { animation: fxBar .5s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes fxSweep { to { transform: translateX(calc(var(--to) * 2.5)); } }
@keyframes fxBar { to { transform: scaleX(1); } }
body.fx-leaving #main, body.fx-leaving .nav { opacity: 0; filter: blur(6px); transform: translateX(var(--leave, -18px)); transition: opacity .26s, filter .26s, transform .26s; }
#main { animation: fxEnter .45s var(--fx-ease) both; }
@keyframes fxEnter { from { opacity: 0; filter: blur(5px); transform: translateY(8px); } }

/* ---------- header ---------- */
#site-header { position: sticky; top: 0; z-index: 50; }
.header { background: color-mix(in srgb, var(--c-bg) 80%, transparent) !important; backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--fx-line) !important; transition: box-shadow .3s; }
#site-header.scrolled .header { box-shadow: 0 10px 30px rgb(0 0 0 / .18), 0 1px 0 color-mix(in srgb, var(--fx-a) 30%, transparent); }
.header .brand img { transition: transform .3s var(--fx-ease), filter .3s; }
.header .brand:hover img { transform: rotate(-3deg) scale(1.04); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--fx-a) 60%, transparent)); }
.nav a { border: 1px solid transparent; border-radius: 12px; padding: 7px 11px; font-weight: 700; color: var(--c-muted) !important; text-decoration: none;
  transition: color .22s, background .22s, border-color .22s, box-shadow .22s, transform .22s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--c-text) !important; border-color: color-mix(in srgb, var(--fx-a) 70%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--fx-a) 16%, transparent), color-mix(in srgb, var(--fx-b) 10%, transparent)); box-shadow: 0 7px 20px color-mix(in srgb, var(--fx-a) 14%, transparent); transform: translateY(-1px); }
.icon-btn { transition: transform .25s var(--fx-ease), box-shadow .25s, border-color .25s; }
.icon-btn:hover { transform: translateY(-2px); box-shadow: 0 0 16px color-mix(in srgb, var(--fx-a) 40%, transparent); }

/* language switch (ع / EN) with sliding thumb */
.lang-switch { position: relative; display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--fx-line); direction: ltr; }
.lang-switch a { position: relative; z-index: 1; min-width: 34px; height: 32px; padding: 0 9px; display: grid; place-items: center; border-radius: 999px; color: var(--c-muted); font: 800 12px/1 var(--font-heading); text-decoration: none; transition: color .3s; }
.lang-switch a[data-l="ar"] { font-size: 15px; }
.lang-switch a[aria-current="true"] { color: #fff; }
.lang-switch .thumb { position: absolute; z-index: 0; top: 3px; left: 3px; height: 32px; width: 34px; border-radius: 999px; background: var(--fx-grad); box-shadow: 0 4px 14px color-mix(in srgb, var(--fx-a) 40%, transparent); transition: transform .45s var(--fx-ease), width .45s var(--fx-ease); }

/* theme button: sun / moon swap */
.theme-btn { position: relative; overflow: hidden; }
.theme-btn svg { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; transition: transform .7s var(--fx-ease), opacity .5s; }
.theme-btn .i-moon { fill: #d9ccff; filter: drop-shadow(0 0 5px #a98bff99); }
.theme-btn .i-sun { fill: #ffb02e; stroke: #ff8a1f; stroke-width: 1.8; stroke-linecap: round; filter: drop-shadow(0 0 6px #ffae3c99); }
:root.is-dark .theme-btn .i-sun { transform: translateY(130%) rotate(90deg); opacity: 0; }
:root:not(.is-dark) .theme-btn .i-moon { transform: translateY(-130%) rotate(-60deg); opacity: 0; }

/* ---------- buttons ---------- */
.btn { transition: transform .25s var(--fx-ease), box-shadow .25s, background .25s, border-color .25s; }
.btn-accent, .btn-primary { position: relative; overflow: hidden; }
.btn-accent { background: linear-gradient(110deg, var(--fx-b), #6FE9FF 50%, var(--fx-b)) !important; color: #0B1026 !important; background-size: 200% 100% !important; box-shadow: 0 10px 28px color-mix(in srgb, var(--fx-b) 35%, transparent); }
.btn-accent:hover { background-position: 100% 0 !important; transform: translateY(-2px); box-shadow: 0 14px 34px color-mix(in srgb, var(--fx-b) 45%, transparent); }
.btn-primary { background: var(--fx-grad) !important; border: 0 !important; color: #fff !important; box-shadow: 0 8px 22px color-mix(in srgb, var(--fx-a) 32%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px color-mix(in srgb, var(--fx-b) 32%, transparent); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--fx-a) !important; box-shadow: 0 0 18px color-mix(in srgb, var(--fx-a) 30%, transparent); }
.btn-primary::after, .btn-accent::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, #ffffff40, transparent); transform: skewX(-18deg); transition: left .7s ease; pointer-events: none; }
.btn-primary:hover::after, .btn-accent:hover::after { left: 130%; }

/* ---------- section heads ---------- */
.section-head.fx-center { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.section-head.fx-center h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; margin: 0; }
.section-head .eyebrow { color: var(--c-accent-text); font-weight: 800; font-size: 14px; margin: 0; letter-spacing: .3px; }
.section-head .sub { color: var(--c-muted); margin: 2px 0 0; font-size: 14.5px; max-width: 640px; }

/* ---------- cards: lift, glow, cursor spotlight, light sweep ---------- */
.card { position: relative; isolation: isolate; border-color: var(--fx-line) !important; background: var(--fx-panel) !important;
  transition: transform .35s var(--fx-ease), border-color .35s, box-shadow .35s; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--fx-a) 20%, transparent), transparent 65%); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--fx-a) 55%, var(--c-border)) !important; box-shadow: 0 16px 36px color-mix(in srgb, var(--fx-a) 18%, transparent); }
.p-card .media { overflow: hidden; }
.p-card .media img { transition: transform .6s var(--fx-ease); }
.p-card:hover .media img { transform: scale(1.06); }
.p-card .media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, #ffffff30 50%, transparent 65%); transform: translateX(-110%); transition: transform .9s ease; z-index: 2; }
.p-card:hover .media::after { transform: translateX(110%); }
.cat-card .body { transition: color .3s; }
.cat-card:hover .body { color: var(--c-primary-strong); }
.chip { transition: border-color .25s, color .25s, background .25s, transform .25s; }
.chip:hover { border-color: var(--fx-a); color: var(--c-primary-strong); background: color-mix(in srgb, var(--fx-a) 10%, var(--c-surface)); transform: translateY(-2px); }

/* ---------- home hero ---------- */
.fx-hero { position: relative; padding: 52px 0 36px; }
.fx-hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.fx-hero .eyebrow { color: var(--c-accent-text); font-weight: 800; margin: 0 0 6px; font-size: 15px; }
.fx-hero h1 { font-family: var(--font-heading); font-size: clamp(40px, 6.4vw, 78px); line-height: 1.1; margin: 0; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(90deg, var(--c-text) 35%, color-mix(in srgb, var(--fx-a) 60%, var(--c-text)) 70%, var(--fx-b)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 6px; }
.fx-hero .slogan { font-size: clamp(19px, 2.4vw, 27px); font-weight: 800; color: var(--c-primary-strong); margin: 6px 0 14px; }
.fx-hero .intro { color: var(--c-muted); font-size: 16px; max-width: 600px; margin: 0 0 22px; }
.fx-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.fx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 620px; }
.fx-stat { background: var(--fx-panel); border: 1px solid var(--fx-line); border-top: 3px solid var(--accent, var(--fx-a)); border-radius: 15px; padding: 11px 12px; min-width: 0;
  transition: transform .3s var(--fx-ease), box-shadow .3s, border-color .3s; }
.fx-stat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent, var(--fx-a)) 50%, var(--c-border)); box-shadow: 0 12px 28px color-mix(in srgb, var(--accent, var(--fx-a)) 22%, transparent); }
.fx-stat strong { display: block; font-size: 24px; line-height: 1.3; font-weight: 900; transition: color .3s; }
.fx-stat:hover strong { color: var(--accent, var(--fx-a)); }
.fx-stat span { display: block; font-size: 12px; color: var(--c-muted); }
/* 3D stage */
.fx-stage { position: relative; perspective: 1400px; display: grid; place-items: center; min-height: 420px; isolation: isolate; }
.fx-stage::before { content: ""; position: absolute; inset: 10% 6% 6%; border-radius: 50%; background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--fx-a) 36%, transparent), color-mix(in srgb, var(--fx-b) 14%, transparent) 52%, transparent 70%); filter: blur(34px); z-index: -1;
  transform: translate3d(calc(var(--px, 0) * -28px), calc(var(--py, 0) * -20px), 0); transition: transform .7s var(--fx-ease); }
.fx-tilt { position: relative; width: min(100%, 460px); transform-style: preserve-3d; transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg)); transition: transform .5s var(--fx-ease); animation: fxFloat 7s ease-in-out infinite; }
.fx-tilt > * { transform: translateZ(30px); }
.fx-floor { position: absolute; left: 18%; right: 18%; bottom: 2%; height: 9%; border-radius: 50%; background: radial-gradient(ellipse, #000a, transparent 70%); filter: blur(14px); z-index: -1; animation: fxFloor 7s ease-in-out infinite; }
:root:not(.is-dark) .fx-floor { background: radial-gradient(ellipse, #2a1a6a40, transparent 70%); }
@keyframes fxFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes fxFloor { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(.88); opacity: .5; } }
/* orbit around the mark (shown until there are product photos) */
.fx-orbit { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.fx-orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--fx-a) 45%, transparent); }
.fx-orbit .ring.r2 { inset: 12%; border-style: dashed; border-color: color-mix(in srgb, var(--fx-b) 45%, transparent); animation: fxSpin 40s linear infinite reverse; }
.fx-orbit .ring.r1 { animation: fxSpin 28s linear infinite; }
.fx-orbit .ring.r1::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--fx-b); box-shadow: 0 0 16px var(--fx-b); }
.fx-orbit > img { width: 62%; filter: drop-shadow(0 18px 30px #0007) drop-shadow(0 0 30px color-mix(in srgb, var(--fx-a) 55%, transparent)); }
.fx-shots { position: relative; width: 100%; aspect-ratio: 1; }
.fx-shots img { position: absolute; width: 58%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 3px solid transparent;
  background: linear-gradient(var(--c-surface), var(--c-surface)) padding-box, var(--fx-grad) border-box; box-shadow: 0 22px 50px #0007, 0 0 30px color-mix(in srgb, var(--fx-a) 30%, transparent); }
.fx-shots img:nth-child(1) { top: 2%; inset-inline-start: 4%; z-index: 2; }
.fx-shots img:nth-child(2) { top: 22%; inset-inline-end: 2%; transform: translateZ(-40px) rotate(6deg); width: 50%; }
.fx-shots img:nth-child(3) { bottom: 2%; inset-inline-start: 20%; width: 46%; z-index: 3; transform: translateZ(40px) rotate(-5deg); }

/* ---------- pillars (how it works) ---------- */
.fx-pillars { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.fx-pillar { position: relative; overflow: hidden; padding: 26px 22px 24px; border-radius: 20px; border: 1px solid var(--fx-line); background: var(--fx-panel); transition: border-color .35s, transform .35s; }
.fx-pillar::before { content: ""; position: absolute; top: 0; inset-inline-start: 22px; height: 3px; width: 46px; border-radius: 9px; background: var(--accent, var(--fx-a)); transition: width .55s var(--fx-ease); }
.fx-pillar:hover::before { width: calc(100% - 44px); }
.fx-pillar:hover { border-color: color-mix(in srgb, var(--accent, var(--fx-a)) 45%, var(--c-border)); transform: translateY(-3px); }
.fx-pillar .no { position: absolute; top: 10px; inset-inline-end: 18px; font: 800 54px/1 var(--font-heading); color: color-mix(in srgb, var(--accent, var(--fx-a)) 20%, transparent); transition: color .35s, transform .35s; }
.fx-pillar:hover .no { color: color-mix(in srgb, var(--accent, var(--fx-a)) 40%, transparent); transform: translateY(-3px); }
.fx-pillar .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; font-size: 26px; color: var(--accent, var(--fx-a));
  background: color-mix(in srgb, var(--accent, var(--fx-a)) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent, var(--fx-a)) 45%, transparent); }
.fx-pillar .ic svg { width: 26px; height: 26px; }
.fx-pillar:hover .ic { animation: fxPulse 1.2s ease-out; }
@keyframes fxPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent, var(--fx-a)) 45%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.fx-pillar h3 { margin: 0 0 6px; font-size: 18px; }
.fx-pillar p { margin: 0; color: var(--c-muted); font-size: 14px; line-height: 1.85; }
/* services style: sweep */
.fx-pillar.sweep::after { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%; background: linear-gradient(100deg, transparent, #ffffff14, transparent); transform: skewX(-18deg); transition: left .7s ease; pointer-events: none; }
.fx-pillar.sweep:hover::after { left: 120%; }

/* ---------- slider (dots + arrows) ---------- */
.fx-slider { position: relative; }
.fx-slider .scroller { scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.fx-slider .scroller::-webkit-scrollbar { display: none; }
.fx-slider .scroller > * { scroll-snap-align: start; }
.fx-ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 10px; direction: ltr; }
.fx-nav { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--fx-line); background: color-mix(in srgb, var(--c-surface) 88%, transparent); color: var(--c-text); cursor: pointer; transition: background .25s, border-color .25s, transform .25s; }
.fx-nav:hover { border-color: var(--fx-a); background: color-mix(in srgb, var(--fx-a) 18%, var(--c-surface)); transform: scale(1.06); }
.fx-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fx-dots { display: flex; gap: 7px; }
.fx-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--c-border); cursor: pointer; transition: width .35s, background .35s; }
.fx-dots button[aria-selected="true"] { width: 26px; background: var(--fx-grad); }

/* ---------- CTA band & floating socials ---------- */
.fx-cta { position: relative; overflow: hidden; text-align: center; padding: 40px 24px; border-radius: 26px; border: 1px solid var(--fx-line);
  background: linear-gradient(120deg, color-mix(in srgb, var(--fx-a) 20%, var(--c-surface)), var(--c-surface) 55%, color-mix(in srgb, var(--fx-b) 12%, var(--c-surface))); }
.fx-cta img { width: 84px; height: 84px; margin: 0 auto 14px; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--fx-a) 60%, transparent)); }
.fx-cta h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 8px; }
.fx-cta p { color: var(--c-muted); margin: 0 auto 20px; max-width: 620px; }
.fx-cta .hero-cta { justify-content: center; display: flex; flex-wrap: wrap; gap: 12px; }
.fx-social { position: fixed; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); z-index: 45; display: flex; flex-direction: column; gap: 8px; padding: 10px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--c-surface) 72%, transparent); border: 1px solid var(--fx-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px #0004, 0 0 22px color-mix(in srgb, var(--fx-a) 18%, transparent); }
.fx-social::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(180deg, var(--fx-a), var(--fx-b) 55%, var(--fx-a)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; pointer-events: none; }
.fx-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--c-text); transition: transform .25s, background .25s, box-shadow .25s; }
.fx-social a:hover { transform: translateY(-3px) scale(1.08); background: color-mix(in srgb, var(--fx-a) 16%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--fx-a) 40%, transparent); }
.fx-social svg { width: 22px; height: 22px; }

/* ---------- reveal on scroll ---------- */
.fx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--fx-ease), transform .7s var(--fx-ease); transition-delay: var(--rd, 0s); }
.fx-reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .fx-social { inset-inline-end: 8px; } }
@media (max-width: 900px) {
  .fx-hero .container { grid-template-columns: 1fr; gap: 26px; }
  .fx-hero .copy { text-align: center; }
  .fx-hero .intro { margin-inline: auto; }
  .fx-hero .hero-cta { justify-content: center; }
  .fx-stats { margin: auto; }
  .fx-stage { min-height: 0; order: -1; }
  .fx-tilt { width: min(78%, 380px); --ry: 0deg; --rx: 0deg; }
  .fx-pillars { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .fx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-social { top: auto; bottom: 12px; inset-inline-end: 50%; transform: translateX(50%); flex-direction: row; padding: 5px 12px; }
  :root[dir="rtl"] .fx-social { transform: translateX(-50%); }
  .fx-social a { width: 40px; height: 40px; }
  body.has-social { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .fx-glow { width: 230px; height: 230px; top: 12vh; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-tilt, .fx-floor, .fx-orbit .ring, .fx-mark .light circle { animation: none !important; }
  .fx-reveal { opacity: 1; transform: none; transition: none; }
  #main { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* any-color products */
.badge.colors { background: linear-gradient(90deg, #ff5f6d, #ffc371, #47e891, #3fa9ff, #b06bff) !important; color: #fff !important; text-shadow: 0 1px 2px #0006; }
.swatches.any label { position: relative; }
.swatches .delta { color: var(--c-accent-text); font-weight: 800; margin-inline-start: 4px; }

/* ---------- brand lockup (hex S + SADEEM / سديم) ---------- */
.fx-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; perspective: 400px; }
.fx-brand .mark { width: 34px; height: auto; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--fx-a) 45%, transparent)); transition: transform .7s var(--fx-ease), filter .4s; }
.fx-brand:hover .mark { transform: rotateY(180deg) scale(1.06); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--fx-b) 70%, transparent)); }
.fx-brand .wm { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.fx-brand .wm b { font: 800 19px/1 'Exo 2', sans-serif; letter-spacing: 1.5px; direction: ltr;
  background: linear-gradient(90deg, var(--c-text) 0 55%, #0066FF 70%, #00D4FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-brand .wm span { font: 800 14px/1.2 'Cairo', sans-serif; color: var(--c-text); position: relative; padding: 0 14px; }
.fx-brand .wm span::before, .fx-brand .wm span::after { content: ""; position: absolute; top: 55%; width: 10px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #0066FF, #8A00FF); }
.fx-brand .wm span::before { left: 0; } .fx-brand .wm span::after { right: 0; }
.footer .fx-brand .wm b { font-size: 22px; }

/* ---------- intro: the logo draws itself (first visit per tab) ---------- */
.fx-intro { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; align-content: center; gap: 16px;
  background: radial-gradient(circle at 50% 45%, #1a0f45, #0B1026 60%); transition: opacity .6s ease, visibility .6s; }
.fx-intro.out { opacity: 0; visibility: hidden; }
.fx-intro .stage { position: relative; width: min(34vw, 170px); aspect-ratio: 100 / 110; }
.fx-intro .stage > * { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 22px #8A00FFaa) drop-shadow(0 0 40px #00D4FF55); }
.fx-intro .logo { opacity: 0; animation: fxUp .45s ease 1.25s forwards; }
.fx-intro .draw.b { animation-delay: .45s !important; }
.fx-intro svg { transition: opacity .3s; }
.fx-intro .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: fxDraw 1.2s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
.fx-intro .wm { display: flex; flex-direction: column; align-items: center; opacity: 0; transform: translateY(8px); animation: fxUp .5s ease 1.05s forwards; }
.fx-intro .wm b { font: 800 34px/1 'Exo 2', sans-serif; letter-spacing: 4px; color: #fff; }
.fx-intro .wm span { font: 800 24px/1.3 'Cairo', sans-serif; background: linear-gradient(90deg, #00D4FF, #8A00FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes fxUp { to { opacity: 1; transform: none; } }

/* hero mark: breathing glow between violet and cyan */
.fx-orbit > img { animation: fxMarkGlow 5s ease-in-out infinite; }
@keyframes fxMarkGlow { 0%, 100% { filter: drop-shadow(0 18px 30px #0007) drop-shadow(0 0 26px #8A00FF88); } 50% { filter: drop-shadow(0 18px 30px #0007) drop-shadow(0 0 34px #00D4FFaa); } }
@media (prefers-reduced-motion: reduce) { .fx-intro { display: none; } .fx-orbit > img { animation: none; } }
