@media (max-width: 1180px) {
  :root {
    --section-pad: 88px;
  }

  .nav-links,
  .btn-nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: inline-flex;
  }

  .hero-layout {
    grid-template-columns: 1fr 0.92fr;
    gap: 40px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .phone-mockup {
    width: 282px;
  }

  .cat-grid,
  .services-grid {
    gap: 14px;
  }
}

@media (max-width: 980px) {
  :root {
    --section-pad: 76px;
  }

  .nav-links,
  .btn-nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: inline-flex;
  }

  .hero-layout,
  .about-grid,
  .join-grid,
  .contact-grid,
  .partners-layout,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 48px;
  }

  #hero {
    min-height: auto;
    padding-top: 120px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-visual {
    min-height: 560px;
    max-width: 600px;
    width: 100%;
    margin-inline: auto;
  }

  .showcase-grid {
    gap: 44px;
  }

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

  .about-image {
    width: 100%;
    max-height: 560px;
  }

  .about-note {
    inset-inline-end: 24px;
  }

  .join-grid-reverse .form-card {
    order: 2;
  }

  .join-grid-reverse .join-info {
    order: 1;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --section-pad: 64px;
  }

  /* reveal animations slide vertically only on phones —
     the ±28px horizontal slide made full-width cards overlap/overflow mid-scroll */
  html.js [data-reveal='left'],
  html.js [data-reveal='right'],
  html.js body.lang-en [data-reveal='left'],
  html.js body.lang-en [data-reveal='right'] {
    transform: translateY(26px);
  }

  html.js [data-reveal].revealed {
    transform: none;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .nav-inner {
    min-height: 70px;
  }

  .nav-mobile {
    top: 70px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
    gap: 18px;
  }

  .hero-title span:last-child {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
    max-width: 16ch;
    line-height: 1.16;
  }

  body.lang-ar .hero-title {
    font-size: clamp(2.2rem, 11.5vw, 3.4rem);
    gap: 14px;
  }

  body.lang-ar .hero-title span:last-child {
    font-size: clamp(1.5rem, 7vw, 2.1rem);
  }

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

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

  .stats-grid,
  .services-grid,
  .why-grid,
  .about-vision-cards,
  .partners-grid,
  .form-row,
  .modal-platforms {
    grid-template-columns: 1fr;
  }

  .service-card,
  .why-card {
    min-height: auto;
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 20px;
    max-width: 420px;
  }

  .float-chip {
    display: none;
  }

  .hero-photo-card,
  .phone-mockup {
    position: relative;
    inset: auto;
    top: auto;
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
    transform: none;
  }

  body.lang-en .hero-photo-card,
  .phone-mockup-showcase,
  body.lang-en .phone-mockup-showcase {
    transform: none;
  }

  .phone-mockup {
    min-height: auto;
  }

  .about-note {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .partners-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  :root {
    --section-pad: 54px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  #hero {
    padding-top: 104px;
    padding-bottom: 56px;
  }

  .hero-sub,
  .section-sub,
  .join-info > p,
  .contact-info > p {
    font-size: 1rem;
  }

  .hero-cta-group {
    gap: 8px;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    flex: 1 1 0;
    min-height: 50px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .showcase-badges,
  .modal-notify-form {
    flex-direction: column;
  }

  .app-badge-btn,
  .btn-notify {
    width: 100%;
    justify-content: center;
  }

  .cat-grid {
    gap: 10px;
  }

  .cat-card {
    padding: 20px 10px;
    gap: 10px;
  }

  .cat-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
    flex: 0 0 64px;
    border-radius: 18px;
  }

  .phone-mockup {
    width: 100%;
    max-width: 320px;
  }

  .stat-item {
    min-height: 112px;
  }

  .form-card,
  .action-card {
    padding: 28px 22px;
  }

  .modal-card,
  .modal-card-lg {
    padding: 28px 20px;
  }

  .partner-card,
  .contact-card {
    align-items: flex-start;
  }

  .footer-app-btns,
  .footer-app-btn {
    width: 100%;
  }

  .footer-app-btn {
    justify-content: center;
  }
}

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