/* ============================
   RESPONSIVE
   ============================ */
    @media (max-width: 1024px) {
      .features-grid {
        grid-template-columns: repeat(2, 1fr)
      }

      .feature-card.wide {
        grid-column: span 2
      }

      .sms-grid {
        grid-template-columns: 1fr
      }

      .stats-grid {
        grid-template-columns: repeat(2, 1fr)
      }
    }
@media (max-width: 900px) {
      .hero {
        padding: 70px 0 80px;
        min-height: auto;
        /* On mobile keep the image but shift position so the person is less dominant */
        /* background-position: 80% center; */
      }

      /* Strengthen overlay on mobile so text on photo is legible */
      .hero::after {
        background: linear-gradient(to bottom,
            rgba(8, 0, 4, 0.88) 0%,
            rgba(8, 0, 4, 0.82) 60%,
            rgba(8, 0, 4, 0.75) 100%)
      }

      .hero .wrap {
        grid-template-columns: 1fr;
        text-align: center
      }

      .hero-lead {
        margin-left: auto;
        margin-right: auto
      }

      .hero-cta {
        justify-content: center
      }

      .hero-trust {
        justify-content: center
      }

      .hero-trust::before {
        display: none
      }

      /* Show demo card below text on tablet */
      .hero .demo-card {
        max-width: 520px;
        margin: 0 auto;
        color: var(--ink);
      }

      .hierarchy-grid {
        grid-template-columns: 1fr
      }

      .roles-grid {
        grid-template-columns: repeat(2, 1fr)
      }

      .hamburger {
        display: block;
        margin-left: auto;
        margin-right: 12px
      }

      .theme-toggle {
        margin-left: 0
      }

      .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #000;
        flex-direction: column;
        padding: 24px;
        gap: 18px;
        border-bottom: 2px solid var(--red);
      }

      .nav-links.open {
        display: flex
      }

      html[data-theme="light"] .nav-links {
        background: #fff
      }
    }
@media (max-width: 640px) {
      section {
        padding: 70px 0
      }

      .features-grid {
        grid-template-columns: 1fr
      }

      .feature-card.wide {
        grid-column: span 1
      }

      .roles-grid {
        grid-template-columns: 1fr
      }

      .stats-grid {
        grid-template-columns: 1fr
      }

      .contact-form {
        grid-template-columns: 1fr
      }

      .hero h1 {
        font-size: clamp(32px, 8vw, 44px)
      }

      .hero-cta .btn {
        width: 100%;
        text-align: center
      }

      .feature-card {
        padding: 28px
      }

      .demo-steps button {
        font-size: 11px;
        padding: 9px 2px
      }

      .hierarchy-levels button:nth-child(n) {
        margin-left: 0
      }

      .section-header {
        margin-bottom: 40px
      }

      /* Hide demo card on small phones — content area is too cramped */
      .hero .demo-card {
        display: none
      }
    }
@media (max-width: 380px) {
      .wrap {
        padding: 0 16px
      }

      .hero {
        padding: 50px 0 60px
      }

      .feature-card {
        padding: 22px
      }

      .role-card {
        padding: 22px
      }

      .demo-card {
        padding: 22px
      }

      nav {
        height: 64px
      }
    }
/* Mobile menu in light mode */
    @media (max-width: 900px) {
      html[data-theme="light"] .nav-links {
        background: #fff
      }
    }