/* ===== Navigation ===== */
.nav-blur {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease;
}

/* ===== Global Parallax Layer ===== */
#parallax-layer {
  overflow: hidden;
}

.parallax {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}

.parallax img {
  display: block;
  margin: 0 auto;
}

/* Desktop parallax positions — scattered across full page height */
.par-1 { top: 20%;   left: 82%;  width: 12vw; }
.par-2 { top: 12%;  left: 2%;   width: 9vw; }
.par-3 { top: 55%;  left: 88%;  width: 18vw;  }
.par-4 { top: 35%;  left: -2%;  width: 9vw;  filter: blur(2px);}
.par-5 { top: 50%;  left: 85%;  width: 7vw; filter: blur(2px); }
.par-6 { top: 60%;  left: -5%;   width: 15vw; transform: rotate(180deg); }
.par-7 { top: 75%;  left: 90%;  width: 9vw; transform: rotate(90deg); }
.par-8 { top: 82%;  left: 3%;   width: 7vw;  width: 15vw; transform: rotate(-160deg);}

/* Mobile parallax — small, semi-visible, peeking from edges */
.par-m-1 { top: 8%;   left: -6%;  width: 26vw; }
.par-m-2 { top: 28%;  right: -6%; left: auto; width: 24vw; }
.par-m-3 { top: 48%;  left: -25%;  width: 42vw; }
.par-m-4 { top: 68%;  right: -5%; left: auto; width: 25vw; }
.par-m-5 { top: 85%;  left: -4%;  width: 22vw; }

/* ===== Stat Circles ===== */
.stat-circle {
  width: 120px;
  height: 120px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.1;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
}

.stat-green::before {
  background-image: url('/assets/images/color_circle.svg');
}

.stat-orange::before {
  background-color: #6aa8cd;
  mask-image: url('/assets/images/color_circle.svg');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url('/assets/images/color_circle.svg');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.stat-purple::before {
  background-color: #94404b;
  mask-image: url('/assets/images/color_circle.svg');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url('/assets/images/color_circle.svg');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.stat-circle:hover {
  transform: scale(1.08);
}

.stat-value {
  font-family: 'lulo-clean', 'Lulo Clean', 'Montserrat', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 900;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 0.75rem;
  line-height: 1.1;
  display: block;
  position: relative;
  z-index: 1;
  max-width: 100px;
}

/* ===== Hero Section ===== */
.hero-section {
  background-color: #279A42;
}

.hero-wave-mask {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  line-height: 0;
  transform: translateY(2px);
}

.hero-wave-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Hero fade gradient for parallax transition */
.hero-fade-gradient {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 5;
}

/* Footer Wave Mask */
.footer-wave-mask {
  width: 100%;
  height: auto;
  overflow: hidden;
  line-height: 0;
  margin-top: 2px;
  margin-bottom: -1px;
  position: relative;
  background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Flip 180 degrees and change white to green */
.footer-wave-mask img {
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(180deg);
}

/* Ensure parallax goes under footer elements */
#parallax-layer {
  z-index: 0 !important;
}

.footer-wave-mask,
footer {
  position: relative;
  z-index: 20;
}

/* Hero Stats - Desktop side layout */
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.hero-stat-number {
  font-family: 'lulo-clean', 'Lulo Clean', 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: lowercase;
}

/* Hero Stats - Mobile */
.hero-stat-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.hero-stat-number-mobile {
  font-family: 'lulo-clean', 'Lulo Clean', 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label-mobile {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: lowercase;
}

/* ===== Tracker Section Styling ===== */
.tracker-chip {
  display: inline-block;
  background: #279A42;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.tracker-title {
  font-size: 36px;
  line-height: 42px;
  font-weight: 900;
  color: #279A42;
  margin-bottom: 16px;
}

.tracker-description {
  font-size: 20px;
  line-height: 22px;
  color: #279A42;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 10px;
}

/* ===== Download Button ===== */
.download-btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #299D49, #3AB85C);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(41, 157, 73, 0.3);
  letter-spacing: 0.02em;
}

.download-btn:hover {
  background: linear-gradient(135deg, #3AB85C, #4CC96D);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(41, 157, 73, 0.4);
}

.download-btn:active {
  transform: translateY(0);
}

.download-btn.downloaded {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: default;
}

.download-btn.downloaded:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ===== Person Images ===== */
.person-image {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

/* ===== Section animations ===== */
.tracker-section {
  opacity: 0;
  transform: translateY(40px);
}

.tracker-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .stat-circle {
    width: 90px;
    height: 90px;
    font-size: 0.65rem;
  }
  
  .stat-value {
    font-size: 1.6rem;
  }
  
  .stat-label {
    font-size: 0.65rem;
  }
  
  .tracker-title {
    font-size: 28px;
    line-height: 32px;
  }
  
  .tracker-description {
    font-size: 18px;
    line-height: 22px;
  }
  
  .hero-stat-number {
    font-size: 2rem;
  }
  
  .hero-stat-label {
    font-size: 0.875rem;
  }

  .download-btn {
    width: 100%;
    text-align: center;
  }
}
