.topbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 69px;
    background-color: #0003ff;
    padding: 24px;
}

.scroll-progress{
    position: fixed;
    z-index: 900;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    overflow: hidden;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.35);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-progress.is-visible{
    opacity: 1;
    transform: translateY(0);
}

.scroll-progress__bar{
    display: block;
    width: 100%;
    height: 100%;
    background: #ffce00;
    box-shadow: 0 0 8px rgba(255, 206, 0, 0.55);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 100ms linear;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce){
    .scroll-progress,
    .scroll-progress__bar{
        transition: none;
    }
}

.desktop-nav,
.topbar__enrollment{
    display: none;
}

.menu--button,
.mobile-menu__close{
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.menu--button{
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
}

.logo--icon{
    display: block;
    width: 104px;
}

.menu--icon{
    display: block;
    width: 18px;
    height: 12px;
}

.mobile-menu{
    position: fixed;
    z-index: 1000;
    inset: 0;
    visibility: hidden;
    background: transparent;
    transition: visibility 0s linear 350ms;
}

.mobile-menu__panel{
    position: absolute;
    top: 0;
    right: 0;
    width: min(335px, calc(100% - 55px));
    height: 100vh;
    height: 100dvh;
    padding: 24px;
    overflow-y: auto;
    background: #0003ff;
    transform: translateX(100%);
    transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.mobile-menu.is-open{
    visibility: visible;
    transition-delay: 0s;
}

.mobile-menu.is-open .mobile-menu__panel{
    transform: translateX(0);
}

.mobile-menu__header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-menu__header a,
.mobile-menu__header img{
    display: block;
}

.mobile-menu__close{
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    margin-left: auto;
}

.mobile-menu__close::before,
.mobile-menu__close::after{
    content: "";
    position: absolute;
    top: 21px;
    left: 13px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}

.mobile-menu__close::before{
    transform: rotate(45deg);
}

.mobile-menu__close::after{
    transform: rotate(-45deg);
}

.mobile-menu__nav{
    width: min(249px, 100%);
    margin-top: clamp(120px, 23.93vh, 202px);
}

.mobile-menu__nav ul{
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu__nav li:not(:last-child){
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.mobile-menu__nav a{
    display: block;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

body.menu-open{
    overflow: hidden;
}

.buttons-header{
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buttons-header a img{
    width: 0.75em;
    height: 0.75em;
    flex: 0 0 auto;
    align-self: center;
}

.btn--primary{
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    display: inline-flex;
    gap: 10px;
    justify-content: space-between;
    padding: 10px;
    border-radius: 58px;
    background-color: #ffce00;
    text-align: center;
    font-size: 16px;
    color: black;
    font-weight: 500;
    width: fit-content;
    min-height: 44px;
}

.btn--secondary{
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    display: inline-flex;
    gap: 10px;
    padding: 10px;
    border-radius: 58px;
    background-color: white;
    text-align: center;
    font-size: 16px;
    color: #0003ff;
    font-weight: 500;
    width: fit-content;
    min-height: 44px;
  
}

.hero{
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: 775px;
    display: flex;
    flex-direction: column;
    gap: 64px;
    padding: 24px;
    justify-content: center;
}

.hero::after{
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(0, 3, 255, 0.2);
    pointer-events: none;
}

.hero--video{
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero--text{
    position: relative;
    z-index: 1;
    font-family: "Poppins", sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 124%;
    color: white;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
}

.hero--mobile-copy{
    display: block;
}

.hero--wide-copy{
    display: none;
}

.hero--eyebrow{
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-text-destaque{
    color: #ffce00!important;
}

@media (max-width: 480px){
    .topbar{
        padding-inline: clamp(20px, 6.15vw, 24px);
    }

    .hero{
        height: calc(100vh - 69px);
        gap: clamp(36px, 7.58vh, 64px);
        padding-inline: clamp(20px, 6.15vw, 24px);
    }

    .hero--text{
        font-size: clamp(36px, 12.31vw, 48px);
    }

    .mobile-menu__panel{
        width: calc(100% - 55px);
    }
}

@media (max-width: 480px) and (max-height: 620px){
    .hero{
        gap: 20px;
        padding-block: 16px;
    }

    .hero--text{
        font-size: 32px;
        line-height: 1.1;
    }
}

@media (max-width: 480px) and (max-height: 480px){
    .hero{
        gap: 16px;
        padding-block: 12px;
    }

    .hero--text{
        font-size: 28px;
    }

    .buttons-header{
        gap: 8px;
    }

    .btn--primary,
    .btn--secondary{
        padding: 8px;
        font-size: 14px;
    }
}

@media (min-width: 768px){
    .topbar{
        height: 76px;
        padding-inline: var(--section-padding-inline);
    }

    .logo--icon{
        width: 120px;
    }

    .hero{
        height: calc(100svh - 76px);
        min-height: 700px;
        align-items: center;
        gap: 40px;
        padding: 48px var(--section-padding-inline);
        text-align: center;
    }

    .hero--text{
        font-size: clamp(64px, 8vw, 82px);
        line-height: 1.05;
    }

    .hero--mobile-copy{
        display: none;
    }

    .hero--wide-copy{
        display: block;
    }

    .buttons-header{
        align-items: center;
        flex-direction: row;
    }
}

@media (min-width: 1024px){
    .topbar{
        height: 68px;
        gap: 32px;
        padding: 16px 64px;
    }

    .topbar > a:first-child{
        flex: 0 0 auto;
    }

    .logo--icon{
        width: 128px;
        height: 26px;
    }

    .desktop-nav{
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: center;
        gap: clamp(20px, 2.22vw, 32px);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .desktop-nav a{
        color: #fff;
        font-family: "Poppins", sans-serif;
        font-size: clamp(13px, 1.11vw, 16px);
        font-weight: 500;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    .desktop-nav a:hover,
    .desktop-nav a:focus-visible{
        color: #ffce00;
    }

    .topbar__enrollment{
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        min-height: 30px;
        padding: 7px 10px;
        border-radius: 47px;
        background: #ffce00;
        color: #000;
        font-family: "Poppins", sans-serif;
        font-size: 16px;
        font-weight: 500;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    .topbar__enrollment:hover,
    .topbar__enrollment:focus-visible{
        background: #fff;
        color: #0003ff;
    }

    .menu--button{
        display: none;
    }

    .hero{
        height: calc(100svh - 68px);
        min-height: 700px;
        gap: 0;
        padding: 64px;
        background-image: url("/assets/images/hero-desktop.png");
        background-position: center;
        background-size: cover;
    }

    .hero::after,
    .hero--video{
        display: none;
    }

    .hero--text{
        font-size: clamp(72px, 6.67vw, 96px);
        line-height: 1;
        white-space: nowrap;
    }

    .hero--eyebrow,
    .buttons-header{
        display: none;
    }
}

@media (min-width: 1024px) and (max-height: 760px){
    .hero{
        min-height: 620px;
    }

    .hero--text{
        font-size: clamp(64px, 6vw, 84px);
    }
}

@media (prefers-reduced-motion: reduce){
    .mobile-menu,
    .mobile-menu__panel{
        transition-duration: 0.01ms;
    }

}
