/* ===== RESPONSIVE (existing max-width breakpoints: 1024 / 768 / 480) ===== */

@media (max-width: 1024px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }

  .pillars-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }

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

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

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

@media (max-width: 768px) {
  :root {
    --section-py: var(--section-py-mobile);
    --section-pad: var(--section-py-mobile) 0;
    --heading-to-grid-gap: 32px;
  }

  .container { padding: 0 16px; }

  .navbar .container {
    justify-content: flex-start;
    gap: 10px;
  }

  .navbar-logo {
    margin-right: auto;
    min-width: 0;
  }

  .navbar-logo span {
    font-size: 1.15rem;
  }

  .brand-logo-mark {
    height: 28px;
  }

  .footer .brand-logo-mark {
    height: 32px;
  }

  /* Keep Get Started visible beside hamburger */
  .navbar-cta {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .navbar-cta .btn {
    padding: 10px 14px;
    font-size: 0.8rem;
    min-height: 44px;
    white-space: nowrap;
  }

  .navbar-links { display: none; }
  .mobile-toggle { display: flex; }

  /* Mobile menu */
  .navbar-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-section);
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
    padding: 72px 24px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .navbar-links.active a { font-size: 1.3rem; color: var(--text-heading); min-height: 44px; display: inline-flex; align-items: center; }

  /* Resources dropdown inside the mobile full-screen menu */
  .nav-dropdown { width: 100%; display: flex; flex-direction: column; align-items: center; }
  .nav-dropdown-toggle {
    font-size: 1.3rem;
    color: var(--text-heading);
    justify-content: center;
    min-height: 44px;
  }
  .nav-dropdown::after { display: none; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    min-width: auto;
    width: 100%;
    max-width: 320px;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease;
  }
  .nav-dropdown.open .nav-dropdown-menu { max-height: 420px; padding: 12px 0 0; }
  .nav-dropdown-item { width: 100%; min-height: 44px; }

  .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); }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero-content h1 { font-size: clamp(2.15rem, 9vw, 3.2rem); }

  .stats-bar { grid-template-columns: repeat(2, 1fr); border-radius: 12px; }
  .stat-value { font-size: 1.5rem; }
  .stat-item { padding: 20px 12px; }
  .stats-bar .stat-item:last-child .stat-value {
    font-size: 0.95rem !important;
    line-height: 1.35;
    height: auto !important;
  }

  .logo-track { gap: 40px; }
  .logo-item { font-size: 22px; }

  .products-grid { grid-template-columns: 1fr; }

  .enablers-grid { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }

  .video-embed {
    margin-top: 28px;
    border-radius: 10px;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .newsletter-form { flex-direction: column; }

  .logo-track { gap: 48px; }

  .logo-mark {
    height: 26px;
    max-width: 96px;
  }

  .logo-name { font-size: 14px; }

  .terminal { font-size: 0.72rem; max-width: 100%; }
  .terminal-body { padding: 14px; }

  .hero { padding: 88px 0 16px; min-height: auto; }
  .stats-section { padding: 4px 0 36px; }
  .stats-bar { margin-top: 0; }
  .logos-section { padding: 12px 0 20px; }
  .hero-buttons { justify-content: center; }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .hero-content h1 { font-size: clamp(2.1rem, 8.6vw, 2.8rem); }

  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stats-bar .stat-item:last-child .stat-value {
    font-size: 0.82rem !important;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .navbar-logo span {
    font-size: 1rem;
  }

  .brand-logo-mark {
    height: 26px;
  }


  .card { padding: 24px; }

  .product-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .product-cta-buttons .btn {
    width: 100%;
  }
}
