/* ByteConnect Pro — Responsive */

@media (min-width: 576px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .api-layout {
    grid-template-columns: 1fr 1.1fr;
  }

  .app-banner {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 3.5rem;
  }

  .team-grid,
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: stretch;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    grid-template-columns: 1fr 40px 1fr;
  }

  .timeline-item:nth-child(odd) .timeline-item__content {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
  }

  .timeline-item:nth-child(odd) .timeline-item__dot {
    grid-column: 2;
  }

  .timeline-item:nth-child(even) .timeline-item__dot {
    grid-column: 2;
  }

  .timeline-item:nth-child(even) .timeline-item__content {
    grid-column: 3;
  }

  .features-grid.bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid.bento .feature-card.large {
    grid-column: span 2;
  }
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .header-actions .btn-login-mobile {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .phone-mock {
    right: 0;
  }

  .float-card--left {
    left: -40px;
  }
}

@media (min-width: 1200px) {
  .hero {
    padding: 4rem 0 6rem;
  }

  .hero__visual {
    min-height: 480px;
  }

  .dash-mock {
    width: 560px;
  }
}

@media (max-width: 991.98px) {
  .mega-menu {
    display: none !important;
  }

  .header-actions .btn-primary,
  .header-actions .btn-ghost.hide-mobile {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hero__title {
    max-width: 100%;
  }

  .section-title {
    max-width: 100%;
  }

  .phone-mock {
    display: none;
  }

  .float-card {
    display: none;
  }

  .dash-mock {
    animation: none;
  }

  .hero__visual {
    min-height: auto;
  }

  .price-card.is-popular {
    order: -1;
  }

  .app-banner {
    text-align: center;
  }

  .app-stores {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .container,
  .container-wide {
    width: min(100% - 1.5rem, var(--bc-container));
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .dash-mock__body {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    flex-direction: row;
    justify-content: space-around;
    border-right: none;
    border-bottom: 1px solid var(--bc-border);
    padding: 0.65rem;
  }
}

@media (min-width: 1400px) {
  :root {
    --bc-container: 1280px;
    --bc-container-wide: 1480px;
  }
}

@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;
  }

  .partners-track {
    animation: none;
  }
}

@media print {
  .site-header,
  .bc-loader,
  .mobile-nav,
  .cta-section,
  .site-footer {
    display: none !important;
  }
}
