/* Hero: headline + CTAs on the left, game-character collage with floating
   game icons on the right. Icons and collage drift gently (CSS) and follow
   the mouse a little (assets/js/hero.js). All motion stops for
   prefers-reduced-motion. */

.hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 140px;
  background: #000642;
  isolation: isolate;
}

/* Glow + puzzle-tile pattern + curved bottom edge into the games section */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(122, 52, 255, 0.45), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(255, 122, 31, 0.16), transparent 70%),
    linear-gradient(180deg, #000642 0%, #0a0a52 100%);
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 80% at 60% 40%, #000 20%, transparent 75%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -1px;
  height: 90px;
  background: var(--dark-body-color, #010530);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

/* ---------- Copy ---------- */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffd2b0;
  font-family: var(--head-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color, #ff7a1f);
  box-shadow: 0 0 0 4px rgba(255, 122, 31, 0.25);
}

.dark .hero__title,
.hero__title {
  margin: 0 0 22px;
  color: #fff;
  font-family: var(--head-font);
  font-size: clamp(2.6rem, 5.6vw, 4.9rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.hero .hero__accent {
  display: inline-block;
  padding-right: 0.06em;
  background: linear-gradient(90deg, #ffb347 0%, #ff7a1f 55%, #ff4f8b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  max-width: 520px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Chunky game-UI buttons that "press" down */
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 16px;
  font-family: var(--head-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.2s ease;
}

.hero-btn--primary {
  background: linear-gradient(180deg, #ff9a45 0%, #ff7a1f 100%);
  color: #fff;
  box-shadow: 0 6px 0 #c4520a, 0 14px 30px rgba(255, 122, 31, 0.35);
}

.hero-btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #c4520a, 0 18px 36px rgba(255, 122, 31, 0.45);
}

.hero-btn--primary:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 #c4520a, 0 6px 14px rgba(255, 122, 31, 0.3);
}

.hero-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}

.hero-btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.hero-btn--ghost:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.hero-btn:focus-visible,
.hero__stores a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.hero__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

.hero__stores a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__stores a:hover {
  color: var(--primary-color, #ff7a1f);
  border-color: currentColor;
}

/* ---------- Art ---------- */
.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 600px;
  width: 100%;
  margin-left: auto;
}

.hero__glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.35), rgba(122, 52, 255, 0.25) 55%, transparent 72%);
  filter: blur(20px);
}

.hero__art img {
  position: absolute;
  will-change: transform, translate;
  backface-visibility: hidden;
}

/* --px/--py are set by hero.js (mouse parallax); --float is the idle drift */
.hero__collage {
  inset: 6%;
  width: 88%;
  height: auto;
  translate: var(--px, 0) var(--py, 0);
  animation: hero-float 7s ease-in-out infinite;
}

.hero__icon {
  width: 17%;
  height: auto;
  border-radius: 24%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
  translate: var(--px, 0) var(--py, 0);
  rotate: var(--r, 0deg);
  animation: hero-bob 6s ease-in-out infinite;
}

.hero__icon--1 { top: 2%;  left: 4%;   --r: -12deg; animation-delay: -1s; }
.hero__icon--2 { top: -2%; right: 14%; --r: 10deg;  width: 14%; animation-delay: -3s; }
.hero__icon--3 { top: 40%; right: -4%; --r: 14deg;  animation-delay: -2s; }
.hero__icon--4 { bottom: 4%; right: 8%; --r: -8deg; width: 14%; animation-delay: -4s; }
.hero__icon--5 { bottom: 0; left: 10%;  --r: 9deg;  animation-delay: -5s; }
.hero__icon--6 { top: 44%; left: -5%;  --r: -14deg; width: 13%; animation-delay: -2.5s; }

@keyframes hero-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

@keyframes hero-bob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(4deg); }
}

/* Entrance */
.hero__copy > *,
.hero__art {
  animation: hero-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero__title { animation-delay: 0.08s; }
.hero__lead { animation-delay: 0.16s; }
.hero__ctas { animation-delay: 0.24s; }
.hero__stores { animation-delay: 0.32s; }
.hero__art { animation-name: hero-in-art; animation-duration: 0.9s; animation-delay: 0.1s; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-in-art {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero { padding: 120px 0 110px; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__ctas, .hero__stores { justify-content: center; }
  .hero__art { max-width: 460px; margin: 0 auto; }
}

@media (max-width: 575px) {
  .hero { padding: 110px 0 90px; }
  .hero__eyebrow { font-size: 13px; padding: 6px 12px; }
  .hero__lead { font-size: 17px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero-btn { justify-content: center; }
  .hero__art { max-width: 340px; }
  .hero__icon { border-width: 2px; }
  .hero__bg::after { height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero *,
  .hero__art {
    animation: none !important;
    transition: none !important;
  }
}
