/* ==================================================
   RESPONSIVE CSS — Breakpoint-specific adjustments
   ================================================== */

/* ================= TABLETS & SMALL LAPTOPS ================= */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: var(--space-7);
        text-align: center;
    }

    .hero__content {
        max-width: 640px;
        margin: 0 auto;
    }

    .hero__description {
        margin: 0 auto var(--space-7);
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__visual {
        height: 320px;
        max-width: 640px;
        margin: 0 auto;
    }

    .product-card {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .product-card__image {
        aspect-ratio: 16 / 9;
    }

    .product-card__content {
        padding: var(--space-2);
    }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    :root {
        --section-pad: 3.5rem;
        --container-pad: 1.25rem;
    }

    /* Nav toggle appears */
    .nav-toggle {
        display: flex;
        z-index: calc(var(--z-nav) + 300);
    }

    /*
        NOTE: the <header> uses backdrop-filter, which makes it the
        containing block for fixed descendants. So the menu cannot rely
        on `inset: 0` (it would only span the header's 4.5rem height).
        We give it an explicit viewport height instead.
    */
    .nav {
        z-index: calc(var(--z-nav) + 100);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-6);
        z-index: calc(var(--z-nav) + 200);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-100%);
        transition: transform var(--transition-slow), opacity var(--transition-base), visibility var(--transition-base);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link {
        font-size: var(--font-size-lg);
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        padding-top: 5.5rem;
        min-height: auto;
    }

    .hero__title {
        font-size: clamp(var(--font-size-2xl), 10vw, var(--font-size-4xl));
    }

    .hero__visual {
        display: none;
    }

    .product-card {
        padding: var(--space-5);
    }

    .product-card__features-list {
        grid-template-columns: 1fr;
    }

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

    .footer__content {
        flex-direction: column;
        gap: var(--space-6);
    }

    .footer__links {
        gap: var(--space-4);
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ================= SMALL MOBILE ================= */
@media (max-width: 480px) {
    .nav {
        height: 4rem;
    }

    .logo-text {
        font-size: var(--font-size-base);
    }

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

    .hero__actions .btn {
        width: 100%;
    }

    .product-card__actions {
        flex-direction: column;
    }

    .product-card__actions .btn {
        width: 100%;
    }

    .product-card__features-title {
        text-align: left;
    }

    .section-header {
        margin-bottom: var(--space-7);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }
}

/* ================= LANDSCAPE MOBILE ================= */
@media (max-height: 480px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 0 3rem;
    }

    .hero__visual {
        display: none;
    }
}

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}