*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: #1a120c;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
}

.hero {
  position: relative;
  width: 100%;
  line-height: 0;
  perspective: 920px;
}

.hero picture,
.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.cta {
  position: absolute;
  left: 50%;
  top: 75%;
  transform: translateX(-50%) translateY(42px) scale(0.62);
  transform-origin: 50% 80%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: min(52vw, 420px);
  padding: 0.7rem 1.6rem 0.78rem;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  color: #1a1208;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  font-size: 1.05rem;
  background: linear-gradient(180deg, #fff6c4 0%, #fde08d 42%, #f0c45a 100%);
  border: 2px solid #d4a03a;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 6px rgba(180, 110, 20, 0.25),
    0 6px 0 #c4922e,
    0 12px 22px rgba(0, 0, 0, 0.45);
  text-shadow: 0 0 8px rgba(232, 168, 58, 0.85), 0 0 1px #d49220;
  opacity: 0;
  filter: blur(10px) brightness(0.75);
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.cta.is-in {
  pointer-events: auto;
  animation: cta-emerge 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cta.is-settled {
  animation: none;
  opacity: 1;
  filter: none;
  transform: translateX(-50%);
  will-change: auto;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.cta.is-settled:hover,
.cta.is-settled:focus-visible {
  background: linear-gradient(180deg, #fffbe0 0%, #ffe79a 42%, #f5cc66 100%);
  outline: 2px solid #fde08d;
  outline-offset: 3px;
  transform: translateX(-50%) scale(1.035);
}

.cta.is-settled:active {
  transform: translateX(-50%) translateY(2px) scale(0.99);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    0 3px 0 #c4922e,
    0 8px 16px rgba(0, 0, 0, 0.4);
}

@keyframes cta-emerge {
  0% {
    opacity: 0;
    filter: blur(12px) brightness(0.55);
    transform: translateX(-50%) translateY(48px) scale(0.55);
  }
  55% {
    opacity: 1;
    filter: blur(0) brightness(1.08);
  }
  78% {
    transform: translateX(-50%) translateY(-8px) scale(1.05);
  }
  100% {
    opacity: 1;
    filter: none;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta,
  .cta.is-in,
  .cta.is-settled {
    animation: none;
    opacity: 1;
    filter: none;
    transform: translateX(-50%);
    pointer-events: auto;
  }
}

@media (min-width: 769px) {
  .cta {
    top: 75%;
    min-width: min(42vw, 430px);
    font-size: 1.12rem;
  }
}

@media (max-width: 768px) {
  .cta {
    top: 63%;
    min-width: min(82vw, 340px);
    padding: 0.62rem 1.15rem 0.68rem;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
  }
}
