:root {
  color-scheme: dark;
  --ink: #130f16;
  --paper: #fff8f0;
  --cream: #ffe9bf;
  --gold: #ffc94d;
  --red: #e5263c;
  --blue: #1d8bff;
  --cyan: #77f6ff;
  --shadow: rgba(5, 5, 12, 0.58);
  --glass: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button {
  font: inherit;
}

#fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 92svh;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px clamp(18px, 5vw, 76px) 0;
}

.hero__image,
.hero__shade,
.hero__stage {
  position: absolute;
  inset: 0;
}

.hero__image {
  z-index: -4;
  background:
    image-set(url("./assets/dq-ice-cream-cake-hero.png") 1x) center / cover
      no-repeat;
  transform: scale(1.04);
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hero__shade {
  z-index: -3;
  background:
    radial-gradient(circle at 78% 44%, rgba(255, 212, 86, 0.2), transparent 26%),
    radial-gradient(circle at 20% 24%, rgba(29, 139, 255, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(12, 8, 14, 0.86) 0%, rgba(12, 8, 14, 0.54) 45%, rgba(12, 8, 14, 0.34) 100%),
    linear-gradient(180deg, rgba(7, 6, 9, 0.2), rgba(7, 6, 9, 0.7));
}

.hero__stage {
  z-index: -1;
  opacity: 0;
  animation: stageIn 1.4s ease 0.45s forwards;
}

.hero__stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  z-index: 5;
}

.brand,
.date,
.kicker,
.section-mark {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand::before {
  content: "";
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.9) 51% 58%, transparent 59%),
    linear-gradient(100deg, var(--red), var(--blue));
  box-shadow: 0 0 24px rgba(255, 201, 77, 0.46);
}

.date {
  color: var(--cream);
  background: rgba(19, 15, 22, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 9px 13px;
  backdrop-filter: blur(14px);
}

.hero__copy {
  align-self: center;
  width: min(760px, 100%);
  padding: 72px 0 90px;
  z-index: 4;
}

.kicker {
  display: inline-flex;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(119, 246, 255, 0.66);
  margin: 0 0 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 20px;
  font-size: clamp(58px, 9vw, 138px);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow:
    0 8px 0 rgba(229, 38, 60, 0.2),
    0 0 42px rgba(255, 201, 77, 0.5),
    0 24px 72px rgba(0, 0, 0, 0.44);
  animation: headlinePop 950ms cubic-bezier(0.17, 0.84, 0.44, 1) both;
}

.lead {
  width: min(650px, 100%);
  margin-bottom: 22px;
  color: rgba(255, 248, 240, 0.9);
  font-size: 20px;
  line-height: 1.7;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.48);
  animation: copyRise 900ms ease 180ms both;
}

.name-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #171216;
  background:
    linear-gradient(135deg, rgba(255, 248, 240, 0.94), rgba(255, 201, 77, 0.95)),
    linear-gradient(90deg, var(--red), var(--blue));
  box-shadow:
    0 18px 48px rgba(255, 201, 77, 0.26),
    0 0 0 6px rgba(255, 255, 255, 0.08);
  animation: copyRise 900ms ease 250ms both, nameGlow 2.6s ease-in-out infinite;
}

.name-badge::after {
  content: "";
  position: absolute;
  top: -6px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow:
    18px 12px 0 var(--red),
    -22px 18px 0 var(--blue),
    3px 30px 0 var(--paper);
}

.name-badge span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--paper);
  background: linear-gradient(135deg, var(--red), var(--blue));
  font-size: 12px;
  font-weight: 900;
}

.name-badge strong {
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: copyRise 900ms ease 320ms both;
}

.button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: var(--paper);
  cursor: pointer;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  transition:
    transform 180ms ease,
    filter 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-3px) scale(1.02);
  filter: saturate(1.15);
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button--primary {
  background: linear-gradient(135deg, var(--red), #ff7b36 48%, var(--gold));
}

.button--ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
}

.hero__ticker {
  width: calc(100% + 152px);
  margin-left: clamp(-76px, -5vw, -18px);
  display: flex;
  gap: 42px;
  white-space: nowrap;
  padding: 18px 0 22px;
  color: rgba(255, 248, 240, 0.78);
  background: linear-gradient(90deg, rgba(229, 38, 60, 0.76), rgba(29, 139, 255, 0.65), rgba(255, 201, 77, 0.68));
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  transform: rotate(-1deg);
  overflow: hidden;
}

.hero__ticker span {
  flex: 0 0 auto;
  font-weight: 900;
  font-size: 17px;
  animation: ticker 11s linear infinite;
}

.wish-band {
  position: relative;
  z-index: 2;
  background:
    linear-gradient(120deg, rgba(255, 248, 240, 0.08), transparent 34%),
    linear-gradient(135deg, #fff2d8 0%, #f9fafb 46%, #dcf8ff 100%);
  color: #171216;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 76px);
}

.wish-band__inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-mark {
  color: #c1182c;
  margin-bottom: 12px;
}

h2 {
  max-width: 780px;
  margin-bottom: 34px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.wish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.wish-grid article {
  min-height: 220px;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at top right, rgba(255, 201, 77, 0.32), transparent 42%);
  border: 1px solid rgba(23, 18, 22, 0.11);
  box-shadow: 0 24px 70px rgba(28, 32, 40, 0.12);
  transform: translateY(0);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.wish-grid article:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 90px rgba(28, 32, 40, 0.18);
}

.wish-grid span {
  display: inline-flex;
  color: #1b76d8;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 34px;
}

h3 {
  margin-bottom: 12px;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: 0;
}

.wish-grid p {
  margin-bottom: 0;
  color: rgba(23, 18, 22, 0.72);
  font-size: 17px;
  line-height: 1.7;
}

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

@keyframes stageIn {
  to {
    opacity: 1;
  }
}

@keyframes headlinePop {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.94);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

@keyframes nameGlow {
  0%,
  100% {
    filter: saturate(1);
    transform: translateY(0);
  }
  50% {
    filter: saturate(1.22);
    transform: translateY(-2px);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-260px);
  }
}

@media (max-width: 880px) {
  .hero {
    min-height: 94svh;
    padding-top: 18px;
  }

  .hero__shade {
    background:
      radial-gradient(circle at 50% 32%, rgba(255, 212, 86, 0.2), transparent 30%),
      linear-gradient(180deg, rgba(12, 8, 14, 0.58), rgba(12, 8, 14, 0.84) 54%, rgba(12, 8, 14, 0.82));
  }

  .hero__stage {
    opacity: 0.76;
  }

  .hero__copy {
    align-self: end;
    padding: 120px 0 78px;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(48px, 18vw, 84px);
  }

  .lead {
    font-size: 18px;
  }

  .name-badge {
    margin-bottom: 22px;
  }

  .name-badge strong {
    font-size: 22px;
  }

  .wish-grid {
    grid-template-columns: 1fr;
  }

  .wish-grid article {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .topbar {
    align-items: flex-start;
  }

  .date {
    padding: 8px 10px;
  }

  .button {
    width: 100%;
  }
}

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