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

:root {
  --bg: #0a0a0c;
  --white: #ffffff;
  --black: #000000;
  --blue-glow: rgba(0, 174, 239, 0.55);
  --blue-glow-strong: rgba(0, 174, 239, 0.85);
  --gold: #ffcc33;
  --gold-light: #ffe566;
  --green: #00ff66;
  --green-glow: rgba(0, 255, 102, 0.65);
  --stroke: 2.5px;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.page {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.bg-fallback {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 80, 140, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(13, 13, 18, 0.25) 0%, rgba(5, 5, 8, 0.45) 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.page.video-ready .bg-fallback {
  opacity: 0.35;
}

/* Centered stack — no overlap on mobile */
.content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  pointer-events: none;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 24rem;
  text-align: center;
}

/* —— CTA —— */
.cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 0.85rem;

  min-height: 3.5rem;
  padding: 0.8rem 1.1rem 0.8rem 1rem;
  width: min(92vw, 21.5rem);

  background: var(--white);
  color: #111;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;

  font-size: clamp(1rem, 4.2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;

  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.42),
    0 0 32px var(--blue-glow),
    0 0 48px rgba(0, 174, 239, 0.22);

  animation: cta-pulse 2.2s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: scale(1.05);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.48),
    0 0 42px var(--blue-glow-strong),
    0 0 64px rgba(0, 174, 239, 0.32);
  animation-play-state: paused;
}

.cta:active {
  transform: scale(1.02);
}

.cta-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  flex-shrink: 0;
}

.cta-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.cta-text {
  line-height: 1;
  text-align: center;
  justify-self: center;
}

.cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

@keyframes cta-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 10px 36px rgba(0, 0, 0, 0.42),
      0 0 28px var(--blue-glow),
      0 0 44px rgba(0, 174, 239, 0.2);
  }
  50% {
    transform: scale(1.03);
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.48),
      0 0 40px var(--blue-glow-strong),
      0 0 56px rgba(0, 174, 239, 0.28);
  }
}

/* —— Headline & countdown label (shared type) —— */
.headline,
.countdown-line {
  width: 100%;
  padding: 0 0.5rem;

  font-size: clamp(1.25rem, 5.8vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;

  color: var(--white);
  -webkit-text-stroke: var(--stroke) var(--black);
  paint-order: stroke fill;
  text-shadow:
    0 0 1px var(--black),
    0 3px 14px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.headline {
  margin-top: 0.9rem;
}

.headline-vip {
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  -webkit-text-stroke: var(--stroke) var(--black);
  paint-order: stroke fill;
  text-shadow: 0 0 12px rgba(255, 204, 51, 0.45);
}

/* —— Timer —— */
.countdown-line {
  margin-top: 1.65rem;
}

.countdown-digits {
  font-size: clamp(1.75rem, 8vw, 2.35rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--green);
  -webkit-text-stroke: 0;
  paint-order: initial;
  text-shadow:
    0 0 16px var(--green-glow),
    0 2px 10px rgba(0, 0, 0, 0.55);
}

.countdown-digits.urgent {
  animation: timer-pulse 0.85s ease-in-out infinite;
}

@keyframes timer-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.92;
  }
}

/* Small phones */
@media (max-width: 360px) {
  .cta {
    column-gap: 0.7rem;
    padding: 0.75rem 0.95rem 0.75rem 0.9rem;
    width: min(94vw, 20rem);
  }

  .cta-logo {
    width: 24px;
    height: 24px;
  }

  .cta-logo-wrap {
    width: 1.6rem;
  }

  .headline {
    margin-top: 0.75rem;
    letter-spacing: 0.1em;
  }

  .countdown-line {
    margin-top: 1.4rem;
  }
}

/* Short viewports (Safari toolbar, small iPhones) */
@media (max-height: 640px) {
  .stack {
    transform: scale(0.94);
    transform-origin: center center;
  }

  .countdown-line {
    margin-top: 1.25rem;
  }
}
