/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f0fdf4;
  color: #14532d;
  line-height: 1.6;
}

/* Hero Section */
header {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 50%, #166534 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,60 0,100"/></svg>') no-repeat bottom;
  background-size: 100% 100px;
}

header h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

header p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: 30px;
  opacity: 0.95;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.btn-download {
  display: inline-block;
  background: linear-gradient(45deg, #22c55e, #16a34a);
  color: white;
  padding: 16px 32px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
  position: relative;
  z-index: 2;
  transform: translateY(0);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(34, 197, 94, 0.4);
  background: linear-gradient(45deg, #16a34a, #15803d);
}

.app-preview {
  max-width: min(320px, 90vw);
  margin: 40px auto 0;
  display: block;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

/* Features Section */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 60px;
  color: #14532d;
  font-weight: 700;
}

.features {
  display: grid;
  gap: 60px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature.show {
  opacity: 1;
  transform: translateY(0);
}

.feature-text {
  padding: 0;
}

.feature-text h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin-bottom: 15px;
  color: #16a34a;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-text p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: #475569;
  margin: 0;
  line-height: 1.7;
}

.feature-img-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.1);
}

.feature img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.feature-img-box:hover img {
  transform: scale(1.02);
}

.feature-img-box:hover {
  box-shadow: 0 15px 50px rgba(34, 197, 94, 0.15);
}

/* Desktop Layout */
@media (min-width: 768px) {
  header {
    padding: 100px 40px 60px;
  }

  .features {
    gap: 80px;
  }

  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }

  .feature:nth-child(even) {
    direction: rtl;
  }

  .feature:nth-child(even) > * {
    direction: ltr;
  }

  .feature:nth-child(even) .feature-text {
    text-align: right;
  }

  .feature-img-box {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  section {
    padding: 120px 40px;
  }

  .feature {
    gap: 80px;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #166534;
  font-size: 0.95rem;
  border-top: 1px solid #bbf7d0;
}

footer p {
  margin: 0;
  font-weight: 500;
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature.show {
  animation: fadeInUp 0.8s ease forwards;
}

/* Touch-friendly adjustments for mobile */
@media (max-width: 767px) {
  .btn-download {
    padding: 18px 36px;
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .feature-text {
    text-align: center;
  }

  .feature-text h3 {
    justify-content: center;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .app-preview {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn-download:focus {
  outline: 3px solid rgba(34, 197, 94, 0.5);
  outline-offset: 2px;
}