/* =========================================
           11. RESPONSIVE MEDIA QUERIES
           ========================================= */
        @media (max-width: 1024px) {
            .cards-grid-3 {
                grid-template-columns: repeat(2, 1fr);
            }
            .features-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 900px) {
            .nav-links {
                display: none;
            }
            .menu-toggle-btn {
                display: flex;
            }
            .hero-grid {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .hero p.hero-desc {
                margin-left: auto;
                margin-right: auto;
            }
            .hero-cta-group, .hero-trust {
                justify-content: center;
            }
            .guide-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 680px) {
            .cards-grid-3 {
                grid-template-columns: 1fr;
                max-width: 460px;
                margin: 0 auto;
            }
            .footer-grid {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .floating-wa-container {
                bottom: 16px;
                right: 16px;
                gap: 8px;
            }
            .floating-wa-pill {
                font-size: 0.78rem;
                padding: 9px 14px;
                max-width: 210px;
                white-space: normal;
                line-height: 1.25;
            }
            .floating-wa-circle {
                width: 50px;
                height: 50px;
            }
        }

        @media (max-width: 480px) {
            .features-grid {
                grid-template-columns: 1fr;
            }
            .hero {
                padding: 48px 0 66px;
            }
        }

        @media (max-height: 540px) and (orientation: landscape) {
            .modal-overlay {
                align-items: flex-start;
                padding-top: 10px;
                padding-bottom: 10px;
            }
            .modal-header {
                padding: 12px 18px;
            }
            .modal-body {
                padding: 14px 18px;
            }
            .form-group {
                margin-bottom: 10px;
            }
            .form-control {
                padding: 8px 12px;
            }
        }

        .wa-text-mobile {
            display: none;
        }

        @media (max-width: 680px) {
            .wa-text-desktop {
                display: none;
            }

            .wa-text-mobile {
                display: inline;
            }

            .floating-wa-container {
                bottom: 14px;
                right: 14px;
                gap: 8px;
            }

            .floating-wa-pill {
                font-size: 0.78rem;
                padding: 8px 13px;
                white-space: nowrap;
                max-width: none;
            }

            .floating-wa-circle {
                width: 48px;
                height: 48px;
            }
        }

/* =========================================
   MOBILE VIEWPORT GUARD
   Mencegah elemen melebar dan membuat ruang kosong horizontal
   ========================================= */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

body {
    position: relative;
}

img,
video,
iframe {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1180px;
    min-width: 0;
}

@media (max-width: 900px) {
    .hero,
    header,
    main,
    section,
    footer {
        width: 100%;
        max-width: 100%;
    }

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

    .hero-grid > *,
    .hero-cta-group > * {
        min-width: 0;
    }

    .hero-cta-group {
        flex-wrap: wrap;
    }

    .hero-desc,
    .section-header p {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 680px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-wrapper {
        width: 100%;
        min-width: 0;
    }

    .brand {
        min-width: 0;
        max-width: calc(100% - 60px);
    }

    .brand-text-stack {
        min-width: 0;
    }

    .brand-name,
    .brand-domain {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .menu-toggle-btn {
        flex: 0 0 44px;
    }

    .mobile-drawer {
        width: 100%;
        max-width: 100%;
    }

    .mobile-drawer-links a {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .hero {
        overflow: clip;
    }

    .hero h1,
    .hero p,
    .hero-trust > div {
        overflow-wrap: anywhere;
    }

    .hero-cta-group > a {
        max-width: 100%;
    }

    .floating-wa-container {
        max-width: calc(100% - 28px);
    }
}
