* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --boxShadow-container: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    --hero-surface: #745BF1;
    --default: #6D6D78;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #FFF;
}


h1,
h2,
h3,
h4 {
    font-family: "Outfit", sans-serif;
}

p,
a {
    font-family: "DM Sans", sans-serif;
    color: var(--default);
}

a {
    text-decoration: none;
}

.title-content {
    text-align: center;
    margin-bottom: 2em;

    h2 {
        margin-bottom: 10px;
    }

    .description {
        width: 90%;
        margin: 0 auto;
    }
}


/* Animations */
@keyframes basketball-bounce {
    0% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    }

    45% {
        transform: translateY(20px);
        animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
    }

    100% {
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}
/* -------- */


/* BioSite */
.container {
    max-width: 420px;
    margin: 0 auto;
    background: #F5EFE1;
    padding: 40px 20px;
    margin-top: 2em;
    border-radius: 20px;
    box-shadow: var(--boxShadow-container);
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}


#benefits,
#models {
    margin-top: 4em;
}


/* Hero images */
.bg-paint1-hero,
.bg-paint2-hero {
    position: absolute;
    z-index: 8;
    opacity: .3;

}

.bg-paint1-hero {
    top: 360px;
    left: -60px;
}

.bg-paint2-hero {
    transform: rotate(-120deg);
    right: -10%;
    top: -40px;
}

.bg-hero-image {
    position: absolute;
    right: 0;
    top: 5%;
    z-index: 7;
    width: 80%;
}

.small {
    color: #FFFFFF;
    font-size: 0.9em;
    font-weight: 600;
    padding: 8px 20px;
    background: #E5E1F9;
    margin: 0 auto;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    position: absolute;
    z-index: 9;
    left: 0;
    width: 320px;
    text-align: end;
    background: linear-gradient(to right, #7F9769, #836549);
}

/* Hero */
#hero {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    margin: 4em 0;
    padding-bottom: 5em;

    .content {
        position: relative;
        z-index: 10;
        display: flex;
        flex-direction: column;
        gap: 1.2em;
    }

    h1 {
        font-size: 2.2em;
        line-height: 1.2;
        font-weight: 800;
    }

    .contrast-instagram {
        color: #899448;
    }

    .linear-contrast {
        background-image: linear-gradient(to right, var(--hero-surface), #1AB79D);
        -webkit-background-clip: text;
        color: transparent;
    }

    .subtitle {
        color: #313131;
        font-weight: 500;
        /* width: 90%; */
        margin: 0 auto;
        font-size: 1em;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1.5em;

        .view-models {
            background: var(--hero-surface);
            color: #FFF;
            padding: 10px;
            border-radius: 12px;
            margin: 0 auto;
            width: 250px;
            transition: transform 0.3s ease, opacity 0.3s ease;
            box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
        }

        .view-models:hover {
            transform: translateY(-4px);
            opacity: 0.9;
        }

        .importance {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 8px;
            transition: all 0.3s ease;
            color: #313131;

            span {
                font-weight: 600;
                font-size: 0.9em;
            }

            .circle {
                width: 40px;
                height: 40px;
                background: #FFF;
                border-radius: 50%;
                display: flex;
                justify-content: center;
                align-items: center;
                box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
                border: 0.25px solid #E5E7EB;
                animation: basketball-bounce 1.2s infinite;
                will-change: transform;

                svg {
                    fill: var(--hero-surface);
                }
            }

        }

        .importance:hover {
            color: var(--hero-surface);
        }

        .importance:hover .circle {
            border: 1px solid var(--hero-surface);
        }
    }
}

/* Benefits */
#benefits {

    .cards {
        display: flex;
        flex-direction: column;
        gap: 1.2em;

        .card {
            display: flex;
            align-items: center;
            background: #FFF;
            gap: 1em;
            padding: 20px;
            border-radius: 20px;
            border: 1px solid #E3E3E8;
            box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;

            .icon {
                padding: 10px;
                background: #F5EFE1;
                /*background: rgba(37, 99, 235, 0.2);*/
                border-radius: 12px;
                box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
                width: max-content;
                display: flex;
                justify-content: center;
                align-items: center;
            }

            .text-content {
                display: flex;
                flex-direction: column;
                gap: 8px;

                p {
                    font-size: 1em;
                    line-height: 1.3;
                }
            }
        }
    }
}

/* Models */
#models {
    margin-bottom: 18em;
    display: flex;
    flex-direction: column;
    align-items: center;

    .cards-models {
        display: flex;
        flex-direction: column;
        gap: 3em;

        .card-model {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .text-overlay {
            opacity: 0;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 11;
            width: 200px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1em;

            h4 {
                color: #FFF;
                font-size: 1.2em;
            }

            svg {
                width: 18px;
                fill: #FFF;
            }

            ul {
                display: flex;
                flex-direction: column;
                gap: 10px;
                align-items: center;
            }

            li {
                list-style: none;
                color: #FFF;
                display: flex;
                align-items: center;
                gap: 4px;
            }

            .cta-view-model {
                padding: 10px;
                display: flex;
                align-items: center;
                gap: 8px;
                border-radius: 30px;
                background: #FFF;
                margin-top: 8px;
                cursor: pointer;
                transition: opacity 0.3s ease;

                span {
                    color: rgba(63, 111, 109);
                    font-weight: 700;
                    font-size: 0.9em;
                }

                svg {
                    width: 14px;
                    fill: rgba(63, 111, 109);
                }
            }
        }

        .cta-view-model:hover {
            opacity: 0.8;
        }

        .demo-model {
            position: relative;
            transition: transform 0.4s ease;


            .mockup {
                position: relative;
                z-index: 10;
            }

            .internal-modal {
                position: absolute;
                top: 3%;
                left: 50%;
                transform: translateX(-50%);
                height: 520px;
                overflow: hidden;
                border-radius: 30px;
                box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.4);

                .overlay {
                    width: 100%;
                    height: 98%;
                    border-radius: 30px;
                    background: rgba(63, 111, 109);
                    opacity: 0;
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    z-index: 9999;
                    transition: opacity 0.3s ease;


                }

                img {
                    position: relative;
                    z-index: 9;
                    border-radius: 20px;
                }
            }
        }

        .demo-model:hover {
            transform: translateY(-5px);
        }

        .demo-model:hover .text-overlay {
            opacity: 1;
        }

        .demo-model:hover .overlay {
            opacity: 0.85;
        }

        .demo-model:hover .internal-modal img {
            filter: blur(6px);
        }

        .text-container {
            text-align: center;
            display: flex;
            flex-direction: column;
            gap: 8px;

            h4 {
                font-size: 1.2em;
            }

            .promocao {
                font-size: 1.1em;
                font-weight: 600;
                text-decoration: line-through;
            }

            .priecing {
                color: #0D9488;
                font-size: 1.5em;
                font-weight: bold;
            }

            button {
                font-family: "DM Sans", sans-serif;
                border: none;
                background: transparent;
                cursor: pointer;
                color: #64748B;
                text-decoration: underline;
            }

            .view-details {
                font-size: 1em;
                transition: color 0.3s ease;
            }

            .view-details:hover {
                color: #0D9488;
            }

            .view-model {
                background: #0F172A;
                color: #FFFFFF;
                padding: 10px 20px;
                border-radius: 10px;
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 12px;
                transition: background 0.3s ease;

                svg {
                    fill: #FFFFFF;
                    transition: transform 0.3s ease;
                }
            }

            .view-model:hover {
                background: #1f2c4d;
            }

            .view-model:hover svg {
                transform: translateX(5px);
            }
        }
    }
}

/* Footer */
footer {
    background: #FFFFFF;
    padding: 2em 0 1em;
    background: #FFF;
    text-align: center;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;

    h2 {
        font-weight: 400;
        font-size: 1.6em;
        margin-bottom: 2px;
    }

    .title-content {
        display: flex;
        flex-direction: column;
    }


    .subtitle {
        font-size: 0.9em;
    }

    .cta-footer {
        display: inline-block;
        background: #25D366;
        padding: 10px;
        color: #FFF;
        width: 90%;
        text-transform: uppercase;
        font-weight: 500;
        border-radius: 12px;
        box-shadow: rgba(37, 211, 102, .3) 0px 8px 24px;
        margin: 1em 0;
    }

    ul {
        li {
            list-style: none;
            font-size: .8em;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            margin-bottom: 6px;

            svg {
                width: 14px;
                fill: var(--default)
            }

            span {
                font-family: "DM Sans", sans-serif;
                color: var(--default);
            }
        }
    }

    .line {
        width: 100%;
        height: 1px;
        background: rgba(65, 65, 65, .10);
        margin: 1em 0;
    }

    .copywriting {
        color: var(--default);
        font-size: 0.7em;
    }

}

/* Modals */
.details-biosite {
    max-width: 380px;
    position: fixed;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    border-radius: 10px;
    padding: 40px 20px;
    overflow: hidden;

    width: calc(100% - 20px);

    opacity: 0;
    transform: translateY(-40%) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;


    .modal-shell {
        max-height: calc(85vh - 24px);
        overflow-y: auto;
        padding: 12px 0;
        scrollbar-gutter: stable;
    }

    .modal-shell::-webkit-scrollbar {
        width: 12px;
    }

    .modal-shell::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 10px;

        border: 4px solid transparent;
        background-clip: content-box;
    }

    .modal-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    h3 {
        font-size: 1.3em;
        color: rgb(15, 23, 42);
        margin-bottom: 10px;
    }

    h3:focus-visible {
        outline: none;
    }

    .section-title {
        text-transform: uppercase;
        font-size: .7em;
        color: rgb(148, 163, 184);
    }

    p {
        font-size: 0.8em;
    }

    .line {
        width: 100%;
        height: 1px;
        background: #ccc;
        margin: 1.5em 0;
    }


    .sections-biosite {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 1em;


        .icon {
            background: rgb(240, 253, 250);
            padding: 6px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        svg {
            width: 18px;
            fill: rgb(13, 148, 136);
        }

        li {
            display: flex;
            gap: 10px;
            align-items: center;
            list-style: none;

            span {
                color: rgb(51, 65, 85);
                font-weight: 500;
                font-family: "DM Sans", sans-serif;
            }
        }
    }

    .accessibility {
        margin-top: 2em;
        background-color: #F8FAFC;
        border: 1px solid rgb(241, 245, 249);
        border-radius: 10px;
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 1em;

        .accessibility-title {
            display: flex;
            align-items: center;
            gap: 4px;

            svg {
                width: 28px;
                fill: rgb(13, 148, 136);
            }
        }

        h4 {
            font-size: 1em;
            color: rgb(15, 23, 42);
        }

        .importance {
            display: flex;
            align-items: center;
            gap: 2px;
            font-weight: bolder;
            transition: color 0.3s ease;

            svg {
                width: 14px;
                fill: var(--default);
                transition: fill 0.3s ease, transform 0.2s ease;
            }
        }

        .importance:hover {
            color: rgb(13, 148, 136);
        }

        .importance:hover svg {
            fill: rgb(13, 148, 136);
            transform: translateX(4px);
        }

        .cta-view-model {
            background: #0D9488;
            color: #FFF;
            font-weight: bolder;
            padding: 12px 10px;
            width: 100%;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            border-radius: 8px;
            box-shadow: rgba(13, 148, 136, 0.3) 0px 8px 24px;
            transition: background 0.3s ease, transform 0.3s ease;

            span {
                font-size: 0.9em;
            }

            svg {
                width: 18px;
                fill: #FFF;
            }
        }

        .cta-view-model:hover {
            background: #0c7068;
            transform: scale(1.05);
        }
    }

    .closeModal {
        position: absolute;
        top: 2%;
        right: 2%;
        cursor: pointer;

        svg {
            width: 28px;
        }
    }
}

.details-biosite.is-visible {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.details-biosite::backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}


/* Warninig */
.alert {
    position: fixed;
    transform: translateX(-1000px);
    background-color: #FEEFB3;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 999;
    top: 2%;
    transition: transform 0.4s ease-in-out;


    svg {
        fill: rgb(159, 96, 0);
        width: 20px;
    }

    p {
        color: rgb(159, 96, 0);
    }
}

.alert.active {
    transform: translateX(-20px);
}


/* Responsive */
@media (max-width: 420px) {
    .container {
        margin-top: 0;
        border-radius: 0;
    }
}