/* ==========================================================================
   QUANTAPIXEL RESPONSIVE STYLES
   Hero Section Full on First Screen Landing (Desktop, Laptop, Tablet, Mobile)
   All Sections Below Flowing with Minimum Space Between Them
   ========================================================================== */

/* Large Tablets & Small Laptops (max-width: 991.98px) */
@media (max-width: 991.98px) {
  .hero-wrapper {
    box-sizing: border-box;
  }

  /* Hero Section Full on First Screen */
  #downloaderHero.hero-wrapper {
    min-height: calc(100vh - 68px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.75rem 1rem 1.25rem;
    box-sizing: border-box;
    margin-bottom: 0;
  }

  /* Left-over sections below: minimum spacing */
  .platform-hub-section {
    padding: 1.25rem 0;
  }

  .browser-showcase-section {
    padding: 1.25rem 0;
  }

  .section-header-centered {
    margin-bottom: 0.85rem;
  }

  .pill-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .browser-card-wrapper {
    padding: 1.5rem 1.25rem;
  }

  .media-preview-header {
    flex-direction: column;
    gap: 1.15rem;
  }

  .media-thumbnail-wrapper {
    width: 100%;
    min-width: 100%;
  }

  .media-thumbnail-img {
    height: 220px;
  }

  .metrics-banner {
    padding: 1.35rem 1rem;
  }
}

/* Phones & Small Tablets (max-width: 767.98px) */
@media (max-width: 767.98px) {
  .enterprise-navbar {
    padding: 0.55rem 0 !important;
  }

  /* 1. Mobile First Screen: Balanced Top & Bottom Space, 100% First Screen Visible */
  #downloaderHero.hero-wrapper {
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 1.35rem 0.85rem 1.15rem !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  #downloaderHero .container {
    padding-left: 6px !important;
    padding-right: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #downloaderHero .badge-enterprise {
    font-size: 0.65rem !important;
    padding: 0.26rem 0.72rem !important;
    margin-top: 0 !important;
    margin-bottom: 0.55rem !important;
    gap: 5px !important;
  }

  #downloaderHero .hero-title {
    font-size: clamp(1.25rem, 5.4vw, 1.5rem) !important;
    line-height: 1.22 !important;
    margin-top: 0 !important;
    margin-bottom: 0.55rem !important;
    font-weight: 800 !important;
  }

  /* Subtitle hidden on mobile */
  #downloaderHero .hero-subtitle {
    display: none !important;
    margin: 0 !important;
  }

  #downloaderHero .downloader-box-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
  }

  #downloaderHero .downloader-input-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0.55rem 0.7rem !important;
    gap: 7px !important;
    border-radius: 16px !important;
  }

  #downloaderHero .input-platform-icon {
    display: none !important;
  }

  #downloaderHero .downloader-input {
    font-size: 0.86rem !important;
    padding: 0.4rem 0.55rem !important;
    text-align: center !important;
    width: 100% !important;
  }

  #downloaderHero .input-action-buttons {
    display: flex !important;
    gap: 7px !important;
    width: 100% !important;
  }

  #downloaderHero .btn-paste {
    flex: 1 !important;
    justify-content: center !important;
    padding: 0.48rem 0.8rem !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
  }

  #downloaderHero .btn-fetch {
    flex: 2 !important;
    justify-content: center !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.84rem !important;
    border-radius: 10px !important;
  }

  #downloaderHero .filter-pills-row {
    margin-top: 0.55rem !important;
    margin-bottom: 0.3rem !important;
    gap: 5px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  #downloaderHero .filter-pill {
    font-size: 0.72rem !important;
    padding: 0.25rem 0.6rem !important;
    border-radius: 20px !important;
  }

  #downloaderHero .quick-try-row {
    margin-top: 0.45rem !important;
    margin-bottom: 0 !important;
    font-size: 0.72rem !important;
    gap: 4px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  #downloaderHero .quick-try-btn {
    font-size: 0.72rem !important;
    padding: 0.12rem 0.4rem !important;
  }

  /* 2. Left All Sections Below: Minimum Space Between Sections */
  .platform-hub-section {
    padding: 1rem 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .browser-showcase-section {
    padding: 1rem 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .section-header-centered {
    margin-bottom: 0.65rem !important;
  }

  .section-main-title {
    font-size: 1.22rem !important;
    margin-bottom: 0.2rem !important;
    line-height: 1.25 !important;
  }

  .section-desc-text {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
  }

  .pill-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 0.45rem !important;
  }

  .downloader-pill-card {
    padding: 0.6rem 0.85rem !important;
    font-size: 0.85rem !important;
    border-radius: 14px !important;
    gap: 10px !important;
  }

  .downloader-pill-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
  }

  .feature-card-modern {
    padding: 1.1rem 1rem !important;
    border-radius: 16px !important;
    margin-bottom: 0.4rem !important;
  }

  .browser-card-wrapper {
    padding: 1.15rem 1rem !important;
    border-radius: 18px !important;
  }

  .browser-graphic-box {
    margin-bottom: 0.85rem !important;
    min-height: 180px !important;
    padding: 1.25rem 1rem !important;
  }

  .enterprise-footer {
    padding: 1.5rem 0 1.15rem !important;
    margin-top: 1rem !important;
  }

  .footer-bottom-row {
    margin-top: 1.25rem !important;
    padding-top: 0.85rem !important;
  }

  .footer-heading {
    font-size: 0.95rem !important;
    margin-bottom: 0.55rem !important;
  }

  .footer-links-list li {
    margin-bottom: 0.4rem !important;
  }

  .quality-item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0.85rem 1rem;
  }

  .btn-download-action {
    width: 100%;
    justify-content: center;
  }

  .result-tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 0.5rem;
  }

  .result-tab-btn {
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
  }

  .metric-number {
    font-size: 1.85rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .brand-name {
    font-size: 1.15rem;
  }

  .brand-glyph {
    width: 34px;
    height: 34px;
  }

  #downloaderHero .hero-title {
    font-size: 1.35rem !important;
  }


  .filter-pills-row {
    gap: 4px !important;
  }

  .filter-pill {
    font-size: 0.7rem !important;
    padding: 0.24rem 0.55rem !important;
  }

  .media-thumbnail-img {
    height: 160px;
  }

  .downloader-pill-card {
    padding: 0.55rem 0.75rem !important;
    font-size: 0.82rem !important;
  }
}
