:root {
    --color-orange: #ff5800;
    --color-blue: #04aadd;
    --color-black: #000000;
    --color-darkgrey: #151515;
    --color-midgrey: #4d4d4d;
    --color-lightgrey: #adadad;
    --color-lightestgrey: #dfdfdf;
    --color-white: #ffffff;
    --color-red: #ed5050;
    --color-green: green;
}

* {
    padding: 0;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: #efefef;
}

a {
    color: var(--color-blue);

    &:hover {
        text-decoration: none;
    }
}

header.site-header {
    max-width: 1300px;
    padding: 60px 0;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    img.logo {
        width: 160px;
    }
}

.hero {
    max-width: 1300px;
    /*height: 580px;*/
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    padding: 110px 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: var(--color-black);

    img.stop-writing {
        width: 90%;
    }
}

main {
    max-width: 1300px;
    margin: 0 auto;
    /*padding: 0 50px;*/

    h2 {
        font-size: 60px;
        margin-bottom: 50px;
        font-weight: 900;

        span.orange {
            color: var(--color-orange);
        }

        span.blue {
            color: var(--color-blue);
        }
    }

    section.content {
        display: flex;
        flex-direction: row;
        gap: 50px;

        .left {
            flex-grow: 1;
        }

        .right {
            flex-grow: 1;
        }

        p {
            margin-bottom: 20px;
            color: var(--color-darkgrey);
            line-height: 24px;
        }

        &.wtf {
            margin: 100px 50px 50px 50px;

            .left {
                font-size: 16px;
                padding-right: 50px;
            }
            .right {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
            }
        }

        &.no-really {
            display: flex;
            align-items: center;
            margin: 100px 50px 50px 50px;

            .left {
                margin-left: -40px;
                width: 50%;

                img {
                    width: 100%;
                }
            }

            .right {
                width: 50%;
                align-items: center;
            }
        }

        &.apply {
            background-color: var(--color-darkgrey);
            border-radius: 20px;
            padding: 50px 50px 0 50px;
            margin: 100px 0 50px 0;
            display: flex;
            flex-direction: column;
            gap: 0;

            h2 {
                color: var(--color-white);
            }

            p {
                color: var(--color-lightgrey);
            }

            .content {
                display: flex;
                margin-bottom: 70px;
                gap: 50px;

                .left {
                    width: 45%;
                }

                .right {
                    width: 55%;
                    display: flex;
                    flex-wrap: wrap;
                    gap: 20px;

                    label {
                        /*width: calc(100% - 100px);*/
                        /*width: 100%;*/
                        /*flex-grow: 1;*/
                        /*max-width: 50%;*/
                        width: calc(50% - 10px);
                    }

                    button {
                        margin-top: 20px;
                        width: 100%;
                    }
                }
            }
        }

        &.how-it-works {
            background-color: var(--color-white);
            border-radius: 20px;
            padding: 50px 50px 50px 50px;
            margin: 100px 0 50px 0;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);

            header {
                width: 100%;
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;

                h2 {
                    margin-bottom: 0;
                }

                ul {
                    display: flex;
                    flex-direction: row;
                    gap: 10px;

                    button {
                        border: none;
                        background-color: transparent;
                        color: var(--color-midgrey);
                        font-weight: 700;
                        font-size: 24px;
                        cursor: pointer;
                        padding: 15px 25px;
                        border-radius: 20px;

                        &:hover {
                            background-color: var(--color-lightestgrey);
                        }

                        &.active {
                            color: var(--color-white);

                            &.dev {
                                background-color: var(--color-orange);
                            }

                            &.buss {
                                background-color: var(--color-blue);
                            }

                            /*&:hover {
                            }*/
                        }
                    }
                }
            }

            .panels {
                width: 100%;
                margin: 30px 0;

                & > div {
                    display: none;
                }

                .active {
                    display: flex;
                }

                ul {
                    display: flex;
                    width: 100%;
                    flex-direction: row;
                    justify-content: space-between;
                    gap: 50px;

                    ol {
                        display: flex;
                        flex-grow: 1;
                        max-width: 30%;
                        flex-direction: column;
                        justify-content: center;
                        text-align: center;
                        position: relative;
                        counter-increment: cnt;

                        &:before {
                            display: block;
                            position: absolute;
                            content: counter(cnt);
                            font-size: 200px;
                            font-weight: 900;
                            top: -50px;
                            opacity: 0.08;
                        }

                        .title {
                            display: block;
                            height: 60px;
                            font-size: 20px;
                            font-weight: 700;
                            color: var(--color-midgrey);
                        }

                        img {
                            max-height: 200px;
                            margin: 10px 0;
                        }

                        .desc {
                            display: block;
                            height: 100px;
                            /*font-size: 18px;*/
                            line-height: 24px;
                            color: var(--color-midgrey);
                        }
                    }
                }
            }
        }
    }
}

.im-in {
    transform: rotate(-2deg);
    width: 450px;
    height: 270px;
    background-color: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;

    .hacker {
        position: absolute;
        right: -50px;
        top: 10px;
        transform: rotate(2deg);
    }

    .apply {
        font-size: 50px;
        font-weight: bold;
        letter-spacing: -1px;
        display: block;
        width: 350px;
        line-height: 55px;
        position: absolute;
        top: 20px;
        left: -45px;
        transform: rotate(-5deg);
    }

    .see {
        font-size: 50px;
        font-weight: bold;
        letter-spacing: -1px;
        display: block;
        width: 250px;
        line-height: 55px;
        position: absolute;
        bottom: -30px;
        left: 310px;
        transform: rotate(5deg);
    }

    .early-access-cta {
        background-color: var(--color-orange);
        color: var(--color-white);
        border: none;
        padding: 12px;
        border-radius: 20px;
        text-decoration: none;
        font-weight: 700;
        font-size: 20px;
        /*width: calc(100% - 120px);*/
        width: 65%;
        position: absolute;
        bottom: 45px;
        left: 40px;
        text-align: center;
        transform: rotate(2deg);
    }
}

footer.site-footer {
    width: 100%;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    color: var(--color-midgrey);

    span {
        display: block;
        text-align: center;
        padding: 3px;
    }
}

label.input {
    display: flex;
    flex-direction: column;

    span {
        display: block;
        color: var(--color-white);
        margin-bottom: 10px;
    }

    input,
    select {
        background-color: transparent;
        border-radius: 20px;
        font-size: 16px;
        padding: 15px 15px;
        color: var(--color-white);
        border: 2px solid var(--color-lightgrey);
        outline: none;
        appearance: none;

        &:focus {
            border-color: var(--color-blue);
        }
    }

    select {
        background-image: url("../images/dropdown_arrow.svg");
        background-repeat: no-repeat;
        background-position: right 18px center;
        background-size: 18px;
    }

    &.error {
        span {
            color: var(--color-red);
        }

        input,
        select {
            border-color: var(--color-red);
        }
    }
}

button.submit {
    background-color: var(--color-orange);
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    padding: 17px 15px;
    color: var(--color-white);
    border: none;
    cursor: pointer;

    &:hover {
        /*background-color: var(--color-blue);*/
    }

    .state-normal {
        display: inline-block;
    }

    .state-in-progress,
    .state-error,
    .state-success {
        display: none;
    }

    &.in_progress {
        background-color: var(--color-blue);

        .state-in-progress {
            display: inline-block;
        }
        .state-normal,
        .state-error,
        .state-success {
            display: none;
        }
    }

    &.error {
        background-color: var(--color-red);

        .state-error {
            display: inline-block;
        }
        .state-in-progress,
        .state-normal,
        .state-success {
            display: none;
        }
    }

    &.success {
        background-color: var(--color-green);
        .state-success {
            display: inline-block;
        }
        .state-normal,
        .state-error,
        .state-in-progress {
            display: none;
        }
    }
}

/********************************************************************************/
/********************************************************************************/
/********************************************************************************/

@media only screen and (max-width: 480px) {
    header.site-header {
        padding: 40px 0;

        img.logo {
            /*width: 120px;*/
        }
    }

    .hero {
        border-radius: 0;
        padding: 80px 25px;

        img.stop-writing {
            /*width: 80%;*/
        }
    }

    main {
        max-width: 100%;
        margin: 0 auto;

        h2 {
            font-size: 46px;
            margin-bottom: 25px;
        }

        section.content {
            &.wtf {
                margin: 100px 25px 50px 25px;
                flex-direction: column;

                .left {
                    padding-right: 0;
                    font-size: 18px;
                }
                .right {
                    .im-in {
                        width: 400px;

                        .apply {
                            font-size: 40px;
                            left: -10px;
                            line-height: 45px;
                        }
                    }
                }
            }

            &.no-really {
                margin: 100px 25px 50px 25px;
                flex-direction: column-reverse;

                .left {
                    width: 100%;

                    img {
                        width: 100%;
                    }
                }

                .right {
                    width: 100%;
                    font-size: 18px;
                    margin-top: 30px;
                }
            }

            &.how-it-works {
                margin: 100px 25px 50px 25px;
                padding: 30px 25px 30px 25px;

                header {
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 20px;

                    h2 {
                        text-align: center;
                    }

                    ul {
                        width: 100%;
                        justify-content: center;

                        button {
                            font-size: 22px;
                            padding: 20px 15px;
                        }
                    }
                }

                .panels {
                    ul {
                        flex-direction: column;
                        gap: 30px;

                        ol {
                            max-width: 100%;

                            img {
                                max-height: 150px;
                            }

                            .title {
                                font-size: 20px;
                            }
                            .desc {
                                font-size: 18px;
                            }
                        }
                    }
                }
            }

            &.apply {
                margin: 100px 0 50px 0;
                padding: 50px 25px 0 25px;
                border-radius: 0;

                h2 {
                    font-size: 46px;
                }

                .content {
                    flex-direction: column;

                    p {
                        font-size: 18px;
                    }

                    .left,
                    .right {
                        width: 100%;
                    }

                    .right {
                        label {
                            width: 100%;
                        }
                    }
                }
            }
        }
    }
}
