:root {
  --red: #e31e24;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* body {
  font-family: "Kanit", sans-serif;
  color: #222;
  background: #fff;
} */

a {
  text-decoration: none;
  color: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 55% at 18% 12%, rgba(255, 210, 190, 0.45) 0%, transparent 52%),
    radial-gradient(ellipse 90% 70% at 72% 36%, rgba(255, 186, 140, 0.55) 0%, rgba(255, 90, 70, 0.12) 42%, transparent 68%),
    linear-gradient(165deg, #ff7a6e 0%, #f0443c 32%, #e31e24 58%, #c4141c 82%, #a01016 100%);
}

.hero__glow {
  position: absolute;
  z-index: 0;
  width: min(640px, 70vw);
  height: min(640px, 70vw);
  left: 58%;
  top: 4%;
  transform: translateX(-28%) scale(0.7);
  background: radial-gradient(
    circle,
    rgba(255, 248, 210, 0.85) 0%,
    rgba(255, 196, 120, 0.45) 28%,
    rgba(255, 110, 80, 0.18) 52%,
    transparent 72%
  );
  filter: blur(6px);
  pointer-events: none;
  animation: hero-bloom 4.8s ease-out infinite;
}

.hero__rays,
.hero__rays--late {
  position: absolute;
  z-index: 0;
  inset: -45% -20%;
  background: repeating-conic-gradient(
    from 0deg at 68% 38%,
    rgba(255, 245, 210, 0) 0deg,
    rgba(255, 236, 180, 0.42) 1.6deg,
    rgba(255, 255, 255, 0) 3.4deg,
    rgba(255, 210, 150, 0.18) 5deg,
    rgba(255, 245, 210, 0) 7.2deg
  );
  mix-blend-mode: soft-light;
  pointer-events: none;
  transform-origin: 68% 38%;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 68% 38%, #000 0%, #000 22%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 68% 38%, #000 0%, #000 22%, transparent 72%);
  animation: hero-sunburst 4.8s ease-out infinite;
}

.hero__rays--late {
  animation-delay: 2.4s;
}

@keyframes hero-sunburst {
  0% {
    opacity: 0;
    transform: scale(0.42) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  42% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: scale(1.45) rotate(22deg);
  }
}

@keyframes hero-bloom-mobile {
  0% {
    opacity: 0.1;
    transform: translateX(-50%) scale(0.62);
  }
  18% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0.08;
    transform: translateX(-50%) scale(1.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__glow,
  .hero__rays,
  .hero__rays--late {
    animation: none;
    opacity: 0.55;
    transform: translateX(-28%) scale(1);
  }

  .hero__rays,
  .hero__rays--late {
    transform: none;
  }

  .cta,
  .cta:hover,
  .cta:active,
  .feature__icon,
  .feature__icon:hover,
  .feature__icon:active {
    transform: none;
    transition: none;
  }
}

.hero-art {
  position: absolute;
  left: 50%;
  top: -40px;
  width: min(880px, 88%);
  height: auto;
  transform: translateX(-50%);
  mix-blend-mode: screen;
  filter: drop-shadow(0 22px 36px rgba(90, 0, 10, 0.38));
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  min-height: 560px;
  padding: 22px 24px 88px;
}

.copy {
  --art-w: min(780px, 88%);
  position: relative;
  z-index: 2;
  width: calc(var(--art-w) * 0.52);
  margin-left: calc(50% - var(--art-w) / 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.title-space {
  height: clamp(196px, 26vw, 272px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #c4121a;
  border: 2px solid #fff;
  color: #fff;
  font-size:18px;
  font-weight: 500;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.badge__wallet {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
}

.badge__coin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe45c, #f0b400);
  color: #c4121a;
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 0 #c98a00;
}

.subhead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size:15px;
  font-weight: 500;
  margin-bottom: 22px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  text-align: left;
}

.subhead__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22c55e;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 0 #15803d;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto 26px;
  width: 100%;
  max-width: 430px;
}

.feature {
  text-align: center;
  position: relative;
  padding: 0 10px;
}

.feature:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  bottom: 28px;
  border-right: 2px dotted rgba(255, 255, 255, 0.55);
}

.feature__icon {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0 auto 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  /* background: linear-gradient(180deg, #ffef5b 0%, #ffd020 40%, #ffb300 78%, #ff9d00 100%); */
  display: grid;
  place-items: center;
  isolation: isolate;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.92),
    inset 0 -3px 5px rgba(210, 100, 0, 0.16),
    0 0 0 1px rgba(255, 236, 150, 0.75),
    0 0 14px 4px rgba(255, 196, 60, 0.65),
    0 0 28px 8px rgba(255, 140, 30, 0.32);
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.feature__icon:hover {
  transform: translateY(-3px);
}

.feature__icon:active {
  transform: translateY(-7px);
}

.feature__icon::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 7px;
  width: 22px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 2;
}

.feature__icon img,
.feature__img {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}

.feature p {
  font-size:14px;
  font-weight: 500;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 360px;
  padding: 13px 34px 14px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe342 0%, #ffd020 42%, #ffaa00 78%, #ff9d00 100%);
  color: #3d1c02;
  font-weight: 800;
  font-size:20px;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.9),
    inset 0 -3px 5px rgba(210, 100, 0, 0.16),
    0 0 0 1px rgba(255, 236, 150, 0.75),
    0 0 16px 4px rgba(255, 196, 60, 0.7),
    0 0 36px 10px rgba(255, 140, 30, 0.38);
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.cta::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 3px;
  width: 22px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.cta:hover {
  filter: brightness(1.05);
  transform: translateY(-3px);
}

.cta:active {
  transform: translateY(-7px);
  filter: brightness(1.08);
}

.cta__chevron {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  color: inherit;
  transform: translateY(-1px);
}

.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size:16px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 78px;
  z-index: 3;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero__inner {
    min-height: 0;
    padding-bottom:20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .copy {
    max-width: 100%;
    display: contents;
  }

  .badge {
    order: -1;
    margin-bottom: 8px;
  }

  .hero-art {
    position: relative;
    left: auto;
    top: 0;
    width: min(400px, 90%);
    transform: none;
    margin: 0 auto 12px;
    display: block;
    order: 0;
  }

  .hero__glow {
    left: 50%;
    top: 18%;
    width: min(420px, 80vw);
    height: min(420px, 80vw);
    animation-name: hero-bloom-mobile;
  }

  .hero__rays,
  .hero__rays--late {
    transform-origin: 50% 32%;
    background: repeating-conic-gradient(
      from 0deg at 50% 32%,
      rgba(255, 245, 210, 0) 0deg,
      rgba(255, 236, 180, 0.42) 1.6deg,
      rgba(255, 255, 255, 0) 3.4deg,
      rgba(255, 210, 150, 0.18) 5deg,
      rgba(255, 245, 210, 0) 7.2deg
    );
    -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 32%, #000 0%, #000 24%, transparent 72%);
    mask-image: radial-gradient(ellipse 80% 55% at 50% 32%, #000 0%, #000 24%, transparent 72%);
  }

  .title-space {
    display: none;
  }

  .subhead,
  .features,
  .cta,
  .trust {
    order: 1;
  }

  .badge,
  .subhead,
  .trust {
    justify-content: center;font-size: 14px;
  }

  .features {
    margin-inline: auto;
  }

  .cta {
    min-width: 0;
    width: min(100%, 360px);
  }
}

@media (max-width: 480px) {
  .hero-art {
    width: min(340px, 94%);
  }

  .feature__icon {
    width: 62px;
    height: 62px;
  }

  .cta {
    font-size: 18px;
  }
}
