/* ── Reset & Base ──────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 30% 20%, #0f1b3d 0%, #090e1f 60%, #05080f 100%);
  background-attachment: fixed;
  font-family: 'Inter', sans-serif;
  color: #cdd6e8;
  padding: 2rem;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

/* ── Animated Stars ───────────────────────────── */
#stars-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffffff;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--brightness); }
}

/* ── Main Container ───────────────────────────── */
#main-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
  text-align: center;
  animation: fadeUp 1s ease-out both;
}

/* ── Typography ───────────────────────────────── */
.eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #7b8fb8;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease-out both;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 3.8rem);
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s ease-out both;
}

.subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: #8e9fbe;
  margin-bottom: 2.4rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s ease-out both;
}

/* ── Voucher Card ─────────────────────────────── */
#voucher-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(30, 60, 120, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s ease-out both;
}

#voucher-container:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 10px 50px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(40, 80, 160, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

#voucher-image {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Footer Note ──────────────────────────────── */
.footer-note {
  margin-top: 2rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #6a7da3;
  opacity: 0;
  animation: fadeUp 0.8s 1s ease-out both;
}

/* ── Animations ───────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive: Tablet ───────────────────────── */
@media (max-width: 768px) {
  body {
    padding: 1.5rem;
  }

  .subtitle {
    margin-bottom: 1.8rem;
  }

  .footer-note {
    margin-top: 1.6rem;
  }
}

/* ── Responsive: Mobile ───────────────────────── */
@media (max-width: 480px) {
  body {
    padding: 1rem 0.6rem;
    align-items: flex-start;
    padding-top: 15dvh;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.3rem;
  }

  h1 {
    font-size: clamp(1.6rem, 9vw, 2.4rem);
    margin-bottom: 0.3rem;
  }

  .subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
  }

  #voucher-container {
    border-radius: 8px;
    margin-left: -0.2rem;
    margin-right: -0.2rem;
  }

  .footer-note {
    margin-top: 1.4rem;
    font-size: 1rem;
    padding-bottom: 2rem;
  }
}

/* ── Responsive: Small phones ─────────────────── */
@media (max-width: 360px) {
  body {
    padding: 0.8rem 0.4rem;
    padding-top: 10dvh;
  }

  h1 {
    font-size: clamp(1.4rem, 10vw, 2rem);
  }

  .eyebrow {
    font-size: 0.65rem;
  }

  .subtitle {
    font-size: 0.82rem;
    margin-bottom: 1.2rem;
  }

  #voucher-container {
    border-radius: 6px;
    margin-left: -0.3rem;
    margin-right: -0.3rem;
  }
}
