/* Hero 4 — Deal Trio (cinematic promo). Plain CSS: no Tailwind rebuild required. */
.ik-hp{
  --o:var(--ik-color-cta,#FF6B00); --o2:var(--ik-color-cta-hover,#FF9A4D); --bg:#070b14; --muted:#cbd5e1; --page:#F9FAFB;
  position:relative; isolation:isolate; overflow:hidden; background:var(--bg); color:#fff;
  display:flex; align-items:center; min-height:min(100svh,880px); padding:7.5rem 0 6.25rem;
}
.dark .ik-hp{--page:#0F172A}
.ik-hp *{box-sizing:border-box}
/* seamless hand-off to the page background (light / dark) */
.ik-hp::after{content:""; position:absolute; inset:auto 0 0; height:90px; background:linear-gradient(to bottom,transparent,var(--page)); pointer-events:none; z-index:0}

/* ---------- background (cheap: static gradients + one rotating layer) ---------- */
.ik-hp-bg{position:absolute; inset:0; z-index:-1; pointer-events:none; overflow:hidden}
.ik-hp-glow{position:absolute; inset:0;
  background:
    radial-gradient(ellipse 55% 60% at 12% 8%,color-mix(in srgb,var(--o) 42%,transparent),transparent 70%),
    radial-gradient(ellipse 50% 55% at 92% 95%,rgba(59,100,255,.30),transparent 70%),
    radial-gradient(ellipse 40% 45% at 50% 50%,color-mix(in srgb,var(--o2) 10%,transparent),transparent 75%)}
.ik-hp-rays{position:absolute; left:50%; top:50%; width:120vmax; height:120vmax; margin:-60vmax 0 0 -60vmax; opacity:.9;
  background:conic-gradient(from 0deg,transparent 0 8%,color-mix(in srgb,var(--o2) 10%,transparent) 10%,transparent 14% 36%,color-mix(in srgb,var(--o2) 7%,transparent) 39%,transparent 43% 66%,color-mix(in srgb,var(--o2) 9%,transparent) 69%,transparent 73% 100%);
  animation:ik-hp-spin 70s linear infinite; will-change:transform}
.ik-hp-grain{position:absolute; inset:0; background:url('../img/noise-pattern.svg'); background-size:120px; opacity:.10}
@keyframes ik-hp-spin{to{transform:rotate(360deg)}}

/* ---------- layout ---------- */
.ik-hp-wrap{width:100%; max-width:1280px; margin:0 auto; padding:0 1.5rem; display:grid; grid-template-columns:1fr; gap:2.75rem; align-items:center; position:relative; z-index:1}
@media (min-width:1200px){ .ik-hp-wrap{grid-template-columns:minmax(0,.85fr) minmax(0,1.3fr); gap:2.5rem} .ik-hp-title{font-size:clamp(2rem,2.9vw,3.2rem)} }

/* ---------- copy ---------- */
.ik-hp-copy{display:flex; flex-direction:column; align-items:center; text-align:center}
@media (min-width:1200px){ .ik-hp-copy{align-items:flex-start; text-align:right} }
.ik-hp-eyebrow{display:inline-flex; align-items:center; gap:.6rem; margin:0 0 1.1rem; padding:.45rem 1rem; border:1px solid color-mix(in srgb,var(--o) 45%,transparent); background:color-mix(in srgb,var(--o) 12%,transparent); border-radius:999px; font-size:.78rem; font-weight:800; color:var(--o2)}
.ik-hp-dot{width:8px; height:8px; border-radius:50%; background:var(--o); animation:ik-hp-ping 1.8s infinite}
@keyframes ik-hp-ping{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--o) 70%,transparent)}70%,100%{box-shadow:0 0 0 11px color-mix(in srgb,var(--o) 0%,transparent)}}
.ik-hp-title{margin:0 0 1.1rem; font-weight:900; line-height:1.2; font-size:clamp(2rem,5vw,4.25rem); color:#fff}
.ik-hp-line{display:block; text-wrap:balance; overflow:hidden; padding:.06em 0 .14em}
.ik-hp-line>span{display:inline-block; animation:ik-hp-slide .55s cubic-bezier(.2,.85,.2,1) both}
.ik-hp-line:nth-child(2)>span{animation-delay:.08s}
.ik-hp-line--accent>span{background:linear-gradient(90deg,var(--o),var(--o2)); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent}
@keyframes ik-hp-slide{from{transform:translateY(110%)}to{transform:none}}
.ik-hp-desc{margin:0 0 1.6rem; max-width:34rem; color:var(--muted); font-size:1.02rem; line-height:2}
.ik-hp-actions{margin-bottom:1.9rem}
.ik-hp-btn{position:relative; display:inline-flex; align-items:center; gap:.75rem; min-height:52px; padding:.95rem 2rem; border-radius:16px; background:var(--o); color:#0b1120; font-weight:900; font-size:1rem; text-decoration:none; overflow:hidden;
  box-shadow:0 10px 36px -10px color-mix(in srgb,var(--o) 75%,transparent); transition:transform .25s, background .25s, box-shadow .25s}
.ik-hp-btn::after{content:""; position:absolute; inset:0; background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.5) 50%,transparent 65%); transform:translateX(120%); animation:ik-hp-btnshine 4s 1.5s infinite}
.ik-hp-btn:hover{transform:translateY(-3px); background:var(--o2)}
.ik-hp-btn i{transition:transform .25s} .ik-hp-btn:hover i{transform:translateX(-5px)}
@keyframes ik-hp-btnshine{to{transform:translateX(-120%)}}
.ik-hp-stats{display:flex; flex-wrap:wrap; justify-content:center; gap:1.25rem 2.25rem; list-style:none; margin:0; padding:1.2rem 0 0; border-top:1px solid rgba(255,255,255,.12); width:100%; max-width:34rem}
@media (min-width:1200px){ .ik-hp-stats{justify-content:flex-start} }
.ik-hp-stats li{display:flex; flex-direction:column; gap:.2rem}
.ik-hp-stats strong{font-size:1.5rem; font-weight:900; line-height:1; color:#fff}
.ik-hp-stats span{font-size:.76rem; color:#a5b1c5}

/* ---------- stage: three real product cards, stepped (centre raised) ---------- */
.ik-hp-stage{--mx:0; --my:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.1rem; width:100%; max-width:860px; margin-inline:auto; padding:2.2rem 0 2.2rem; contain:layout style}
.ik-hp-slot{--d:10; min-width:0; animation:ik-hp-rise .7s cubic-bezier(.2,.85,.2,1) both; animation-delay:calc(.12s + var(--i)*.1s)}
.ik-hp-slot--1{grid-column:2; grid-row:1; --d:16}          /* بهترین تخفیف: وسط، بالاتر */
.ik-hp-slot--2{grid-column:3; grid-row:1; align-self:end}
.ik-hp-slot--3{grid-column:1; grid-row:1; align-self:end}
.ik-hp-slot--1 .ik-hp-item{transform:translateY(-22px) scale(1.03)}
@keyframes ik-hp-rise{from{transform:translateY(60px) scale(.94)}to{transform:none}}      /* transform-only: first image paints immediately (LCP) */
.ik-hp-item{transform:translate3d(calc(var(--mx)*var(--d)*1px),calc(var(--my)*var(--d)*1px),0); transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.ik-hp-slot--1 .ik-hp-item{transform:translate3d(calc(var(--mx)*var(--d)*1px),calc(var(--my)*var(--d)*1px - 22px),0) scale(1.03)}

/* frame: solid backing so the site's translucent card looks exactly as it does on a normal page */
.ik-hp-frame{position:relative; border-radius:1rem; background:#F3F4F6; box-shadow:0 26px 50px -22px rgba(0,0,0,.75); transition:box-shadow .35s}
.dark .ik-hp-frame{background:#0B1120}
.ik-hp-frame.is-active,.ik-hp-frame:hover,.ik-hp-frame:focus-within{box-shadow:0 0 0 2px var(--o),0 30px 60px -20px color-mix(in srgb,var(--o) 50%,transparent)}
.ik-hp-frame>.product{height:100%}
.ik-hp-frame .animate-pulse.bg-red-500{display:none}       /* درصد تخفیف خودِ هیرو جایگزین بج استاندارد می‌شود */
.ik-hp-pct{position:absolute; top:1rem; right:1rem; z-index:30; padding:.25rem .55rem; border-radius:.375rem; background:#ef4444; color:#fff; font-size:.75rem; font-weight:800; box-shadow:0 6px 16px -4px rgba(239,68,68,.7)}
.ik-hp-timer{position:absolute; top:3rem; right:1rem; z-index:30; display:inline-flex; align-items:center; gap:.35rem; padding:.25rem .6rem; border-radius:999px; background:rgba(7,11,20,.85); color:#fff; font-size:.7rem; font-weight:800; font-variant-numeric:tabular-nums}
.ik-hp-timer[hidden]{display:none}
.ik-hp-timer i{color:var(--o2)}

/* ---------- gentle float (compositor-only) ---------- */
.ik-hp-slot .ik-hp-frame{animation:ik-hp-float 7s ease-in-out infinite; animation-delay:calc(var(--i)*-2.3s)}
@keyframes ik-hp-float{50%{transform:translateY(-9px)}}
.ik-hp.is-off *,.ik-hp.is-off *::before,.ik-hp.is-off *::after{animation-play-state:paused !important}   /* off-screen = no work */

/* ---------- ≤1199: stacked, trio below the copy ---------- */
@media (max-width:1199px){
  .ik-hp{padding-top:7rem}
  .ik-hp-stage{max-width:780px}
}

/* ---------- ≤767: swipeable snap carousel ---------- */
@media (max-width:767px){
  .ik-hp{min-height:0; padding:5.75rem 0 4rem}
  .ik-hp-wrap{padding:0; gap:1.5rem}
  .ik-hp-copy{padding:0 1.25rem}
  .ik-hp-eyebrow{margin-bottom:.8rem; font-size:.72rem}
  .ik-hp-title{font-size:clamp(1.85rem,8.4vw,2.4rem); margin-bottom:.7rem}
  .ik-hp-desc{font-size:.9rem; line-height:1.9; margin-bottom:1.1rem}
  .ik-hp-actions{margin-bottom:1.2rem; width:100%}
  .ik-hp-btn{width:100%; justify-content:center}
  .ik-hp-stats{flex-wrap:nowrap; justify-content:space-between; gap:.5rem; padding-top:.9rem}
  .ik-hp-stats strong{font-size:1.1rem} .ik-hp-stats span{font-size:.66rem}

  .ik-hp-stage{display:flex; gap:.9rem; max-width:none; padding:1.4rem 1.25rem .6rem; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-inline:1.25rem; overscroll-behavior-x:contain; scrollbar-width:none; contain:none}
  .ik-hp-stage::-webkit-scrollbar{display:none}
  .ik-hp-slot{flex:0 0 76%; scroll-snap-align:center; --d:0; animation:none}
  .ik-hp-slot--1{order:-1}
  .ik-hp-slot--1 .ik-hp-item{transform:none}
  .ik-hp-slot .ik-hp-frame{animation:none}

  .ik-hp-dots{display:flex; justify-content:center; gap:.5rem; padding:.2rem 0 0}
  .ik-hp-dots button{width:8px; height:8px; padding:0; border:0; border-radius:99px; background:rgba(255,255,255,.3); transition:width .25s, background .25s; cursor:pointer}
  .ik-hp-dots button[aria-current="true"]{width:24px; background:var(--o)}
}
@media (min-width:768px){ .ik-hp-dots{display:none} }

@media (prefers-reduced-motion:reduce){
  .ik-hp *,.ik-hp *::before,.ik-hp *::after{animation:none !important; transition:none !important}
}
