/* Final cross-device guardrails, loaded after all component styles. */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

img,
svg,
canvas {
    max-width: 100%;
}

.header-inner,
.hero-stage,
.container {
    width: min(100%, 1440px);
}

@media (min-width: 1441px) {
    .hero-stage {
        min-height: 590px;
    }

    .hero-content {
        max-width: 620px;
    }
}

@media (max-width: 1100px) {
    .header-inner {
        padding-inline: clamp(1rem, 3vw, 2rem);
    }

    .nav {
        gap: clamp(0.45rem, 1.25vw, 1rem);
    }

    .hero-stage {
        gap: clamp(1.25rem, 3vw, 2.5rem);
        padding-inline: clamp(1.5rem, 4vw, 3rem);
    }

    .hero-content .title-main {
        font-size: clamp(2.75rem, 5.7vw, 4.8rem) !important;
    }
}

@media (max-width: 900px) {
    .header {
        min-height: 68px;
    }

    .header-inner {
        min-height: 68px;
    }

    .hero {
        padding-top: 1rem;
    }

    .hero-stage {
        grid-template-columns: 1fr;
        padding: clamp(1.5rem, 6vw, 2.75rem);
    }

    .hero-content {
        width: min(100%, 640px);
        margin-inline: auto;
    }

    .globe-shell {
        width: min(100%, 620px);
        margin-inline: auto;
    }

    .carriers {
        padding-inline: 1rem;
    }
}

@media (max-width: 600px) {
    .logo {
        max-width: 92px;
    }

    .hero-stage {
        border-radius: 24px;
        padding: 1.35rem 1rem 1.1rem;
    }

    .hero-content .title-main {
        font-size: clamp(2.25rem, 11.5vw, 3.35rem) !important;
        line-height: 1.02;
    }

    .hero-content .title-sub {
        font-size: clamp(1.15rem, 5vw, 1.55rem) !important;
        line-height: 1.35;
    }

    .domain,
    .bookmark-tip {
        font-size: 0.95rem;
    }

    .hero-content .buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-content .buttons .button-6 {
        width: 100%;
        min-width: 0;
    }

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

    .globe-shell {
        min-height: 390px;
    }

    .globe-viewport {
        min-height: 330px;
    }

    .footer-copyright {
        padding: 1rem 1.25rem;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .hero-stage {
        padding-inline: 0.8rem;
    }

    .hero-content .buttons,
    .download-links {
        grid-template-columns: 1fr;
    }

    .hero-content .title-main {
        font-size: clamp(2rem, 11vw, 2.65rem) !important;
    }

    .globe-shell {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 350px;
    }

    .globe-viewport {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 300px;
    }

    #cecilGlobe {
        width: 100% !important;
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-height: 560px) and (orientation: landscape) {
    .header,
    .header-inner {
        min-height: 58px;
    }

    .hero {
        padding-top: 0.5rem;
    }

    .hero-stage {
        padding-block: 1rem;
    }

    .globe-shell {
        min-height: 310px;
    }

    .globe-viewport {
        min-height: 270px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
