/* الصفحة الرئيسية للمنصة: تصميم حركي بنسخة للكمبيوتر ونسخة للجوال */

.landing {
  --ink: #0b1716;
  --night: #071312;
  --night-2: #0c1f1d;
  --teal: #14b8a6;
  --teal-2: #0f766e;
  --amber: #f59e0b;
  --mint: #5eead4;
  --soft: #f4f7f6;
  --line-d: rgba(255, 255, 255, .1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  background: #fff;
  color: var(--ink);
  overflow-x: hidden;
}
.landing .wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.landing .narrow-wrap { max-width: 820px; }
.landing a { text-decoration: none !important; }
.grad {
  font-style: normal;
  background: linear-gradient(90deg, var(--mint), var(--teal) 40%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -200% center; } }

.announce { position: relative; z-index: 60; background: var(--amber); color: #3b2300; text-align: center; padding: 8px 16px; font-size: .92rem; font-weight: 600; }

/* ------------ الأزرار ------------ */
.btn-glow {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 14px;
  font-weight: 700; color: #04201d !important; isolation: isolate; overflow: hidden;
  background: linear-gradient(135deg, var(--mint), var(--teal) 55%, #0d9488);
  box-shadow: 0 10px 30px -8px rgba(20, 184, 166, .65), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(120%); animation: sweep 3.5s var(--ease) infinite;
}
@keyframes sweep { 0%, 55% { transform: translateX(120%); } 100% { transform: translateX(-120%); } }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(20, 184, 166, .8), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-glow:active { transform: translateY(0) scale(.98); }
.btn-glow.sm { min-height: 40px; padding: 0 18px; border-radius: 11px; font-size: .92rem; }
.btn-glow.lg { min-height: 56px; padding: 0 30px; font-size: 1.08rem; border-radius: 16px; }
.btn-glow.block { width: 100%; }
.btn-glow svg { transition: transform .3s var(--ease); }
.btn-glow:hover svg { transform: translateX(-4px); }
.btn-line {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px;
  color: #fff !important; font-weight: 600; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.btn-line:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }
.btn-line.lg { min-height: 56px; padding: 0 26px; border-radius: 16px; }

/* ------------ الشريط العلوي ------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s, transform .35s var(--ease);
}
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: #fff; }
.brand img { transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.nav-links { display: flex; gap: 6px; margin-inline-start: 18px; }
.nav-links a { position: relative; padding: 8px 12px; border-radius: 10px; color: rgba(255, 255, 255, .78); font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ""; position: absolute; bottom: 2px; inset-inline: 12px; height: 2px; border-radius: 2px; background: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.nav-login { color: rgba(255, 255, 255, .85); font-weight: 600; }
.nav-login:hover { color: #fff; }
.nav.scrolled { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 8px 30px -12px rgba(0, 0, 0, .15); }
.nav.scrolled .brand, .nav.scrolled .nav-login { color: var(--ink); }
.nav.scrolled .nav-links a { color: #4a5563; }
.nav.scrolled .nav-links a:hover { color: var(--ink); background: #f1f4f3; }
.nav.scrolled .nav-links a.active { color: var(--teal-2); }
.nav.scrolled .burger i { background: var(--ink); }
.nav.hide { transform: translateY(-100%); }

.burger { display: none; width: 44px; height: 44px; margin-inline-start: auto; border: 0; background: rgba(255, 255, 255, .08); border-radius: 12px; cursor: pointer; position: relative; }
.burger i { position: absolute; right: 12px; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.burger i:nth-child(1) { top: 15px; } .burger i:nth-child(2) { top: 21px; } .burger i:nth-child(3) { top: 27px; }
body.menu-open .burger i:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .burger i:nth-child(2) { opacity: 0; }
body.menu-open .burger i:nth-child(3) { top: 21px; transform: rotate(-45deg); }
body.menu-open .nav { background: transparent; box-shadow: none; backdrop-filter: none; }
body.menu-open .nav .brand { color: #fff; }
body.menu-open .burger i { background: #fff; }

.m-menu {
  position: fixed; inset: 0; z-index: 45; background: radial-gradient(120% 80% at 80% 0%, #10403b, var(--night) 60%);
  display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 90px 28px 40px;
  clip-path: circle(0 at calc(100% - 42px) 36px); transition: clip-path .6s var(--ease); visibility: hidden;
}
body.menu-open .m-menu { clip-path: circle(150% at calc(100% - 42px) 36px); visibility: visible; }
body.menu-open { overflow: hidden; }
.m-menu nav { display: flex; flex-direction: column; gap: 6px; }
.m-menu nav a {
  color: #fff; font-size: 1.6rem; font-weight: 700; padding: 8px 0;
  opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease);
}
body.menu-open .m-menu nav a { opacity: 1; transform: none; }
body.menu-open .m-menu nav a:nth-child(1) { transition-delay: .12s; } body.menu-open .m-menu nav a:nth-child(2) { transition-delay: .17s; }
body.menu-open .m-menu nav a:nth-child(3) { transition-delay: .22s; } body.menu-open .m-menu nav a:nth-child(4) { transition-delay: .27s; }
body.menu-open .m-menu nav a:nth-child(5) { transition-delay: .32s; } body.menu-open .m-menu nav a:nth-child(6) { transition-delay: .37s; }

/* ------------ الواجهة ------------ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 90% -10%, #134e48 0%, var(--night) 55%), var(--night);
  color: #fff; display: flex; align-items: center; padding: 110px 0 80px;
}
.aurora { position: absolute; inset: 0; z-index: -1; filter: blur(70px); opacity: .7; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora .a1 { width: 520px; height: 520px; background: #14b8a6; top: -120px; right: -80px; animation: float1 16s ease-in-out infinite; }
.aurora .a2 { width: 420px; height: 420px; background: #f59e0b; bottom: -160px; left: 10%; opacity: .55; animation: float2 18s ease-in-out infinite; }
.aurora .a3 { width: 360px; height: 360px; background: #6366f1; top: 30%; left: -120px; opacity: .45; animation: float3 20s ease-in-out infinite; }
.aurora.soft { opacity: .35; }
@keyframes float1 { 50% { transform: translate(-120px, 80px) scale(1.15); } }
@keyframes float2 { 50% { transform: translate(140px, -60px) scale(.9); } }
@keyframes float3 { 50% { transform: translate(80px, 100px) scale(1.2); } }
.grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  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: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; width: 100%; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 30px; font-size: .88rem; font-weight: 600;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: var(--mint);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(94, 234, 212, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); } }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.25; margin: 20px 0 18px; font-weight: 800; letter-spacing: -.01em; }
.rotator { display: inline-grid; vertical-align: bottom; min-width: 4ch; color: var(--amber); }
.rotator span { grid-area: 1 / 1; display: inline-block; animation: wordIn .6s var(--ease) both; }
.rotator span.out { animation: wordOut .45s var(--ease) both; }
@keyframes wordIn { from { opacity: 0; transform: translateY(60%) rotateX(-60deg); filter: blur(6px); } }
@keyframes wordOut { to { opacity: 0; transform: translateY(-60%) rotateX(60deg); filter: blur(6px); } }
.hero .lead { font-size: 1.15rem; line-height: 1.85; color: rgba(255, 255, 255, .74); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 26px 0 0; color: rgba(255, 255, 255, .7); font-size: .92rem; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: var(--mint); }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .3); }
.scroll-hint i { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* المشهد: الجوال والبطاقات العائمة */
.stage { position: relative; height: 600px; display: grid; place-items: center; perspective: 1200px; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); }
.ring.r1 { width: 420px; height: 420px; animation: spin 40s linear infinite; border-top-color: rgba(94, 234, 212, .5); }
.ring.r2 { width: 560px; height: 560px; animation: spin 60s linear infinite reverse; border-bottom-color: rgba(245, 158, 11, .4); }
@keyframes spin { to { transform: rotate(360deg); } }
.phone {
  position: relative; width: 270px; height: 550px; border-radius: 44px; padding: 11px;
  background: linear-gradient(145deg, #2a2f36, #0d0f12); box-shadow: 0 50px 100px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 2px #3a3f47;
  transform-style: preserve-3d; transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg));
  transition: transform .6s var(--ease); animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -14px; } }
.notch { position: absolute; top: 18px; left: 50%; width: 90px; height: 24px; margin-left: -45px; border-radius: 14px; background: #000; z-index: 5; }
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #f7f7f8; color: var(--ink); }
.p-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 46px 14px 10px; background: #fff; border-bottom: 1px solid #eee; font-size: .85rem; }
.p-logo { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #b45309, #f59e0b); }
.p-cart { margin-inline-start: auto; width: 22px; height: 22px; border-radius: 50%; background: #b45309; color: #fff; font-size: .7rem; display: grid; place-items: center; font-weight: 700; animation: pop 4s var(--ease) infinite; }
@keyframes pop { 0%, 80%, 100% { transform: scale(1); } 85% { transform: scale(1.35); } }
.p-scroll { animation: browse 14s ease-in-out infinite; }
@keyframes browse { 0%, 15% { transform: translateY(0); } 45%, 60% { transform: translateY(-190px); } 90%, 100% { transform: translateY(0); } }
.p-cover { margin: 10px; height: 110px; border-radius: 14px; background: linear-gradient(135deg, #92400e, #f59e0b); display: flex; align-items: flex-end; padding: 12px; color: #fff; font-weight: 700; font-size: .9rem; position: relative; overflow: hidden; }
.p-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .25) 50%, transparent 60%); animation: sweep 4s infinite; }
.p-chips { display: flex; gap: 6px; padding: 0 10px 10px; }
.p-chips i { font-style: normal; font-size: .68rem; padding: 3px 10px; border-radius: 20px; background: #fff; border: 1px solid #e5e7eb; }
.p-chips i.on { background: #b45309; color: #fff; border-color: #b45309; }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 10px 20px; }
.p-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee; font-size: .7rem; }
.p-img { height: 82px; }
.c1 { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.c2 { background: linear-gradient(135deg, #fbcfe8, #db2777); }
.c3 { background: linear-gradient(135deg, #bfdbfe, #2563eb); }
.c4 { background: linear-gradient(135deg, #bbf7d0, #059669); }
.p-card span { display: block; padding: 6px 8px 0; }
.p-card b { display: block; padding: 2px 8px 8px; color: #b45309; }
.p-wa { position: absolute; bottom: 14px; left: 14px; width: 42px; height: 42px; border-radius: 50%; background: #1fa855; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); animation: ping-wa 2.5s infinite; }
@keyframes ping-wa { 0% { box-shadow: 0 0 0 0 rgba(31, 168, 85, .6); } 70% { box-shadow: 0 0 0 14px rgba(31, 168, 85, 0); } }
.p-toast {
  position: absolute; z-index: 4; top: 44px; inset-inline: 10px; display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 16px; background: rgba(17, 24, 39, .92); color: #fff; backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3); font-size: .75rem;
  transform: translateY(-140%); opacity: 0; transition: transform .6s var(--ease), opacity .4s;
}
.p-toast.show { transform: none; opacity: 1; }
.p-toast small { display: block; opacity: .7; font-size: .68rem; }
.ic-cart { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--teal); position: relative; }
.ic-cart::after { content: "🛒"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; }
.float-card {
  position: absolute; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .6); color: #fff; font-size: .85rem;
}
.float-card small { display: block; opacity: .7; font-size: .75rem; }
.float-card.sales { display: block; left: -10px; bottom: 90px; width: 210px; animation: drift 7s ease-in-out infinite; }
.float-card.sales b { display: block; font-size: 1.35rem; margin: 2px 0 10px; }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.mini-bars i { flex: 1; border-radius: 4px 4px 1px 1px; background: linear-gradient(to top, var(--teal), var(--mint)); height: 0; transition: height 1.2s var(--ease); }
.stage.in .mini-bars i { height: var(--h); }
.stage.in .mini-bars i:nth-child(2) { transition-delay: .08s; } .stage.in .mini-bars i:nth-child(3) { transition-delay: .16s; }
.stage.in .mini-bars i:nth-child(4) { transition-delay: .24s; } .stage.in .mini-bars i:nth-child(5) { transition-delay: .32s; }
.stage.in .mini-bars i:nth-child(6) { transition-delay: .4s; } .stage.in .mini-bars i:nth-child(7) { transition-delay: .48s; }
.float-card.pay { right: -20px; top: 120px; animation: drift 8s ease-in-out infinite reverse; }
.pay-ic { width: 32px; height: 32px; border-radius: 50%; background: #22c55e; display: grid; place-items: center; font-weight: 800; }
.float-card.wa { right: 0; bottom: 40px; animation: drift 9s ease-in-out -3s infinite; }
.wa-ic { width: 32px; height: 32px; border-radius: 50%; background: #1fa855; display: grid; place-items: center; }
@keyframes drift { 50% { transform: translate(8px, -14px); } }

/* ------------ الشريط المتحرك ------------ */
.marquee { display: flex; overflow: hidden; background: var(--night-2); border-block: 1px solid var(--line-d); padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 14px; padding-inline-end: 14px; flex: none; animation: marquee 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { flex: none; padding: 8px 18px; border-radius: 30px; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .95rem; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-d); white-space: nowrap; }
.marquee span:nth-child(7n + 1) { color: var(--mint); }
@keyframes marquee { to { transform: translateX(100%); } }

/* ------------ الأرقام ------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -1px; padding-top: 56px; padding-bottom: 8px; }
.stat { text-align: center; padding: 22px 12px; border-radius: 20px; background: var(--soft); border: 1px solid #e7ecea; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--teal-2); font-variant-numeric: tabular-nums; }
.stat > span { color: #5b6573; font-size: .95rem; }

/* ------------ الأقسام ------------ */
.sec { position: relative; padding: 100px 0; isolation: isolate; overflow: hidden; }
.sec.soft { background: var(--soft); }
.sec.dark { background: var(--night); color: #fff; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.kicker { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--teal-2); background: rgba(20, 184, 166, .12); padding: 5px 14px; border-radius: 30px; margin-bottom: 14px; }
.sec.dark .kicker { color: var(--mint); background: rgba(94, 234, 212, .12); }
.sec-head h2, .demo-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; margin-bottom: 12px; }
.sec-head p, .demo-copy > p { color: #5b6573; font-size: 1.08rem; line-height: 1.8; }
.sec.dark .sec-head p { color: rgba(255, 255, 255, .65); }

/* المزايا */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  --mx: 50%; --my: 50%;
  position: relative; padding: 28px; border-radius: 22px; background: #fff; border: 1px solid #e7ecea; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.feat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx) var(--my), rgba(20, 184, 166, .12), transparent 45%); opacity: 0; transition: opacity .3s; }
.feat:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px rgba(15, 118, 110, .35); border-color: rgba(20, 184, 166, .35); }
.feat:hover::before { opacity: 1; }
.feat h3 { position: relative; font-size: 1.15rem; margin: 18px 0 8px; }
.feat p { position: relative; color: #5b6573; margin: 0; line-height: 1.8; }
.f-ic { --c: var(--teal-2); position: relative; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); transition: transform .5s var(--ease); }
.f-ic svg { width: 26px; height: 26px; }
.feat:hover .f-ic { transform: rotate(-8deg) scale(1.1); }
.f-ic.wa { --c: #16a34a; } .f-ic.amber { --c: #d97706; } .f-ic.blue { --c: #2563eb; } .f-ic.violet { --c: #7c3aed; } .f-ic.rose { --c: #e11d48; }

/* الخطوات */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.steps-line { position: absolute; top: 34px; inset-inline: 16%; height: 2px; background: rgba(255, 255, 255, .1); }
.steps-line i { position: absolute; inset: 0 0 0 auto; width: 0; background: linear-gradient(270deg, var(--mint), var(--amber)); box-shadow: 0 0 14px var(--teal); transition: width 1.8s var(--ease) .3s; }
.steps.in .steps-line i { width: 100%; }
.step { position: relative; text-align: center; padding: 0 10px; }
.s-num {
  width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 800; color: var(--night);
  background: linear-gradient(135deg, var(--mint), var(--teal)); box-shadow: 0 0 0 8px rgba(20, 184, 166, .15), 0 10px 30px -6px rgba(20, 184, 166, .7);
}
.step h3 { font-size: 1.2rem; }
.step p { color: rgba(255, 255, 255, .65); }

/* جرّب التصميم */
.demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.demo-copy .label { margin: 22px 0 10px; font-size: .9rem; color: #5b6573; }
.demo-copy .btn-glow { margin-top: 30px; }
.seg { position: relative; display: inline-flex; padding: 5px; border-radius: 14px; background: #eef2f1; }
.seg button { position: relative; z-index: 1; border: 0; background: none; font: inherit; font-weight: 600; padding: 9px 18px; border-radius: 10px; cursor: pointer; color: #4a5563; transition: color .3s; }
.seg button.on { color: var(--ink); }
.seg-pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .1); transition: left .45s var(--ease), width .45s var(--ease); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px #d8dfdd; transition: transform .3s var(--ease), box-shadow .3s; }
.swatches button:hover { transform: scale(1.12); }
.swatches button.on { box-shadow: 0 0 0 2px var(--c); transform: scale(1.12); }
.browser { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 50px 100px -30px rgba(15, 40, 38, .45), 0 0 0 1px #e3e8e6; transition: background .5s; }
.b-top { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #f1f4f3; border-bottom: 1px solid #e3e8e6; }
.b-top > i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8e6; }
.b-top > i:nth-child(1) { background: #fca5a5; } .b-top > i:nth-child(2) { background: #fcd34d; } .b-top > i:nth-child(3) { background: #86efac; }
.b-url { margin-inline-start: 10px; flex: 1; direction: ltr; text-align: left; font-size: .8rem; color: #6b7280; background: #fff; padding: 5px 12px; border-radius: 8px; }
.b-url b { color: var(--b); transition: color .5s; }
.m-store { --s-bg: #f7f7f8; --s-surface: #fff; --s-line: #eceff1; --s-ink: #15191e; --s-r: 12px; padding: 16px; background: var(--s-bg); color: var(--s-ink); transition: background .5s, color .5s; }
.m-head { display: flex; align-items: center; gap: 10px; }
.m-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--b); color: #fff; display: grid; place-items: center; font-weight: 800; transition: background .5s, border-radius .5s; }
.m-cart { margin-inline-start: auto; }
.m-hero { margin: 14px 0; padding: 26px 18px; border-radius: var(--s-r); background: var(--b); color: #fff; transition: background .5s, border-radius .5s; position: relative; overflow: hidden; }
.m-hero::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .12); left: -40px; top: -60px; }
.m-hero b { display: block; font-size: 1.15rem; }
.m-hero small { opacity: .8; }
.m-chips { display: flex; gap: 6px; margin-bottom: 12px; }
.m-chips i { font-style: normal; font-size: .8rem; padding: 4px 14px; border-radius: 20px; background: var(--s-surface); border: 1px solid var(--s-line); transition: all .5s; }
.m-chips i.on { background: var(--b); border-color: var(--b); color: #fff; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-card { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--s-r); overflow: hidden; font-size: .8rem; transition: all .5s; }
.m-img { aspect-ratio: 1; }
.m-card span { display: block; padding: 8px 10px 0; }
.m-card b { display: block; padding: 2px 10px 10px; color: var(--b); transition: color .5s; }
.m-btn { margin-top: 14px; text-align: center; padding: 12px; border-radius: var(--s-r); background: var(--b); color: #fff; font-weight: 700; transition: all .5s; }
.browser[data-theme="modern"] .m-store { --s-bg: #f6f2ec; --s-surface: #fffdf9; --s-line: #eadfce; --s-r: 22px; }
.browser[data-theme="modern"] .m-logo { border-radius: 50%; }
.browser[data-theme="modern"] .m-btn, .browser[data-theme="modern"] .m-chips i { border-radius: 30px; }
.browser[data-theme="bold"] .m-store { --s-bg: #0e0f11; --s-surface: #17191c; --s-line: #2a2d32; --s-ink: #f3f4f6; --s-r: 6px; }
.browser[data-theme="bold"] .m-card b { color: #f3f4f6; }
.browser.flash .m-store { animation: flash .6s var(--ease); }
@keyframes flash { 40% { transform: scale(.985); filter: brightness(1.05); } }

/* الأسعار */
.period { position: relative; display: flex; width: max-content; margin: -20px auto 36px; padding: 5px; border-radius: 16px; background: #fff; border: 1px solid #e3e8e6; }
.period button { position: relative; z-index: 1; border: 0; background: none; font: inherit; font-weight: 700; padding: 10px 22px; border-radius: 12px; cursor: pointer; color: #4a5563; transition: color .3s; }
.period button.on { color: #fff; }
.period button em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--amber); margin-inline-start: 4px; }
.period .seg-pill { background: var(--ink); box-shadow: none; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 26px 22px; border-radius: 24px; background: #fff; border: 1px solid #e3e8e6;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.plan:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -25px rgba(15, 40, 38, .3); }
.plan.pop { background: var(--night); color: #fff; border-color: transparent; box-shadow: 0 30px 70px -20px rgba(15, 118, 110, .55); }
.plan.pop::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 25px; background: linear-gradient(135deg, var(--mint), var(--amber), var(--teal)); background-size: 200% 200%; animation: shine 5s linear infinite; }
.plan .badge-pop { position: absolute; top: -13px; right: 22px; padding: 3px 14px; border-radius: 20px; font-size: .75rem; font-weight: 800; color: #3b2300; background: var(--amber); }
.plan h3 { margin: 0; font-size: 1.2rem; }
.plan .desc { color: #6b7280; font-size: .88rem; min-height: 2.6em; margin-top: 4px; }
.plan.pop .desc { color: rgba(255, 255, 255, .6); }
.plan .amount { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 2px; }
.plan .amount b { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan .amount small { color: #6b7280; }
.plan.pop .amount small, .plan.pop .yer { color: rgba(255, 255, 255, .6); }
.plan .yer { color: #6b7280; font-size: .85rem; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; font-size: .93rem; }
.plan li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; }
.plan li svg { flex: none; margin-top: 4px; color: var(--teal); }
.plan.pop li svg { color: var(--mint); }
.plan .p-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 14px; font-weight: 700; color: var(--ink) !important; background: var(--soft); border: 1px solid #e3e8e6; transition: background .3s, transform .3s var(--ease); }
.plan .p-btn:hover { background: #e9efed; transform: translateY(-2px); }
.amount b.tick { animation: tick .5s var(--ease); }
@keyframes tick { 0% { opacity: 0; transform: translateY(40%); } }

/* الأسئلة */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: #fff; border: 1px solid #e3e8e6; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: rgba(20, 184, 166, .4); box-shadow: 0 16px 40px -20px rgba(15, 118, 110, .35); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .4s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background-color: rgba(20, 184, 166, .15); }
.faq details > div { padding: 0 22px 20px; color: #5b6573; line-height: 1.85; animation: faqIn .45s var(--ease); }
.faq details > div p { margin: 0; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }

/* الدعوة الأخيرة */
.final {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; margin: 20px 0 80px; padding: 80px 24px; border-radius: 32px;
  background: radial-gradient(100% 120% at 50% 0%, #134e48, var(--night) 70%); color: #fff;
}
.final h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
.final p { color: rgba(255, 255, 255, .7); font-size: 1.1rem; margin-bottom: 28px; }

.foot { border-top: 1px solid #e7ecea; padding: 30px 0 40px; color: #6b7280; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot .brand { color: var(--ink); font-size: 1.1rem; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { color: #4a5563; }
.foot nav a:hover { color: var(--teal-2); }

.m-sticky { display: none; }
.dots { display: none; }

/* ------------ الظهور عند التمرير ------------ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
.no-js .reveal { opacity: 1; transform: none; }

/* =====================================================================
   نسخة الجوال والأجهزة اللوحية
   ===================================================================== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .trust { justify-content: center; }
  .stage { height: 560px; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: 1fr; }
  .demo-copy { text-align: center; }
  .demo-copy .seg, .demo-copy .swatches { justify-content: center; }
  .swatches { justify-content: center; }
}

@media (max-width: 720px) {
  .landing .wrap { padding: 0 16px; }
  .nav-in { min-height: 64px; }
  .nav-cta { display: none; }
  .burger { display: block; }
  .brand { font-size: 1.2rem; }

  .hero { padding: 92px 0 40px; min-height: auto; }
  .hero h1 { font-size: 2.15rem; margin-top: 16px; }
  .hero .lead { font-size: 1.02rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta a { width: 100%; }
  .trust { gap: 10px 16px; font-size: .85rem; }
  .scroll-hint { display: none; }
  .stage { height: 470px; margin-top: 10px; }
  .phone { width: 220px; height: 450px; border-radius: 38px; --ry: 0deg !important; --rx: 0deg !important; }
  .screen { border-radius: 29px; }
  .p-bar { padding-top: 40px; }
  .p-img { height: 64px; }
  .ring.r1 { width: 300px; height: 300px; } .ring.r2 { width: 400px; height: 400px; }
  .float-card { font-size: .75rem; padding: 9px 12px; border-radius: 14px; }
  .float-card.sales { width: 150px; left: 0; bottom: 70px; }
  .float-card.sales b { font-size: 1rem; margin-bottom: 6px; }
  .mini-bars { height: 30px; }
  .float-card.pay { right: -4px; top: auto; bottom: 150px; }
  .float-card.wa { display: none; }

  .marquee span { font-size: .85rem; padding: 6px 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; padding-top: 36px; }
  .stat { padding: 16px 8px; border-radius: 16px; }

  .sec { padding: 64px 0; }
  .sec-head { margin-bottom: 32px; }
  .sec-head p { font-size: 1rem; }

  /* المزايا والباقات: تمرير أفقي بالسحب */
  .feats, .plans {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: -16px; padding: 10px 16px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .feats::-webkit-scrollbar, .plans::-webkit-scrollbar { display: none; }
  .feat { flex: 0 0 82%; scroll-snap-align: center; padding: 24px; }
  .feat.reveal, .plan.reveal { opacity: 1; transform: none; }
  .plan { flex: 0 0 84%; scroll-snap-align: center; }
  .plans { padding-top: 22px; }
  .dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
  .dots i { width: 7px; height: 7px; border-radius: 4px; background: #d3dbd9; transition: width .35s var(--ease), background .35s; }
  .dots i.on { width: 22px; background: var(--teal-2); }

  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps-line { top: 34px; bottom: 34px; inset-inline: auto; right: 33px; width: 2px; height: auto; }
  .steps-line i { inset: 0 0 auto 0; width: 100% !important; height: 0; transition: height 1.8s var(--ease) .3s; background: linear-gradient(180deg, var(--mint), var(--amber)); }
  .steps.in .steps-line i { height: 100%; }
  .step { display: grid; grid-template-columns: 68px 1fr; gap: 0 16px; text-align: start; padding: 0; }
  .s-num { grid-row: span 2; margin: 0; }
  .step h3 { margin: 8px 0 4px; }
  .step p { margin: 0; }

  .demo { gap: 30px; }
  .m-grid { grid-template-columns: repeat(2, 1fr); }
  .m-grid .m-card:nth-child(3) { display: none; }
  .seg button { padding: 8px 14px; }

  .period { margin-top: -6px; }
  .period button { padding: 9px 16px; }

  .faq summary { padding: 16px 18px; font-size: 1rem; }
  .final { padding: 56px 20px; border-radius: 24px; margin-bottom: 40px; }
  .foot-in { flex-direction: column; text-align: center; }
  .foot nav { justify-content: center; }
  .foot { padding-bottom: 110px; }

  .m-sticky {
    display: block; position: fixed; z-index: 40; inset: auto 0 0 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(255, 255, 255, .98) 60%, rgba(255, 255, 255, 0));
    transform: translateY(110%); transition: transform .5s var(--ease);
  }
  .m-sticky.show { transform: none; }
  body.menu-open .m-sticky { transform: translateY(110%); }
}

/* تقليل الحركة لمن يفضّل ذلك */
@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before, .landing *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .mini-bars i { height: var(--h); }
}
