@import url("https://fonts.googleapis.com/css2?family=Playfair+Display&display=swap");

body
{
    position: relative;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-size: 16px;
    font-family: var(--title_font);
    color: var(--white);
    background-color: var(--black);
}

.background_top
{
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 200vh;
    pointer-events: none;
    z-index: -1;
}

.background_top > div
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
    opacity: 0;
}

.background_top > div:nth-child(1)
{
    background: radial-gradient(circle at 100% 40%, #2a095e 0%, transparent 45%);
    animation: show_background 1.1s 0.1s ease-in-out forwards;
}

.background_top > div:nth-child(2)
{
    background: radial-gradient(circle at 10% 5%, #e9424a -5%, transparent 45%);
    animation: show_background 1s ease-in-out forwards;
}

@keyframes show_background
{
    from
    {
        opacity: 0;
    }
    to
    {
        opacity: 0.75;
    }
}

section
{
    width: 100vw;
    height: 100vh;
}

h1
{
    font-weight: normal;
    font-size: 55px;
    white-space: nowrap;
    font-family: "Playfair Display", serif;
}

h1 > .highlight
{
    position: relative;
}

h1 > .highlight::before
{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    background: #9c3439;
    z-index: -1;
    animation: highlight_draw 1s 1.25s ease-in-out forwards;
}

@keyframes highlight_draw
{
    from
    {
        width: 0;
    }
    to
    {
        width: 100%;
    }
}

h1 > .world
{
    position: relative;
    text-shadow: 0 0 2px black, 0 0 3px black, 0 0 5px black;
    font-family: var(--mono_font);
    font-size: 50px;
}

h1 > .world > .globe
{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, calc(-50% + 5px));
    height: 175px;
    aspect-ratio: 1/1;
    mask-image: linear-gradient(to top, transparent 25%, black);
    z-index: -1;
    opacity: 0;
    animation: show_globe 1s 1.25s ease-in-out forwards;
}

h1 > .world > .globe > div
{
    height: 100%;
    aspect-ratio: 1/1;
    background-image: url("../gfx/globe.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

@keyframes show_globe
{
    from
    {
        opacity: 0;
    }
    to
    {
        opacity: 0.3;
    }
}

.dashboard_button
{
    font-size: 20px;
    white-space: nowrap;
    text-decoration: none;
    padding: 10px 16px;
    padding-left: 50px;
    background-color: var(--white);
    color: black;
}

.dashboard_button > div
{
    left: 15px;
    background-color: black;
    transition: 0.3s;
}

.dashboard_button:hover
{
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.dashboard_button:hover > div
{
    background-color: var(--white);
}

.dashboard_button > div::before
{
    background-image: url("../gfx/svg/diagonal_arrow_white.svg");
}

.dashboard_button > div::after
{
    background-image: url("../gfx/svg/diagonal_arrow_black.svg");
}

section.front
{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 75vh;
}

section.front > .logo
{
    opacity: 0;
    animation: show_front 1s 0.75s ease-in-out forwards;
}

section.front > .slogan
{
    position: absolute;
    top: 30vh;
    text-align: center;
    width: 90vw;
    white-space: wrap;
    opacity: 0;
    margin-top: -20px;
    margin-bottom: 0;
    animation: show_front 1s 0.75s ease-in-out forwards;
}

@media (max-height: 800px)
{
    section.front > .slogan
    {
        top: 100px;
    }
}

section.front > .slogan > .description
{
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 15px);
    font-family: var(--regular_font);
    font-size: 18px;
    text-align: center;
    opacity: 0;
    animation: show_front 1s 2.25s ease-in-out forwards;
}

section.front > .dashboard_button
{
    opacity: 0;
    position: absolute;
    top: 60vh;
    animation: show_front 1s 2s ease-in-out forwards;
}

@media (max-height: 900px)
{
    section.front > .dashboard_button
    {
        top: 70vh;
    }
}

section.build > .iframe_container > iframe
{
    opacity: 0;
    margin-top: 60px;
    animation: show_front 1.25s 1.5s ease-in-out forwards;
}

@keyframes show_front
{
    from
    {
        opacity: 0;
    }
    to
    {
        margin-top: 0;
        opacity: 1;
    }
}

h2
{
    font-weight: normal;
    font-size: 65px;
    font-family: var(--title_font);
    text-align: center;
    margin-top: 100px;
    margin-bottom: 0;
}

@supports (animation-timeline: view())
{
	h2.title
	{
        opacity: 0;
		animation: show_h2 ease-in-out forwards;
		animation-timeline: view();
		animation-range-start: 0;
	}

    h2.caption
	{
        opacity: 0;
		animation: show_h2 ease-in-out forwards;
		animation-timeline: view();
		animation-range-end: 45%;
	}

    @keyframes show_h2
    {
        from
        {
            opacity: 0;
            margin-bottom: 50px;
        }
        to
        {
            opacity: 1;
            margin-bottom: 0;
        }
    }
}

section.build
{
    position: relative;
    height: 500vh;
}

section.build > .caption
{
    position: absolute;
    font-size: 80px;
    filter: drop-shadow(0 0 50px white) drop-shadow(0 0 20px black) drop-shadow(0 0 10px black);
    z-index: 2;
}

section.build > .caption:nth-child(1)
{
    top: 20%;
}

section.build > .caption:nth-child(2)
{
    top: 40%;
}

section.build > .caption:nth-child(3)
{
    top: 70%;
}

section.build > .caption:nth-child(4)
{
    top: 90%;
}

section.build > .caption:nth-child(1),
section.build > .caption:nth-child(3)
{
    left: 10vw;
}

section.build > .caption:nth-child(2),
section.build > .caption:nth-child(4)
{
    right: 10vw;
}

section.build > .iframe_container
{
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

iframe
{
    height: 80vh;
    width: 75vw;
    pointer-events: none;
    user-select: none;
    border: 1px solid var(--white);
    box-shadow: 0 0 75px 15px var(--active);
}

section.how_it_works
{
    height: fit-content;
}

section.how_it_works > .steps_container
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vh;
    margin-top: 15vh;
}

section.how_it_works > .steps_container > div
{
    display: flex;
    height: 15vh;
    gap: 20px;
}

section.how_it_works > .steps_container > hr
{
    width: calc(20vh + 375px);
    height: 1px;
    background-color: var(--active);
    border: none;
}

section.how_it_works > .steps_container > div > .step_number
{
    font-size: 90px;
    font-family: var(--title_font);
    margin-bottom: 0;
    margin-top: 0;
    height: 100%;
    aspect-ratio: 1/1;
    display: grid;
    place-items: center;
    background-color: var(--active);
}

@supports (animation-timeline: view())
{
	section.how_it_works > .steps_container > div > .step_number
	{
		animation: step_number_color ease-in-out forwards;
		animation-timeline: view();
		animation-range-start: 30%;
		animation-range-end: 60%;
	}

    @keyframes step_number_color
    {
        from
        {
            background-color: var(--active);
        }
        to
        {
            background-color: #1f3fa2;
        }
    }
}

section.how_it_works > .steps_container > div > .step_content
{
    height: 100%;
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
}

section.how_it_works > .steps_container > div > .step_content > .step_title
{
    font-size: 35px;
    font-family: var(--title_font);
    margin-bottom: 0;
    margin-top: 0;
}

section.how_it_works > .steps_container > div > .step_content > .step_description
{
    font-size: 18px;
    font-family: var(--regular_font);
    margin-bottom: 0;
    margin-top: 0;
    opacity: 0.75;
}

section.plans
{
    position: relative;
    height: 85vh;
}

section.plans > .plans_container
{
    height: 60vh;
}

section.plans > .dashboard_button
{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.background_bottom
{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 250vh;
    pointer-events: none;
    z-index: -1;
}

.background_bottom > div
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
}

.background_bottom > div:nth-child(1)
{
    background: radial-gradient(circle at 110% 45%, #353535 0%, transparent 55%);
}

.background_bottom > div:nth-child(2)
{
    background: radial-gradient(circle at 5% 105%, #426ce9 0%, transparent 30%);
}

@media (max-width: 800px)
{
    section.plans
    {
        height: fit-content;
    }

    section.plans > .plans_container
    {
        height: fit-content;
        flex-direction: column;
        padding-top: 10vh;
        padding-bottom: 20vh;
    }
    
    section.plans > .plans_container > div
    {
        height: 300px;
    }

    section.plans > .plans_container > div > a
    {
        display: none;
    }
    
    section.plans > .dashboard_button
    {
        bottom: 7.5vh;
    }

    section.build > .caption
    {
        left: 50% !important;
        right: unset !important;
        transform: translateX(-50%);
        font-size: 70px;
    }

    section.how_it_works > .steps_container
    {
        margin-top: 10vh;
    }

    section.how_it_works > .steps_container > div
    {
        height: unset;
        width: 80vw;
    }

    section.how_it_works > .steps_container > hr
    {
        width: 80vw;
    }

    section.how_it_works > .steps_container > div > .step_number
    {
        font-size: 50px;
        height: 75px;
    }
}