﻿/* Quick System — الحركة والجرافيك (2026-11-22) */

/* ===== ظهور العناصر مع النزول ===== */
[data-anim] { opacity: 0; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
[data-anim="up"] { transform: translateY(36px); }
[data-anim="zoom"] { transform: scale(.92); }
[data-anim="side"] { transform: translateX(40px); }
[data-anim].in { opacity: 1; transform: none; }
.fx-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.fx-stagger.in > * { opacity: 1; transform: none; }

/* ===== لمعة على الزراير ===== */
.btn.shine { position: relative; overflow: hidden; }
.btn.shine::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -80%; } 100% { left: 130%; } }

/* ===== الهيدر بيصغر ويبقى زجاجي مع النزول ===== */
header.site { transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
header.site.scrolled { background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 6px 24px rgba(15,23,42,.08); }
header.site .wrap { transition: min-height .3s; }
header.site.scrolled .wrap { min-height: 68px; }
header.site .logo img { transition: height .3s; }
header.site.scrolled .logo img { height: 56px; }
.scroll-bar { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--orange), #fbbf24); z-index: 70; }

/* ===== البانر ===== */
.fx-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #3b82f6 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #f97316 0%, transparent 55%), linear-gradient(135deg, #0b1f5c 0%, #1e3a8a 45%, #1d4ed8 100%); background-size: 140% 140%, 140% 140%, 100% 100%; animation: heroBg 18s ease-in-out infinite alternate; }
@keyframes heroBg { 0% { background-position: 0% 0%, 0% 0%, 0 0; } 100% { background-position: 30% 20%, 20% 30%, 0 0; } }
.fx-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.fx-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: orb 14s ease-in-out infinite alternate; pointer-events: none; }
.fx-orb.o1 { width: 340px; height: 340px; background: #f97316; top: -80px; inset-inline-start: 8%; }
.fx-orb.o2 { width: 420px; height: 420px; background: #60a5fa; bottom: -160px; inset-inline-end: 4%; animation-delay: -5s; }
.fx-orb.o3 { width: 220px; height: 220px; background: #a78bfa; top: 40%; inset-inline-start: 45%; animation-delay: -9s; opacity: .3; }
@keyframes orb { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.1); } 100% { transform: translate(-30px,40px) scale(.95); } }
.fx-hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; padding: 70px 0 130px; }
.fx-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 6px 16px; border-radius: 99px; font-size: .9em; backdrop-filter: blur(6px); }
.fx-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.7); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.fx-hero h1 { font-size: clamp(2em, 4.4vw, 3.3em); font-weight: 800; margin: 18px 0 10px; line-height: 1.25; text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.fx-typed { font-size: clamp(1.15em, 2.2vw, 1.6em); font-weight: 700; color: #dbeafe; min-height: 1.6em; margin-bottom: 14px; }
.fx-typed .tw { background: linear-gradient(90deg, #fdba74, #f97316, #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-typed .caret { display: inline-block; width: 3px; height: 1.1em; background: #fdba74; margin-inline-start: 4px; vertical-align: -0.15em; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fx-hero p { color: #dbeafe; font-size: 1.08em; margin: 0 0 26px; max-width: 560px; }
.fx-hero .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.fx-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; color: #bfdbfe; font-size: .92em; }
.fx-trust i { color: #4ade80; }
.fx-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; z-index: 3; }

/* اللابتوب والموبايل */
.fx-stage { position: relative; perspective: 1400px; min-height: 420px; }
.fx-laptop { position: relative; width: 88%; margin-inline-start: 0; transform: rotateY(-8deg) rotateX(4deg); transform-style: preserve-3d; animation: floatY 7s ease-in-out infinite; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
[dir=ltr] .fx-laptop { transform: rotateY(8deg) rotateX(4deg); }
.fx-laptop .scr { background: #0f172a; border-radius: 16px 16px 6px 6px; padding: 10px; border: 2px solid #334155; }
.fx-laptop .bar { height: 18px; display: flex; gap: 6px; align-items: center; padding: 0 4px 6px; }
.fx-laptop .bar i, .fx-monitor .bar i { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; display: block; }
.fx-laptop .bar i:nth-child(2), .fx-monitor .bar i:nth-child(2) { background: #f59e0b; }
.fx-laptop .bar i:nth-child(3), .fx-monitor .bar i:nth-child(3) { background: #22c55e; }
.slides { position: relative; aspect-ratio: 1440/860; overflow: hidden; border-radius: 6px; background: #fff; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity 1s ease, transform 6s ease; }
.slides img.on { opacity: 1; transform: scale(1); }
.fx-laptop .base { height: 16px; margin: 0 -6%; background: linear-gradient(#cbd5e1, #94a3b8); border-radius: 0 0 22px 22px; position: relative; }
.fx-laptop .base::before { content: ""; position: absolute; top: 0; left: 42%; width: 16%; height: 6px; background: #64748b; border-radius: 0 0 8px 8px; }
.fx-phone { position: absolute; bottom: -18px; inset-inline-end: 0; width: 26%; background: #0f172a; border-radius: 26px; padding: 22px 8px 14px; border: 2px solid #334155; box-shadow: 0 25px 50px rgba(0,0,0,.5); animation: floatY 6s ease-in-out infinite; animation-delay: -2s; z-index: 4; }
.fx-phone .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 40%; height: 6px; border-radius: 6px; background: #334155; }
.fx-phone .slides { aspect-ratio: 9/16; border-radius: 14px; }
.fx-phone .slides img { object-position: right top; }
[dir=ltr] .fx-phone .slides img { object-position: left top; }
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.fx-chip { position: absolute; z-index: 5; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.95); color: var(--ink); padding: 10px 14px; border-radius: 14px; box-shadow: 0 14px 34px rgba(0,0,0,.25); font-size: .85em; animation: floatY 5s ease-in-out infinite; }
.fx-chip i { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--blue); font-size: 1.05em; }
.fx-chip b { display: block; line-height: 1.2; }
.fx-chip small { color: var(--muted); }
.fx-chip.c1 { top: 2%; inset-inline-end: 4%; animation-delay: -1s; }
.fx-chip.c1 i { background: #22c55e; }
.fx-chip.c2 { top: 40%; inset-inline-start: -4%; animation-delay: -3s; }
.fx-chip.c2 i { background: var(--orange); }
.fx-chip.c3 { bottom: 4%; inset-inline-start: 22%; animation-delay: -2s; }
.fx-chip.c3 i { background: #ef4444; }

/* ===== شريط البرامج المتحرك ===== */
.fx-marquee { overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 0; position: relative; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fx-marquee .track { display: flex; gap: 14px; width: max-content; animation: marq 55s linear infinite; }
[dir=rtl] .fx-marquee .track { animation-name: marqR; }
.fx-marquee:hover .track { animation-play-state: paused; }
.fx-marquee a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 16px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .95em; }
.fx-marquee a:hover { border-color: var(--blue); color: var(--blue); }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqR { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ===== العدّادات ===== */
.fx-counters { padding: 50px 0 20px; }
.fx-count { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 16px; position: relative; overflow: hidden; }
.fx-count::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 120px at 50% 0%, var(--blue-l), transparent); }
.fx-count > * { position: relative; }
.fx-count i { font-size: 1.6em; color: var(--orange); margin-bottom: 8px; display: block; }
.fx-count b { display: block; font-size: 2.6em; font-weight: 800; line-height: 1.1; background: linear-gradient(135deg, var(--blue-d), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-count span { color: var(--muted); }

/* ===== عناوين الأقسام ===== */
.fx-kicker { display: inline-block; color: var(--orange-d); background: var(--orange-l); border: 1px solid #fed7aa; padding: 3px 14px; border-radius: 99px; font-size: .85em; font-weight: 700; margin-bottom: 10px; }
.fx-dots { background-image: radial-gradient(#dbeafe 1.2px, transparent 1.2px); background-size: 22px 22px; }

/* ===== كروت البرامج: حركة ثلاثية الأبعاد ===== */
.pcard { transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.pcard .ic { transition: transform .4s cubic-bezier(.2,.8,.2,1.4); box-shadow: 0 10px 20px -8px var(--c, var(--blue)); }
.pcard:hover .ic { transform: translateZ(30px) rotate(-8deg) scale(1.12); }
.pcard::after { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(29,78,216,.10), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.pcard:hover::after { opacity: 1; }
.prod .ph img { transition: transform .5s ease; }
.prod:hover .ph img { transform: scale(1.08); }
.why .ic { transition: transform .5s; }
.why:hover .ic { transform: rotateY(360deg); }
.why:hover { border-color: #fed7aa; box-shadow: var(--sh); }
.sol .ic { animation: floatY 4s ease-in-out infinite; }
.sol::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); top: -60px; inset-inline-start: -60px; transition: transform .6s; }
.sol:hover::before { transform: scale(2.4); }
.tst { position: relative; transition: transform .3s, box-shadow .3s; }
.tst:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.tst .q { position: absolute; top: 16px; inset-inline-end: 18px; font-size: 2em; color: var(--blue-m); }

/* ===== شوف البرنامج من جوه ===== */
.fx-show { background: linear-gradient(160deg, #0b1f5c, #1e3a8a 60%, #1d4ed8); color: #fff; position: relative; overflow: hidden; }
.fx-show::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; }
.fx-show .wrap { position: relative; }
.sec-head.light h2 { color: #fff; } .sec-head.light p { color: #bfdbfe; }
.fx-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.fx-tabs button { font: inherit; font-weight: 700; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; padding: 9px 18px; border-radius: 99px; cursor: pointer; transition: .2s; }
.fx-tabs button:hover { background: rgba(255,255,255,.16); }
.fx-tabs button.on { background: var(--orange); border-color: var(--orange); box-shadow: 0 8px 24px rgba(249,115,22,.4); }
.fx-pane { display: none; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
.fx-pane.on { display: grid; animation: paneIn .6s ease; }
@keyframes paneIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.fx-monitor { background: #0f172a; border-radius: 14px; padding: 10px; border: 2px solid #334155; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.fx-monitor .bar { display: flex; gap: 6px; align-items: center; padding: 0 4px 8px; }
.fx-monitor .bar span { margin-inline-start: auto; color: #94a3b8; font-size: .82em; }
.fx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fx-list li { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); cursor: pointer; transition: .2s; position: relative; overflow: hidden; }
.fx-list li b { display: block; }
.fx-list li span { color: #bfdbfe; font-size: .88em; display: none; margin-top: 4px; }
.fx-list li.on { background: rgba(255,255,255,.14); border-color: rgba(253,186,116,.6); }
.fx-list li.on span { display: block; }
.fx-list li.on::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; height: 3px; background: var(--orange); animation: prog 5s linear forwards; }
@keyframes prog { from { width: 0; } to { width: 100%; } }
.fx-list li.more { background: none; border: 0; padding: 6px 0 0; cursor: default; }

/* ===== الخطوات ===== */
.fx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.fx-steps::before { content: ""; position: absolute; top: 46px; inset-inline: 12%; height: 3px; background: repeating-linear-gradient(90deg, var(--blue-m) 0 12px, transparent 12px 22px); }
.fx-steps .step { text-align: center; position: relative; padding: 0 8px; }
.fx-steps .step .n { position: absolute; top: -6px; inset-inline-start: calc(50% + 22px); background: var(--orange); color: #fff; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: .85em; display: flex; align-items: center; justify-content: center; z-index: 2; }
.fx-steps .step > i { width: 92px; height: 92px; border-radius: 26px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 2em; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-d)); box-shadow: 0 16px 30px -10px rgba(29,78,216,.6); position: relative; transition: transform .4s; }
.fx-steps .step:hover > i { transform: translateY(-8px) rotate(-6deg); }
.fx-steps h3 { font-size: 1.1em; }
.fx-steps p { color: var(--muted); margin: 0; font-size: .95em; }

/* ===== الشريط البرتقالي ===== */
.fx-cta { position: relative; overflow: hidden; background: linear-gradient(120deg, #f97316, #ea580c, #f59e0b, #f97316); background-size: 300% 300%; animation: ctaBg 10s ease infinite; }
@keyframes ctaBg { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.fx-orb.o4 { width: 260px; height: 260px; background: #fff; opacity: .15; top: -120px; inset-inline-end: 10%; filter: blur(30px); }
.fx-orb.o5 { width: 200px; height: 200px; background: #1d4ed8; opacity: .25; bottom: -100px; inset-inline-start: 6%; filter: blur(40px); }

/* ===== صفحات تانية: عناوين متحركة ===== */
.page-head { position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--orange); filter: blur(70px); opacity: .25; top: -200px; inset-inline-end: -80px; animation: orb 12s ease-in-out infinite alternate; }
.page-head .wrap { position: relative; z-index: 1; }

/* ===== الموبايل ===== */
@media (max-width: 980px) {
    .fx-hero-in { grid-template-columns: 1fr; padding: 46px 0 110px; gap: 36px; }
    .fx-stage { min-height: 0; max-width: 560px; margin: 0 auto; width: 100%; }
    .fx-pane.on { grid-template-columns: 1fr; }
    .fx-steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .fx-steps::before { display: none; }
}
@media (max-width: 600px) {
    .fx-chip { font-size: .72em; padding: 7px 10px; } .fx-chip i { width: 28px; height: 28px; }
    .fx-chip.c3 { display: none; }
    .fx-phone { width: 32%; }
    .fx-count b { font-size: 2em; }
    .fx-steps { grid-template-columns: 1fr; }
    .fx-list li span { font-size: .82em; }
    .fx-hero h1 { margin-top: 14px; }
}
/* اللي مش بيحب الحركة */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-anim], .fx-stagger > * { opacity: 1 !important; transform: none !important; }
}

.fx-count b, .fx-chip.c2 b { direction: ltr; unicode-bidi: isolate; }
