/* Launch-system surfaces and small shell UX fixes. */

@media (max-width: 520px) {
    .gpx-search {
        width: 150px;
        height: 44px;
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 4px;
        padding: 0 0 0 10px;
        box-sizing: border-box;
    }

    .gpx-search__icon {
        display: none;
    }

    .gpx-search button {
        width: 44px;
        height: 44px;
        display: grid;
        border-radius: 9px;
    }
}

@media (max-width: 380px) {
    .gpx-header__logo {
        width: 128px;
        height: 21px;
    }

    .gpx-search {
        width: 144px;
    }
}

@media (max-width: 340px) {
    .gpx-header__logo {
        width: 108px;
        height: 18px;
    }

    .gpx-search {
        width: 126px;
    }
}

.error404 .site-content {
    min-height: 0;
}

.gpx-system-page {
    width: min(calc(100% - 48px), 980px);
    margin: 0 auto;
    padding: clamp(48px, 8vw, 96px) 0 72px;
}

.gpx-system-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid #20364d;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(13, 24, 37, 0.96), rgba(7, 14, 23, 0.96));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.gpx-system-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0;
    background: radial-gradient(circle at 82% 12%, rgba(66, 232, 255, 0.10), transparent 34%), radial-gradient(circle at 8% 100%, rgba(140, 91, 255, 0.08), transparent 30%);
}

.gpx-system-card > * {
    position: relative;
    z-index: 1;
}

.gpx-system-kicker {
    margin: 0 0 8px;
    color: var(--gpx-accent);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gpx-system-title {
    max-width: 760px;
    margin: 0;
    color: var(--gpx-text);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.gpx-system-copy {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--gpx-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.gpx-system-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    max-width: 620px;
    margin-top: 28px;
}

.gpx-system-search input {
    min-width: 0;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid #29425b;
    border-radius: 11px;
    outline: 0;
    background: #08131f;
    color: var(--gpx-text);
    box-shadow: none;
}

.gpx-system-search input:focus {
    border-color: rgba(66, 232, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(66, 232, 255, 0.08);
}

.gpx-system-search button,
.gpx-system-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(66, 232, 255, 0.45);
    border-radius: 11px;
    background: #0d2230;
    color: #dffbff;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: 160ms ease;
}

.gpx-system-search button:hover,
.gpx-system-action:hover {
    border-color: var(--gpx-accent);
    color: var(--gpx-accent);
    transform: translateY(-1px);
}

.gpx-system-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.gpx-system-action--secondary {
    border-color: #293d52;
    background: #0a1520;
    color: #a9bbcc;
}

@media (max-width: 980px) {
    .gpx-system-page {
        width: min(calc(100% - 24px), 980px);
    }
}

@media (max-width: 560px) {
    .gpx-system-page {
        padding-top: 34px;
    }

    .gpx-system-card {
        padding: 26px 18px;
        border-radius: 16px;
    }

    .gpx-system-search {
        grid-template-columns: 1fr;
    }

    .gpx-system-search button,
    .gpx-system-action {
        width: 100%;
    }

    .gpx-system-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}
