/*
 * SoulxDoll — Home Hero (clean rebuild, v4.9.22)
 * assets/css/hero.css  ·  loaded only on the front page, AFTER styles.css
 *
 * This is the SINGLE source of truth for the homepage hero. styles.css still
 * contains two older hero layers (a v3.7 layer and a later "redesign" layer);
 * this file is scoped + specific enough (matching `.hero .hs .X`) and loads
 * last, so it cleanly wins over both. Those old blocks can be deleted later.
 *
 * Architecture (important): slides are ABSOLUTELY positioned and fill the
 * .hslides container (inset:0; height:100%), crossfading via opacity. The
 * container controls the height. This is what guarantees the background image
 * fills the whole hero with NO empty strip — the earlier bug was a container
 * that was 78vh tall while each slide was only 640px, exposing the dark
 * container background as a black band at the bottom.
 *
 * Also fixed: the .hw/.hwi class collision (hero title words inheriting the
 * 64px header-bar styling) is neutralised here.
 */

/* ── Shell + container (container owns the height) ────────────────────── */
body.page-index .hero { padding: 28px 0 64px !important; }

body.page-index .hero .hslides {
  position: relative !important;
  width: 100% !important;
  height: clamp(460px, 68vh, 660px) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: #14100E !important;   /* only visible for a moment while the image loads; slides cover it fully */
  cursor: default !important;
}

/* ── Slides: absolute, fill the container, crossfade via opacity ─────── */
body.page-index .hero .hs {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;        /* desktop: vertical centre */
  justify-content: flex-start !important;
  flex-direction: row !important;
  background-image: var(--hs-bg, none) !important;
  background-size: var(--hs-fit, cover) !important;
  background-position: var(--hs-pos, center center) !important;
  background-repeat: no-repeat !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity .6s ease, visibility .6s ease !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
body.page-index .hero .hs.on {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2 !important;
}
body.page-index .hero .hs1,
body.page-index .hero .hs2,
body.page-index .hero .hs3 { background-color: #14100E !important; }

/* Readability scrim over the photo (left-weighted for the left-aligned text) */
body.page-index .hero .hs[data-theme="dark"]::before,
body.page-index .hero .hs:not([data-theme])::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(100deg,
              rgba(0,0,0,.66) 0%,
              rgba(0,0,0,.30) 42%,
              rgba(0,0,0,.06) 70%) !important;
}
body.page-index .hero .hs::after { display: none !important; }

/* ── Text column ──────────────────────────────────────────────────────── */
body.page-index .hero .hs .hc {
  position: relative !important;
  z-index: 3 !important;
  color: #fff !important;
  max-width: 560px !important;
  margin: 0 !important;
  padding: 0 60px !important;
  text-align: left !important;
  animation: soulHeroRise .55s ease both !important;
}
@keyframes soulHeroRise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Badge — frosted pill */
body.page-index .hero .hs .hbadge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: rgba(255,255,255,.16) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  color: #fff !important;
  border-radius: 100px !important;
  padding: 6px 14px !important;
  margin: 0 0 16px !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  letter-spacing: .3px !important;
  text-transform: none !important;
}

/* Title — smaller, clean; neutralise the .hw/.hwi word-mask collision */
body.page-index .hero .hs .hero-title,
body.page-index .hero .hs .hc h1 {
  margin: 0 0 14px !important;
  color: #fff !important;
  font-size: 44px !important;
  font-weight: 800 !important;
  letter-spacing: -1.2px !important;
  line-height: 1.05 !important;
  text-align: left !important;
}
body.page-index .hero .hs .hero-title .hl { display: block !important; }
body.page-index .hero .hs .hero-title .hw {
  display: inline !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  vertical-align: baseline !important;
}
body.page-index .hero .hs .hero-title .hwi {
  display: inline !important;
  transform: none !important;
  opacity: 1 !important;
  animation: none !important;
}

/* Description */
body.page-index .hero .hs .hc p {
  margin: 0 0 26px !important;
  max-width: 410px !important;
  color: rgba(255,255,255,.82) !important;
  font-size: 15.5px !important;
  line-height: 1.6 !important;
}

/* Buttons */
body.page-index .hero .hs .hbtns {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}
body.page-index .hero .hs .btn-d {
  background: #fff !important;
  color: #1D1D1F !important;
  padding: 13px 27px !important;
  border-radius: 100px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.2) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}
body.page-index .hero .hs .btn-d:hover {
  background: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.26) !important;
}
body.page-index .hero .hs .btn-t {
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  opacity: .94 !important;
  transition: opacity .2s ease !important;
}
body.page-index .hero .hs .btn-t:hover { color: #fff !important; opacity: 1 !important; }

/* ── Countdown card — frosted, bottom-right on desktop ────────────────── */
body.page-index .hero .hs .hcount {
  position: absolute !important;
  right: 40px !important;
  bottom: 40px !important;
  top: auto !important;
  left: auto !important;
  z-index: 4 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 15px 20px !important;
  border-radius: 16px !important;
  text-align: center !important;
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.26) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
}
body.page-index .hero .hs .hcount .count-label {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.82) !important;
}
body.page-index .hero .hs .hcount .count-nums {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
body.page-index .hero .hs .hcount .cu {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
body.page-index .hero .hs .hcount .cn {
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -1px !important;
  color: #fff !important;
  font-variant-numeric: tabular-nums !important;
}
body.page-index .hero .hs .hcount .cul {
  font-size: 11px !important;
  letter-spacing: .5px !important;
  margin-top: 3px !important;
  color: rgba(255,255,255,.6) !important;
}
body.page-index .hero .hs .hcount .csep {
  font-size: 18px !important;
  font-weight: 300 !important;
  color: rgba(255,255,255,.4) !important;
}
body.page-index .hero .hs .hcount .ctag {
  background: #FF2D55 !important;
  color: #fff !important;
  padding: 5px 11px !important;
  border-radius: 100px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

/* ── Prev / next arrows — frosted circular, shown on ALL viewports ────── */
body.page-index .hero .hero-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  color: #fff !important;
  background: rgba(255,255,255,.18) !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  transition: background .2s ease !important;
}
body.page-index .hero .hero-nav:hover { background: rgba(255,255,255,.34) !important; }
body.page-index .hero .hero-nav-prev { left: 20px !important; right: auto !important; }
body.page-index .hero .hero-nav-next { right: 20px !important; left: auto !important; }

/* ── Slide dots ───────────────────────────────────────────────────────── */
body.page-index .hero .sdots {
  position: absolute !important;
  bottom: 18px !important;
  left: 50% !important;
  top: auto !important;
  transform: translateX(-50%) !important;
  z-index: 6 !important;
  display: flex !important;
  gap: 6px !important;
}
body.page-index .hero .sdots .sd {
  width: 22px !important;
  height: 4px !important;
  border: none !important;
  border-radius: 3px !important;
  padding: 0 !important;
  cursor: pointer !important;
  background: rgba(255,255,255,.45) !important;
  transition: width .3s ease, background .3s ease !important;
}
body.page-index .hero .sdots .sd.on { width: 34px !important; background: #fff !important; }

/* ══════════════════════════ MOBILE (≤768px) ══════════════════════════ */
@media (max-width: 768px) {
  body.page-index .hero { padding: 16px 0 40px !important; }

  body.page-index .hero .hslides {
    height: clamp(500px, 82vh, 720px) !important;
    border-radius: 18px !important;
  }

  /* slides still fill the container; stack + vertical-centre the content */
  body.page-index .hero .hs {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    background-image: var(--hs-bg-m, var(--hs-bg, none)) !important;
    background-position: var(--hs-pos, center center) !important;
  }

  /* even scrim so vertically-centred text stays readable */
  body.page-index .hero .hs[data-theme="dark"]::before,
  body.page-index .hero .hs:not([data-theme])::before {
    background: linear-gradient(180deg,
                rgba(0,0,0,.46) 0%,
                rgba(0,0,0,.40) 45%,
                rgba(0,0,0,.62) 100%) !important;
  }

  body.page-index .hero .hs .hc {
    padding: 0 22px !important;
    max-width: 100% !important;
    text-align: left !important;
  }
  body.page-index .hero .hs .hero-title,
  body.page-index .hero .hs .hc h1 {
    font-size: 26px !important;
    letter-spacing: -.6px !important;
    line-height: 1.1 !important;
    margin-bottom: 12px !important;
  }
  body.page-index .hero .hs .hc p {
    font-size: 13.5px !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
  }
  body.page-index .hero .hs .hbtns { gap: 10px !important; }
  body.page-index .hero .hs .btn-d {
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 13px 18px !important;
  }

  /* countdown drops into flow, centred below the text */
  body.page-index .hero .hs .hcount {
    position: relative !important;
    right: auto !important; bottom: auto !important; left: auto !important; top: auto !important;
    margin: 22px 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }
  body.page-index .hero .hs .hcount .cn { font-size: 22px !important; }

  /* arrows stay visible on mobile, slightly smaller + inset */
  body.page-index .hero .hero-nav { width: 38px !important; height: 38px !important; }
  body.page-index .hero .hero-nav-prev { left: 10px !important; }
  body.page-index .hero .hero-nav-next { right: 10px !important; }

  /* dots pinned to the very bottom */
  body.page-index .hero .sdots { bottom: 12px !important; top: auto !important; }
}
