/* ==========================================
   RESPONSIVE: All Media Queries
   Mercury-inspired refinement
   ========================================== */

/* ---- RESPONSIVE DISPLAY UTILITIES ---- */

@media (min-width: 992px) {
  .d-lg-block  { display: block !important; }
  .d-lg-inline { display: inline !important; }
  .d-lg-none   { display: none !important; }
}

/* ---- BELOW XL (< 1200px) ---- */

@media (max-width: 1199.98px) {
  .metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .metric-separator {
    display: none;
  }
}

/* ---- LARGE TABLETS / SMALL DESKTOPS (< 992px) ---- */

@media (max-width: 991.98px) {
  :root {
    --section-padding-y: 72px;
    --section-padding-y-lg: 88px;
    --page-top-offset: 140px;
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }

  /* Nav logo */
  .nav-logo {
    width: 155px;
  }

  /* Nav */
  nav.navbar ul.navbar-nav {
    display: none !important;
  }

  nav.navbar .navbar-actions {
    display: none !important;
  }

  .navbar-toggler {
    display: flex;
  }

    /* Hero */
  .hero {
    min-height: auto;
    padding-top: var(--page-top-offset);
    padding-bottom: var(--space-10);
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: var(--space-6) 0;
  }

  .hero-text {
    flex: 1;
    max-width: 100%;
  }

  .hero-headline {
    font-size: var(--text-4xl);
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    flex: 1;
    max-width: 500px;
    margin: var(--space-8) auto 0;
  }

  /* Logo marquee */
  .logo-marquee-track img {
    height: 28px;
    width: 120px;
  }

  /* Success layout */

  .success-text {
    text-align: center;
  }

  .success-checklist li {
    justify-content: center;
  }

  .success-badge {
    display: flex;
    width: fit-content;
    margin: 0 auto;
  }

  /* Testimonials */
  .testimonial-grid {
    columns: 2;
  }

  /* Footer */

  /* Platform thumbnails */
  .platform-thumbnails {
    flex-wrap: wrap;
  }

}


/* ---- TABLETS (< 768px) ---- */

@media (max-width: 767.98px) {
  :root {
    --page-top-offset: 120px;
  }

  /* Metrics */
  .metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .metric-separator {
    display: none;
  }

  .metric-number {
    font-size: var(--text-4xl);
  }

  /* Awards */
  .awards-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .card-award {
    scroll-snap-align: start;
    min-width: 180px;
  }

  .awards-publications {
    gap: var(--space-6);
    flex-wrap: wrap;
  }

  /* Platform thumbnails */
  .platform-thumbnails {
    gap: var(--space-4);
  }

  .platform-thumb-inner {
    height: 120px;
  }
}


/* ---- MOBILE (< 576px) ---- */

@media (max-width: 575.98px) {
  :root {
    --section-padding-y: 56px;
    --section-padding-y-lg: 72px;
    --page-top-offset: 100px;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }

  .hero-headline {
    font-size: var(--text-3xl);
  }

  .hero-typed {
    font-size: var(--text-xl);
  }

  .hero-visual {
    display: none;
  }

  .hero-ctas {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-trust {
    flex-direction: column;
    gap: var(--space-2);
  }

  .hero-trust-sep {
    display: none;
  }

  /* Logo marquee */
  .logo-marquee-track img {
    height: 24px;
    width: 100px;
  }

        .logo-marquee-track {
    gap: var(--space-7);
    padding: 0;
    padding-right: var(--space-7);
  }

  .logo-marquee::before,
  .logo-marquee::after {
    width: 60px;
  }

  

  /* Testimonials */
  .testimonial-grid {
    columns: 1;
  }

  /* Platform */
  .platform-main-screenshot {
    border-radius: var(--radius-lg);
  }

  .platform-thumbnails {
    flex-direction: column;
    align-items: center;
  }


  /* Contact form */

  .contact-copy {
    text-align: center;
  }

  .contact-copy .cta-sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-perks {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-headline {
    font-size: var(--text-2xl);
  }

  .contact-card {
    padding: 28px 24px;
  }

  /* Logo bar */
  .logo-bar-row {
    gap: var(--space-5);
  }

  .logo-placeholder {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
  }

  /* Section header */
  .section-sub {
    font-size: var(--text-base);
  }

  /* Metrics */
  .metrics-row {
    gap: var(--space-6);
  }

  .metric-number {
    font-size: var(--text-3xl);
  }
}
