/* ========================================
   CREAM CHERRY — Hero (Premium Redesign)
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  /* Pull behind fixed header + announcement bar */
  margin-top: 0;
  padding-top: calc(var(--header-h) + 36px);
  background: var(--red);
  overflow: hidden;   /* contains blobs, rings, float-tags */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Smooth bottom edge — no white wave line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.08));
  pointer-events: none;
  z-index: 1;
}

/* ── Rich layered background ── */
.hero__bg { position: absolute; inset: 0; pointer-events: none; }

/* Large ambient blobs */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.hero__blob--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #E8293D 0%, transparent 70%);
  opacity: 0.5;
  top: -200px; left: -200px;
}
.hero__blob--2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #8B0000 0%, transparent 70%);
  opacity: 0.45;
  bottom: -100px; right: -50px;
}
.hero__blob--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #FF3A55 0%, transparent 70%);
  opacity: 0.2;
  top: 40%; left: 45%;
}

/* Subtle dot grid */
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Diagonal texture lines */
.hero__lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 60px,
    rgba(255,255,255,0.025) 60px,
    rgba(255,255,255,0.025) 61px
  );
}

/* ── Main container ── */
.hero__container {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 3rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 36px);
}

/* ── LEFT: Content ── */
.hero__content { display: flex; flex-direction: column; }

/* Top label */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}
.hero__eyebrow-line {
  display: block;
  width: 32px; height: 1px;
  background: rgba(255,255,255,0.4);
}

/* Main headline */
.hero__headline {
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}
.hero__headline-pre {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.2rem;
}
.hero__headline-main {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 900;
  color: white;
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.hero__headline-main em {
  font-style: italic;
  color: #FFD0D8;
}
.hero__headline-sub {
  display: block;
  font-family: var(--font-accent);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: rgba(255,208,216,0.85);
  font-weight: 700;
  margin-top: 0.25rem;
}

/* Description */
.hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.78;
  max-width: 480px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}

/* CTA buttons */
.hero__cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.4s both;
}

/* Primary CTA: white pill */
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: white;
  color: var(--red);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-family: var(--font-body);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.3s cubic-bezier(0.22,1,0.36,1);
}
.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

/* Secondary CTA: transparent pill */
.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: rgba(255,255,255,0.1);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-family: var(--font-body);
  border: 1.5px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(4px);
  transition: background 0.3s, transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}

/* Stats bar */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.5s both;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  background: rgba(0,0,0,0.12);
  backdrop-filter: blur(8px);
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.6rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  min-width: 100px;
}
.hero-stat:last-child { border-right: none; }

.hero-stat__value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}
.hero-stat__label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* ── RIGHT: Visual ── */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.25s both;
  overflow: visible; /* rings handled by hero overflow:hidden */
}

/* Central ice cream illustration */
.hero__product {
  position: relative;
  width: min(480px, 100%);
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glow ring behind ice cream */
.hero__glow {
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,220,230,0.2) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  50%      { transform: translate(-50%,-50%) scale(1.12); opacity: 0.7; }
}

.hero__icecream {
  width: min(440px, 90vw);
  max-width: 100%;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.30))
          drop-shadow(0 10px 24px rgba(0,0,0,0.20));
  animation: floatIce 5s ease-in-out infinite;
  position: relative;
  z-index: 2;
  /* ensure transparent PNG background stays clean */
  image-rendering: -webkit-optimize-contrast;
}
@keyframes floatIce {
  0%,100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-20px) rotate(1.5deg); }
}

/* Floating flavour pills */
.float-tag {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-800);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255,255,255,0.6);
  z-index: 3;
}

.float-tag--1 { top: 8%;    left: -6%;  animation: tagFloat 3.8s ease-in-out infinite 0s; }
.float-tag--2 { top: 32%;   right: -6%; animation: tagFloat 4.2s ease-in-out infinite 0.5s; }
.float-tag--3 { bottom: 30%;left: -8%;  animation: tagFloat 3.5s ease-in-out infinite 1s; }
.float-tag--4 { bottom: 12%;right: -8%; animation: tagFloat 4.5s ease-in-out infinite 1.5s; }

@keyframes tagFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Decorative ring accent */
.hero__ring {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: ringRotate 30s linear infinite;
}
.hero__ring--2 {
  width: 560px; height: 560px;
  border-color: rgba(255,255,255,0.04);
  animation-duration: 45s;
  animation-direction: reverse;
}
@keyframes ringRotate {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

/* Small decorative dots on ring */
.hero__ring::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  top: 0; left: 50%;
  transform: translateX(-50%);
}

/* wave removed */

/* ── Scroll indicator ── */
.hero__scroll {
  position: absolute;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero__scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
  50%      { transform: translateX(-50%) translateY(6px); opacity: 0.7; }
}

/* ── Fade up animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 8rem;
    gap: 2.5rem;
    align-content: center;
  }
  .hero__eyebrow  { justify-content: center; }
  .hero__desc     { margin: 0 auto 2rem; }
  .hero__cta      { justify-content: center; }
  .hero__stats    { margin: 0 auto; }
  .hero__visual   { order: -1; min-height: 340px; }
  .hero__product  { width: 300px; height: 380px; }
  .hero__icecream { width: 280px; }
  .hero__ring,
  .hero__ring--2  { display: none; } /* avoid overflow on small screens */
  .float-tag--3, .float-tag--4 { display: none; }
  .float-tag--1 { left: 0; }
  .float-tag--2 { right: 0; }
}

@media (max-width: 480px) {
  .hero__headline-main { font-size: clamp(3rem,12vw,4.5rem); }
  .hero-stat { padding: 0.85rem 1.1rem; min-width: 80px; }
  .hero-stat__value { font-size: 1.4rem; }
}
