/* ═══════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════ */

/* Mobile First approach is generally used, but here we'll add overrides for smaller screens */

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

body.menu-open .nav-header {
    overflow: visible !important;
}

body.menu-open .nav-inner {
    overflow: visible !important;
}

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

    .hero-title {
        font-size: clamp(2.6rem, 5vw, 3.8rem);
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding-inline: 1rem;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        padding: 2rem;
        transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        gap: var(--space-8);
        visibility: visible;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        z-index: 1000;
        background: var(--blue-50);
        border: none;
        width: 44px;
        height: 44px;
        border-radius: var(--radius-full);
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .nav-links li {
        width: auto;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }

    .nav-link {
        font-size: 2rem;
        font-weight: var(--fw-bold);
        color: var(--blue-900);
        padding: var(--space-2) var(--space-4);
        transition: color 0.3s ease;
    }

    .nav-link:hover {
        color: var(--orange-500);
        background: none;
    }

    .nav-actions {
        display: none;
    }

    .mobile-actions {
        display: flex;
        flex-direction: column;
        gap: var(--space-4);
        margin-top: var(--space-6);
        padding: 0 var(--space-4);
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-actions a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .nav-toggle span {
        width: 24px;
        height: 2px;
        background: var(--blue-900);
    }

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

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

    .module-row,
    .module-row--reverse {
        flex-direction: column !important;
        gap: 40px;
    }

    .module-content,
    .module-visual {
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .container {
        max-width: 100%;
        padding-inline: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .hero-card,
    .hero-title,
    .hero-subtitle {
        max-width: 100%;
        width: 100%;
    }

    .hero-panel {
        justify-content: center;
    }

    .hero-card {
        width: 100%;
        border-radius: 1.5rem;
    }

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

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-outline {
        justify-content: center;
    }

    .hero-badge {
        justify-content: center;
    }

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

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

    .step-arrow {
        display: none;
    }

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

    .stats-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .stat-divider {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }

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

@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding-inline: 1rem;
    }

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

    .hero-copy,
    .hero-card,
    .hero-title,
    .hero-subtitle {
        max-width: 100%;
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-lg,
    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .stats-inner {
        grid-template-columns: 1fr;
    }

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