/* ─────────────────────────────────────────────────────────────────────────────
   hero overlay: an Apple liquid-glass panel floating on the brand reel.
   material = heavy backdrop blur + a thin tint + a specular rim, but every edge
   is deliberately softened — a low-contrast hairline instead of the crisp 1px
   ring Apple ships, and a diffused outer glow instead of a hard drop shadow.
   content: taken verbatim from the client brief (costomer ref/بریف صفحه).
   ───────────────────────────────────────────────────────────────────────────── */

.hero{
  position:relative;
  justify-content:center;
  align-items:flex-start;
  padding-block:clamp(6rem,12vh,9rem) clamp(4rem,10vh,7rem);
  padding-inline:clamp(20px,5vw,86px);
}

.hero-glass{
  position:relative;
  display:flex; flex-direction:column; gap:clamp(14px,1.6vw,22px);
  inline-size:min(680px,100%);
  padding:clamp(24px,3vw,44px) clamp(22px,3vw,46px);
  border-radius:clamp(26px,2.4vw,38px);
  /* a shallow smoked base under the white glare: white type has to stay legible
     when the reel underneath is a sunlit white frame */
  background:
    linear-gradient(158deg,rgba(16,21,34,.30) 0%,rgba(12,17,28,.19) 42%,rgba(9,13,22,.15) 100%),
    linear-gradient(158deg,rgba(255,255,255,.13) 0%,rgba(255,255,255,.05) 38%,
      rgba(255,255,255,.02) 72%,rgba(255,255,255,.05) 100%);
  backdrop-filter:blur(30px) saturate(155%) brightness(1.03);
  -webkit-backdrop-filter:blur(30px) saturate(155%) brightness(1.03);
  /* soft, not crisp: a hairline at 18% opacity and a wide diffused glow */
  border:1px solid rgba(255,255,255,.15);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(255,255,255,.14),
    inset 0 40px 60px -50px rgba(255,255,255,.75),
    0 6px 24px -12px rgba(0,0,0,.35),
    0 40px 130px -60px rgba(0,0,0,.8);
  isolation:isolate;
  transition:opacity 1.4s ease, transform 1.4s ease;
}
/* the specular sweep across the crown of the panel */
.hero-glass::before{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:
    radial-gradient(120% 80% at 18% -10%,rgba(255,255,255,.42) 0%,rgba(255,255,255,.09) 32%,rgba(255,255,255,0) 62%),
    radial-gradient(90% 70% at 92% 108%,rgba(255,255,255,.12) 0%,rgba(255,255,255,0) 60%);
  opacity:.8;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 62%,rgba(0,0,0,0) 100%);
  mask-image:linear-gradient(180deg,#000 0%,#000 62%,rgba(0,0,0,0) 100%);
}

/* ── the words ───────────────────────────────────────────────────────────── */
.hero-kicker{
  margin:0; display:inline-flex; align-items:center; gap:.6em;
  font:500 12.5px/1 'Vazirmatn',system-ui,sans-serif; letter-spacing:.02em;
  color:rgba(255,255,255,.72);
}
.hero-kicker::before{
  content:""; inline-size:22px; block-size:1px; border-radius:2px;
  background:linear-gradient(90deg,rgba(255,255,255,.75),rgba(255,255,255,0));
}
.hero-title{
  margin:0;
  font-family:'Estedad','Vazirmatn',system-ui,sans-serif;
  font-weight:900;
  font-size:clamp(1.9rem,3.5vw,3.35rem);
  line-height:1.22;
  letter-spacing:-.01em;
  color:#fff;
  text-shadow:0 2px 30px rgba(6,10,20,.55),0 1px 2px rgba(6,10,20,.35);
}
.hero-sub{
  margin:0; max-inline-size:34ch;
  font:400 clamp(1rem,1.15vw,1.16rem)/1.75 'Vazirmatn',system-ui,sans-serif;
  color:rgba(255,255,255,.88);
  text-shadow:0 1px 18px rgba(6,10,20,.5);
}
.hero-facts{
  margin:.2em 0 0; padding:0; list-style:none;
  display:flex; flex-wrap:wrap; gap:8px;
}
.hero-facts li{
  display:inline-flex; align-items:center;
  padding:7px 14px; border-radius:999px;
  font:500 12.5px/1.35 'Vazirmatn',system-ui,sans-serif;
  color:rgba(255,255,255,.9);
  background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.20);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45), 0 2px 8px -4px rgba(0,0,0,.4);
  text-shadow:0 1px 2px rgba(6,10,20,.45);
}

/* ── the two calls to action ─────────────────────────────────────────────── */
.hero-cta{display:flex; flex-wrap:wrap; gap:10px; margin-block-start:.4em}

.btn-glass,.btn-quiet{
  position:relative; display:inline-flex; align-items:center; gap:.55em;
  padding:.86em 1.5em; border-radius:999px;
  font:600 13.5px/1 'Vazirmatn',system-ui,sans-serif;
  text-decoration:none; white-space:nowrap;
  transition:transform .3s cubic-bezier(.2,.9,.25,1),box-shadow .3s ease,
             background .3s ease,border-color .3s ease;
}
.btn-glass{
  color:#0a0d14;
  background:linear-gradient(180deg,#ffffff 0%,#eef1f7 60%,#dfe4ee 100%);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -2px 6px rgba(120,130,150,.35),
    0 6px 20px -8px rgba(0,0,0,.55);
}
.btn-glass:hover{transform:translateY(-1px);box-shadow:
  inset 0 1px 0 #fff, inset 0 -2px 6px rgba(120,130,150,.35),
  0 12px 28px -10px rgba(0,0,0,.6)}
.btn-quiet{
  color:rgba(255,255,255,.95);
  background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6), 0 6px 20px -10px rgba(0,0,0,.5);
  backdrop-filter:blur(10px) saturate(150%);
  -webkit-backdrop-filter:blur(10px) saturate(150%);
}
.btn-quiet:hover{transform:translateY(-1px);background:linear-gradient(180deg,rgba(255,255,255,.26),rgba(255,255,255,.1))}
.btn-glass:focus-visible,.btn-quiet:focus-visible{outline:2px solid rgba(255,255,255,.85);outline-offset:3px}

/* ── entrance: the panel settles, the words follow ───────────────────────── */
.hero-glass{opacity:0; transform:translateY(14px) scale(.992)}
body.ready .hero-glass{opacity:1; transform:none}
.hero-glass > *{opacity:0; transform:translateY(8px);
  transition:opacity 1.1s ease, transform 1.1s ease}
body.ready .hero-glass > *{opacity:1; transform:none}
body.ready .hero-glass > *:nth-child(1){transition-delay:.35s}
body.ready .hero-glass > *:nth-child(2){transition-delay:.45s}
body.ready .hero-glass > *:nth-child(3){transition-delay:.55s}
body.ready .hero-glass > *:nth-child(4){transition-delay:.65s}
body.ready .hero-glass > *:nth-child(5){transition-delay:.75s}

@media (max-width:900px){
  .hero{padding-block:clamp(5.4rem,14vh,7rem) clamp(3.4rem,9vh,5rem);
        padding-inline:clamp(16px,4vw,28px); align-items:center}
  .hero-glass{inline-size:100%; border-radius:26px}
}
@media (max-width:560px){
  .hero-cta{flex-direction:column;align-items:stretch}
  .btn-glass,.btn-quiet{justify-content:center}
  .hero-title{font-size:clamp(1.65rem,7.4vw,2.2rem)}
  .hero-sub{font-size:.98rem}
  .hero-facts li{font-size:11.5px;padding:6px 12px}
}
@media (prefers-reduced-motion:reduce){
  .hero-glass,.hero-glass > *{transition:none}
  .hero-glass{opacity:1;transform:none}
  .hero-glass > *{opacity:1;transform:none}
}
