/* ==========================================================================
   Responsive — Trusted Updates
   Breakpoints: 991px, 767px, 575px, 480px
   ========================================================================== */

@media (max-width: 991px) {
    .container {
        padding: 0 24px;
    }

    /* Header */
    .header-container {
        padding: 0 24px;
    }

    .site-header .header-inner {
        padding: 12px 0;
    }

    .site-header .site-mobile-logo {
        display: flex;
    }

    .toggle-menu {
        display: flex;
    }

    .site-header .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-header);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 24px;
        z-index: 101;
        transition: transform 0.3s ease;
        border-left: 1px solid var(--border-accent);
        transform: translateX(100%);
    }

    .sidebar-open .site-header .site-nav {
        transform: translateX(0);
    }

    .close-menu {
        display: block;
        color: var(--text-primary);
        font-size: 1.4rem;
        cursor: pointer;
        margin-bottom: 24px;
        align-self: flex-end;
    }

    .site-header .site-logo {
        margin-bottom: 24px;
    }

    .site-header .site-main-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
        width: 100%;
    }

    .site-header .menu-wrapper {
        width: 100%;
    }

    .site-header .site-nav .btn-install {
        width: 100%;
        max-width: none;
        justify-content: center;
        background-size: 100% 100%;
    }

    /* Hero */
    .hero-title {
        font-size: 4rem;
    }

    .hero-section {
        min-height: auto;
        padding: 60px 0 0;
    }

    /* HIW */
    .hiw-step {
        flex-direction: column;
        gap: 32px;
    }

    .hiw-step-visual {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .hiw-timeline {
        display: none;
    }

    .hiw-title {
        font-size: 2.8rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .features-title {
        font-size: 2.8rem;
    }

    /* Uninstall */
    .uninstall-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    /* Inner pages */
    .inner-page-title,
    .contact-title,
    .terms-title,
    .thanks-title,
    .error-title,
    .removed-title {
        font-size: 4rem;
    }

    /* Footer */
    .footer .container {
        padding: 0 24px;
    }

    .footer-wrapper {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-nav-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 32px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .hero-subtitle br {
        display: none;
    }

    .hiw-title,
    .features-title {
        font-size: 2.4rem;
    }

    .step-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card-inner {
        min-height: auto;
    }

    .feature-icon {
        margin-bottom: 32px;
    }

    .uninstall-steps {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .inner-page-title,
    .contact-title,
    .terms-title,
    .thanks-title,
    .error-title,
    .removed-title {
        font-size: 3.2rem;
    }

    .error-bg-text {
        font-size: 12rem;
    }
}

@media (max-width: 575px) {
    html {
        font-size: 9px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-section {
        padding: 40px 0 0;
    }

    .hiw-section,
    .features-section {
        padding: 48px 0 60px;
    }

    .btn-install {
        width: 180px;
    }

    .inner-page-title,
    .contact-title,
    .terms-title,
    .thanks-title,
    .error-title,
    .removed-title {
        font-size: 2.6rem;
    }

    .footer-nav-wrapper {
        gap: 12px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hiw-title,
    .features-title {
        font-size: 2rem;
    }

    .step-title {
        font-size: 1.8rem;
    }

    .feature-card-title,
    .contact-card-title {
        font-size: 2rem;
    }

    .keyword-badge {
        display: block;
        margin-left: 0;
        margin-top: 8px;
    }

    .inner-page-title,
    .contact-title,
    .terms-title,
    .thanks-title,
    .error-title,
    .removed-title {
        font-size: 2.2rem;
    }

    .error-bg-text {
        font-size: 8rem;
    }
}
