@font-face {
    font-family: 'Jetbrains';
    src: url('../assets/fonts/jetbrains.ttf');
    font-display: swap;
}

:root {
    --bg-dark: #0B0720;
    --bg-panel: #161035;
    --bg-light: #251a59;
    --violet: #9004E5;
    --violet-soft: #C991F9;
    --blue-soft: #7BA7FF;
    --purple-soft: #A88BFF;
    --purple-deep: #372E7C;
    --text-main: #FFFFFF;
    --text-soft: #DCE6FF;
    --footer-bg-top: #0A0012;
    --footer-bg-bottom: #11001B;
    --select-bg: #A88BFF;
    --select-text: #FFFFFF;
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Jetbrains', monospace;
    line-height: 1.45;
}

::selection {
    background: var(--select-bg);
    color: var(--select-text);
}

::-moz-selection {
    background: var(--select-bg);
    color: var(--select-text);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--violet-soft);
    text-decoration: none;
    transition: 0.2s ease;
}

a:hover {
    color: var(--violet);
}

#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.6em 1.5em;
    background: linear-gradient(to bottom, var(--bg-light), var(--bg-panel));
    border-bottom: 1px solid rgba(201, 145, 249, 0.25);
    box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5em;
    flex-wrap: wrap;
    text-align: center;
    z-index: 1000;
    transition: padding 0.2s ease;
}

.header-left {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65em;
}

#homeLogo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#homeLogo img {
    height: 1.4em;
}

#mainNav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6em;
    flex-wrap: wrap;
    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.25s ease;
}

#mainHeader a {
    color: var(--text-soft);
    font-size: 15px;
}

#mainHeader a:hover {
    color: var(--violet);
}

.header-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5em;
    height: 2.5em;
    border-radius: 10px;
    border: 1px solid rgba(201, 145, 249, 0.4);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.header-toggle svg {
    width: 18px;
    height: 18px;
    display: none;
}

.header-toggle .icon-menu {
    display: block;
}

#mainHeader.nav-open .header-toggle .icon-menu {
    display: none;
}

#mainHeader.nav-open .header-toggle .icon-close {
    display: block;
}

.header-toggle:hover,
.header-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(201, 145, 249, 0.6);
    outline: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.main-page {
    margin-top: 6em;
    padding: 2em 2em 3em;
}

@media (max-width: 980px) {
    #mainHeader {
        padding: 0.8em 1.2em;
        gap: 1.2em;
    }

    #mainNav {
        gap: 1.1em;
    }
}

@media (max-width: 720px) {
    #mainHeader {
        flex-direction: column;
        align-items: stretch;
        padding: 0.8em 1.2em;
        gap: 0.8em;
    }

    .header-left {
        justify-content: space-between;
    }

    .header-toggle {
        display: inline-flex;
    }

    #mainHeader.nav-collapsible #mainNav {
        width: 100%;
        justify-content: flex-start;
        gap: 0.65em 0.9em;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-6px);
    }

    #mainHeader.nav-open #mainNav {
        max-height: 320px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    #mainNav a {
        padding: 0.55em 0.85em;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(201, 145, 249, 0.25);
        border-radius: 10px;
        width: 100%;
        text-align: center;
    }

    .main-page {
        margin-top: 7.5em;
        padding: 1.5em 1.25em 2.5em;
    }
}

@media (max-width: 520px) {
    #mainNav a {
        flex: 1 1 calc(50% - 1.2em);
        text-align: center;
    }

    .main-page {
        margin-top: 8.5em;
        padding: 1.25em 1em 2em;
    }
}

#aleFooter {
    width: 100%;
    padding: 1.5em 2em;
    background: linear-gradient(to bottom, var(--footer-bg-top), var(--footer-bg-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2em;
    flex-wrap: wrap;
    overflow: hidden;
    font-size: 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2em;
    max-width: 100%;
}

.footer-links a {
    color: #e6d9ff;
}

.footer-links a:hover {
    color: #c599ff;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1em;
    max-width: 100%;
}

.footer-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: 0.25s ease;
}

.footer-icon:hover {
    opacity: 1;
    transform: scale(1.08);
}

#footerCredits {
    width: 100%;
    text-align: center;
    padding: 0.8em;
    font-size: 14px;
    color: #c7b5ff;
    background: #0B0014;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.releaseRow {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75em;
    margin-top: 1.1em;
    text-align: center;
    flex-wrap: wrap;
}

.releaseButton {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.85em 1.2em;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--violet) 0%, #7a00c4 100%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.releaseButton:hover {
    transform: translateY(-2px);
    color: #fff;
}

.releaseButton:focus-visible {
    outline: 2px solid var(--violet-soft);
    outline-offset: 3px;
}

.releaseButton img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.releaseNote {
    color: var(--text-soft);
    font-size: 14px;
}
