/* ==========================================================================
   Banner — Figma node 246:3 (frame 1920x650)
   Tokens and geometry taken verbatim from the design.
   ========================================================================== */

.banner {
  --bnr-bg:        #0d0d0d;
  --bnr-accent:    #792e8c;
  --bnr-surface:   #1a1a1a;
  --bnr-border:    #333;
  --bnr-border-2:  #2a2a2a;
  --bnr-text:      #fff;
  --bnr-muted:     #aaa;
  --bnr-muted-2:   #888;
  --bnr-font-head: "Exo", system-ui, sans-serif;
  --bnr-font-body: "Ubuntu", system-ui, sans-serif;

  position: relative;
  overflow: hidden;
  background: var(--bnr-bg);
}

.banner .container { position: relative; z-index: 1; }

/* Figma content edges sit at x=305 / x=1615 on the 1920 frame.
   (1920 - 1334) / 2 + 12px container padding = 305. */
@media (min-width: 1400px) {
  .banner .container { max-width: 1334px; }
}

/* --- glows ---------------------------------------------------------------- */
.banner__glow {
  position: absolute;
  z-index: 0;
  display: block;
  max-width: none;
  pointer-events: none;
}
.banner__glow--left  { left: 0;          top: 50px;    width: 900px;  height: 700px; }
.banner__glow--right { right: 220px;     top: -100px;  width: 1000px; height: 800px; }

/* --- left column ---------------------------------------------------------- */
.banner__content { padding-top: 80px; padding-bottom: 98px; }

/* --- tagline pill --------------------------------------------------------- */
.banner__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border: 1px solid var(--bnr-border);
  border-radius: 20px;
  background: var(--bnr-surface);
}
.banner__pill-text {
  font-family: var(--bnr-font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 15px;
  letter-spacing: 0.5px;
  color: var(--bnr-muted);
  white-space: nowrap;
}
.banner__pill-dot { display: block; width: 6px; height: 6px; flex: none; }

/* --- heading -------------------------------------------------------------- */
.banner__title {
  margin: 29px 0 0;
  max-width: 640px;
  font-family: var(--bnr-font-head);
  font-weight: 800;
  font-size: 58px;
  line-height: 1.1724;   /* 68 / 58 */
  color: var(--bnr-text);
}
.banner__title-accent { color: var(--bnr-accent); }

/* --- description ---------------------------------------------------------- */
.banner__desc {
  margin: 20px 0;
  max-width: 520px;
  font-family: var(--bnr-font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: var(--bnr-muted);
}

/* --- buttons -------------------------------------------------------------- */
.banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}
.banner__btn {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  height: 52px;
  padding: 0 12px;
  border-radius: 6px;
  font-family: var(--bnr-font-head);
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--bnr-text);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.34s ease, background-color 0.34s ease,
              color 0.34s ease, filter 0.34s ease;
}
.banner__btn--start {
  max-width: 200px;
  font-weight: 700;
  background-image: linear-gradient(194.574deg, #792e8c 25%, #3a2b70 75%);
}
.banner__btn--explore {
  max-width: 196px;
  font-weight: 500;
  background-color: transparent;
  border: 1px solid var(--bnr-text);
}
.banner__btn-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- button states -------------------------------------------------------- */
.banner__btn:hover,
.banner__btn:focus-visible { color: var(--bnr-text); }

.banner__btn:focus-visible {
  outline: 2px solid var(--bnr-text);
  outline-offset: 3px;
}

.banner__btn--start:hover,
.banner__btn--start:focus-visible {
  filter: brightness(1.12);
  box-shadow: 0 8px 20px rgba(121, 46, 140, 0.45);
  transform: translateY(-2px) scale(1.02);
}
.banner__btn--start:hover .banner__btn-icon,
.banner__btn--start:focus-visible .banner__btn-icon {
  transform: translateX(4px);
}
.banner__btn--start:active {
  filter: brightness(1.04);
  box-shadow: 0 3px 8px rgba(121, 46, 140, 0.35);
  transform: translateY(0) scale(0.99);
}

.banner__btn--explore:hover,
.banner__btn--explore:focus-visible {
  background-color: var(--bnr-text);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px) scale(1.02);
  color: black;
  font-weight: 600;
}
.banner__btn--explore:active {
  background-color: #e0e0e0;
  color: #000;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  transform: translateY(0) scale(0.99);
}

/* --- motion layer hints (only while banner-motion.js is running) ---------- */
.banner--motion .banner__glow,
.banner--motion .banner__media-frame,
.banner--motion .banner__stat { will-change: transform; }
.banner--motion .banner__glow { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  .banner--motion .banner__glow,
  .banner--motion .banner__media-frame,
  .banner--motion .banner__stat { will-change: auto; }
  .banner__stat,
  .banner__stars img { transition: none; }
  .banner__rating:hover .banner__stars img { transform: none; }
  .banner__btn,
  .banner__btn-icon { transition: none; }
  .banner__btn:hover,
  .banner__btn:focus-visible { transform: none; }
  .banner__btn:active { transform: none; }
  .banner__btn:hover .banner__btn-icon,
  .banner__btn:focus-visible .banner__btn-icon { transform: none; }
}

/* --- star rating ---------------------------------------------------------- */
.banner__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-family: var(--bnr-font-body);
  font-size: 14px;
  line-height: 16px;
}
.banner__stars { display: inline-flex; align-items: center; gap: 3px; }
.banner__stars img { display: block; width: 16px; height: 16px; }

@media (hover: hover) and (pointer: fine) {
  .banner__stars img {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  }
  .banner__rating:hover .banner__stars img {
    transform: translateY(-2px);
    filter: brightness(1.35);
  }
  .banner__rating:hover .banner__stars img:nth-child(2) { transition-delay: 0.04s; }
  .banner__rating:hover .banner__stars img:nth-child(3) { transition-delay: 0.08s; }
  .banner__rating:hover .banner__stars img:nth-child(4) { transition-delay: 0.12s; }
  .banner__rating:hover .banner__stars img:nth-child(5) { transition-delay: 0.16s; }
}
.banner__score   { font-weight: 700; color: var(--bnr-text); }
.banner__reviews { font-weight: 400; color: var(--bnr-muted-2); }

/* --- right column / hero media -------------------------------------------- */
.banner__visual { padding-top: 20px; padding-bottom: 20px; }

.banner__media {
  position: relative;
  width: 615px;
  max-width: 100%;
  margin-left: auto;
  perspective: 1200px;
}
.banner__media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 615 / 610;
}
.banner__hero {
  position: absolute;
  top: 0;
  left: -26.504%;          /* -163 / 615 */
  width: 152.846%;         /*  940 / 615 */
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

/* --- stat cards ----------------------------------------------------------- */
.banner__stat {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 15px 19px;
  border: 1px solid var(--bnr-border-2);
  border-radius: 10px;
  background: var(--bnr-surface);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .banner__stat { transition: box-shadow 0.4s ease, border-color 0.4s ease; }
  .banner__stat:hover {
    border-color: #3a3a3a;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.6), 0 0 26px rgba(121, 46, 140, 0.22);
  }
}
.banner__stat-num {
  font-family: var(--bnr-font-head);
  font-weight: 800;
  font-size: 28px;
  line-height: 37px;
  color: var(--bnr-accent);
}
.banner__stat-label {
  font-family: var(--bnr-font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 15px;
  color: var(--bnr-muted);
}
/* Anchored to the image's bottom edge so the cards stay inside it at every width. */
.banner__stat--1 { left: 0;       bottom: 18.361%; }  /* (630 - 518) / 610 */
.banner__stat--2 { left: 24.228%; bottom: 1.967%; }   /* 149 / 615 , (630 - 618) / 610 */

@media (min-width: 1400px) {
  .banner__stat--1 { left: -9.106%; }                 /* -56 / 615 */
}

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .banner__title { font-size: 48px; }
}

@media (max-width: 991.98px) {
  .banner__content { padding-top: 64px; padding-bottom: 0; }
  .banner__title   { font-size: clamp(32px, 6.4vw, 52px); }
  .banner__visual  { padding-top: 48px; padding-bottom: 64px; }
  .banner__media   { margin-inline: auto; }
  .banner__glow--right { right: -150px; }
}

@media (max-width: 575.98px) {
  .banner__content { padding-top: 48px; }
  .banner__visual  { padding-top: 40px; padding-bottom: 48px; }
  .banner__stat        { padding: 11px 15px; }
  .banner__stat-num    { font-size: 22px; line-height: 29px; }
  .banner__stat-label  { font-size: 12px; line-height: 14px; }
}
