/* =========================================================
   168WINS HERO — SINGLE SOURCE OF TRUTH
   Reference: hero(7).png ≈ 2048 × 694 (2.95:1)
   Artwork: assets/img/hero.png
   ========================================================= */

.hero-ref {
  position: relative;
  width: 100%;
  aspect-ratio: 2156 / 729;
  overflow: hidden;
  isolation: isolate;
  background-color: #07091d;
  background-image: url("../img/hero-optimized.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-bottom: 1px solid rgba(120, 76, 215, .22);
}

/* Dark readability veil on the copy side only.
   This is intentionally soft/gradient — not a visible black box. */
.hero-ref::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(3, 4, 20, .90) 0%,
      rgba(4, 4, 24, .82) 14%,
      rgba(6, 5, 31, .66) 27%,
      rgba(8, 5, 35, .43) 39%,
      rgba(7, 4, 30, .20) 50%,
      rgba(4, 3, 20, .06) 60%,
      rgba(0, 0, 0, 0) 68%),
    linear-gradient(180deg,
      rgba(0, 0, 0, .10) 0%,
      rgba(0, 0, 0, 0) 46%,
      rgba(1, 1, 12, .18) 100%);
}

.hero-ref::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 53%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 28% 43%,
      rgba(4, 3, 24, .56) 0%,
      rgba(6, 3, 30, .37) 43%,
      rgba(6, 3, 28, .14) 66%,
      rgba(0, 0, 0, 0) 82%);
}

.hero-ref__container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.hero-ref__copy {
  position: absolute;
  left: 5.05%;
  top: 10.1%;
  width: 46.5%;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: "Prompt", sans-serif;
}

/* Small magenta heading */
.hero-ref__eyebrow {
  margin: 0 0 1.05vw;
  color: #ff70e9;
  font-size: clamp(18px, 1.66vw, 34px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.015em;
  white-space: nowrap;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, .92),
    0 0 12px rgba(255, 74, 230, .24);
}

/* Main two-line title */
.hero-ref__title {
  margin: 0;
  padding: 0;
  font-family: "Prompt", sans-serif;
  font-size: clamp(44px, 3.88vw, 79px);
  line-height: 1.10;
  font-weight: 700;
  letter-spacing: -.032em;
}

.hero-ref__title-line {
  display: block;
  white-space: nowrap;
  overflow: visible;
}

.hero-ref__title-line--white {
  color: #fff;
  text-shadow:
    0 3px 3px rgba(0, 0, 0, .94),
    0 7px 18px rgba(0, 0, 0, .62),
    0 0 11px rgba(255, 255, 255, .10),
    0 0 26px rgba(191, 73, 245, .15);
}

.hero-ref__title-line--pink {
  margin-top: 1.2vw;
  /* The reference keeps this entire sentence on one line.
     Make only the second line slightly tighter so the last letters are never clipped. */
  font-size: 1em;
  line-height: 1.14;
  /* letter-spacing: 10px; */
  padding: .03em .22em .08em 0;
  color: #fff;
  background: linear-gradient(180deg,
      #ffffff 0%,
      #fffefe 34%,
      #ffc9f7 65%,
      #f485df 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(0 3px 2px rgba(0, 0, 0, .80)) drop-shadow(0 7px 12px rgba(0, 0, 0, .44)) drop-shadow(0 0 8px rgba(245, 76, 232, .15));
}

/* Highlight the brand name at the end of the title without changing the line layout. */
.hero-ref__brand {
  display: inline-block;
  margin-left: .04em;
  font-weight: 800;
  letter-spacing: -.018em;
  background: linear-gradient(180deg,
      #ffffff 0%,
      #ffd9fb 28%,
      #ff4fe1 62%,
      #d92cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .15px rgba(255, 255, 255, .28);
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, .86)) drop-shadow(0 0 9px rgba(255, 42, 230, .38));
}

/* Supporting copy */
.hero-ref__desc {
  margin: 2.05vw 0 0;
  padding: 0;
  color: #fff;
  font-family: "Prompt", sans-serif;
  font-size: clamp(15px, 1.34vw, 27px);
  line-height: 1.46;
  font-weight: 500;
  letter-spacing: -.012em;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, .96),
    0 5px 12px rgba(0, 0, 0, .70),
    0 0 9px rgba(49, 21, 92, .22);
}

.hero-ref__desc span {
  display: block;
  white-space: nowrap;
}

/* Three icon/text items */
.hero-ref__benefits {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: center;
  column-gap: 2.05vw;
  margin-top: 3.08vw;
  width: max-content;
}

.hero-ref__benefit {
  display: flex;
  align-items: center;
  gap: .72vw;
  min-width: 0;
}

.hero-ref__icon {
  flex: 0 0 clamp(54px, 3.95vw, 80px);
  width: clamp(54px, 3.95vw, 80px);
  height: clamp(54px, 3.95vw, 80px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: clamp(20px, 1.58vw, 32px);
  background: radial-gradient(circle at 40% 35%,
      rgba(198, 76, 255, .28),
      rgba(70, 23, 121, .38) 64%,
      rgba(28, 12, 74, .60));
  border: 2px solid rgba(224, 75, 236, .96);
  box-shadow:
    0 0 0 4px rgba(195, 53, 225, .08),
    0 0 15px rgba(226, 67, 235, .38),
    0 0 28px rgba(124, 66, 255, .18),
    inset 0 0 15px rgba(222, 92, 255, .14);
  text-shadow: 0 0 8px rgba(255, 255, 255, .20);
}

.hero-ref__benefit-text {
  display: grid;
  min-width: 0;
  line-height: 1.08;
}

.hero-ref__benefit strong {
  color: #fff;
  font-family: "Prompt", sans-serif;
  font-size: clamp(13px, 1.03vw, 21px);
  line-height: 1.10;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, .95),
    0 4px 9px rgba(0, 0, 0, .56);
}

.hero-ref__benefit small {
  display: block;
  margin-top: .32vw;
  color: #fff;
  font-family: "Prompt", sans-serif;
  font-size: clamp(11px, .89vw, 18px);
  line-height: 1.08;
  font-weight: 500;
  white-space: nowrap;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, .95),
    0 4px 8px rgba(0, 0, 0, .50);
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width:991.98px) {
  .hero-ref {
    aspect-ratio: auto;
    min-height: 730px;
    background-size: auto 390px;
    background-position: 64% top;
  }

  .hero-ref::before {
    background:
      linear-gradient(180deg,
        rgba(2, 3, 18, .05) 0%,
        rgba(3, 3, 22, .18) 35%,
        rgba(5, 4, 28, .74) 52%,
        rgba(4, 3, 25, .95) 100%);
  }

  .hero-ref::after {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 58%;
    background: radial-gradient(ellipse at 34% 55%,
        rgba(4, 3, 24, .68) 0%,
        rgba(4, 3, 24, .35) 52%,
        transparent 82%);
  }

  .hero-ref__container {
    min-height: 730px;
    padding: 0 24px;
  }

  .hero-ref__copy {
    left: 24px;
    right: 24px;
    top: 360px;
    width: auto;
  }

  .hero-ref__eyebrow {
    margin-bottom: 9px;
    font-size: 1rem;
    white-space: normal;
  }

  .hero-ref__title {
    font-size: clamp(2.25rem, 6.6vw, 3.35rem);
    line-height: 1.08;
  }

  .hero-ref__title-line {
    white-space: normal;
  }

  .hero-ref__title-line--pink {
    font-size: .92em;
    line-height: 1.12;
    letter-spacing: -.030em;
    padding-right: .08em;
  }

  .hero-ref__desc {
    margin-top: 15px;
    font-size: .96rem;
    line-height: 1.48;
  }

  .hero-ref__desc span {
    white-space: normal;
  }

  .hero-ref__benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    column-gap: 10px;
    margin-top: 21px;
  }

  .hero-ref__benefit {
    gap: 8px;
  }

  .hero-ref__icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    font-size: 1.02rem;
    border-width: 1px;
  }

  .hero-ref__benefit strong {
    font-size: .80rem
  }

  .hero-ref__benefit small {
    font-size: .68rem;
    margin-top: 4px
  }
}

/* =========================================================
   MOBILE
   Artwork stays as CSS background; copy has its own readable zone.
   ========================================================= */
@media (max-width:767.98px) {
  .hero-ref {
    min-height: 735px;
    background-size: auto 305px;
    background-position: 65% top;
  }

  .hero-ref::before {
    background:
      linear-gradient(180deg,
        rgba(2, 3, 18, .02) 0%,
        rgba(3, 3, 22, .10) 31%,
        rgba(5, 4, 28, .78) 46%,
        rgba(4, 3, 25, .97) 100%);
  }

  .hero-ref::after {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 64%;
    background: radial-gradient(ellipse at 30% 48%,
        rgba(4, 3, 24, .72) 0%,
        rgba(4, 3, 24, .38) 54%,
        transparent 84%);
  }

  .hero-ref__container {
    min-height: 735px;
    padding: 0 15px;
  }

  .hero-ref__copy {
    top: 282px;
    left: 15px;
    right: 15px;
    width: auto;
  }

  .hero-ref__eyebrow {
    margin-bottom: 8px;
    font-size: .86rem;
    line-height: 1.2;
  }

  .hero-ref__title {
    font-size: clamp(1.85rem, 8.3vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: -.026em;
  }

  .hero-ref__title-line {
    white-space: normal;
  }

  .hero-ref__title-line--pink {
    margin-top: 4px;
    font-size: .92em;
    line-height: 1.14;
    letter-spacing: -.024em;
    padding-bottom: .08em;
  }

  .hero-ref__desc {
    margin-top: 14px;
    font-size: .83rem;
    line-height: 1.55;
  }

  .hero-ref__desc span {
    white-space: normal;
  }

  .hero-ref__benefits {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 7px;
    width: 100%;
    margin-top: 17px;
  }

  .hero-ref__benefit {
    min-height: 54px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid rgba(122, 83, 209, .20);
    border-radius: 12px;
    background: rgba(10, 15, 45, .48);
    backdrop-filter: blur(4px);
  }

  .hero-ref__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: .92rem;
    box-shadow:
      0 0 0 3px rgba(195, 53, 225, .07),
      0 0 13px rgba(226, 67, 235, .27);
  }

  .hero-ref__benefit strong {
    font-size: .79rem;
    white-space: normal;
  }

  .hero-ref__benefit small {
    margin-top: 3px;
    font-size: .67rem;
    white-space: normal;
  }
}

@media (max-width:420px) {
  .hero-ref {
    min-height: 710px;
    background-size: auto 286px;
    background-position: 66% top;
  }

  .hero-ref__container {
    min-height: 710px;
  }

  .hero-ref__copy {
    top: 264px;
  }

  .hero-ref__title {
    font-size: 1.85rem;
  }
}