/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-title {
    font-size: 4rem;
  }

  .section-title {
    font-size: 3rem;
  }
}

/* Desktop */
@media (max-width: 1200px) {
  .hero-container {
    gap: 3rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Tablet */
@media (max-width: 768px) {
  
  /* Navigation */
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
    gap: 1rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Hero Section */
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

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

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1.125rem;
  }

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

  .feature-card {
    padding: 1.5rem;
  }

  /* How It Works */
  .steps-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .step {
    padding: 1.5rem;
  }

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

  .pricing-card.featured {
    transform: none;
  }

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

  .testimonial-card {
    padding: 1.5rem;
  }

  /* CTA */
  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.125rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .feature-card {
    padding: 1rem;
  }

  .step {
    padding: 1rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .testimonial-card {
    padding: 1rem;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.875rem;
    min-height: 44px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Small Mobile */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .feature-card,
  .step,
  .pricing-card,
  .testimonial-card {
    padding: 1rem;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    min-height: 40px;
  }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 80px 0 40px;
    min-height: auto;
  }

  .hero-container {
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .hero-buttons {
    margin-bottom: 1.5rem;
  }

  .hero-stats {
    gap: 1rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo,
  .feature-icon img,
  .social-links img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-content,
  .hero-image,
  .feature-card {
    animation: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --border-color: #374151;
    --border-light: #374151;
  }

  .navbar {
    background: rgba(17, 24, 39, 0.95);
    border-bottom-color: var(--border-color);
  }

  .hero {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  }

  .feature-card,
  .pricing-card,
  .testimonial-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
  }

  .pricing-card.featured {
    border-color: var(--primary-color);
  }

  .nav-link {
    color: var(--text-secondary);
  }

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

/* Print Styles */
@media print {
  .navbar,
  .nav-toggle,
  .hero-buttons,
  .cta-buttons,
  .social-links,
  .footer-bottom {
    display: none !important;
  }

  .hero {
    padding: 20px 0;
    background: white !important;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-title {
    color: black !important;
  }

  .gradient-text {
    background: black !important;
    -webkit-text-fill-color: black !important;
    color: black !important;
  }

  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }

  .feature-card,
  .pricing-card,
  .testimonial-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }

  .footer {
    background: white !important;
    color: black !important;
  }

  .footer-section ul li a {
    color: black !important;
  }
}
