*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: #120705;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 4vh, 56px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 13vh calc(16px + env(safe-area-inset-right))
    calc(24px + env(safe-area-inset-bottom))
    calc(16px + env(safe-area-inset-left));
  padding-top: max(13vh, env(safe-area-inset-top));
  background: #120705 url("../images/bg.webp") center bottom / cover no-repeat;
}

.hero__title {
  width: min(64vw, 114vh);
}

.hero__cta {
  width: min(56vw, 100vh);
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
  animation: pulse 1.8s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

/* Shine sweep, masked to the button artwork's own shape */
.hero__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
      115deg,
      transparent 40%,
      rgba(255, 255, 255, 0.75) 50%,
      transparent 60%
    )
    no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
  -webkit-mask: url("../images/btn.webp") center / 100% 100% no-repeat;
  mask: url("../images/btn.webp") center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  animation: shine 2.6s ease-in-out infinite;
}

@keyframes shine {
  0% {
    background-position: 150% 0;
  }
  60%,
  100% {
    background-position: -50% 0;
  }
}

.hero__cta:hover,
.hero__cta:focus-visible {
  filter: brightness(1.12);
}

.hero__cta:focus-visible {
  outline: 2px solid #ffd76a;
  outline-offset: 6px;
  border-radius: 999px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cta,
  .hero__cta::after {
    animation: none;
  }
}

@media (max-width: 767px), (orientation: portrait) {
  .hero {
    gap: clamp(16px, 5vh, 48px);
    padding-top: max(22vh, env(safe-area-inset-top));
    padding-top: max(22svh, env(safe-area-inset-top));
    background-image: url("../images/bg-mobile.webp");
  }

  .hero__title {
    width: min(92vw, 640px);
  }

  .hero__cta {
    width: min(90vw, 620px);
  }
}

/* Short landscape phones: keep everything above the fold */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-top: max(6vh, env(safe-area-inset-top));
    gap: 12px;
  }
}
