/* =========================================================
   RESET & BASE STYLES
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand .logo {
  width: 32px;
  height: 32px;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #2d7a3e;
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
  padding: 4rem 0 6rem;
  background: linear-gradient(135deg, #f8fffe 0%, #f0fdf4 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-left h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.brand-green {
  color: #2d7a3e;
}

.hero-description {
  font-size: 1.125rem;
  color: #666;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.download-section {
  margin-top: 2rem;
}

.download-text {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 500;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-block;
  transition: transform 0.2s;
}

.store-btn:hover {
  transform: translateY(-2px);
}

.store-btn img {
  height: 48px;
  width: auto;
}

/* HERO PHONE */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockups {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   FEATURES SECTION
========================================================= */
.features {
  padding: 6rem 0 7rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: #1a1a1a;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #2d7a3e;
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* =========================================================
   SLIDER STYLES (UPDATED & FIXED)
========================================================= */
.slider-container {
  position: relative;
  /* Reduce overall width so the card isn't too wide on large screens */
  max-width: auto;
  margin: 0 auto;
  padding: 0 40px;
  overflow: visible;
}

.slider-wrapper {
  position: relative;
  /* width: 100%; */
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slides {
  display: flex;
  /* let the flex container size itself to the combined slides width
     so percentage-based translate3d(-N * 100%) in JS moves by one
     slide width per step */
  width: auto;
  transition: transform 0.6s cubic-bezier(0.5, 0, 0.2, 1);
  will-change: transform;
}

.slide {
  /* ensure each slide is at least the full wrapper width */
  flex: 0 0 100%;
  min-width: 100%;
}
.slide {
  /* ensure each slide is at least the full wrapper width and center content */
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 24px; /* gives breathing room so images don't touch edges */
  box-sizing: border-box;
  height: 100%;
}

.slide img {
  /* show the whole image, centered, and constrained to wrapper size */
  max-width: 25%;
  /* make image fit neatly inside the wrapper accounting for padding */
  max-height: 25%;
  display: block;
  object-fit: contain; /* don't crop images */
  border-radius: 0;
}

/* NAVIGATION BUTTONS */
.slider-container .prev,
.slider-container .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 30;
  color: #2d7a3e;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.slider-container .prev:hover,
.slider-container .next:hover {
  background: #2d7a3e;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(45, 122, 62, 0.25);
}

.slider-container .prev:active,
.slider-container .next:active {
  transform: translateY(-50%) scale(0.96);
}

.slider-container .prev {
  left: 0;
}

.slider-container .next {
  right: 0;
}

.slider-container .prev svg,
.slider-container .next svg {
  width: 24px;
  height: 24px;
}

/* DOTS NAVIGATION */
.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 3rem;
  padding-bottom: 1rem;
}

.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.dots button:hover {
  background: #9ca3af;
  transform: scale(1.3);
}

.dots button.active {
  background: #2d7a3e;
  width: 36px;
  border-radius: 5px;
  transform: scale(1);
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: #2d7a3e;
  color: #fff;
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-left .brand {
  margin-bottom: 1.5rem;
}

.footer-left .brand-text {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #e5f3e8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  color: #b8d4be;
  font-size: 0.875rem;
}

.footer-right {
  text-align: right;
}

.footer-right .download-text {
  color: #e5f3e8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-right .download-buttons {
  justify-content: flex-end;
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */

/* Tablet and below */
@media (max-width: 1024px) {
  .hero-content {
    gap: 3rem;
  }
  .hero-left h1 {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }
  .slider-container {
    max-width: 680px;
    padding: 0 40px;
  }
  .slider-wrapper {
    height: 380px;
  }
  .slide img { max-height: calc(100% - 40px); }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-left h1 {
    font-size: 2rem;
  }
  .slider-container {
    max-width: 560px;
    padding: 0 30px;
  }
  .slider-container .prev,
  .slider-container .next {
    width: 44px;
    height: 44px;
  }
  .dots {
    margin-top: 2rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .slider-container {
    max-width: 420px;
    padding: 0 24px;
  }
  .slider-wrapper { height: 300px; }
  .slide img { max-height: calc(100% - 36px); }
  .slider-container .prev,
  .slider-container .next {
    width: 36px;
    height: 36px;
  }
  .dots button.active {
    width: 24px;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .slider-container {
    max-width: 340px;
    padding: 0 20px;
  }
  .slider-wrapper { height: 260px; }
  .slider-container .prev,
  .slider-container .next {
    width: 32px;
    height: 32px;
  }
}