:root {
  --bg: #100b10;
  --bg-2: #201017;
  --text: #fff7f1;
  --muted: #f5c7b5;
  --accent: #ff5c39;
  --accent-2: #ffb347;
  --button-shadow: rgba(255, 92, 57, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(255, 179, 71, 0.2), transparent 28%),
    radial-gradient(circle at bottom, rgba(255, 92, 57, 0.18), transparent 35%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  overflow: hidden;
}

.backdrop,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.backdrop-a {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 179, 71, 0.17), transparent 24%),
    radial-gradient(circle at 78% 70%, rgba(255, 92, 57, 0.2), transparent 30%);
  animation: drift 14s ease-in-out infinite alternate;
}

.backdrop-b {
  background:
    radial-gradient(circle at 70% 16%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 28% 78%, rgba(255, 92, 57, 0.12), transparent 20%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.grain {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 6px 6px, 6px 6px;
  mix-blend-mode: soft-light;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  isolation: isolate;
}

.content-stack,
.headline,
.count-wrap,
.status-line {
  animation: rise-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.content-stack {
  animation-delay: 60ms;
}

.eyebrow,
.count-label,
.status-line,
.subhead {
  margin: 0;
}

.eyebrow,
.count-label {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

.content-stack {
  z-index: 2;
  width: min(34rem, calc(100vw - 2rem));
  display: grid;
  gap: 0.7rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.headline {
  width: 100%;
  display: grid;
  gap: 0.35rem;
}

h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
}

.count-wrap {
  width: 100%;
  display: grid;
  gap: 0.35rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  pointer-events: none;
}

.count-value {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(7rem, 26vw, 15rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  text-shadow: 0 0 24px rgba(255, 179, 71, 0.16);
}

.count-value.is-bumping {
  animation: count-bump 300ms ease-out;
}

.button-orbit {
  position: absolute;
  left: 50%;
  top: 78%;
  z-index: 3;
  transform: translate(-50%, -50%);
  transition:
    left 260ms cubic-bezier(0.22, 1, 0.36, 1),
    top 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button-trigger {
  appearance: none;
  border: 0;
  min-width: clamp(10rem, 18vw, 14rem);
  padding: 1.2rem 2.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #200d07;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 18px 45px var(--button-shadow),
    inset 0 -6px 12px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button-trigger:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 22px 60px rgba(255, 92, 57, 0.42),
    inset 0 -6px 12px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.button-trigger:active,
.button-trigger.is-pending {
  transform: scale(0.985);
  filter: saturate(1.08);
}

.button-trigger:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.76);
  outline-offset: 4px;
}

.status-line {
  width: 100%;
  min-height: 1.5rem;
  color: #ffd6c4;
  font-size: 0.95rem;
  text-align: center;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes count-bump {
  0% {
    transform: scale(0.96);
  }

  60% {
    transform: scale(1.035);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(0, -1.5%, 0) scale(1.04);
  }
}

@media (max-width: 640px) {
  .stage {
    min-height: 100svh;
    padding: 1rem;
  }

  .content-stack {
    width: calc(100vw - 1.5rem);
  }

  .button-trigger {
    min-width: 9.25rem;
    padding: 1rem 1.8rem;
    font-size: 1.05rem;
  }

  .count-value {
    font-size: clamp(5.5rem, 27vw, 8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop-a,
  .backdrop-b,
  .headline,
  .count-wrap,
  .status-line,
  .count-value.is-bumping {
    animation: none;
  }

  .button-orbit,
  .button-trigger {
    transition: none;
  }
}
