/* Responsive Styles */

/* Tablet */
@media (max-width: 1024px) {
  .services-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calc-controls {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: var(--fs-6xl);
  }
  
  .section-title {
    font-size: var(--fs-5xl);
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Navigation */
  nav {
    display: none;
  }
  
  nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    padding: var(--space-8);
    border-top: 2px solid var(--green);
    gap: var(--space-5);
    z-index: 1000;
  }
  
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Header */
  .header-info-content {
    flex-direction: column;
    text-align: center;
  }
  
  .info-links {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
  
  .header-buttons {
    width: 100%;
  }
  
  .btn-header {
    flex: 1;
  }
  
  /* Hero */
  .hero {
    padding: var(--space-20) 0;
  }
  
  .hero h1 {
    font-size: var(--fs-4xl);
    margin-bottom: var(--space-4);
  }
  
  .hero h1 .subheadline {
    font-size: var(--fs-xl);
    margin-top: var(--space-2);
  }
  
  .hero-description {
    font-size: var(--fs-base);
    margin-bottom: var(--space-6);
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-hero {
    width: 100%;
    padding: var(--space-3) var(--space-6);
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .input-group input {
    width: 100%;
  }
  
  .input-group .btn-hero {
    width: 100%;
  }
  
  /* Grids */
  .services-grid,
  .features-grid,
  .pricing-grid,
  .testimonials-grid,
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  
  /* Sections */
  .services, .features, .pricing, .testimonials, .faq, .cta {
    padding: var(--space-16) 0;
  }
  
  .calculator-section {
    padding: var(--space-12) 0;
  }
  
  .section-title,
  .cta h2 {
    font-size: var(--fs-4xl);
  }
  
  .section-subtitle,
  .cta p {
    font-size: var(--fs-base);
  }
  
  /* Container */
  .container {
    padding: 0 var(--space-5);
  }
  
  /* Calculator */
  .calc-controls {
    grid-template-columns: 1fr;
  }
  
  .calculator {
    padding: var(--space-6);
  }
  
  .calc-price {
    font-size: var(--fs-5xl);
  }
  
  /* Pricing */
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .pricing-amount .amount {
    font-size: var(--fs-5xl);
  }
  
  /* Fixed Elements */
  .live-stats,
  .theme-toggle,
  .purchase-ticker {
    display: none;
  }
  
  .sticky-cta {
    bottom: var(--space-5);
    right: var(--space-5);
    font-size: var(--fs-sm);
    padding: var(--space-3) var(--space-6);
  }
  
  .back-to-top {
    bottom: var(--space-5);
    left: var(--space-5);
    width: 50px;
    height: 50px;
  }
  
  .back-to-top i {
    font-size: var(--fs-lg);
  }
  
  /* Trust Badges */
  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  
  /* Social Proof */
  .hero-social-proof {
    margin-top: var(--space-6);
  }
  
  .rating-stars {
    font-size: var(--fs-xl);
  }
  
  /* Stats */
  .stat-number {
    font-size: var(--fs-4xl);
  }
  
  /* Service Cards */
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .service-icon svg {
    width: 30px;
    height: 30px;
  }
  
  /* Feature Cards */
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .feature-icon i {
    font-size: var(--fs-3xl);
  }
  
  /* FAQ */
  .faq-question {
    padding: var(--space-4) var(--space-5);
    font-size: var(--fs-base);
  }
  
  .faq-answer {
    padding: 0 var(--space-5);
  }
  
  .faq-item .faq-question[aria-expanded="true"] + .faq-answer {
    padding: 0 var(--space-5) var(--space-4);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: var(--fs-3xl);
  }
  
  .section-title {
    font-size: var(--fs-3xl);
  }
  
  .hero h1 .subheadline {
    font-size: var(--fs-lg);
  }
  
  .stat-number {
    font-size: var(--fs-3xl);
  }
  
  .pricing-amount .amount {
    font-size: var(--fs-4xl);
  }
  
  .calc-price {
    font-size: var(--fs-4xl);
  }
  
  .service-card,
  .feature-card,
  .pricing-card,
  .testimonial-card {
    padding: var(--space-6);
  }
  
  .trust-badges {
    grid-template-columns: 1fr;
  }
  
  .sticky-cta {
    font-size: var(--fs-xs);
    padding: var(--space-2) var(--space-4);
  }
}

/* Large Desktop */
@media (min-width: 1536px) {
  .container {
    max-width: 1600px;
  }
  
  .hero h1 {
    font-size: 100px;
  }
  
  .section-title {
    font-size: var(--fs-7xl);
  }
}

/* Print Styles */
@media print {
  .no-print,
  .sticky-cta,
  .back-to-top,
  .theme-toggle,
  .live-stats,
  .purchase-ticker,
  #matrix-canvas,
  .progress-bar,
  .loading-screen,
  header,
  .top-banner {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero,
  .services,
  .features,
  .pricing,
  .testimonials,
  .faq,
  .cta {
    page-break-inside: avoid;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* Dark Mode Media Query */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn-service,
  .btn-header,
  .btn-hero {
    border-width: 3px;
  }
  
  :focus-visible {
    outline-width: 4px;
  }
}

/* Landscape Orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: var(--space-16) 0;
  }
  
  .hero h1 {
    font-size: var(--fs-4xl);
  }
  
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
