:root {
  --ink: #f2f5fa;
  --ink-soft: #a8b4c7;
  --navy: #0b2a4a;
  --navy-deep: #061828;
  --gold: #d4af37;
  --gold-bright: #f0c94a;
  --glow: rgba(212, 175, 55, 0.28);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

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

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

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background: #05080f;
  overflow-x: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 70% 15%, rgba(212, 175, 55, 0.14) 0%, transparent 48%),
    radial-gradient(80% 55% at 15% 80%, rgba(11, 42, 74, 0.85) 0%, transparent 55%),
    radial-gradient(120% 80% at 50% -10%, #12345a 0%, transparent 50%),
    linear-gradient(160deg, #05080f 0%, #0a1628 45%, #07101c 100%);
}

.wash {
  position: absolute;
  inset: -20%;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0 28px,
      rgba(212, 175, 55, 0.035) 28px 29px
    );
  opacity: 0.7;
  animation: drift 28s linear infinite;
}

.wash-b {
  animation-direction: reverse;
  animation-duration: 40s;
  opacity: 0.35;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 245, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 245, 250, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.9;
  will-change: transform;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: min(56vw, 520px);
  height: min(56vw, 520px);
  top: -12%;
  right: -10%;
  background: radial-gradient(circle at 35% 35%, rgba(20, 70, 120, 0.85), transparent 68%);
}

.orb-2 {
  width: min(44vw, 380px);
  height: min(44vw, 380px);
  bottom: 0;
  left: -12%;
  background: radial-gradient(circle at 60% 40%, rgba(11, 42, 74, 0.95), transparent 70%);
  animation-delay: -4s;
  animation-duration: 16s;
}

.orb-3 {
  width: min(28vw, 240px);
  height: min(28vw, 240px);
  top: 42%;
  right: 16%;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.35), transparent 70%);
  animation-delay: -7s;
  animation-duration: 14s;
}

.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.75);
  animation: sparkle 4.5s ease-in-out infinite;
}

.spark-1 {
  top: 22%;
  left: 18%;
}

.spark-2 {
  top: 58%;
  right: 22%;
  animation-delay: -1.6s;
  animation-duration: 5.2s;
}

.spark-3 {
  bottom: 18%;
  left: 42%;
  animation-delay: -2.8s;
  animation-duration: 3.8s;
}

.stage {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5rem) 0 clamp(2rem, 6vh, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.95rem;
}

.brand,
.headline,
.lede,
.countdown,
.cta {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.brand {
  margin: 0;
  animation-delay: 0.06s;
}

.brand-logo {
  display: block;
  width: min(420px, 78vw);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.headline {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  animation-delay: 0.2s;
}

.headline em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}

.headline em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.28em;
  background: rgba(212, 175, 55, 0.28);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: draw-line 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}

.lede {
  margin: 0.15rem 0 0.35rem;
  max-width: 36ch;
  font-size: clamp(1.08rem, 2.3vw, 1.28rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-soft);
  animation-delay: 0.34s;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem 0.35rem;
  margin: 0.55rem 0 0.2rem;
  animation-delay: 0.46s;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 4.4rem;
  text-align: center;
}

.countdown-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  padding: 0.55rem 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, color 0.2s ease;
}

.countdown-value.is-live {
  color: var(--gold-bright);
}

.countdown-value.tick {
  animation: pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  padding-top: 0.7rem;
  animation: blink 1.2s steps(1) infinite;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.55rem;
  padding: 1rem 1.55rem;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #0a1620;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    filter 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 12px 32px var(--glow);
  animation-delay: 0.6s;
}

.cta-arrow {
  transition: transform 0.25s ease;
}

.cta:hover {
  filter: brightness(1.06);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.38);
}

.cta:hover .cta-arrow {
  transform: translateX(4px);
}

.cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.foot {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.25rem 1.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

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

@keyframes draw-line {
  to {
    width: 100%;
    transform: scaleX(1);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-40px, 24px, 0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, -18px, 0) scale(1.05);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.25;
  }
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .headline,
  .lede,
  .countdown,
  .cta,
  .foot,
  .wash,
  .orb,
  .spark,
  .headline em::after,
  .countdown-sep {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .headline em::after {
    transform: scaleX(1);
  }
}

@media (max-width: 640px) {
  .stage {
    width: min(100% - 2rem, 960px);
    padding-top: clamp(2rem, 8vh, 4rem);
  }

  .brand-logo {
    width: min(320px, 86vw);
  }

  .countdown {
    gap: 0.45rem 0.2rem;
  }

  .countdown-unit,
  .countdown-value {
    min-width: 3.55rem;
  }

  .countdown-sep {
    padding-top: 0.55rem;
  }
}
