.glow-orb {
  position: absolute;
  width: 480px;
  height: 480px;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  z-index: 0;
  animation: pulseOrb 10s ease-in-out infinite alternate;
  pointer-events: none;
}
.glow-orb.orb-1 {
  top: -120px;
  left: 50%;
  transform: translateX(-65%);
}
.glow-orb.orb-2 {
  bottom: -160px;
  right: 50%;
  transform: translateX(60%);
  background: var(--cat-travel);
  opacity: 0.12;
}

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 60px;
  isolation: isolate;
  background:
    radial-gradient(ellipse 78% 72% at 50% 42%, rgba(250, 58, 127, 0.10), transparent 72%),
    radial-gradient(ellipse 42% 48% at 82% 70%, rgba(0, 202, 253, 0.08), transparent 74%);
}

.hero::before {
  content: '';
  position: absolute;
  /* Overscan removes the visible edge the previous inset background created. */
  inset: -22% -16%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 36%, rgba(250, 58, 127, 0.22), transparent 25%),
    radial-gradient(circle at 78% 34%, rgba(0, 202, 253, 0.18), transparent 24%),
    radial-gradient(circle at 52% 72%, rgba(214, 114, 215, 0.14), transparent 29%);
  filter: blur(24px);
  opacity: 0.92;
}

.hero-orb {
  position: absolute;
  z-index: 0;
  width: clamp(160px, 24vw, 280px);
  height: clamp(160px, 24vw, 280px);
  border-radius: 50%;
  border: 1px solid rgba(250, 58, 127, 0.16);
  background: radial-gradient(circle, rgba(250, 58, 127, 0.10), transparent 64%);
  pointer-events: none;
}
.hero-orb-1 {
  top: 16%;
  left: 11%;
  animation: heroOrbDrift 16s ease-in-out infinite alternate;
}
.hero-orb-2 {
  right: 12%;
  bottom: 12%;
  border-color: rgba(0, 202, 253, 0.15);
  background: radial-gradient(circle, rgba(0, 202, 253, 0.09), transparent 64%);
  animation: heroOrbDrift 18s 1.2s ease-in-out infinite alternate-reverse;
}

.hero-heart-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-heart,
.hero-spark {
  position: absolute;
  bottom: -56px;
  opacity: 0;
  will-change: transform, opacity;
}

.hero-heart {
  color: var(--primary);
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 10px 24px rgba(250, 58, 127, 0.25));
  animation: heroHeartFloat 14s ease-in-out infinite;
}

.hero-spark {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cat-travel);
  box-shadow: 0 0 24px rgba(0, 202, 253, 0.45);
  animation: heroSparkFloat 12s ease-in-out infinite;
}

.heart-1 { left: 8%;  font-size: 16px; animation-delay: -2.2s; animation-duration: 13s; }
.heart-2 { left: 18%; font-size: 24px; animation-delay: -8.1s; animation-duration: 16s; color: var(--cat-places); }
.heart-3 { left: 32%; font-size: 14px; animation-delay: -4.4s; animation-duration: 12s; color: var(--cat-games); }
.heart-4 { left: 47%; font-size: 20px; animation-delay: -11.2s; animation-duration: 15s; }
.heart-5 { left: 62%; font-size: 15px; animation-delay: -6.5s; animation-duration: 14s; color: var(--cat-score); }
.heart-6 { left: 74%; font-size: 26px; animation-delay: -1.9s; animation-duration: 17s; color: var(--cat-places); }
.heart-7 { left: 86%; font-size: 17px; animation-delay: -9.7s; animation-duration: 13.5s; }
.heart-8 { left: 94%; font-size: 13px; animation-delay: -5.1s; animation-duration: 15.5s; color: var(--cat-travel); }
.spark-1 { left: 24%; animation-delay: -3.1s; }
.spark-2 { left: 54%; animation-delay: -7.4s; animation-duration: 14s; background: var(--cat-act); box-shadow: 0 0 24px rgba(255, 217, 61, 0.35); }
.spark-3 { left: 82%; animation-delay: -5.9s; animation-duration: 13s; background: var(--cat-games); box-shadow: 0 0 24px rgba(214, 114, 215, 0.40); }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--sp-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: var(--fw-black);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
  animation: fadeInUp 0.9s 0.1s var(--ease) both;
  max-width: 19ch;
  text-wrap: balance;
}

.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-soft-2);
  color: var(--primary);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-6);
  animation: fadeInDown 0.9s var(--ease) both;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-main);
  opacity: 0.74;
  margin-bottom: var(--sp-6);
  max-width: 52ch;
  line-height: var(--lh-relaxed);
  animation: fadeInUp 0.9s 0.25s var(--ease) both;
}

.hero-cta-group {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: 0;
  animation: fadeInUp 0.9s 0.4s var(--ease) both;
  justify-content: center;
}

.hero-store-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--surface-solid);
  border: 1px solid var(--border-color);
  padding: 14px 24px;
  border-radius: var(--r-input);
  color: var(--text-main);
  text-decoration: none;
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  font-family: inherit;
  will-change: transform;
}
.hero-store-btn:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--primary-tint-shadow);
}
.hero-store-btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.08s;
}
.hero-store-btn svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
.hero-store-btn-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.hero-store-btn-name {
  display: block;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--cat-travel) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  border-radius: var(--r-pill);
  white-space: nowrap;
  color: var(--text-main);
  z-index: 5;
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  cursor: default;
}
.floating-badge:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--border-hover);
}
.floating-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

.float-1 {
  top: 28%;
  left: 6%;
  animation: badgeFloat1 7s ease-in-out infinite;
}
.float-2 {
  bottom: 18%;
  right: 5%;
  animation: badgeFloat2 8s ease-in-out infinite;
}
.float-3 {
  top: 20%;
  right: 7%;
  animation: badgeFloat3 6s ease-in-out infinite;
}

@keyframes badgeFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50%      { transform: translate(-10px, -14px) rotate(2deg); }
}
@keyframes badgeFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(1deg); }
  50%      { transform: translate(12px, -14px) rotate(-2deg); }
}
@keyframes badgeFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(-1deg); }
  50%      { transform: translate(-8px, -16px) rotate(3deg); }
}

@keyframes heroHeartFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 32px, 0) rotate(-8deg) scale(0.84);
  }
  12% {
    opacity: 0.68;
  }
  50% {
    opacity: 0.34;
    transform: translate3d(24px, -48vh, 0) rotate(10deg) scale(1);
  }
  86% {
    opacity: 0.16;
  }
  100% {
    opacity: 0;
    transform: translate3d(-18px, -104vh, 0) rotate(24deg) scale(1.18);
  }
}

@keyframes heroSparkFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.7);
  }
  18% {
    opacity: 0.56;
  }
  100% {
    opacity: 0;
    transform: translate3d(18px, -82vh, 0) scale(1.25);
  }
}

@keyframes heroOrbDrift {
  0% { transform: translate3d(-10px, 0, 0) scale(0.96); }
  100% { transform: translate3d(16px, -18px, 0) scale(1.04); }
}

@media (max-width: 960px) {
  .hero-content {
    padding: 0 var(--sp-4);
  }
  .hero h1 {
    font-size: clamp(32px, 8vw, 52px);
    max-width: 14ch;
  }
  .hero-sub {
    font-size: 16px;
  }
  .float-1 {
    top: 12%;
    left: 4%;
    font-size: 12px;
    padding: 8px 12px;
  }
  .float-2 {
    bottom: 8%;
    right: 4%;
    font-size: 12px;
    padding: 8px 12px;
  }
  .float-3 {
    top: 10%;
    right: 4%;
    font-size: 12px;
    padding: 8px 12px;
  }
}

@media (max-width: 640px) {
  .hero { padding-top: 88px; }
  .hero h1 { font-size: clamp(28px, 9vw, 42px); max-width: 12ch; }
  .hero-sub { font-size: 15px; margin-bottom: var(--sp-6); }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-store-btn { width: 100%; justify-content: center; }
  .floating-badge { display: none; }
  .glow-orb.orb-1, .glow-orb.orb-2 { display: none; }
  .hero-orb { opacity: 0.55; }
  .hero-heart:nth-child(odd) { display: none; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-heart-field { display: none; }
  .hero-orb {
    animation: none;
  }
}
