:root {
    --navy: #062a61;
    --deep-navy: #031d45;
    --orange: #ff6700;
    --soft-bg: #f8fafc;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #111827;
    background: var(--soft-bg);
    font-family: "Inter", sans-serif;
}

/* Page loader */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: var(--deep-navy);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Header */

.site-header {
    min-height: 160px;
    display: grid;
    place-items: center;
    padding: 28px 15px;
    background: #ffffff;
}

.site-logo {
    width: min(350px, 75vw);
    height: auto;
}

/* Hero */

.hero-section {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(
            90deg,
            rgba(2, 35, 78, 0.96) 0%,
            rgba(3, 42, 89, 0.83) 48%,
            rgba(3, 28, 64, 0.42) 100%
        ),
        url("../img/hero-bg.png") center / cover no-repeat;
    background:
        linear-gradient(
            90deg,
            rgba(2, 35, 78, 0.96) 0%,
            rgba(3, 42, 89, 0.83) 48%,
            rgba(3, 28, 64, 0.42) 100%
        ),
        image-set(
            url("../img/hero-bg.webp") type("image/webp"),
            url("../img/hero-bg.png") type("image/png")
        ) center / cover no-repeat;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(transparent, rgba(2, 30, 69, 0.55));
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    max-width: 700px;
    margin-bottom: 22px;
    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: 1.05;
    letter-spacing: -3px;
    font-weight: 800;
}

.hero-title .accent {
    display: block;
    color: var(--orange);
}

.hero-copy {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.12rem;
    line-height: 1.9;
}

.download-title {
    margin: 40px 0 18px;
    font-size: 1.35rem;
    font-weight: 700;
}

.store-badge {
    display: block;
    width: auto;
    height: 58px;
    transition: transform 0.2s ease;
}

.store-badge:hover {
    transform: translateY(-3px);
}

.availability {
    display: flex;
    gap: 11px;
    align-items: center;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.88);
}


.preview-section {
    padding: 55px 0 65px;
    background: #ffffff;
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

.section-title {
    width: fit-content;
    margin: 0 auto 35px;
    padding: 12px 28px;
    color: #ffffff;
    background: var(--deep-navy);
    border-radius: 50rem;
    font-size: 1.45rem;
    font-weight: 800;
    text-align: center;
}

.preview-phone {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.preview-phone.image-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */

.site-footer {
    min-height: 125px;
    display: grid;
    place-items: center;
    padding: 25px 15px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, #031c43, #073773);
}

.site-footer p {
    margin: 0;
}

@media (max-width: 991.98px) {
    .site-header {
        min-height: 125px;
    }

    .hero-section {
        min-height: auto;
        padding: 75px 0 0;
        text-align: center;
    }

    .hero-title,
    .hero-copy {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-title {
        letter-spacing: -2px;
    }

    .store-links,
    .availability {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .site-header {
        min-height: 105px;
        padding: 20px 15px;
    }

    .hero-section {
        padding-top: 58px;
    }

    .hero-title {
        font-size: 2.45rem;
        letter-spacing: -1.5px;
    }

    .hero-copy {
        font-size: 1rem;
        line-height: 1.75;
    }

    .download-title {
        margin-top: 32px;
    }

    .store-badge {
        height: 50px;
    }

    .preview-section {
        padding: 45px 0 50px;
    }

    .section-title {
        margin-bottom: 28px;
        padding: 10px 22px;
        font-size: 1.25rem;
    }

    .preview-phone {
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
