/* =========================================
   HERO + STATS — Unified single section
   ========================================= */

/* ── Unified wrapper ────────────────────── */
.hero-stats-unified {
  position: relative;
  background: linear-gradient(180deg,
    #edfaf2 0%,
    #e0f7f0 40%,
    #d0f0ea 65%,
    #b8e8e0 85%,
    #9eddd5 100%
  );
  overflow: hidden;
}

/* Dot grid spans entire unified section */
.hero__bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(42,122,75,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* Soft diagonal wave that separates hero/stats visually but keeps them unified */
.hero-stats-unified::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(92,186,92,0.08));
  pointer-events: none;
  z-index: 0;
}

/* ── HERO SECTION ───────────────────────── */
.hero {
  position: relative;
  padding-top: calc(62px + 16px + var(--sp-20));
  padding-bottom: var(--sp-16);
  background: transparent; /* inherits from unified */
  overflow: visible;
}

/* Remove old hero after gradient (now handled by unified) */
.hero::after { display: none; }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-12);
  min-height: 480px;
}

/* Content */
.hero__content { max-width: 540px; }

.hero__title {
  color: var(--clr-teal);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-5);
}

.hero__title-highlight {
  display: block;
  color: var(--clr-primary-dark);
}

.hero__desc {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-8);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ── PHONE MOCKUP (replaces spinning rings) ── */
.hero__visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.phones-mockup {
  position: relative;
  width: 340px;
  height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Shared phone frame */
.phone-frame {
  position: absolute;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.22),
    0 8px 24px rgba(0,0,0,0.14),
    inset 0 0 0 2px rgba(255,255,255,0.6);
  background: #1a1a2e;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

/* Phone "notch" bar at top */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 6px;
  background: rgba(0,0,0,0.35);
  border-radius: 4px;
  z-index: 10;
}

/* Back phone (splash screen) */
.phone-frame--back {
  width: 180px;
  height: 360px;
  bottom: 0;
  left: 10px;
  transform: rotate(-8deg) translateY(20px);
  z-index: 1;
}
.phone-frame--back:hover {
  transform: rotate(-6deg) translateY(12px) scale(1.02);
}

/* Front phone (app dashboard) */
.phone-frame--front {
  width: 190px;
  height: 380px;
  bottom: 0;
  right: 10px;
  transform: rotate(4deg) translateY(0px);
  z-index: 2;
}
.phone-frame--front:hover {
  transform: rotate(2deg) translateY(-8px) scale(1.02);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Subtle glow behind phones */
.phones-mockup::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(42,122,75,0.25) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(8px);
}

/* Float animation for phones */
@keyframes phoneFloat {
  0%, 100% { transform: rotate(-8deg) translateY(20px); }
  50%       { transform: rotate(-8deg) translateY(10px); }
}
@keyframes phoneFloatFront {
  0%, 100% { transform: rotate(4deg) translateY(0px); }
  50%       { transform: rotate(4deg) translateY(-10px); }
}
.phone-frame--back  { animation: phoneFloat 4s ease-in-out infinite; }
.phone-frame--front { animation: phoneFloatFront 4s ease-in-out infinite 0.8s; }

/* ── STATS SECTION ──────────────────────── */
.stats {
  position: relative;
  background: transparent; /* inherits from unified */
  border: none;
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-20);
}

/* Curved divider between hero and stats — SVG wave */
.stats-wave {
  position: relative;
  z-index: 1;
  line-height: 0;
  overflow: hidden;
  margin-bottom: -2px;
}
.stats-wave svg { display: block; width: 100%; }

/* Stats header */
.stats__header { margin-bottom: var(--sp-12); }

.stats__brand-name {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
  font-weight: var(--fw-extrabold);
  color: var(--clr-teal);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stats__tagline {
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl));
  color: var(--clr-black);
}

.stats__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-16);
}

.stats__pitch h3 {
  font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-2xl));
  color: var(--clr-black);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-5);
}
.stats__pitch p { line-height: var(--lh-loose); }

/* Stats circles grid */
.stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.stat-card {
  background: var(--clr-primary);
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-6);
  box-shadow: var(--shadow-green);
  max-width: 158px;
  width: 100%;
  margin: 0 auto;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
}
.stat-card:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 20px 50px rgba(42,122,75,0.30); }

.stat-card__number {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  color: var(--clr-white);
  line-height: 1;
}
.stat-card__unit {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--clr-accent);
  line-height: 1;
}
.stat-card__label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.82);
  font-weight: var(--fw-medium);
  margin-top: var(--sp-2);
  line-height: 1.3;
}

.stat-card--cta {
  background: var(--clr-primary-dark);
  border: 2px dashed rgba(255,255,255,0.25);
}

/* ── APP SHOWCASE STRIP ─────────────────── */
.app-showcase {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding: var(--sp-12) 0;
}

.app-showcase__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-16);
}

.app-showcase__content { max-width: 480px; }
.app-showcase__content .section-label { margin-bottom: var(--sp-4); }
.app-showcase__content h3 {
  font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-2xl));
  color: var(--clr-black);
  margin-bottom: var(--sp-4);
  line-height: var(--lh-snug);
}
.app-showcase__content p { margin-bottom: var(--sp-6); }

.app-showcase__stores {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 20px;
  background: #0d1b12;
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.app-store-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.20); }
.app-store-badge__icon { font-size: 1.4rem; }
.app-store-badge__text { display: flex; flex-direction: column; line-height: 1.2; }
.app-store-badge__sub  { font-size: 0.7rem; opacity: 0.7; font-weight: 400; }

/* Phones in app showcase */
.app-showcase__phones {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  position: relative;
}

.showcase-phone {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.20), 0 6px 16px rgba(0,0,0,0.12),
              inset 0 0 0 2px rgba(255,255,255,0.5);
  background: #111;
  position: relative;
  flex-shrink: 0;
}
.showcase-phone::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 5px;
  background: rgba(0,0,0,0.3);
  border-radius: 3px;
  z-index: 10;
}
.showcase-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.showcase-phone--splash {
  width: 160px;
  height: 320px;
  transform: translateY(20px) rotate(-4deg);
  animation: showcaseFloat1 5s ease-in-out infinite;
}
.showcase-phone--dashboard {
  width: 170px;
  height: 340px;
  transform: translateY(0) rotate(3deg);
  animation: showcaseFloat2 5s ease-in-out infinite 1s;
}

@keyframes showcaseFloat1 {
  0%,100% { transform: translateY(20px) rotate(-4deg); }
  50%      { transform: translateY(8px) rotate(-4deg); }
}
@keyframes showcaseFloat2 {
  0%,100% { transform: translateY(0) rotate(3deg); }
  50%      { transform: translateY(-12px) rotate(3deg); }
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--sp-10);
  }
  .hero__content { max-width: 100%; }
  .hero__desc { max-width: 100%; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; }
  .phones-mockup { width: 260px; height: 320px; }
  .phone-frame--back  { width: 140px; height: 280px; }
  .phone-frame--front { width: 148px; height: 296px; }

  .stats__body { grid-template-columns: 1fr; text-align: center; }
  .stats__pitch h3 { font-size: var(--fs-xl); }
  .stats__grid { max-width: 360px; margin: 0 auto; }

  .app-showcase__inner { grid-template-columns: 1fr; }
  .app-showcase__phones { justify-content: center; }
}

@media (max-width: 480px) {
  .phones-mockup { display: none; }
  .showcase-phone--splash { width: 130px; height: 260px; }
  .showcase-phone--dashboard { width: 138px; height: 276px; }
}
