:root {
  --ink: #1b140b;
  --cream: #fff5dc;
  --saffron: #ff9f1c;
  --deep-red: #9a031e;
  --turmeric: #ffbf69;
  --teal: #004e64;
  --card: #fff8e8;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, #ffd79d 0, transparent 28%),
    radial-gradient(circle at 85% 80%, #ffb703 0, transparent 25%),
    linear-gradient(135deg, #ffe5b0 0%, #ffc769 35%, #ffa62b 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  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='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

.blessing-ray {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  mix-blend-mode: normal;
}

.blessing-ray::before,
.blessing-ray::after {
  content: "";
  position: absolute;
  opacity: 0;
}

.blessing-ray::before {
  top: -52vh;
  left: 50%;
  width: min(118vw, 1060px);
  height: 175vh;
  transform: translateX(-50%) scaleX(0.2) scaleY(0.07);
  transform-origin: top center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 242, 190, 0.86) 24%,
    rgba(255, 212, 122, 0.38) 58%,
    rgba(255, 212, 122, 0) 100%
  );
  clip-path: polygon(49% 0%, 51% 0%, 88% 100%, 12% 100%);
  filter: blur(4px);
}

.blessing-ray::after {
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 244, 208, 0.48) 15%, rgba(255, 244, 208, 0) 42%),
    radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.66) 0%, rgba(255, 255, 255, 0) 58%);
  transform: scale(0.9);
}

.blessing-ray.active {
  animation: screen-flash 1000ms linear;
}

.blessing-ray.active::before {
  animation: ray-strike 1000ms cubic-bezier(0.17, 0.85, 0.22, 1);
}

.blessing-ray.active::after {
  animation: ray-bloom 1000ms ease-out;
}

main {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
  background: var(--deep-red);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.65rem 0;
  border-bottom: 3px solid #570214;
}

.ticker-track {
  display: inline-flex;
  gap: 2rem;
  animation: ticker 18s linear infinite;
  min-width: 200%;
}

.ticker-track span::before {
  content: "✦";
  margin-right: 0.6rem;
  color: var(--turmeric);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 4rem 0 2rem;
  align-items: center;
}

.tag {
  display: inline-block;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  background: #fff2;
  border: 2px solid #0002;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(4.2rem, 12vw, 8rem);
  line-height: 0.88;
  margin-top: 0.8rem;
  text-shadow: 4px 4px 0 #ffffffd9;
}

.sub {
  max-width: 32ch;
  font-size: 1.1rem;
  margin: 1rem 0 1.35rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.btn {
  text-decoration: none;
  border: 2px solid #000;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-main {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 0 #003645;
}

.btn-main:hover {
  box-shadow: 0 11px 0 #003645;
}

.btn-ghost {
  background: #fff7;
  color: #111;
}

.blessing {
  margin: 0;
  font-weight: 500;
  min-height: 1.4em;
}

.hero-visual {
  margin: 0;
  background: linear-gradient(145deg, #fff5db, #ffe3ae);
  border: 4px solid #0000001c;
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  padding: 1rem;
  transform: rotate(1deg);
}

.hero-visual img {
  display: block;
  width: 100%;
  border-radius: 0.8rem;
  aspect-ratio: 603 / 1302;
  object-fit: cover;
}

.hero-visual figcaption {
  text-align: center;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.lore,
.moment,
.stats,
.hype,
.cta {
  padding: 2rem 0;
}

h2 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  margin-bottom: 0.8rem;
}

.lore p,
.cta p {
  max-width: 65ch;
  line-height: 1.7;
  font-size: 1.05rem;
}

.moment-visual {
  margin: 0 auto;
  max-width: 760px;
  background: linear-gradient(145deg, #fff5db, #ffe3ae);
  border: 4px solid #0000001c;
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.moment-visual img {
  display: block;
  width: 100%;
  border-radius: 0.8rem;
  aspect-ratio: 766 / 1026;
  object-fit: cover;
}

.moment-visual figcaption {
  text-align: center;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.card {
  background: var(--card);
  border: 2px solid #0000001e;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 12px 25px #00000012;
  transform: translateY(0);
  transition: transform 240ms ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.card p {
  margin: 0;
  font-weight: 700;
}

.meter-wrap {
  width: min(620px, 100%);
  background: #ffffffa8;
  border: 2px solid #0000001f;
  border-radius: 999px;
  height: 50px;
  position: relative;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f94144, #f8961e, #43aa8b);
  transition: width 180ms ease;
}

#meterValue {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.cta {
  padding-bottom: 4rem;
}

footer {
  text-align: center;
  padding: 1rem;
  border-top: 2px dashed #00000030;
  background: #ffffff70;
  font-size: 0.9rem;
}

.section-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes screen-flash {
  0% {
    opacity: 1;
  }
  96% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes ray-strike {
  0% {
    opacity: 0;
    transform: translateX(-50%) scaleX(0.14) scaleY(0.05);
  }
  20% {
    opacity: 0.98;
    transform: translateX(-50%) scaleX(1) scaleY(1);
  }
  58% {
    opacity: 0.74;
    transform: translateX(-50%) scaleX(1.06) scaleY(1.1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scaleX(1.12) scaleY(1.2);
  }
}

@keyframes ray-bloom {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }
  18% {
    opacity: 0.92;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blessing-ray,
  .blessing-ray::before,
  .blessing-ray::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.6rem;
  }

  .hero-visual {
    max-width: 540px;
    justify-self: center;
    transform: rotate(0.5deg);
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(3.3rem, 20vw, 4.6rem);
  }

  .sub {
    font-size: 1rem;
  }

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

  .actions {
    width: 100%;
  }

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