/* Base */
* {
    border: 0;
    margin: 0;
    outline: 0;
    box-sizing: border-box;
}
body {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale;
    background: black;
    color: white;
    font-family: 'Inter', sans-serif;
    text-align: center;
    font-weight: 400;
}
img {
    max-width: 100%;
}
a {
    color: white;
    text-decoration: none;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Typography */
h1 {
    margin: 40px auto 0 auto;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.5px;
    /*max-width: 30ch;*/
}
h1 span {
    font-weight: 500;
}
h2 {
    font-size: 32px;
    letter-spacing: -0.5px;
    font-weight: 500;
}
h3 {
    font-size: 20px;
    letter-spacing: -0.5px;
    font-weight: 400;
    line-height: 1;
}
p {
    margin-top: 24px;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.4;
}
p strong {
    font-weight: 500;
}
small {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    opacity: 0.5;
}

/* Header */
header {
    position: relative;
    z-index: 10;
}
header ul {
    list-style: none;
}
header, main {
    padding: 0 20px;
}
header .ico {
    font-size: 14px;
    display: inline-block;
    height: 40px;
    line-height: 38px;
    padding: 0 20px;
    border-radius: 20px;
    color: #69DFDE;
    font-weight: 500;
    border: 1px solid rgba(105, 223, 222, 0.5);
}

/* Navigation */
nav a svg {
    margin-right: 4px;
    display: none;
    width: 0;
}
nav a.active svg {
    display: inline-block;
}
.subpage nav a:not(.active) {
    opacity: 0.5;
}
.subpage nav a:hover {
    opacity: 1;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    display: block;
    transition: all 0.3s ease;
    transform-origin: center;
}
html.nav-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
html.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
html.nav-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}
.nav-close {
    display: none;
    background: none;
    border: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
html.nav-open,
html.nav-open body {
    overflow: hidden;
}

/* Footer */
footer {
    margin: 40px auto 0 auto;
    max-width: 640px;
    font-size: 12px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    height: 80px;
    padding: 0 20px;
}
.social {
    display: flex;
    gap: 20px;
}

/* Forms */
form {
    padding: 16px;
    font-size: 14px;
    text-align: center;
    margin: 40px auto 0 auto;
    width: 100%;
    max-width: 352px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
}
input, select {
    padding: 0 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 44px;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
    color: white;
}
*::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}
select:invalid {
    color: rgba(255, 255, 255, 0.5);
}
select:valid {
    color: white;
}
input:hover, select:hover {
    border-color:rgba(255, 255, 255, 0.5);
}
input:focus, select:focus {
    color: white;
    border-color:rgba(255, 255, 255, 0.5);
}
form button {
    width: 100%;
    height: 44px;
    margin-top: 12px;
    border-radius: 8px;
    background: #69DFDE;
    color: #0B2B37;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: -0.5px;
}
form button:hover {
    transition: all 0.2s ease;
    background: white;
}
*::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}
select:invalid {
    color: rgba(255, 255, 255, 0.5);
}
select:valid {
    color: white;
}
input:hover, select:hover {
    border-color:rgba(255, 255, 255, 0.5);
}
input:focus, select:focus {
    color: white;
    border-color:rgba(255, 255, 255, 0.5);
}
form button {
    width: 100%;
    height: 44px;
    margin-top: 12px;
    border-radius: 8px;
    background: #69DFDE;
    color: #0B2B37;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: -0.5px;
}
form button:hover {
    transition: all 0.2s ease;
    background: white;
}

/* Components */
.video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: auto;
    z-index: -1000;
    background-size: cover;
    object-fit: cover;
    opacity: 0.5;
}
.btn {
    display: inline-block;
    margin-top: 40px;
    border: 1px solid white;
    border-radius: 20px;
    height: 40px;
    font-size: 14px;
    line-height: 38px;
    padding: 0 16px;
    transition: all 0.2s ease;
}
.btn svg {
    transition: fill 0.2s ease;
}
.btn svg path {
    fill: white;
    transition: fill 0.2s ease;
}
.btn:hover {
    border-color: #FBC82F;
    color: #FBC82F;
}
.btn:hover svg path {
    fill: #FBC82F;
}

/* Pages */
.subpage {
    background: url('/res/bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    text-align: left;
}
.page-about main, .page-roadmap main {
    max-width: 720px;
}
.page-team main {
    max-width: 1024px;
}
.subpage main {
    margin: 120px auto 0 auto;
}
.page-about main section:not(:first-child) {
    margin-top: 80px;
}
.page-team .team-grid {
    display: grid;
    gap: 20px;
    margin-top: 80px;
}
.page-team .profile .gradient {
    position: relative;
}
.page-team .profile .gradient:before {
    content: '';
    width: 100%;
    height: 40px;
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    z-index: 2;
    background: linear-gradient(rgba(250, 194, 55, 0), rgba(242, 141, 122, 1));
}
.page-team .profile figcaption {
    padding-top: 12px;
}
.page-team .profile span {
    display: block;
    font-size: 16px;
    margin-top: 4px;
    color: #999;
}
.page-team .profile .linkedin {
    float: right;
    background: url('/res/linkedin.svg') center center no-repeat;
    background-size: 100%;
    width: 20px;
    height: 20px;
}
.page-team .profile-vacant {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    flex-direction: column;
}
.page-team .profile-vacant h3 {
    margin-bottom: 12px;
    opacity: 0.5;
}
.page-team .profile-vacant a {
    font-size: 14px;
    display: inline-block;
    border-bottom: 1px solid rgba(255,255,255,0.25);
}
.roadmap {
    margin-top: 40px;
    position: relative;
}
.roadmap::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 8px;
    height: calc(100% - 100px);
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
}
.roadmap section {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}
.roadmap section::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    z-index: 1;
}
.roadmap h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 16px 0;
    color: white;
}
.roadmap ul {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 0;
    list-style: none;
}
.roadmap li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
}
.roadmap li:last-child {
    margin-bottom: 0;
}

/* Breakpoints */
@media (max-width: 767px) {
    .wrapper {
        padding: 0 10px;
        text-align: left;
    }
     header {
         display: flex;
         justify-content: space-between;
         align-items: center;
         padding-top: 20px;
         background: transparent;
         height: auto;
         align-items: flex-start;
         transition: all 0.3s ease;
     }
     header.menu-open {
         background: #0B2B37;
         height: 100vh;
         align-items: flex-start;
     }
     nav {
         position: absolute;
         top: 120px;
         text-align: left;
         left: 20px;
         width: 100%;
         opacity: 0;
         visibility: hidden;
         transition: all 0.3s ease;
     }
     
     header.menu-open nav {
         opacity: 1;
         visibility: visible;
     }
    nav li {
        margin-bottom: 8px;
    }
    nav a {
        line-height: 1;
        font-size: 36px;
        font-weight: 400;
        letter-spacing: -0.5px;
    }
    nav .ico {
        margin-top: 40px;
    }
    .menu-toggler {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: 0;
        cursor: pointer;
        padding: 8px;
    }
    .menu-toggler span {
        width: 24px;
        height: 2px;
        background: #fff;
        display: block;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    .menu-toggler.active span:nth-child(1) {
        transform: rotate(45deg) translate(0, 6px);
    }
    .menu-toggler.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggler.active span:nth-child(3) {
        transform: rotate(-46deg) translate(4px, -10px);
    }
    .menu-toggler {
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .roadmap::before {
        left: 15px;
    }
    .roadmap section {
        padding-left: 45px;
    }
    .roadmap section::before {
        left: 10px;
        width: 12px;
        height: 12px;
    }
    .roadmap h2 {
        font-size: 20px;
    }
    
    .roadmap ul {
        padding: 16px;
    }
    .roadmap li {
        font-size: 14px;
    }
    .roadmap::before {
        height: calc(100% - 80px);
    }
}
@media (min-width: 768px) {
    .subpage main {
        margin-top: 240px;
    }
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .roadmap {
        margin-top: 80px;
    }
    header {
        margin: 40px auto 0 auto;
        width: 100%;
        max-width: 1280px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    nav ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }
    nav ul a:before {
        content: '';
        display: inline-block;
        height: 12px;
        background: url('/res/arrow-right.svg') center center no-repeat;
        background-size: 100%;
        opacity: 0;
        width: 0;
        margin-right: 4px;
        transition: all 0.2s ease-in-out;
    }
    nav .ico {
        margin-left: 16px;
    }
    nav ul a:hover:before, nav ul a.active:before {
        opacity: 1;
        width: 12px;
    }
    footer {
        margin-top: 80px;
        height: 120px;
    }
    form {
        margin-top: 80px;
    }
    h1 {
        font-size: 56px;
        margin-top: 80px;
    }
    .menu-toggler {
        display: none;
    }
}