/* Hero: launch countdown + India map + glass card + edge-case bubbles */

.hero-visual.hero-map-panel {
  width: min(560px, 96%);
  margin-left: auto;
}

/* Countdown + CTA */
.launch-countdown {
  text-align: center;
  margin-bottom: 1rem;
  padding: 1rem 1rem 1.2rem;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(253, 250, 246, 0.88) 0%, rgba(230, 219, 200, 0.42) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 32px rgba(26, 26, 24, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.launch-countdown-slogan {
  font-family: "Playfair Display", serif;
  font-size: clamp(0.95rem, 2.1vw, 1.08rem);
  font-weight: 500;
  margin: 0 0 0.4rem;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.launch-countdown-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.launch-countdown-digits {
  display: flex;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  flex-wrap: wrap;
  margin: 0.7rem 0 0.85rem;
}

.launch-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3rem;
}

.launch-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.2rem, 3.2vw, 1.65rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.launch-unit {
  font-family: "IBM Plex Mono", monospace;
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.launch-countdown-cta {
  margin-top: 0.15rem;
}

.hero-map-quote {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
  text-align: center;
}

.hero-map-quote-line {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-map-quote-em {
  color: var(--accent);
  font-style: normal;
  letter-spacing: 0.08em;
}

.hero-map-glass {
  position: relative;
  border-radius: 22px;
  padding: 1.1rem 0.75rem 1.35rem;
  background: linear-gradient(
    145deg,
    rgba(253, 250, 246, 0.78) 0%,
    rgba(253, 250, 246, 0.42) 48%,
    rgba(230, 219, 200, 0.35) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 4px 2px rgba(255, 255, 255, 0.55) inset,
    0 12px 40px rgba(26, 26, 24, 0.1),
    0 2px 0 rgba(26, 26, 24, 0.04);
  overflow: visible;
}

.hero-map-captions,
.hero-map-orbit {
  position: relative;
  z-index: 1;
}

.hero-map-captions {
  margin: 0 0 0.65rem;
  padding: 0 0.5rem;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.hero-map-captions-dot {
  opacity: 0.55;
}

.hero-map-orbit {
  --ring-inner: min(148px, 36vw);
  --ring-outer: min(200px, 48vw);
  position: relative;
  width: 100%;
  min-height: min(460px, 108vw);
  max-width: 440px;
  margin: 0 auto;
  /* No isolation — lets mix-blend-mode composite against the glass gradient */
}

.hero-map-pop {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  animation: hero-map-float 5.5s ease-in-out 1s infinite;
  pointer-events: none;
  background: transparent;
  /* No filter here — parent filter() isolates the subtree and can paint a white backing
     behind the map, defeating mix-blend on the image */
}

.hero-map-pop-inner {
  opacity: 0;
  animation: hero-map-enter 0.88s cubic-bezier(0.25, 0.9, 0.32, 1) forwards;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.hero-map-img {
  display: block;
  width: auto;
  max-width: min(300px, 72vw);
  height: auto;
  margin: 0 auto;
  border-radius: 0;
  background: transparent;
  /* Fade rectangular PNG matte (opaque white canvas around the relief) */
  -webkit-mask-image: url("/assets/svg/india-map-hero-mask.svg");
  mask-image: url("/assets/svg/india-map-hero-mask.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  /* White map tones → blend into cream glass */
  mix-blend-mode: multiply;
  filter: sepia(0.16) saturate(0.9) hue-rotate(348deg) brightness(1.04) contrast(1.03)
    drop-shadow(0 14px 28px rgba(26, 26, 24, 0.12));
  transform: perspective(520px) rotateX(5deg) translateZ(0);
}

@keyframes hero-map-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-map-float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-7px);
  }
}

.edge-bubble--orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  max-width: 104px;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 26, 24, 0.22);
  background: rgba(253, 250, 246, 0.88);
  font-family: "IBM Plex Mono", monospace;
  font-size: 7.5px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--text-primary);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 2px 10px rgba(26, 26, 24, 0.06);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
}

.edge-bubble--ring1 {
  --r: var(--ring-inner);
}

.edge-bubble--ring2 {
  --r: var(--ring-outer);
  border-color: rgba(214, 107, 59, 0.28);
  background: rgba(255, 252, 248, 0.92);
}

@media (max-width: 420px) {
  .edge-bubble--orbit {
    font-size: 7px;
    max-width: 92px;
    padding: 0.26rem 0.42rem;
  }

  .hero-map-orbit {
    min-height: min(420px, 102vw);
  }

  .hero-map-img {
    max-width: min(280px, 78vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-map-pop {
    animation: none;
  }

  .hero-map-pop-inner {
    animation: none;
    opacity: 1;
  }

  .hero-map-img {
    transform: none;
  }
}
