:root {
  --bg: #050505;
  --ink: #f7f4ef;
  --muted: rgba(247, 244, 239, 0.72);
  --soft: rgba(247, 244, 239, 0.45);
  --gold: #ffd731;
  --gold-deep: #e5c12c;
  --violet: #8b2fd6;
  --pink: #e91e63;
  --orange: #ff5722;
  --green: #4caf50;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding:
    env(safe-area-inset-top, 0)
    env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
}

/* --- Atmosphere --- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  filter: grayscale(0.35) contrast(1.05) brightness(0.55);
  animation: drift-bg 22s ease-in-out infinite alternate;
}

.bg__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.82) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.78) 55%, #050505 100%);
}

.bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* --- Confetti --- */

.confetti {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.9;
  will-change: transform;
}

.shape--bar {
  width: 42px;
  height: 10px;
  border-radius: 2px;
  transform: rotate(-28deg);
}

.shape--bar-thin {
  width: 34px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(22deg);
}

.shape--diamond {
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
}

.shape--star {
  width: 18px;
  height: 18px;
  background: var(--violet);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.shape--burst {
  width: 16px;
  height: 16px;
  background: var(--green);
  clip-path: polygon(
    50% 0%,
    63% 38%,
    100% 50%,
    63% 62%,
    50% 100%,
    37% 62%,
    0% 50%,
    37% 38%
  );
}

.shape--dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* --- Stage --- */

.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 10vh, 6.5rem) 0 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  width: min(420px, 88vw);
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  opacity: 0;
  animation: rise 1s ease forwards 0.15s, pulse-soft 5.5s ease-in-out 1.2s infinite;
}

.badge {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(255, 215, 49, 0.35);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.35s;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255, 215, 49, 0.55);
  animation: ping 1.8s ease-out infinite;
}

.headline {
  margin: 1.35rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 1s ease forwards 0.45s;
}

.headline span {
  color: var(--gold);
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.65;
  font-weight: 300;
  color: var(--muted);
  opacity: 0;
  animation: rise 1s ease forwards 0.55s;
}

.meta {
  margin-top: 2rem;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1.4rem;
  opacity: 0;
  animation: rise 1s ease forwards 0.65s;
}

.meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 8rem;
}

.meta__label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

.meta__value {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.8vw, 1.35rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}

.meta__divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 215, 49, 0.55), transparent);
}

.cta {
  margin-top: 2.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.55rem;
  background: var(--gold);
  color: #111;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 30px rgba(255, 215, 49, 0.2);
  opacity: 0;
  animation: rise 1s ease forwards 0.75s;
}

.cta:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 215, 49, 0.28);
}

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

.cta__arrow {
  transition: transform 0.25s ease;
}

.cta:hover .cta__arrow {
  transform: translateX(3px);
}

.socials {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  opacity: 0;
  animation: rise 1s ease forwards 0.85s;
}

.socials a {
  color: var(--soft);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.socials a:hover {
  color: var(--gold);
}

.footer {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1rem 1.75rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--soft);
  opacity: 0;
  animation: rise 1s ease forwards 0.95s;
}

/* --- Motion --- */

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

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 49, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 215, 49, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 49, 0);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes drift-bg {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes float-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translate3d(6px, -14px, 0) rotate(calc(var(--r, 0deg) + 8deg));
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translate3d(-8px, 12px, 0) rotate(calc(var(--r, 0deg) - 10deg));
  }
}

@media (max-width: 560px) {
  .stage {
    width: min(720px, calc(100% - 1.5rem));
    padding-top: clamp(2rem, 8vh, 3.5rem);
  }

  .logo {
    width: min(340px, 90vw);
  }

  .badge {
    margin-top: 1.35rem;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
  }

  .headline {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .lead {
    font-size: 0.98rem;
    padding: 0 0.15rem;
  }

  .meta {
    gap: 0.85rem;
    width: 100%;
  }

  .meta__item {
    min-width: 0;
    flex: 1;
  }

  .shape--bar,
  .shape--bar-thin {
    width: 24px;
    height: 6px;
  }

  .shape--star,
  .shape--burst {
    width: 12px;
    height: 12px;
  }

  .cta {
    width: min(100%, 280px);
    justify-content: center;
  }

  .socials {
    gap: 1rem 1.25rem;
  }
}

@media (max-width: 360px) {
  .meta {
    flex-direction: column;
    gap: 1rem;
  }

  .meta__divider {
    width: 48px;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 49, 0.55), transparent);
  }

  .meta__value {
    white-space: normal;
  }
}

@media (min-width: 1200px) {
  .logo {
    width: min(460px, 40vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bg__image,
  .logo,
  .shape {
    animation: none !important;
  }

  .logo,
  .badge,
  .headline,
  .lead,
  .meta,
  .cta,
  .socials,
  .footer {
    opacity: 1;
  }
}
