/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    overflow: hidden;
    background: #080808;
    color: #ffffff;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* =========================================================
   PRODUCT RAIN
========================================================= */

.product-rain {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    pointer-events: none;

    perspective: 1000px;
}


/*
    Each product is positioned by JavaScript.

    CSS variables:

    --x          horizontal position
    --size       image size
    --duration   fall duration
    --delay      animation delay
    --rotation   rotation amount
    --drift      horizontal movement
*/

.product {
    position: absolute;

    top: -180px;
    left: var(--x);

    width: var(--size);
    height: var(--size);

    object-fit: contain;

    opacity: var(--opacity);

    filter:
        blur(var(--blur))
        saturate(0.85);

    transform:
        translate3d(0, -200px, 0)
        rotate(var(--rotation-start));

    animation:
        productFall
        var(--duration)
        linear
        var(--delay)
        infinite;

    will-change: transform;
}


/* Different depth layers */

.product.depth-front {
    z-index: 3;
}

.product.depth-middle {
    z-index: 2;
}

.product.depth-back {
    z-index: 1;
}


/*
    Product falls vertically while drifting sideways.

    The CSS variable --drift is generated by JS.
*/

@keyframes productFall {

    0% {
        transform:
            translate3d(0, -220px, 0)
            rotate(var(--rotation-start));
    }

    25% {
        transform:
            translate3d(
                calc(var(--drift) * 0.25),
                25vh,
                0
            )
            rotate(calc(var(--rotation-start) + 35deg));
    }

    50% {
        transform:
            translate3d(
                calc(var(--drift) * -0.15),
                50vh,
                0
            )
            rotate(calc(var(--rotation-start) - 20deg));
    }

    75% {
        transform:
            translate3d(
                calc(var(--drift) * 0.5),
                75vh,
                0
            )
            rotate(calc(var(--rotation-start) + 50deg));
    }

    100% {
        transform:
            translate3d(
                var(--drift),
                120vh,
                0
            )
            rotate(calc(var(--rotation-start) + 90deg));
    }
}


/* =========================================================
   BACKGROUND OVERLAY
========================================================= */

.background-overlay {
    position: fixed;
    inset: 0;

    z-index: 10;

    pointer-events: none;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.88)
        );

    backdrop-filter: blur(1px);
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.coming-soon {
    position: relative;

    z-index: 20;

    min-height: 100vh;
    width: 100%;

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

    padding: 40px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    width: min(1200px, 100%);
    min-height: calc(100vh - 80px);

    display: flex;
    flex-direction: column;

    justify-content: space-between;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    padding-top: 10px;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.35em;

    text-transform: uppercase;
}


/* =========================================================
   CONTENT
========================================================= */

.content {
    width: min(720px, 100%);

    margin: auto 0;
}


.eyebrow {
    display: inline-block;

    margin-bottom: 25px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.25em;

    color: rgba(255, 255, 255, 0.55);
}


h1 {
    margin-bottom: 25px;

    font-size: clamp(3rem, 7vw, 7rem);

    line-height: 0.95;

    font-weight: 700;

    letter-spacing: -0.055em;
}


h1 span {
    color: rgba(255, 255, 255, 0.45);
}


.content p {
    width: min(520px, 100%);

    margin-bottom: 35px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================================
   EMAIL FORM
========================================================= */

.notify-form {
    width: min(500px, 100%);

    display: flex;

    padding: 5px;

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

    background: rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(15px);

    border-radius: 100px;
}


.notify-form input {
    flex: 1;

    min-width: 0;

    padding: 15px 20px;

    border: none;
    outline: none;

    background: transparent;

    color: white;

    font-size: 14px;
}


.notify-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}


.notify-form button {
    padding: 14px 24px;

    border: none;
    border-radius: 100px;

    background: white;
    color: black;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.notify-form button:hover {
    transform: scale(1.03);
    background: #eeeeee;
}


.form-message {
    min-height: 24px;

    margin-top: 12px;

    font-size: 13px;

    color: rgba(255, 255, 255, 0.65);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    display: flex;

    justify-content: space-between;

    padding-bottom: 10px;

    color: rgba(255, 255, 255, 0.35);

    font-size: 11px;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    body {
        overflow: hidden;
    }

    .coming-soon {
        padding: 25px;
    }

    .hero {
        min-height: calc(100vh - 50px);
    }

    h1 {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .content p {
        font-size: 15px;
    }

    .notify-form {
        flex-direction: column;

        border-radius: 20px;

        padding: 8px;
    }

    .notify-form input {
        padding: 15px;
    }

    .notify-form button {
        width: 100%;
    }

    .footer {
        font-size: 9px;
    }
}


/* =========================================================
   REDUCE MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .product {
        animation: none;
        opacity: 0.15;
    }

}