/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 24px;
  font-weight: 700;
  color: #0175C2;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}


.btn-link {
  background: none;
  border: none;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-link i {
  font-size: 20px;
  margin-right: 4px;
}

.btn-link-text {
  display: inline-block;
}

.btn-link:hover {
  background: #f0f9ff;
  color: #0175C2;
}

.nav-mobile {
  display: none;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  width: 24px;
  height: 24px;
  display: none;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: #333;
  margin: 2px 0;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: flex;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #dbeafe 0%, #e9d5ff 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #1f2937;
}

.hero-subtitle {
  font-size: 20px;
  color: #6b7280;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: #0175C2;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(1, 117, 194, 0.3);
}

.hero-images {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.app-preview {
  flex: 1;
  max-width: 260px;
  min-width: 120px;
  width: 100%;
  aspect-ratio: 1320/2868;
  display: flex;
  justify-content: center;
  align-items: center;
  /* The aspect ratio and width/height of this container control the preview size. */
}

.iphone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  border-radius: 32px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.12),
    0 0 0 5px #cfd8dc,
    0 0 0 9px #e5e7eb,
    0 1.5px 0 #fff inset;
  /* border: 2.5px solid #b0b6bb; */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Simulate metallic shine */
  background-image: linear-gradient(120deg, #f8f9fa 60%, #e3e6ea 100%);
  /* The frame now fills the .app-preview container */
}

.carousel-container {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: #000;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Carousel fills the iphone-frame */
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
  background: #000;
  /* Image fills the carousel-container */
}

.carousel-img.active {
  opacity: 1;
  z-index: 2;
}


/* Features Section */
.features {
  padding: 80px 0;
  background: white;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 64px;
  color: #1f2937;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 48px;
  color: #0175C2;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1f2937;
}

.feature-description {
  color: #6b7280;
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background: #f9fafb;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.quote-icon {
  font-size: 24px;
  color: #0175C2;
  margin-bottom: 24px;
}

.testimonial-quote {
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #4b5563;
}

.testimonial-author strong {
  display: block;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.testimonial-author span {
  color: #6b7280;
  font-size: 14px;
}

/* Call to Action Section */
.cta {
  padding: 80px 0;
  background: white;
  text-align: center;
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1f2937;
}

.cta-subtitle {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-store {
  background: #1f2937;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-store:hover {
  background: #374151;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(31, 41, 55, 0.3);
}

/* Footer */
.footer {
  padding: 32px 0;
  background: #1f2937;
  color: white;
  text-align: center;
}

.footer-text {
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.social-link {
  color: white;
  font-size: 20px;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #0175C2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-mobile {
    display: block;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-store {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .phone-mockup {
    max-width: 150px;
  }
  
  .phone-screen {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .nav-container {
    padding: 16px;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .features, .testimonials, .cta {
    padding: 60px 0;
  }
  
  .hero-images {
    flex-direction: column;
    gap: 24px;
  }
}
