@import url("fontawesome-all.min.css");

@font-face {
    font-family: "Comfortaa";
    src: url("../webfonts/Comfortaa.ttf");
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../webfonts/Roboto-500.ttf");
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../webfonts/Roboto-300.ttf");
    font-weight: 300;
    font-display: swap;
}

:root {
    font-family: "Roboto", Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 100;
    --logo-color: #0e1925;
    --logo-background-color: #e0def4;
    --header-background-color: #0e192599;
    --header-color: #e0def4;
    --main-background-color: #0e1925;
    --main-color: #e0def4;
    --footer-background-color: #0e1925;
    --footer-color: #e0def4;
    --magenta: #e465d9;
    --magenta-light: #e465d944;
    --magenta-opacity: #e465d922;
    --red: #fd1155;
    --red-light: #fd115544;
    --red-opacity: #fd115511;
    --yellow: #f5d713;
    --yellow-light: #fede5544;
    --yellow-opacity: #fede5522;
    --orange: #e57220;
    --orange-light: #ea9a9744;
    --orange-opacity: #ea9a9722;
    --green: #0ecf8c;
    --green-light: #11d89444;
    --green-opacity: #11d89422;
    --cyan: #32d8c1;
    --cyan-light: #32d8c144;
    --cyan-opacity: #32d8c122;
    --blue: #1a8fca;
    --blue-light: #34bbfe44;
    --blue-opacity: #34bbfe22;
}

body {
    font-size: 1.7rem;
    line-height: 3.4rem;
    overflow-x: hidden;
    background-color: var(--main-background-color);
}

main, footer, header, section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

strong {
    color: var(--header-color);
}

a {
    color: var(--cyan);
    text-decoration: none;
}

.container {
    max-width: 1400px;
    width: 1400px;
}

/* Cogno 2 hint banner */
.cogno2-banner {
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    flex-direction: row; /* enforce row text flow */
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    background: linear-gradient(90deg, var(--green), var(--blue));
    color: #0b1020;
    font-weight: 600;
    font-size: 1.9rem;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.2);
    transform: translateZ(0);
}
.cogno2-banner .text { color: #fff; }
.cogno2-banner .arrow { color: #fff; transition: transform .2s ease; }
.cogno2-banner:hover .arrow { transform: translateX(3px); }
.cogno2-banner:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }

header {
    position: fixed;
    z-index: 100;
    top: 60px;
    left: 0;
    font-size: 1.8rem;
    padding: 1rem 0;
    backdrop-filter: blur(5px);
    color: var(--header-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
    display: grid;
    grid-template-areas: "logo navigation external";
    grid-template-columns: 1fr 1fr 100px;
}

header .logo {
    grid-area: logo;
}

header .logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: "Comfortaa", sans-serif;
    font-weight: 100;
    font-size: 3rem;
}

header .logo span {
    color: var(--header-color);
    margin-left: 0.5rem;
    padding-top: 6px;
}

header nav {
    grid-area: navigation;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: end;
    flex-direction: row;
}

header a {
    color: var(--header-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 3rem;
}

header a i {
    color: var(--header-color);
    font-size: 2.5rem;
}

header nav a:after {
    content: "";
    width: 0;
    transition: 500ms;
    border-bottom: 1px solid;
}

header nav a:hover:after {
    width: 3rem;
}

header .external {
    grid-area: external;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    line-height: 1rem;
    gap: 2rem;
}

main {
    padding-top: 10rem;
    color: var(--main-color);
}

#hero {
    padding-bottom: 8rem;
    position: relative;
}

#hero h1 {
    margin-top: 6.4rem;
    font-size: 8rem;
    line-height: 1.2;
    padding: 2.4rem;
    background-size: 100%;
    background-repeat: repeat;
    background-image: linear-gradient(to bottom, var(--main-color) 50%, var(--cyan));
    background-clip: text;
    text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    text-align: center;
}

#hero p {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 4.8rem;
}

#hero video {
    margin-top: 12.8rem;
    border-radius: 1rem;
    box-shadow: 100px -100px 200px 50px var(--magenta-opacity), -100px -100px 200px 50px var(--blue-opacity);
    width: 80vw;
    max-width: 1300px;
}

#hero .download-buttons {
    display: flex;
    gap: 1rem;
    flex-direction: row;
}

#hero .download-buttons a.button {
    padding: 1rem 1.8rem;
    font-weight: bold;
    background-color: var(--cyan);
    color: var(--main-background-color);
    border: 2px solid var(--cyan);
    box-shadow: 0px 0px 150px 110px var(--cyan-opacity);
    border-radius: 1rem;
    opacity: 0.8;
}

#hero .download-buttons a.button:hover {
    opacity: 1.0;
}

#hero .download-buttons a.button.hidden {
    display: none;
}

#hero a.small {
    color: var(--main-color);
    font-size: 1.3rem;
    line-height: 2.4rem;
    margin-right: 2px;
}

#hero:after {
    position: absolute;
    bottom: -8rem;
    content: '';
    width: 100px;
    box-shadow: 0 0 200px 200px var(--blue-opacity);
}


section {
    position: relative;
}

section img {
    border-radius: 1rem;
    width: 80vw;
    max-width: 1300px;
}

section.first {
    margin-top: 16rem;
    background-color: rgba(0,0,0,0);
    z-index: 1;
}

section.first .icon {
    padding-top: 5rem;
    font-size: 10rem;
    color: var(--header-color);
}

section.first::before {
    top: -100px;
    position: absolute;
    content: '';
    height: 600px;
    width: 992px;
    overflow: hidden;
    display: block;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    background-color: var(--main-background-color);
    border-top: 1px solid var(--blue-opacity);
}

section .container {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section h2 {
    z-index: 1;
    line-height: 1.1;
    font-size: 5rem;
    max-width: 50%;
    text-align: center;
    margin: 6.5rem 0;
}

section h3 {
    padding-top: 3.2rem;
    line-height: 1.1;
    font-weight: 100;
    font-size: 3rem;
    max-width: 50%;
    text-align: center;
}

section p {
    line-height: 1.1;
    font-size: 2rem;
    max-width: 55%;
    text-align: center;
}

section.illuminate {
    position: relative;
    margin: 10rem 0;
}

section.illuminate .container{
    margin-top: 5rem;
}

section.illuminate::before, section.illuminate::after {
    position: absolute;
    content: '';
    top:0;
    bottom:80%;
    background-size: 100%;
    background-repeat: no-repeat;
}

section.illuminate::before {
    left:30%;
    right:50%;
    background-position: 100% 0;
    box-shadow: inset 0 -100px 50px -50px var(--main-background-color), inset 100px 0 50px -50px var(--main-background-color);
}
section.illuminate::after {
    left:50%;
    right:30%;
    background-position: 0 0;
    box-shadow: inset 0 -100px 50px -50px var(--main-background-color), inset -100px 0 50px -50px var(--main-background-color);
}

section.illuminate.show::before, section.illuminate.show::after {
    transition: all 1000ms;
    transition-delay: 200ms;
    bottom:50%;
}

section.illuminate.show::after {
    right: 0;
}

section.illuminate.show::before {
    left: 0;
}

section.illuminate h2 {
    background-clip: text;
    text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
}


section.illuminate .illuminate-image {
    position: relative;
}

section.illuminate .illuminate-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

section.illuminate.blue h2 {
    background-image: linear-gradient(to top, var(--main-color) 50%, var(--blue));
}

section.illuminate.blue::before {
    background-image: conic-gradient(from 70deg at 80% 0%, var(--blue-light) 0%, var(--main-background-color) 45%);
}

section.illuminate.blue::after {
    background-image: conic-gradient(from 290deg at 20% 0%, var(--main-background-color) 55%, var(--blue-light));
}

section.illuminate.blue .illuminate-image::after {
    background: radial-gradient(ellipse 50% 50% at top, var(--blue-light), rgba(0, 0, 0, 0));
}

section.illuminate.blue img {
    border: 1px solid var(--blue-light);
}

section.illuminate.yellow h2 {
    background-image: linear-gradient(to top, var(--main-color) 50%, var(--yellow));
}

section.illuminate.yellow::before {
    background-image: conic-gradient(from 70deg at 80% 0%, var(--yellow-light) 0%, var(--main-background-color) 45%);
}

section.illuminate.yellow::after {
    background-image: conic-gradient(from 290deg at 20% 0%, var(--main-background-color) 55%, var(--yellow-light));
}

section.illuminate.yellow .illuminate-image::after {
    background: radial-gradient(ellipse 50% 50% at top, var(--yellow-light), rgba(0, 0, 0, 0));
}

section.illuminate.red h2 {
    background-image: linear-gradient(to top, var(--main-color) 50%, var(--red));
}

section.illuminate.red::before {
    background-image: conic-gradient(from 70deg at 80% 0%, var(--red-light) 0%, var(--main-background-color) 45%);
}

section.illuminate.red::after {
    background-image: conic-gradient(from 290deg at 20% 0%, var(--main-background-color) 55%, var(--red-light));
}

section.illuminate.red .illuminate-image::after {
    background: radial-gradient(ellipse 50% 50% at top, var(--red-light), rgba(0, 0, 0, 0));
}

section.illuminate.green h2 {
    background-image: linear-gradient(to top, var(--main-color) 100%, var(--green));
}

section.illuminate.green.show h2 {
    background-image: linear-gradient(to top, var(--main-color) 50%, var(--green));
}

section.illuminate.green::before {
    background-image: conic-gradient(from 70deg at 80% 0%, var(--green-light) 0%, var(--main-background-color) 45%);
}

section.illuminate.green::after {
    background-image: conic-gradient(from 290deg at 20% 0%, var(--main-background-color) 55%, var(--green-light));
}

section.illuminate.green .illuminate-image::after {
    background: radial-gradient(ellipse 50% 50% at top, var(--green-light), rgba(0, 0, 0, 0));
}

section.illuminate.green img {
    border: 1px solid var(--green-light);
}

section.illuminate.magenta h2 {
    background-image: linear-gradient(to top, var(--main-color) 50%, var(--magenta));
}

section.illuminate.magenta::before {
    background-image: conic-gradient(from 70deg at 80% 0%, var(--magenta-light) 0%, var(--main-background-color) 45%);
}

section.illuminate.magenta::after {
    background-image: conic-gradient(from 290deg at 20% 0%, var(--main-background-color) 55%, var(--magenta-light));
}

section.illuminate.magenta .illuminate-image::after {
    background: radial-gradient(ellipse 50% 50% at top, var(--magenta-light), rgba(0, 0, 0, 0));
}

section.illuminate.orange h2 {
    background-image: linear-gradient(to top, var(--main-color) 50%, var(--orange));
}

section.illuminate.orange::before {
    background-image: conic-gradient(from 70deg at 80% 0%, var(--orange-light) 0%, var(--main-background-color) 45%);
}

section.illuminate.orange::after {
    background-image: conic-gradient(from 290deg at 20% 0%, var(--main-background-color) 55%, var(--orange-light));
}

section.illuminate.orange .illuminate-image::after {
    background: radial-gradient(ellipse 50% 50% at top, var(--orange-light), rgba(0, 0, 0, 0));
}

section .features {
    padding-top: 7rem;
    display: grid;
    max-width: 80%;
    row-gap: 5rem;
    column-gap: 10rem;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: start;
}

section .features.brands a {
    font-size: 5rem;
    color: var(--main-color);
    cursor: pointer;
}

section .features dl {
    max-width: 100%;
}

section .features dt {
    font-size: 1.6rem;
    line-height: 2.3rem;
    text-align: start;
}

section .features dt i{
    padding-right: 1rem;
}

section .features dd{
    font-size: 1.6rem;
    line-height: 2rem;
    opacity: 0.8;
    margin: 0;
    padding: 0;
}

section .image-container {
    display: block;
    position: relative;
    width: 80%;
    flex: 1;
    transform: translate(0, 5%);
}

section .image-container .image-card {
    position: absolute;
    border-radius: 1rem;
}

section .image-container .image-card img {
    width: 100%;
}

section .image-container .image-card:nth-child(1) {
    top: -16.5%;
    left: 18%;
    width: 64%;
    filter: blur(4px) brightness(0.3);
}

section .image-container .image-card:nth-child(2) {
    top: -13%;
    left: 14%;
    width: 72%;
    filter: blur(3px)  brightness(0.6);
}

section .image-container .image-card:nth-child(3) {
    top: -9.3%;
    left: 10%;
    width: 80%;
    filter: blur(2px) brightness(0.9);
}

section .image-container .image-card:nth-child(4) {
    top: -5%;
    left: 5%;
    width: 90%;
    filter: blur(1px);
}

section .image-container .image-card:nth-child(5) {
    position: relative;
    width: 100%;
    margin-bottom: 5%;
}

section .os-images {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

section .img-windows {
    z-index: 2;
    width: 80%;
}

section .img-windows img{
    width: 100%;
}

section .img-mac {
    z-index: 1;
    top:0;
    right: 0;
    position: absolute;
    transform: scale(0.85) translate(-35%, 0%);
    width: 80%;
}

section .img-linux {
    z-index: 1;
    top:0;
    left: 0;
    position: absolute;
    transform: scale(0.85) translate(35%, 0%);
    width: 80%;
}


section.last {
    z-index: 1;
    background-color: rgba(0,0,0,0);
}

section.last::before {
    bottom: -60px;
    position: absolute;
    content: '';
    width: 992px;
    height: 600px;
    overflow: hidden;
    display: block;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    background-color: var(--main-background-color);
    border-bottom: 1px solid var(--blue-opacity);
}

#downloads {
    padding: 15rem 0 10rem 0;
    text-align: center;
}

#downloads:before {
    position: absolute;
    top: 0;
    content: '';
    width: 100px;
    box-shadow: 0 0 200px 200px var(--blue-opacity);
}


#downloads .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

#downloads .download-table {
    display: grid;
    grid-template-columns: 1fr 10rem 1fr 1fr;
    grid-gap: 1.2rem;
    align-items: start;
    justify-content: start;
    text-align: start;
}

#downloads .download-table .head {
    text-align: center;
}

#downloads .download-table div {
    font-size: 2rem;
    text-align: start;
}

#downloads .download-table a {
    text-align: center;
    color: var(--cyan);
    opacity: 0.8;
}

#downloads .download-table a:hover {
    text-align: center;
    opacity: 1.0;
}

footer {
    padding: 5rem 0;
    color: var(--footer-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    color: var(--footer-color);
    text-decoration: none;
}

footer .logo {
    padding: 5rem 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: "Comfortaa", sans-serif;
    font-weight: 100;
    font-size: 3rem;
}

footer .logo span {
    color: var(--header-color);
    margin-left: 0.5rem;
    padding-top: 6px;
}

footer p {
    font-size: 1.2rem;
    line-height: 1.7rem;
}

footer .community {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 2rem;
    font-size: 1.5rem;
    padding-bottom: 3rem;

}

@media (max-width: 1440px) {
    .container {
        max-width: 100%;
        width: 100%;
        padding: 0 3rem;
    }
}


@media (max-width: 992px) {
    :root {
        font-size: 8px;
    }

    header .container {
        grid-template-areas: "logo navigation external";
        grid-template-columns: 1fr 1fr 100px;
    }

    #hero:after {
        box-shadow: 0 0 100px 100px var(--blue-opacity);
    }

    #downloads:before {
        box-shadow: 0 0 100px 100px var(--blue-opacity);
    }
    
    section.first::before, section.last::before {
        width: 770px;
        height: 400px;
    }

    section.first h2, section.first p, section.last h2, section.last p {
        max-width: 50%;
    }

    section h2, section h3, section p {
        max-width: 80%;
    }
}

@media (max-width: 770px) {
    section feature.s {
        grid-template-columns: 1fr 1fr;
    }
    
    section.first::before, section.last::before {
        width: 576px;
        height: 300px;
    }
    
}

@media (max-width: 576px) {

    header .container {
        grid-template-areas: "logo external"
                             "navigation navigation";
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    header nav {
        padding-top: 1rem;
        justify-content: space-between;
    }

    #hero:after {
        box-shadow: 0 0 100px 100px var(--blue-opacity);
    }

    #hero .download-buttons {
        flex-direction: column;
    }

    section.first h2, section.first p, section.last h2, section.last p {
        max-width: 70%;
    }
    
    section.first::before, section.last::before {
        width: 420px;
        height: 200px;
    }

    section .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {

    section.first::before, section.last::before {
        width: 0px;
        height: 0px;
        top: 0px;
    }

    section.first {
        margin-top: 0;
    }
    
    #downloads {
        padding: 5rem 0 10rem 0;
    }
}


.slide-in {
    opacity: 0;
    transition: opacity 1000ms, transform 1000ms;
}

.slide-in.show {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

.slide-in.from-bottom {
    transform: translate(0%, 10%);
}

.slide-in.from-top {
    transform: translate(0%, -10%);
}

.slide-in.delay-1 {
    transition-delay: 100ms;
}

.slide-in.delay-2 {
    transition-delay: 200ms;
}

.slide-in.delay-3 {
    transition-delay: 300ms;
}

.slide-in.delay-4 {
    transition-delay: 400ms;
}

.slide-in.delay-5 {
    transition-delay: 500ms;
}

.slide-in.delay-6 {
    transition-delay: 600ms;
}

.slide-in.delay-7 {
    transition-delay: 700ms;
}

.slide-in.delay-8 {
    transition-delay: 800ms;
}

.slide-in.delay-9 {
    transition-delay: 900ms;
}

.slide-in.delay-10 {
    transition-delay: 1000ms;
}

.impressum {
    background-color: var(--main-background-color);
    color: var(--main-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
