/* Posvero — حركة الصفحة. كل شيء مشروط بـ .js-motion وبعدم تفضيل المستخدم لتقليل الحركة، فبدون جافاسكربت تظهر الصفحة كاملة. */
#sp{position:fixed;inset-block-start:0;inset-inline:0;height:3px;z-index:130;background:linear-gradient(90deg,var(--brass-deep),var(--brass-2));transform-origin:0 50%;transform:scaleX(0);pointer-events:none}
html[dir=rtl] #sp{transform-origin:100% 50%}
.nav{transition:background .3s,box-shadow .3s}
.nav .wrap{transition:height .3s}
.nav.scrolled{background:rgba(36,24,17,.94);box-shadow:0 12px 30px -18px rgba(0,0,0,.7)}
.nav.scrolled .wrap{height:58px}

/* بطاقة إشعار Wallet فوق صورة الهاتف */
.frame.phone{container-type:inline-size}
.frame.phone:not(.phone-over){position:relative}
.wnote{position:absolute;inset-block-start:6.3%;inset-inline:3.8%;display:flex;align-items:center;gap:3cqw;padding:2.6cqw 3.4cqw;border-radius:5cqw;background:rgba(72,70,78,.88);border:1px solid rgba(255,255,255,.14);box-shadow:0 14px 30px -12px rgba(0,0,0,.8);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;opacity:0;transform:translateY(-130%) scale(.96);pointer-events:none;z-index:3}
.wnote .wn-ico{flex:0 0 9cqw;height:9cqw;border-radius:2.4cqw;background:linear-gradient(#ff5f57 0 22%,#ffbd2e 22% 44%,#28c840 44% 66%,#4aa3ff 66% 88%,#17171a 88%);background-clip:padding-box;border:1.6cqw solid #202024}
.wnote .wn-t{display:flex;flex-direction:column;line-height:1.35;min-width:0}
.wnote b{font-size:3.5cqw;font-weight:800}
.wnote span.wn-m{font-size:3.1cqw;font-weight:600;color:rgba(255,255,255,.88)}
.wnote i{font-style:normal;margin-inline-start:auto;align-self:flex-start;font-size:2.6cqw;color:rgba(255,255,255,.5);font-weight:700}
.frame.phone.live .wnote{animation:wn-in .7s cubic-bezier(.2,.9,.25,1.15) .5s forwards}
@keyframes wn-in{to{opacity:1;transform:none}}

@media (prefers-reduced-motion:no-preference){
  /* ---- دخول البطل ---- */
  .js-motion .hero .wrap>div:first-child>*{opacity:0;animation:up .8s cubic-bezier(.2,.8,.2,1) forwards}
  .js-motion .hero .wrap>div:first-child>:nth-child(1){animation-delay:.05s}
  .js-motion .hero .wrap>div:first-child>:nth-child(2){animation-delay:.18s}
  .js-motion .hero .wrap>div:first-child>:nth-child(3){animation-delay:.32s}
  .js-motion .hero .wrap>div:first-child>:nth-child(4){animation-delay:.46s}
  .js-motion .hero .wrap>div:first-child>:nth-child(5){animation-delay:.6s}
  .js-motion .hero .stage{opacity:0;animation:stage .95s cubic-bezier(.2,.8,.2,1) .25s forwards}
  @keyframes up{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
  @keyframes stage{from{opacity:0;transform:translateY(40px) scale(.95)}to{opacity:1;transform:none}}
  .js-motion .stage .phone-over{animation:float 6s ease-in-out 1.4s infinite}
  @keyframes float{0%,100%{translate:0 0}50%{translate:0 -12px}}
  .hero h1 .h1b{background:linear-gradient(100deg,var(--brass-2) 20%,#fff3d3 45%,var(--brass-2) 70%);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;animation:shine 6s ease-in-out infinite}
  @keyframes shine{0%,100%{background-position:100% 0}50%{background-position:0 0}}
  .hero::before{content:"";position:absolute;inset-inline-end:-120px;inset-block-start:-140px;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(224,190,126,.28),transparent 65%);filter:blur(10px);animation:orb 11s ease-in-out infinite;pointer-events:none}
  @keyframes orb{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-50px,40px) scale(1.15)}}

  /* ---- الظهور عند التمرير (متدرّج) ---- */
  .js-motion .rv{opacity:0;transform:translateY(34px) scale(.975);transition:opacity .7s cubic-bezier(.2,.8,.2,1) var(--d,0ms),transform .7s cubic-bezier(.2,.8,.2,1) var(--d,0ms)}
  .js-motion .rv.in{opacity:1;transform:none}
  .js-motion .head{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s ease}
  .js-motion .head.in{opacity:1;transform:none}
  .js-motion .step .num{transform:scale(0);transition:transform .5s cubic-bezier(.3,1.6,.5,1) calc(var(--d,0ms) + .25s)}
  .js-motion .step.in .num{transform:scale(1)}

  /* ---- تفاعل ---- */
  .card .ico{transition:transform .3s cubic-bezier(.3,1.5,.5,1),background .3s}
  .card:hover .ico{transform:rotate(-8deg) scale(1.12)}
  .btn{position:relative;overflow:hidden}
  .btn::after{content:"";position:absolute;inset-block:0;inset-inline-start:-60%;width:40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.4),transparent);transform:skewX(-20deg);transition:inset-inline-start .6s}
  .btn:hover::after{inset-inline-start:130%}
  .wa-float::before{content:"";position:absolute;inset:0;border-radius:50%;background:var(--wa);opacity:.5;animation:ping 2.6s ease-out infinite;z-index:-1}
  .wa-float{isolation:isolate}
  @keyframes ping{0%{transform:scale(1);opacity:.5}80%,100%{transform:scale(1.7);opacity:0}}
  .plan{transition:transform .3s,box-shadow .3s}
  .plan:hover{transform:translateY(-8px);box-shadow:0 30px 56px -28px rgba(36,24,17,.6)}
  .plan.hot:hover{transform:translateY(-20px)}
  .plan .badge{animation:bob 2.8s ease-in-out infinite}
  @keyframes bob{0%,100%{translate:0 0}50%{translate:0 -4px}}
  details{transition:box-shadow .25s,border-color .25s}
  details:hover{border-color:var(--brass)}
  details[open]{box-shadow:0 18px 36px -22px rgba(36,24,17,.5)}
  details[open] p{animation:up .4s ease both}
  summary::after{transition:transform .3s,background .3s}
  details[open] summary::after{transform:rotate(180deg);background:rgba(199,154,75,.25)}
  .tab{transition:transform .2s,background .2s,color .2s,border-color .2s,box-shadow .2s}
  .tab:hover{transform:translateY(-2px)}
  .tab[aria-selected=true]{box-shadow:0 10px 22px -12px rgba(36,24,17,.7)}
  /* تبديل لقطات المعرض */
  #panel.swap>div:first-child{animation:swapT .5s cubic-bezier(.2,.8,.2,1) both}
  #panel.swap .ticks li{animation:swapT .5s cubic-bezier(.2,.8,.2,1) both}
  #panel.swap .ticks li:nth-child(1){animation-delay:.12s}#panel.swap .ticks li:nth-child(2){animation-delay:.2s}#panel.swap .ticks li:nth-child(3){animation-delay:.28s}#panel.swap .ticks li:nth-child(4){animation-delay:.36s}#panel.swap .ticks li:nth-child(5){animation-delay:.44s}
  #panel.swap .shot .frame,#panel.swap .shot .tv-wrap{animation:swapS .65s cubic-bezier(.2,.8,.2,1) both}
  @keyframes swapT{from{opacity:0;transform:translateX(calc(var(--dir,1)*-22px))}to{opacity:1;transform:none}}
  @keyframes swapS{from{opacity:0;transform:translateY(26px) scale(.96)}to{opacity:1;transform:none}}
  .frame{transition:box-shadow .3s}
  .final{background-size:200% 200%;animation:grad 9s ease-in-out infinite}
  @keyframes grad{0%,100%{background-position:0 50%}50%{background-position:100% 50%}}
}
html[dir=rtl]{--dir:-1}
@media (prefers-reduced-motion:reduce){
  .wnote{opacity:1;transform:none}
}
