﻿@media (max-width: 1240px) {

    .container {
        width: min(
            calc(100% - 56px),
            var(--gs-container)
        );
    }

    .desktop-nav {
        gap: 22px;
    }

    .platform-link {
        display: none;
    }

    .hero-inner {
        grid-template-columns:
            minmax(360px, 0.9fr)
            minmax(500px, 1.15fr);

        gap: 45px;
    }
}


@media (max-width: 980px) {

    .header-inner {
        grid-template-columns: auto 1fr auto;
        min-height: 78px;
    }

    .desktop-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-button {
        grid-column: 3;
        display: flex;
        flex-direction: column;
        gap: 5px;

        width: 44px;
        height: 44px;

        align-items: center;
        justify-content: center;

        border:
            1px solid rgba(255, 255, 255, 0.14);

        border-radius: 10px;

        background: rgba(255, 255, 255, 0.05);
    }

    .mobile-menu-button span {
        width: 19px;
        height: 2px;
        background: white;
    }

    .mobile-nav {
        position: fixed;
        top: 78px;
        left: 0;

        width: 100%;
        height: calc(100vh - 78px);

        padding: 35px 28px;

        flex-direction: column;
        gap: 8px;

        background: rgba(3, 20, 33, 0.98);
    }

    .mobile-nav.open {
        display: flex;
    }

    .mobile-nav a:not(.btn) {
        padding: 15px 0;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-nav .btn {
        margin-top: 18px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 65px;

        padding-top: 150px;
        padding-bottom: 135px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 8vw, 5.5rem);
    }

    .product-showcase {
        width: min(100%, 760px);
        margin-inline: auto;
    }

    .showcase-window {
        transform: none;
    }

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

    .decision-card {
        min-height: auto;
    }
}


@media (max-width: 640px) {

    .container {
        width: calc(100% - 36px);
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-text strong {
        font-size: 1.3rem;
    }

    .brand-text span {
        font-size: 0.43rem;
    }

    .hero-inner {
        padding-top: 125px;
        padding-bottom: 120px;
    }

    .eyebrow {
        line-height: 1.7;
        letter-spacing: 0.17em;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 13vw, 4rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

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

    .showcase-viewport {
        min-height: 430px;
    }

    .screen-placeholder {
        min-height: 340px;
    }

    .screen-analysis {
        grid-template-columns: 45px 1fr;
    }

    .fake-content {
        padding: 15px;
    }

    .fake-map {
        height: 255px;
    }

    .fake-panel {
        right: 24px;
        bottom: 28px;
        width: 175px;
    }

    .showcase-caption {
        min-height: 90px;
        padding-inline: 18px;
    }

    .showcase-caption p {
        display: none;
    }

    .decision-section {
        padding: 85px 0 95px;
    }

    .decision-grid {
        margin-top: 45px;
    }
}
