@import url(base.css);

header {
    background-color: var(--third-color);
    background: -webkit-linear-gradient(180deg, rgba(223, 227, 233, 1) 80%, rgba(0, 0, 0, 0) 100%);
    background: -moz-linear-gradient(180deg, rgba(223, 227, 233, 1) 80%, rgba(0, 0, 0, 0) 100%);
    background: linear-gradient(180deg, rgba(223, 227, 233, 1) 80%, rgba(0, 0, 0, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#DFE3E9", endColorstr="#000000", GradientType=0);
}

.shadow {
    box-shadow: var(--box-shadow);
}

figure {
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style-type: none;
}

h3,
h4,
h5,
h6 {
    font-size: 1.5em;
}

/* GENERAL */

.container {
    margin: 0 1rem !important;
    max-width: 1440px;
}

.flex {
    display: flex;
}

.underline {
    text-decoration: underline;
}

.gap-05 {
    gap: 0.5rem;
}

.text-center {
    text-align: center;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* NAV */

.nav {
    display: flex;
    align-items: center;
    position: fixed;
    width: calc(100% - 2rem);
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    right: 50%;
    top: 0.5rem;
    transform: translateX(50%);
    background-color: color-mix(in srgb, var(--third-color) 90%, transparent);
    transition: box-shadow 0.3s ease;
    z-index: 10;
    font-size: 1.1rem;
}

.nav.shadow {
    box-shadow: 0px 0px 14px 7px rgba(109, 109, 109, 0.5);
}

.nav .links,
.nav .links ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav .links ul {
    gap: 1rem;
    margin-right: 1rem;
}

.nav .links ul li {
    border-bottom: 0.4rem solid transparent;
}

.nav .links ul li:hover {
    border-bottom: 0.1rem solid transparent;
}

.nav .login {
    position: relative;
    padding: 0.7rem 1.5rem;
    border-radius: 0.4rem;
    border: 2px solid var(--second-color);
    margin-right: 1rem;
}

.nav .login::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgb(28, 77, 161, 0.4);
    -webkit-transition: none;
    -moz-transition: none;
    transition: none;
}

.nav .login:hover::after {
    width: 100%;
    background-color: rgb(28, 77, 161, 0);
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.nav .get-started {
    z-index: 1;
    position: relative;
    color: var(--color-white);
    padding: 0.8rem 1.5rem;
    border-radius: 0.4rem;
    border-left: 0.8rem solid var(--second-color);
    background-color: var(--first-color);
}

.nav .get-started:after {
    content: "";
    height: 100%;
    left: 0;
    top: 0;
    width: 0px;
    border-radius: 0 0.4rem 0.4rem 0;
    position: absolute;
    transition: all 0.3s ease 0s;
    -webkit-transition: all 0.3s ease 0s;
    background-color: var(--second-color);
    z-index: -1;
}

.nav .get-started:hover:after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background-color: var(--first-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* VIDEO PLAYER */

.custom-player * {
    box-sizing: border-box;
}

.custom-player {
    position: relative;
    width: 100%;
    max-width: 850px;
    aspect-ratio: 16 / 9;
    background: var(--color-black);
    margin: 1rem 0 2rem auto;
    border-radius: 0.4rem;
    overflow: hidden;
    max-width: 35rem;
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
    pointer-events: none;
}

.video-poster {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.main-play-btn {
    width: 80px;
    height: 80px;
    background: var(--first-color);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
}

.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-player:hover .custom-controls {
    opacity: 1;
}

.control-btn {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 20px;
    cursor: pointer;
    width: 40px;
}

.progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 15px;
    cursor: pointer;
    position: relative;
    border-radius: 0.4rem;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--first-color);
    width: 0%;
    border-radius: 0.4rem;
}

.is-playing .video-poster,
.is-playing .main-play-btn {
    opacity: 0;
    pointer-events: none;
}

/* HEADER */

header .columns {
    padding-top: 7rem;
}

header .columns .content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
}

header .columns .content .buttons {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

header .columns .content .buttons a {
    padding: 0.8rem;
    border-radius: 0.4rem;
}

header .columns .content .buttons a:first-child {
    color: var(--color-white);
    background-color: var(--first-color);
}

/* COLUMNS */

.columns {
    margin: 10px auto;
    display: flex !important;
    justify-content: space-between;
    gap: 4rem;
}

.column {
    width: 100%;
}

/* SECTIONS */

.section {
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    scroll-margin-top: 10rem;
    margin: 4rem auto;
}

.section > * {
    max-width: 1440px;
    margin: 0 auto;
}

.section:first-of-type {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section:first-of-type ul {
    display: flex;
    gap: 1rem;
}

.section:first-of-type ul li::before {
    content: "\2714\0020";
    color: var(--second-color);
}

.section:nth-of-type(2) {
    color: var(--color-white);
    padding: 0 1rem;
    background-color: var(--second-color);
    min-height: 10rem;
}

.section:nth-of-type(2) h2 {
    padding-top: 1rem;
}

.section:nth-of-type(2) .cta {
    padding-bottom: 2rem;
}

/* FEATURES */

.features {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.features .feature {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.4rem;
    color: var(--color-black);
    background-color: var(--fourth-color);
    border-radius: 0.4rem;
    flex: 1 1 10rem;
}

.features .feature .header {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
    text-wrap: nowrap;
}

.features .feature p {
    margin-bottom: 1rem;
}

/* STICKY-SECTION */

.scroll-story {
    background-color: var(--third-color);
}

.step {
    position: sticky;
    top: 0;
    height: 100lvh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-story .step:nth-of-type(1) {
    background-color: var(--fourth-color);
}

.scroll-story .step:nth-of-type(2) {
    background-color: var(--second-color);
}

.scroll-story .step:nth-of-type(2) .text {
    color: var(--color-white);
}

.scroll-story .step:nth-of-type(3) {
    background: #DFE3E9;
    background: -webkit-linear-gradient(180deg, rgba(223, 227, 233, 1) 80%, rgba(255, 255, 255, 1) 100%);
    background: -moz-linear-gradient(180deg, rgba(223, 227, 233, 1) 80%, rgba(255, 255, 255, 1) 100%);
    background: linear-gradient(180deg, rgba(223, 227, 233, 1) 80%, rgba(255, 255, 255, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#DFE3E9", endColorstr="#FFFFFF", GradientType=0);
}

.scroll-story .content {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.scroll-story .content img {
    width: 50%;
    max-width: 30rem;
    border-radius: 0.4rem;
}

.scroll-story .content .text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scroll-story .step .content .text a {
    text-align: center;
    padding: 0.4rem;
    border-radius: 0.4rem;
    color: var(--color-white);
    background-color: var(--first-color);
}

.scroll-story .step:nth-of-type(2) .content .text a {
    background-color: var(--fourth-color);
    color: var(--color-black);
}

/* PLANS */

.plans {
    display: flex;
    gap: 2rem;
    justify-content: space-evenly;
    align-items: stretch;
    margin: 2rem auto;
}

.plan {
    padding: 0.4rem 0.8rem;
    background-color: var(--third-color);
    border-radius: 0.4rem;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan .price .discount {
	display: block;
	text-decoration: line-through;
}

.plan .price {
	text-align: center;
}

.plan .price .value {
	display: block;
	font-size: 2em;
}

.plan .price .tip {
	display: block;
	font-size: 0.7em;
}

.plan h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.plan ul {
    margin-bottom: 1rem;
}

.plan ul li::before {
    content: "•";
    font-size: 1rem;
    color: var(--second-color);
    margin-right: 1rem;
}

.plan .get-started {
    margin: 1rem 0;
    text-align: center;
    color: var(--color-white);
    border-radius: 0.4rem;
    padding: 0.4rem;
    background-color: var(--first-color);
}

.plan .get-started a {
    display: block;
    width: 100%;
}

/* CONTACT-FORM */

#contact {
    margin-top: 5rem !important;
}

.contact-form {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 0.4rem;
    box-shadow: var(--box-shadow);
    margin: 2rem 0 1rem 0;
    background-color: var(--third-color);
    background: radial-gradient(circle, rgba(223, 227, 233, 0.5) 0%, rgba(242, 244, 247, 1) 100%);
}

.contact-form .columns {
    margin: 0;
    width: 100%;
    gap: 0.5rem;
}

.contact-form .columns .column input {
    width: 100%;
}

.contact-form input {
    border-radius: 0.4rem;
    padding: 0.4rem;
    border: none;
    margin: 0.5rem 0;
}

.contact-form select {
    padding: 0.4rem;
    border: none;
    border-radius: 0.4rem;
    margin-top: 0.5rem;
}

.contact-form button {
    margin: 1rem 0;
    color: var(--color-white);
    padding: 0.4rem;
    border-radius: 0.4rem;
    background-color: var(--first-color);
}

/* FOOTER */

footer {
    background-color: var(--first-color);
    color: var(--third-color);
    padding-top: 3rem;
    font-size: 0.95rem;
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    min-height: 20rem;
    position: relative;
}


footer nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 4rem;
}

footer nav .links-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

footer nav .links-group ul li {
    margin-bottom: 0.5rem;
    color: color-mix(in srgb, var(--fourth-color) 80%, #000000 20%);
}

footer nav .links-group ul li:hover {
    color: var(--fourth-color);
}

footer .footer-bottom {
    position: absolute;
    bottom: 0.5rem;
    right: 0;
    left: 0;

    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
        padding-bottom: 4rem;
    }

    #footer-nav {
        margin-top: 1rem !important;
        gap: 1rem;
        flex-direction: column;
    }

    .custom-player {
        margin: 1rem auto 2rem auto;
    }

    .columns {
        gap: 1rem;
        flex-direction: column;
        justify-content: center;
    }

    .feature {
        width: 100%;
    }

    .section:first-of-type ul {
        flex-direction: column;
    }

    .scroll-story .content {
        flex-direction: column;
    }

    .plans {
        flex-direction: column;
    }

    .features .feature .header {
        text-wrap: wrap;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
        z-index: 11;
    }

    .nav .links {
        position: fixed;
        top: 6rem;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        background-color: var(--third-color);
        border-radius: 1rem;
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.5rem;
        display: none;
        box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.3);
    }

    .nav .links ul {
        flex-direction: column;
        gap: 1rem;
        margin: 0;
    }

    .nav .links ul li {
        border: none;
    }

    .nav .login,
    .nav .get-started {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .nav.open .links {
        display: flex;
    }

    .nav.open .nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav.open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav.open .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (min-width: 1440px) {
    .container {
        margin: 0 auto !important;
    }
}
