/* Qomply mobile refinement
   Intentionally narrow: preserves the established desktop and section themes. */

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
    overscroll-behavior-y: contain;
  }

  body {
    min-width: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  button,
  a,
  select,
  input,
  textarea {
    touch-action: manipulation;
  }

  /* Header: preserve the logo's natural proportions. */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: env(safe-area-inset-top);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(16, 47, 84, .06);
    backdrop-filter: blur(16px);
  }

  .nav-wrap {
    width: calc(100% - 32px);
    height: 72px;
    gap: 10px;
  }

  .brand {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
  }

  .brand img {
    display: block;
    width: 112px;
    height: auto;
    max-height: 44px;
    object-fit: contain;
    object-position: left center;
  }

  .language-switcher {
    min-height: 44px;
    margin-left: auto;
  }

  .language-switcher select {
    min-height: 44px;
  }

  .menu-toggle {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    margin-left: 0;
  }

  .mobile-nav {
    top: calc(72px + env(safe-area-inset-top));
    gap: 6px;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 42px rgba(16, 47, 84, .15);
  }

  .mobile-nav button {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    font-size: 15px;
  }

  .mobile-nav button:last-child {
    margin-top: 4px;
    color: #fff;
    text-align: center;
    background: var(--blue-600);
  }

  /* Hero: retain the original dark theme and guarantee readable contrast. */
  .hero {
    color: #fff;
    background: var(--navy-950);
  }

  .hero-grid {
    min-height: auto;
    padding: 54px 0 58px;
    gap: 36px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    max-width: 11ch;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(42px, 12vw, 56px);
    line-height: 1.02;
    letter-spacing: -.055em;
  }

  .hero h1 em {
    color: var(--teal-400);
  }

  .hero-copy > p {
    max-width: 34rem;
    margin: 0;
    color: #d7e4ee;
    font-size: 17px;
    line-height: 1.65;
  }

  /* The interactive demo is desktop-only. Talk to us is the sole mobile CTA. */
  .hero-actions .demo-launch {
    display: none !important;
  }

  .hero-actions {
    display: block;
    margin-top: 28px;
  }

  .hero-actions .btn-ghost {
    width: 100%;
    min-height: 54px;
    padding-inline: 20px;
    color: #fff;
    background: var(--blue-600);
    border-color: var(--blue-600);
    border-radius: 13px;
    box-shadow: 0 12px 28px rgba(18, 104, 179, .32);
  }

  .hero-actions .btn-ghost:hover,
  .hero-actions .btn-ghost:active {
    color: #fff;
    background: #0d599b;
  }

  .mini-proof {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .mini-proof span {
    min-height: 32px;
    color: #d7e4ee;
    font-size: 13px;
  }

  .product-stage {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding-top: 0;
  }

  .product-stage img {
    width: 100%;
    height: auto;
    margin-left: 0;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
  }

  /* Content rhythm without changing section color themes. */
  .section {
    padding-block: 68px;
  }

  .section-head,
  .section-head.centered,
  .section-head.compact {
    margin-bottom: 34px;
  }

  .section-head h2,
  .platform-copy h2,
  .faq-intro h2,
  .contact-section h2 {
    font-size: clamp(34px, 9.2vw, 43px);
    line-height: 1.1;
    letter-spacing: -.045em;
  }

  .section-head p,
  .platform-copy > p,
  .faq-intro > p {
    font-size: 16px;
    line-height: 1.65;
  }

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

  .proof-intro {
    grid-column: 1 / -1;
  }

  .proof-intro strong,
  .proof-stat strong {
    color: var(--navy-900);
  }

  .proof-stat span {
    color: var(--muted);
  }

  .workflow-grid,
  .capability-grid,
  .industry-grid,
  .platform-grid,
  .faq-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .workflow-card,
  .capability-card,
  .industry-grid article {
    min-height: 0;
  }

  .capability-card:last-child .capability-list {
    grid-template-columns: 1fr;
  }

  .capability-card:last-child .capability-item:first-child {
    border-bottom: 1px solid var(--line);
  }

  .faq-list button,
  .contact-section input,
  .contact-section select {
    min-height: 48px;
  }

  .contact-section input,
  .contact-section select,
  .contact-section textarea {
    font-size: 16px;
  }

  .contact-section .btn {
    width: 100%;
    min-height: 52px;
  }

  .footer-bottom {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  :focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 3px;
  }
}

@media (max-width: 380px) {
  .nav-wrap {
    width: calc(100% - 24px);
  }

  .brand img {
    width: 98px;
  }

  .hero h1 {
    font-size: 40px;
  }

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

  .proof-intro {
    grid-column: auto;
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  .hero-grid {
    padding-block: 42px;
  }

  .hero h1 {
    max-width: 16ch;
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
