/* =====================================================
   HourBound Public Website
   Coming Soon Page
   Responsive for desktop, tablet and mobile
===================================================== */


/* ---------------------------------
   Reset
---------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

html {
    background-color: #02060d;
}

body {
    min-height: 100vh;
    min-height: 100svh;

    overflow: hidden;

    background-color: #02060d;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* ---------------------------------
   Main page
---------------------------------- */

.coming-soon-page {
    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    display: grid;
    place-items: center;

    overflow: hidden;

    isolation: isolate;

    background-color: #02060d;
}


/* ---------------------------------
   Full-screen blurred background
---------------------------------- */

.coming-soon-background {
    position: absolute;
    inset: -40px;

    z-index: -3;

    background-image:
        url("/website/images/hourbound-coming-soon.png");

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    filter:
        blur(24px)
        brightness(0.48)
        saturate(1.15);

    transform: scale(1.1);
}


/* ---------------------------------
   Dark blue overlay
---------------------------------- */

.coming-soon-overlay {
    position: absolute;
    inset: 0;

    z-index: -2;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 110, 220, 0.12) 0%,
            rgba(2, 6, 13, 0.48) 55%,
            rgba(2, 6, 13, 0.88) 100%
        );

    pointer-events: none;
}


/* ---------------------------------
   Main image container
---------------------------------- */

.coming-soon-content {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        env(safe-area-inset-top)
        env(safe-area-inset-right)
        env(safe-area-inset-bottom)
        env(safe-area-inset-left);
}


/* ---------------------------------
   Clear main artwork
---------------------------------- */

.coming-soon-image {
    display: block;

    width: auto;
    height: 100vh;
    height: 100svh;

    max-width: 100%;
    max-height: 100vh;
    max-height: 100svh;

    object-fit: contain;
    object-position: center;

    filter:
        drop-shadow(
            0 0 30px rgba(0, 120, 255, 0.24)
        );

    animation:
        hourbound-fade-in 1.2s ease-out both;
}


/* ---------------------------------
   Fade-in animation
---------------------------------- */

@keyframes hourbound-fade-in {
    from {
        opacity: 0;
        transform: scale(1.015);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ---------------------------------
   Large desktop screens
---------------------------------- */

@media (min-width: 1600px) {
    .coming-soon-image {
        height: 100svh;
    }
}


/* ---------------------------------
   Tablets and smaller laptops
---------------------------------- */

@media (max-width: 1024px) {
    .coming-soon-background {
        inset: -25px;

        filter:
            blur(18px)
            brightness(0.46)
            saturate(1.1);
    }

    .coming-soon-image {
        width: 100%;
        height: 100svh;

        object-fit: contain;
    }
}


/* ---------------------------------
   Phones
---------------------------------- */

@media (max-width: 768px) {
    body {
        overflow: hidden;
    }

    .coming-soon-page,
    .coming-soon-content {
        width: 100%;
        min-height: 100svh;
    }

    .coming-soon-background {
        inset: -15px;

        filter:
            blur(12px)
            brightness(0.42);
    }

    .coming-soon-content {
        align-items: center;
        justify-content: center;
    }

    .coming-soon-image {
        width: 100%;
        height: 100svh;

        max-width: 100%;
        max-height: 100svh;

        object-fit: contain;
        object-position: center;
    }
}


/* ---------------------------------
   Very narrow phones
---------------------------------- */

@media (max-width: 480px) {
    .coming-soon-background {
        filter:
            blur(9px)
            brightness(0.4);
    }

    .coming-soon-image {
        width: 100%;
        height: auto;

        max-height: 100svh;

        object-fit: contain;
    }
}


/* ---------------------------------
   Landscape phones
---------------------------------- */

@media (
    max-height: 500px
)
and (
    orientation: landscape
) {
    .coming-soon-image {
        width: auto;
        height: 100svh;

        max-width: 100%;
        max-height: 100svh;
    }
}


/* ---------------------------------
   Accessibility
---------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .coming-soon-image {
        animation: none;
    }
}