/* ===========================================
   RESPONSIVE - Breakpoint Overrides
   =========================================== */

/* 
   Breakpoints:
   - sm: 640px  (mobile landscape)
   - md: 768px  (tablets)
   - lg: 1024px (laptops)
   - xl: 1280px (desktops)
   - 2xl: 1536px (large screens)
*/

/* ===== LARGE SCREENS (max-width: 1280px) ===== */
@media (max-width: 1280px) {
  :root {
    --font-hero: 3.5rem;
    --font-h1: 2.5rem;
    --font-h2: 2rem;
  }

  .section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== LAPTOPS (max-width: 1024px) ===== */
@media (max-width: 1024px) {
  :root {
    --font-hero: 3rem;
    --font-h1: 2.25rem;
    --font-h2: 1.75rem;
    --container-padding: 1.25rem;
  }

  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Header */
  .nav-desktop {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  /* Hero adjustments */
  .hero-content {
    max-width: 100%;
  }
}

/* ===== TABLETS (max-width: 768px) ===== */
@media (max-width: 768px) {
  :root {
    --font-hero: 2.5rem;
    --font-h1: 2rem;
    --font-h2: 1.5rem;
    --font-h3: 1.25rem;
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Two column grids become single */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Section spacing */
  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .section-lg {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  /* Text lead */
  .text-lead {
    font-size: 1.125rem;
  }

  /* Buttons */
  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-group {
    flex-direction: column;
    gap: var(--space-md);
  }

  /* Cards */
  .product-card {
    padding: var(--space-xl);
  }

  /* Ecosystem visual */
  .ecosystem-visual {
    display: none;
  }

  /* Hide desktop-only elements */
  .desktop-only {
    display: none !important;
  }

  /* Show mobile-only elements */
  .mobile-only {
    display: block !important;
  }
}

/* ===== MOBILE (max-width: 640px) ===== */
@media (max-width: 640px) {
  :root {
    --font-hero: 2rem;
    --font-h1: 1.75rem;
    --font-h2: 1.375rem;
    --font-h3: 1.125rem;
    --space-2xl: 2rem;
    --space-xl: 1.5rem;
  }

  /* Typography */
  .hero-title {
    font-size: var(--font-hero);
    line-height: 1.15;
  }

  /* Buttons inline-flex fix */
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  /* Header */
  .header {
    padding: var(--space-sm) 0;
  }

  .logo img {
    height: 28px;
  }

  /* Cards compact */
  .card {
    padding: var(--space-lg);
  }

  .product-card {
    padding: var(--space-lg);
  }

  /* Features list compact */
  .feature-list {
    gap: var(--space-sm);
  }

  /* Badges smaller */
  .badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
  }

  /* Footer */
  .footer-grid {
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
  :root {
    --font-hero: 1.75rem;
    --font-h1: 1.5rem;
    --container-padding: 0.75rem;
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Extra compact spacing */
  .section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  /* Button adjustments */
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: var(--font-small);
  }
}

/* ===== UTILITIES FOR RESPONSIVE ===== */

/* Hide on mobile */
.hide-mobile {
  display: block;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Hide on desktop */
.hide-desktop {
  display: none;
}

@media (max-width: 768px) {
  .hide-desktop {
    display: block !important;
  }
}

/* Mobile-only visibility */
.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block !important;
  }
}

/* Desktop-only visibility */
.desktop-only {
  display: block;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

/* Responsive text alignment */
@media (max-width: 768px) {
  .text-center-mobile {
    text-align: center !important;
  }

  .text-left-mobile {
    text-align: left !important;
  }
}

/* Responsive flex direction */
@media (max-width: 768px) {
  .flex-col-mobile {
    flex-direction: column !important;
  }

  .items-center-mobile {
    align-items: center !important;
  }
}
