@media (max-width: 1399px) {
  :root {
    --apple-spacing-lg: 1.5rem;
  }
}

@media (max-width: 1199px) {
  :root {
    --apple-spacing-lg: 1.25rem;
    --apple-spacing-xl: 2.5rem;
  }
  
  .container {
    max-width: 960px;
  }
  
  .footer-main {
    gap: var(--apple-spacing-xl);
  }
}

@media (max-width: 1023px) {
  :root {
    --apple-spacing-lg: 1rem;
    --apple-spacing-xl: 2rem;
    --apple-spacing-2xl: 3rem;
  }
  
  .container {
    max-width: 720px;
  }
  
  .header-container {
    max-width: 720px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  :root {
    --apple-spacing-xs: 0.25rem;
    --apple-spacing-sm: 0.5rem;
    --apple-spacing-md: 1rem;
    --apple-spacing-lg: 1.5rem;
    --apple-spacing-xl: 2rem;
    --apple-spacing-2xl: 2.5rem;
  }
  
  .container {
    max-width: 100%;
  }
  
  .section {
    padding: var(--apple-spacing-xl) 0;
  }
  
  .section-title {
    margin-bottom: var(--apple-spacing-lg);
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--apple-spacing-md);
  }
  
  .card-content {
    padding: var(--apple-spacing-md);
  }
  
  .cta h2 {
    font-size: 1.75rem;
  }
  
  .cta p {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 479px) {
  :root {
    --apple-spacing-md: 0.75rem;
    --apple-spacing-lg: 1rem;
  }
  
  html {
    font-size: 13px;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .hero-buttons .btn,
  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --apple-spacing-lg: 1.25rem;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .container {
    max-width: 960px;
  }
  
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
  
  .footer-main {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

@media print {
  .header,
  .footer,
  .cta,
  .hero-buttons,
  .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 20pt 0;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    max-width: 100%;
  }
}

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