/* ========================================
   FarmFree Homepage Styles
   Inspired by delivery-saas design
   ======================================== */

/* CSS Variables */
:root {
  /* Colors */
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #34D399;
  --secondary: #3B82F6;
  --accent: #F59E0B;
  --danger: #EF4444;

  /* Grayscale */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --spacing-unit: 8px;

  /* Transitions */
  --transition-base: 0.3s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.2;
}

strong {
  font-weight: 700;
}

/* ========================================
   Layout
   ======================================== */

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

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  position: relative;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  cursor: pointer;
  transition: color var(--transition-base);
}

.logo:hover {
  color: var(--primary-dark);
}

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

.nav-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--gray-900);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 24px;
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
}

/* ========================================
   Section Indicators (Desktop Only)
   ======================================== */

.section-indicators {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all var(--transition-base);
}

.indicator:hover {
  background: var(--gray-600);
  transform: scale(1.2);
}

.indicator.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ========================================
   Buttons
   ======================================== */

.btn-primary,
.btn-secondary,
.btn-contact {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 48px;
  font-size: 18px;
}

.btn-xlarge {
  padding: 20px 64px;
  font-size: 20px;
}

.btn-full {
  width: 100%;
  display: block;
}

.btn-contact {
  background: white;
  color: var(--gray-700);
  border-color: var(--gray-300);
  font-size: 14px;
  padding: 10px 24px;
}

.btn-contact:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 56px;
  margin-bottom: 24px;
  color: var(--gray-900);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.8;
}

.hero-highlight {
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 32px;
}

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

.hero-note {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-200);
}

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

.stat-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-600);
}

/* ========================================
   Features Section
   ======================================== */

.features-section {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 48px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-600);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 2px solid var(--gray-200);
  transition: all var(--transition-base);
  text-align: center;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 20px;
  margin-bottom: 12px;
  min-height: 48px;
}

.feature-description {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.feature-stat {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
}

/* Unique Features */
.unique-features {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  color: white;
}

.unique-feature-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--gray-900);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 16px;
}

.unique-feature-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.unique-feature-description {
  font-size: 18px;
  opacity: 0.9;
}

/* ========================================
   Social Proof Section
   ======================================== */

.social-proof-section {
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 64px;
}

.testimonial-card {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 32px;
  border: 2px solid var(--gray-200);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  font-size: 48px;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-name {
  font-weight: 700;
  color: var(--gray-900);
}

.testimonial-role {
  font-size: 14px;
  color: var(--gray-600);
}

.testimonial-text {
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 16px;
}

.testimonial-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
}

.stat-before {
  color: var(--danger);
}

.stat-arrow {
  color: var(--primary);
  font-size: 18px;
}

.stat-after {
  color: var(--primary);
}

/* Trust Indicators */
.trust-indicators {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 48px;
  background: var(--gray-50);
  border-radius: 16px;
}

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

.trust-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
}

.trust-label {
  font-size: 14px;
  color: var(--gray-600);
}

/* ========================================
   Comparison Section
   ======================================== */

.comparison-section {
  background: var(--gray-50);
}

.comparison-table {
  overflow-x: auto;
  margin-bottom: 48px;
}

.comparison-table table {
  width: 100%;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border-collapse: collapse;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.comparison-table th {
  background: var(--gray-100);
  padding: 20px;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--gray-200);
}

.comparison-table th.highlight {
  background: var(--primary);
  color: white;
}

.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.comparison-table td.highlight {
  background: rgba(16, 185, 129, 0.05);
  font-weight: 700;
}

/* Mobile Comparison Cards */
.comparison-cards {
  display: none;
  grid-template-columns: 1fr;
  gap: 24px;
}

.comparison-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 2px solid var(--gray-200);
  position: relative;
}

.comparison-card.farmfree {
  border-color: var(--primary);
  border-width: 3px;
}

.comparison-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 900;
}

.comparison-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.comparison-price {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 24px;
}

.comparison-features {
  list-style: none;
}

.comparison-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

/* ========================================
   Pricing Section
   ======================================== */

.pricing-section {
  background: white;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.pricing-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  border: 3px solid var(--gray-200);
  transition: all var(--transition-base);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.pricing-card.recommended {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 900;
}

.pricing-title {
  font-size: 28px;
  margin-bottom: 16px;
  text-align: center;
}

.pricing-price {
  text-align: center;
  margin-bottom: 16px;
}

.price-amount {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary);
}

.price-currency {
  font-size: 18px;
  color: var(--gray-600);
}

.pricing-description {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

/* Why Cheap Box */
.why-cheap-box {
  background: linear-gradient(135deg, var(--accent) 0%, #F97316 100%);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  color: white;
}

.why-cheap-title {
  font-size: 28px;
  margin-bottom: 16px;
}

.why-cheap-text {
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.95;
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-section {
  background: white;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  color: var(--gray-900);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform var(--transition-base);
  stroke-width: 3;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
  padding: 0 24px;
  color: var(--gray-700);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 24px;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 48px;
  margin-bottom: 24px;
}

.cta-subtitle {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-contact {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-contact-title {
  font-size: 20px;
  margin-bottom: 24px;
}

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

/* ========================================
   Footer
   ======================================== */

.footer {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}

.footer-description {
  opacity: 0.8;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity var(--transition-base);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  opacity: 0.7;
  font-size: 14px;
}

/* ========================================
   Animations
   ======================================== */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

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

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

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

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

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

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
  .section-indicators {
    display: none;
  }

  .hero-title {
    font-size: 42px;
  }

  .section-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
  }

  .stats-grid {
    gap: 16px;
  }

  .stat-number {
    font-size: 36px;
  }

  /* Sections */
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .unique-feature-title {
    font-size: 24px;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .trust-indicators {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Comparison */
  .comparison-table {
    display: none;
  }

  .comparison-cards {
    display: grid;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-title {
    font-size: 32px;
  }

  .cta-subtitle {
    font-size: 16px;
  }

  .cta-contact-buttons {
    flex-direction: column;
  }

  .btn-contact {
    width: 100%;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ========================================
   Utilities
   ======================================== */

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

.hidden {
  display: none;
}

.visible {
  display: block;
}
