* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #020713;
}

body {
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

.page {
  width: 100%;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #020713;
}

.promo {
  position: relative;
  width: min(100vw, calc(100svh * 0.569411));
  aspect-ratio: 968 / 1700;
  overflow: hidden;
  isolation: isolate;
  background: #020713;
}

.landing-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
}

.join-button {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 4.1%;
  transform: translateX(-50%);
  width: 80%;
  height: clamp(62px, 10.2vw, 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(34px, 9vw, 60px);
  letter-spacing: -0.02em;
  color: #05215c;
  background:
    linear-gradient(
      180deg,
      #fff7b5 0%,
      #ffd94e 16%,
      #ffb717 58%,
      #ef9100 100%
    );
  border: clamp(3px, 0.8vw, 6px) solid #fff2a2;
  box-shadow:
    0 0 0 3px #d59000,
    0 0 15px rgba(255, 196, 23, 0.92),
    0 0 35px rgba(255, 172, 0, 0.48),
    inset 0 3px 4px rgba(255, 255, 255, 0.85),
    inset 0 -5px 8px rgba(191, 101, 0, 0.28);
  cursor: pointer;
  white-space: nowrap;
  animation: joinPulse 2.6s ease-in-out infinite;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.join-button:active {
  transform: translateX(-50%) scale(0.97);
  filter: brightness(0.95);
}

@keyframes joinPulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow:
      0 0 0 3px #d59000,
      0 0 15px rgba(255, 196, 23, 0.92),
      0 0 35px rgba(255, 172, 0, 0.48),
      inset 0 3px 4px rgba(255, 255, 255, 0.85),
      inset 0 -5px 8px rgba(191, 101, 0, 0.28);
  }

  50% {
    transform: translateX(-50%) scale(1.045);
    box-shadow:
      0 0 0 3px #d59000,
      0 0 22px rgba(255, 214, 67, 1),
      0 0 48px rgba(255, 172, 0, 0.72),
      inset 0 3px 4px rgba(255, 255, 255, 0.9),
      inset 0 -5px 8px rgba(191, 101, 0, 0.28);
  }
}

@media (max-width: 600px) {
  .promo {
    width: 100vw;
    max-width: none;
  }
}

@media (min-width: 601px) {
  .page {
    align-items: center;
    padding:
      max(12px, env(safe-area-inset-top))
      0
      max(12px, env(safe-area-inset-bottom));
  }

  .promo {
    max-height: 100svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .join-button {
    animation: none;
    transition: none;
  }
}
