:root {
  color-scheme: dark;
  --ink: #fff7ec;
  --soft: rgba(255, 247, 236, 0.72);
  --gold: #f6c96b;
  --rose: #ff7aa8;
  --wine: #361427;
  --night: #09070d;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 122, 168, 0.22), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(246, 201, 107, 0.14), transparent 28%),
    linear-gradient(145deg, #09070d 0%, #160d19 42%, #0c1019 100%);
}

button {
  font: inherit;
}

.scene {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  isolation: isolate;
}

.scene::before,
.scene::after {
  content: "";
  position: absolute;
  inset: 9%;
  z-index: -2;
  border: 1px solid rgba(255, 247, 236, 0.07);
  border-radius: 999px;
  transform: rotate(-10deg);
}

.scene::after {
  inset: 18%;
  border-color: rgba(246, 201, 107, 0.11);
  filter: blur(0.2px);
  transform: rotate(12deg);
}

.glow {
  position: absolute;
  z-index: -3;
  width: 46vmin;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.72;
}

.glow-one {
  top: 10%;
  right: 16%;
  background: rgba(255, 122, 168, 0.34);
}

.glow-two {
  bottom: 7%;
  left: 12%;
  background: rgba(246, 201, 107, 0.22);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 76%);
}

.card {
  position: relative;
  width: min(520px, 100%);
  min-height: min(520px, calc(100vh - 56px));
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(34px, 7vmin, 58px);
  padding: clamp(34px, 8vmin, 72px);
  border: 1px solid rgba(255, 247, 236, 0.13);
  border-radius: clamp(28px, 7vmin, 52px);
  background:
    linear-gradient(145deg, rgba(255, 247, 236, 0.11), rgba(255, 247, 236, 0.035)),
    rgba(9, 7, 13, 0.42);
  box-shadow:
    0 42px 140px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(246, 201, 107, 0.12);
  border-radius: inherit;
  pointer-events: none;
}

.halo {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(246, 201, 107, 0.2), transparent 60%),
    conic-gradient(from 160deg, transparent, rgba(255, 122, 168, 0.24), transparent, rgba(246, 201, 107, 0.22), transparent);
  filter: blur(2px);
  opacity: 0.9;
  animation: drift 12s linear infinite;
}

h1 {
  position: relative;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 18vw, 8.8rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.11em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 26px 70px rgba(255, 122, 168, 0.2);
}

.download-button {
  position: relative;
  min-width: min(74vw, 260px);
  padding: 18px 28px;
  border: 1px solid rgba(246, 201, 107, 0.42);
  border-radius: 999px;
  color: #1d1015;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.85), transparent 23%),
    linear-gradient(135deg, #fff0ba, var(--gold) 42%, #ff9f83 100%);
  box-shadow:
    0 18px 55px rgba(246, 201, 107, 0.24),
    0 8px 18px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.download-button:hover {
  transform: translateY(-3px);
  filter: saturate(1.08);
  box-shadow:
    0 26px 70px rgba(255, 122, 168, 0.3),
    0 10px 22px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.download-button:active {
  transform: translateY(0) scale(0.985);
}

@keyframes drift {
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 560px) {
  .scene {
    padding: 18px;
  }

  .card {
    min-height: min(520px, calc(100vh - 36px));
  }
}
