:root {
    --dark: #000020;
    --light: #f9f9f9;
    --primary: #00E6F0;
}

html {
    font-size: max(.9vw, 16px);
    -webkit-font-smoothing: antialiased;
}

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

body {
    background-color: var(--dark);
    font-family: "halyard-display", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--light);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    height: 100vh;
    height: 100dvh;
}

body main {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

body main .bulb-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

body main .bulb-wrapper::before {
    content: '';
    background-image: url('../images/bulb.webp');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: -4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 11rem;
    height: 23rem;
    transition: .5s cubic-bezier(0.23, 2, 1, 1);

    @media screen and (max-width: 778px) {
        width: 6rem;
        height: 15rem;
        left: unset;
        right: 2.5rem;
        transform: unset;
        top: -2.5rem;
    }
}

body main .bulb-wrapper .light {
    position: absolute;
    top: 11rem;
    right: 3.5rem;
    transform: translateX(-50%) scale(0);
    opacity: 0;
    transform-origin: center;
    width: 52rem;
    height: 16.8rem;
    background-image: url('../images/light-in-bulb.webp');
    background-size: contain;
    background-repeat: no-repeat;
    transition: opacity .3s ease;

    @media screen and (min-width: 778px) and (max-width: 1778px) {
        right: unset;
        left: 50%;
    }

    @media screen and (max-width: 778px) {
        transform: unset !important;
        right: 1.5rem;
        top: 5.5rem;
        width: 32rem;
        height: 11.8rem;
        translate: calc(50% - 4rem);
    }
}

body main::before {
    content: "";
    aspect-ratio: 4 / 3;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    background-color: var(--dark);
    z-index: 2;


    @media screen and (max-width: 778px) {
        position: absolute;
        inset: 0;       
        clip-path: polygon(100% 0, 0 100%, 100% 100%);
        background: var(--dark);
        z-index: 2;
    }
}

body main::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    left: 0;
    top: 0;
    bottom: 0;
    background: radial-gradient(50% 65.49% at 37% 43.51%, #000082 0%, var(--dark) 100%);

    @media screen and (max-width: 778px) {
        background: radial-gradient(100% 47.49% at 27% 51.51%, #000082 0%, var(--dark) 100%);
        inset: 0;
        aspect-ratio: 4 / 3;
        height: unset;
        top: 0;
    }
}

body main > * {
    position: relative;
    z-index: 3;
}

body main .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 45rem;
    width: 100%;
    max-width: 62rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;

    @media screen and (max-width: 778px) {
        max-height: unset;
        justify-content: flex-start;
    }
}

body main .container .logo {
    margin-bottom: 5rem;
    display: inline-block;
    width: max-content;

    @media screen and (max-width: 778px) {
        margin-bottom: 10rem;
    }
}

body main .logo img {
    width: 12.5rem;
    height: 3.375rem;
}

body main .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body main .row .content {
    width: 100%;
}

body main .row .content h1 {
    font-size: 4.5rem;
    font-weight: 300;
    width: 100%;
    line-height: 1.1;
    margin-bottom: 2rem;

    @media screen and (max-width: 778px) {
        font-size: 2.5rem;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        color: var(--primary);
    }
}

body main .row .content h1 span {
    font-weight: 500;
    color: var(--primary);
}

body main .row .content p {
    font-size: 2.5rem;
    color: var(--light);
    line-height: 1;
    margin-bottom: 3rem;
    letter-spacing: 0.03rem;

    @media screen and (max-width: 778px) {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 2rem;
    }
}

body main .row .content p br {
    @media screen and (max-width: 778px) {
        display: none;
    }
}

body main.ready .bulb-wrapper::before {
    top: 0;
}

body main.ready .bulb-wrapper .light.active {
    animation: scaleBounce 0.6s ease-out forwards;
    opacity: 1;

    @media screen and (max-width: 778px) {
        animation: scaleBounceMobile 0.6s ease-out forwards;
        opacity: 1;
    }
}

body .button {
    font-size: 1.1rem;
    padding: 0.95rem 3.4rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    border-radius: 6.25rem;
    box-shadow: 0 0 2rem 0 rgba(0,230,240,.5);
    background: radial-gradient(103.88% 92.71% at 50.18% 7.29%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 100%),rgba(0,0,15,.8);
    backdrop-filter: blur(2.5rem);
    border: 0.0625rem solid transparent;
    transition: 0.3s;
    position: relative;
    margin-bottom: 3rem;
    border: 1px solid var(--primary);

    @media screen and (max-width: 778px) {
        font-size: 1rem;
    }
}

body .button span {
    display: inline-block;
    letter-spacing: 0.4px;
    padding-bottom: 0.2rem;
}

body .button:hover {
    box-shadow: 0 0 0.3125rem 0 rgba(0, 230, 240, 0.75);
    border: 0.0625rem solid var(--primary);
    background-color: var(--primary);
}

@keyframes scaleBounce {
    0%   { transform: translateX(-50%) scale(0.5); }
    50%  { transform: translateX(-50%) scale(1.2); }
    100% { transform: translateX(-50%) scale(1); }
}

@keyframes scaleBounceMobile {
    0%   { transform: scale(0.5); }
    50%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}