/* ================================================
   MOLLYRA AI - Responsive Styles
   ================================================ */

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

@media (max-width: 1399px) { :root { --container-padding: 2rem; } }

@media (max-width: 1023px) {
  :root { --container-padding: 1.5rem; --space-4xl: 4rem; --space-3xl: 3rem; }
  .nav { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; flex-direction: column; align-items: flex-start; padding: 5rem 2rem 2rem; background: var(--bg-dark); border-left: 1px solid var(--border-default); transition: var(--transition-base); z-index: var(--z-modal); }
  .nav.active { right: 0; }
  .nav-list { flex-direction: column; align-items: flex-start; width: 100%; gap: var(--space-md); }
  .nav-actions { flex-direction: column; width: 100%; margin-top: var(--space-lg); }
  .mobile-toggle { display: flex; z-index: calc(var(--z-modal) + 10); }
  .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .hero h1 { font-size: 3.5rem; }
  .hero-description { font-size: 1.125rem; }
  .hero-stats { gap: var(--space-xl); flex-wrap: wrap; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2xl); }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
}

@media (max-width: 767px) {
  :root { --container-padding: 1rem; --space-4xl: 3rem; --space-3xl: 2rem; --space-2xl: 1.5rem; }
  h1 { font-size: 2rem; } h2 { font-size: 1.75rem; } h3 { font-size: 1.25rem; } h4 { font-size: 1.125rem; }
  .btn { padding: 0.75rem 1.5rem; font-size: 0.9375rem; }
  .btn-lg { padding: 1rem 2rem; font-size: 1rem; }
  .hero { padding: var(--space-3xl) 0; min-height: auto; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { flex-direction: column; gap: var(--space-lg); }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
  .footer-legal { flex-direction: column; gap: var(--space-sm); }
  .page-header { padding: calc(var(--space-3xl) + 60px) 0 var(--space-2xl); }
}

@media (max-width: 479px) {
  .logo { font-size: 1.25rem; }
  .logo-icon { width: 36px; height: 36px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-description { font-size: 1rem; }
  .hero-stat-value { font-size: 2rem; }
  .card { padding: var(--space-lg); }
}

@media print {
  .header, .footer, #three-canvas, .loader-overlay { display: none !important; }
  body { background: white; color: black; }
  .card, .feature-card, .testimonial-card { border: 1px solid #ccc; background: white; }
  h1, h2, h3 { color: black; -webkit-text-fill-color: black; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .animate-float, .animate-pulse-glow { animation: none; }
}

@media (prefers-contrast: high) {
  :root { --border-default: rgba(255, 255, 255, 0.4); --text-secondary: #ffffff; --text-muted: #cccccc; }
  .card, .feature-card { border-width: 2px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: var(--space-2xl) 0; }
  .hero-stats { display: none; }
}
