/* =========================================================
   RESET & BASE STYLES
========================================================= */
:root {
  --primary: #2d7a3e;
  --primary-dark: #1e5c2b;
  --primary-light: #e5f3e8;
  --accent: #f59e0b;
  --text-dark: #1a1a1a;
  --text-gray: #4b5563;
  --text-light: #9ca3af;
  --white: #ffffff;
  --bg-gradient: linear-gradient(135deg, #f8fffe 0%, #f0fdf4 100%);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(45, 122, 62, 0.2);
  }

  50% {
    box-shadow: 0 0 20px rgba(45, 122, 62, 0.4);
  }

  100% {
    box-shadow: 0 0 5px rgba(45, 122, 62, 0.2);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

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

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

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

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

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

.main-nav a {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
  padding: 6rem 0 8rem;
  background: var(--bg-gradient);
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(45, 122, 62, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border-radius: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.hero-left h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 90%;
}

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

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

.store-btn {
  display: inline-block;
  transition: var(--transition);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.store-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.store-btn img {
  height: 50px;
  width: auto;
  display: block;
}

.rating-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stars {
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.rating-box p {
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 500;
}

/* HERO PHONE & FLOATING CARDS */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup-wrapper {
  position: relative;
  z-index: 1;
}

.phone-mockup-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(45, 122, 62, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
}

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

.float-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 5s ease-in-out infinite;
  z-index: 2;
}

.card-2 {
  bottom: 15%;
  left: -10%;
  animation-delay: 1s;
}

.card-1 {
  bottom: 25%;
  right: -10%;
  animation-delay: 2s;
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.card-text {
  display: flex;
  flex-direction: column;
}

.card-text .label {
  font-size: 0.75rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-text .value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* =========================================================
   FEATURES SECTION
========================================================= */
.features {
  padding: 8rem 0;
  background: var(--white);
}

.section-header {
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.brand-green {
  color: var(--primary);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-gray);
}

/* SLIDER STYLES */
.slider-container {
  position: relative;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 60px;
  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;
  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: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.slider-container .prev:hover,
.slider-container .next:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
  border-color: var(--primary);
}

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

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

/* DOTS NAVIGATION */
.dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 2.5rem;
}

.dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e5e7eb;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.dots button:hover {
  background: #d1d5db;
}

.dots button.active {
  background: var(--primary);
  width: 32px;
  border-radius: 6px;
}

/* =========================================================
   HOW IT WORKS SECTION
========================================================= */
.how-it-works {
  padding: 8rem 0;
  background: #fafafa;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.step-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.step-card p {
  color: var(--text-gray);
  line-height: 1.6;
}

/* =========================================================
   TESTIMONIALS SECTION
========================================================= */
.testimonials {
  padding: 8rem 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.testimonial-card {
  background: #f8fffe;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid #e5f3e8;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.quote-icon {
  font-size: 4rem;
  color: rgba(45, 122, 62, 0.1);
  font-family: serif;
  line-height: 1;
  margin-bottom: -1rem;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-style: italic;
  line-height: 1.6;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.user-details h4 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.user-details p {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* =========================================================
   FAQ SECTION
========================================================= */
.faq {
  padding: 8rem 0;
  background: #fafafa;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.faq-item p {
  color: var(--text-gray);
  line-height: 1.6;
}

/* =========================================================
   CTA SECTION
========================================================= */
.cta-section {
  padding: 6rem 0;
  background: var(--white);
}

.cta-box {
  background: var(--primary);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-box p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.download-buttons.center {
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: #1a1a1a;
  color: var(--white);
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
}

.footer-left .brand-text {
  color: var(--white);
}

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

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

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

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

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-left h1 {
    font-size: 3rem;
  }

  .hero-description {
    margin: 0 auto 2.5rem;
  }

  .download-buttons {
    justify-content: center;
  }

  .rating-box {
    justify-content: center;
  }

  .slide-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem;
  }

  .steps-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-left h1 {
    font-size: 2.5rem;
  }

  .steps-grid,
  .testimonials-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

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

  .slider-container {
    padding: 0 20px;
  }

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