:root {
  --ink: #07111d;
  --text: #f4fbff;
  --muted: rgba(244, 251, 255, 0.72);
  --sun: #ffc43a;
  --ember: #ff6a12;
  --ice: #2ad4ff;
  --night: #061526;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Fredoka", system-ui, sans-serif;
  color: var(--text);
  background: var(--night);
  overflow-x: hidden;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 70% at 50% -20%, #1a6fa8 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 0% 100%, #c44a12 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 85%, #0e7ca8 0%, transparent 48%),
    linear-gradient(180deg, #0a2a45 0%, #061526 55%, #040e18 100%);
}

.scene__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  animation: drift 10s ease-in-out infinite alternate;
}

.scene__glow--a {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: #ff9a3c;
}

.scene__glow--b {
  width: min(40vw, 280px);
  height: min(40vw, 280px);
  right: -5%;
  bottom: 12%;
  background: #1ec8ff;
  animation-delay: -3s;
}

.scene__grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.scene__spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #fff8;
  animation: spark 4.5s ease-in-out infinite;
}

.s1 { top: 18%; left: 16%; animation-delay: 0s; }
.s2 { top: 34%; right: 18%; animation-delay: 1.4s; }
.s3 { bottom: 22%; left: 28%; animation-delay: 2.6s; }

@keyframes drift {
  from { transform: translateX(-50%) translateY(0); }
  to { transform: translateX(-50%) translateY(18px) scale(1.06); }
}

.scene__glow--b {
  animation-name: drift-b;
}

@keyframes drift-b {
  from { transform: translate(0, 0); }
  to { transform: translate(-18px, -22px) scale(1.08); }
}

@keyframes spark {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.25); }
}

.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.4rem, 5vw, 3rem);
  gap: 0.7rem;
}

.brand,
.gift,
.title,
.lead,
.cta,
.note {
  animation: enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand { animation-delay: 0.05s; }
.gift { animation-delay: 0.14s; }
.title { animation-delay: 0.24s; }
.lead { animation-delay: 0.32s; }
.cta { animation-delay: 0.4s; }
.note { animation-delay: 0.48s; }

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 11vw, 5.4rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
  background: linear-gradient(180deg, #fff 10%, var(--sun) 55%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.22));
}

.gift {
  width: min(42vw, 190px);
  margin: 0.35rem 0 0.15rem;
  animation-name: enter, float;
  animation-duration: 0.85s, 3.4s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1), ease-in-out;
  animation-fill-mode: both, none;
  animation-iteration-count: 1, infinite;
  animation-delay: 0.14s, 1s;
}

.gift svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

.title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 4.2vw, 1.9rem);
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.lead {
  max-width: 30rem;
  font-size: clamp(0.98rem, 2.5vw, 1.12rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--muted);
}

.cta {
  margin-top: 0.55rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sun) 0%, var(--ember) 100%);
  padding: 0.95rem 2.1rem;
  border-radius: 16px;
  box-shadow: 0 5px 0 #b84800;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.cta:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #b84800;
}

.cta:disabled {
  cursor: wait;
  opacity: 0.85;
}

.cta.is-pulse {
  animation: pulse 0.55s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  40% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

.note {
  margin-top: 0.2rem;
  max-width: 26rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(244, 251, 255, 0.58);
  min-height: 1.35em;
  transition: color 0.2s ease;
}

.note.ok { color: #8dffb8; }
.note.warn { color: #ffd27a; }

@media (max-width: 480px) {
  .hero {
    justify-content: flex-start;
    padding-top: 14vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
