:root {
    --bg: #000;
    --text: #fff;
    --muted: #9a9a9a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

#smooth-wrapper {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

#smooth-content {
    will-change: transform;
}

#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: .8s;
}

#preloader::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.06) 0px,
            rgba(255, 255, 255, 0.06) 1px,
            transparent 1px,
            transparent 10px);
    animation: preloaderNoise 1.6s linear infinite;
    opacity: .35;
}

@keyframes preloaderNoise {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(60px);
    }
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    position: relative;
    font-size: .9rem;
    letter-spacing: .4em;
    color: #cfcfcf;
    z-index: 2;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 28px 8vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    transition: .4s;
}

.header.hide {
    opacity: .15;
}

.logo {
    font-size: .9rem;
    letter-spacing: .25em;
    font-weight: 600;
}

.logo img {
    height: 42px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
}

.nav a {
    margin-left: 36px;
    padding: 10px 6px;
    font-size: .85rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    opacity: .8;
    transition: .3s;
}

.nav a:hover {
    opacity: 1;
    transform: scale(1.08);
}

.nav-btn {
    margin-left: 36px;
    padding: 10px 6px;
    font-size: .85rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    opacity: .8;
    transition: .3s;
}

.nav-btn:hover {
    opacity: 1;
    transform: scale(1.08);
}

.music-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 36px;
    cursor: pointer;
    opacity: .8;
}

.music-control:hover {
    opacity: 1;
}

.music-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.music-visualizer {
    display: flex;
    gap: 3px;
}

.music-visualizer i {
    width: 2px;
    height: 10px;
    background: #fff;
    opacity: 0.4;
    animation: sound 1s infinite ease-in-out;
}

.music-toggle:not(.active) i {
    animation: none;
    opacity: 0.2;
}

.music-visualizer i:nth-child(2) {
    animation-delay: .2s;
}

.music-visualizer i:nth-child(3) {
    animation-delay: .4s;
}

@keyframes sound {
    0% {
        height: 4px;
    }

    50% {
        height: 14px;
    }

    100% {
        height: 4px;
    }
}


.visualizer {
    display: flex;
    gap: 3px;
}

.visualizer span {
    width: 3px;
    height: 12px;
    background: #fff;
    animation: equalize 1s infinite ease-in-out;
}

.visualizer span:nth-child(2) {
    animation-delay: .2s
}

.visualizer span:nth-child(3) {
    animation-delay: .4s
}

.visualizer.paused span {
    animation: none;
    opacity: .3;
}

@keyframes equalize {

    0%,
    100% {
        height: 6px
    }

    50% {
        height: 16px
    }
}

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.25;
    display: inline;
    padding: 0.05em 0;
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: 0 0;

    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;

    transition: background-size 1.2s ease;
}

.hero-content.show .line1::before {
    width: 100%;
    transition-delay: 0.2s;
}

.hero-content.show .line2::before {
    width: 100%;
    transition-delay: 1.1s;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 8vw;
}

.hero-content h1,
.hero-content p {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s;
}

.hero-content.show h1,
.hero-content.show p {
    opacity: 1;
    transform: none;
}

.game-section {
    padding: 140px 8vw;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: center;
}


.game-info {
    justify-self: stretch;
    opacity: 0;
    transform: translateY(60px);
    transition: 1s;
}

.game-info h2 {
    font-size: 3.2rem;
}

.game-info p {
    margin-top: 28px;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 600px;
}

.game-poster {
    justify-self: stretch;
    aspect-ratio: 3 / 4;
    width: 100%;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px);
    transition: 1s;
}

.show {
    opacity: 1;
    transform: none;
}

.game-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1s;
}

.game-poster:hover img {
    transform: scale(1.04);
}

.steam-btn {
    margin-top: 36px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 14px 26px;
    text-decoration: none;
    color: #fff;
    transition: .4s;
}

.steam-btn img {
    width: 18px;
}

.steam-btn:hover {
    background: #000;
    color: #000;
}

footer {
    padding: 60px 8vw;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
}

.socials {
    display: flex;
    gap: 30px;
}

.social {
    position: relative;
    opacity: .7;
}

.social img {
    width: 18px;
}

.social:hover {
    opacity: 1;
}

.social::after {
    content: attr(data-label);
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    font-size: .7rem;
    opacity: 0;
    transition: .3s;
}

.social:hover::after {
    opacity: 1;
}

.burger {
    display: none;
}

@media (max-width: 768px) {

    .burger {
        display: block;
        background: none;
        border: none;
        color: #bfbfbf;
        font-family: inherit;
        font-size: 14px;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        cursor: pointer;
    }

    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 30px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: 0.3s ease;
    }

    .nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .feature-section {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 100px 6vw;
    }

    .feature-media {
        order: -1;
    }

    .feature-info h2 {
        font-size: 2rem;
    }

    .feature-info li {
        font-size: 1rem;
    }
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch img {
    width: 18px;
    height: auto;
    display: block;
}

.feature-section {
    padding: 140px 8vw;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;

    opacity: 0;
    transform: translateY(80px);
    transition: 1.2s cubic-bezier(.19, 1, .22, 1);
}

.feature-section.show {
    opacity: 1;
    transform: none;
}

.feature-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-info h2 {
    font-size: 2.6rem;
}

.feature-info ul {
    margin-top: 30px;
    list-style: none;
}

.feature-info li {
    margin-bottom: 14px;
    font-size: 1.1rem;
    color: var(--muted);
}

.section-transition {
    position: relative;
    height: 80vh;
    overflow: hidden;
    background: #000;
}

.transition-media {
    position: absolute;
    inset: -20%;
}

.transition-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-transition img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-transition::before,
.section-transition::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 30%;
    z-index: 3;
    pointer-events: none;
}

.section-transition::before {
    top: 0;
    background: linear-gradient(to bottom, #000 0%, transparent 100%);
}

.section-transition::after {
    bottom: 0;
    background: linear-gradient(to top, #000 0%, transparent 100%);
}