:root {
    --bg-color: #eeede4;
    --text-color: #2d2d2d;
    --grid-minor-color: #2d2d2d09;
    --grid-minor-size: 20px;
    --grid-major-color: #2d2d2d09;
    --grid-major-size: 100px;

    --glass-bg: linear-gradient(0deg, #b3b3b364, #dedede13);
    --glass-bg-opaque: linear-gradient(0deg, #3e3e3e, #474747);

    --glass-border: 2px solid #ececec1e;
    --glass-blur: blur(6px) brightness(0.6);

    --green-gradient: linear-gradient(0deg, #2295225d, #08590831);
    --green-border: 2px solid #31b5312c;

    --dark-text-shadow: 0 0 5px #202020d0;

    --mnt-back-color: #a4a4a440;
    --mnt-front-color: #c3c3c340;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg-color);
    background-image:
        linear-gradient(to right, var(--grid-minor-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-minor-color) 1px, transparent 1px),
        linear-gradient(to right, var(--grid-major-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-major-color) 1px, transparent 1px);
    background-size:
        var(--grid-minor-size) var(--grid-minor-size),
        var(--grid-minor-size) var(--grid-minor-size),
        var(--grid-major-size) var(--grid-major-size),
        var(--grid-major-size) var(--grid-major-size);
    background-repeat: repeat;
    color: var(--text-color);
}

* {
    font-family: "Inter", sans-serif;
}

h1 {
    font-family: "Inter Tight", sans-serif;
    font-size: 3rem;
    font-weight: 600;
}

h2 {
    font-family: "Inter Tight", sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
}

strong {
    font-weight: 600;
}

p {
    line-height: 1.6;
}

li {
    margin-bottom: 0.5rem;
}

.material-symbols-rounded {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
}

/* Buttons */
.btn {
    display: inline-block;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 100px;
    cursor: pointer;
    margin: 0 8px;
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    color: white;
    text-shadow: none;
    transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.btn-primary {
    background: var(--green-gradient);
    border: var(--green-border);
    color: #70f970;
}

.btn:hover {
    text-shadow: 0 0 8px #f1f1f1f1;
    transform: translateY(-5px);
}

.btn-primary:hover {
    text-shadow: 0 0 8px #4ff24ff3;
}

/* Header */
.header-flex {
    position: fixed;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 100;
}

header {
    width: min(1100px, 80vw);
    margin-top: 16px;
    padding: 12px 24px;
    display: grid;
    grid-template-rows: auto 0fr;
    align-content: start;
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    color: white;
    border-radius: 25px;
    text-shadow: var(--dark-text-shadow);
    box-shadow: 0 2px 10px #20202040;
    transition: grid-template-rows 0.5s ease-in-out;
}

.pc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    grid-row: 1;
}

.pc-header>* {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav {
    display: flex;
    gap: 1rem;
}

header a {
    text-decoration: none;
    color: inherit;
    transition: text-shadow 0.3s ease;
}

header a:hover {
    text-shadow: 0 0 10px #ffffff;
}

.logo-wrapper {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 5%);
    height: 72px;
    z-index: 10;
}

@media screen and (max-width: 1200px) and (min-width: 901px) {
    header {
        padding-left: 80px;
    }

    .logo-wrapper {
        left: -40px;
    }
}

.logo {
    height: 100%;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Status */

.status {
    color: #77f877;
    text-shadow: none;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    cursor: pointer;
    font-size: 0.875rem;
}

.status .material-symbols-rounded {
    font-size: 1rem;
}

.status.closed {
    color: #ff7e7e;
}

.status::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% + 12px);
    height: calc(100% + 10px);
    border-radius: 100px;
    background-color: #0f610f;
    z-index: -1;
}

.status.closed::before {
    background-color: #720505;
}

.status-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    padding: 16px 20px;
    width: max-content;
    max-width: 200px;
    background: var(--glass-bg-opaque);
    border: var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    text-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    cursor: default;
}

.status:hover .status-tooltip {
    opacity: 1;
}

header:hover .status-tooltip {
    pointer-events: auto;
}

/* Language */

.language {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    transition: text-shadow 0.3s ease;
}

.language:hover {
    text-shadow: 0 0 10px #ffffff;
}

.language-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    padding: 8px;
    width: max-content;
    background: var(--glass-bg-opaque);
    border: var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    text-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: default;
}

.language:hover .language-tooltip {
    opacity: 1;
    pointer-events: auto;
}

header:hover .language-tooltip {
    pointer-events: auto;
}

.language-tooltip a {
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.language-tooltip a:hover {
    background: rgba(255, 255, 255, 0.1);
    text-shadow: none;
}

/* Hero */
.parallax {
    position: relative;
    height: 90vh;
    overflow: hidden;
    background: url(/media/topo-gray-bg.svg);
    background-size: cover;
    background-position: center;
}

.hero-content {
    height: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    gap: 1rem;
}

.hero-content h1 {
    color: white;
    font-size: 4rem;
    text-align: center;
    font-family: "Inter Tight", sans-serif;
    margin: 0;
    z-index: 1;
}

.layer {
    position: absolute;
    inset: 0;
    will-change: transform;
}

/* Mountains */
.mnt {
    --mnt-init-height: 300px;

    bottom: -1px;
    top: auto;
    width: 100%;
    backdrop-filter: blur(12px);

    background-color: transparent;
    -webkit-mask-repeat: no-repeat, no-repeat;
    mask-repeat: no-repeat, no-repeat;
    -webkit-mask-position: top center, top left;
    mask-position: top center, top left;
    -webkit-mask-size: 100% auto, 100% 100%;
    mask-size: 100% auto, 100% 100%;
    height: var(--mnt-init-height);

    -webkit-mask-image:
        var(--mnt-mask-image),
        linear-gradient(to bottom,
            transparent 0 var(--mnt-cap-height),
            #000 var(--mnt-cap-height) 100%);
    mask-image:
        var(--mnt-mask-image),
        linear-gradient(to bottom,
            transparent 0 var(--mnt-cap-height),
            #000 var(--mnt-cap-height) 100%);
}

.mnt.back {
    --mnt-cap-height: clamp(0px, calc(100vw * 55.482769 / 297), 100%);
    --mnt-mask-image: url(/media/mnt1.svg);
    z-index: 2;
    background-color: var(--mnt-back-color);
}

.mnt.front {
    --mnt-cap-height: clamp(0px, calc(100vw * 49.110889 / 297), 100%);
    --mnt-mask-image: url(/media/mnt2.svg);
    z-index: 3;
    background: linear-gradient(180deg, var(--mnt-front-color) 0%, var(--bg-color) 100%);
}

/* Footer */
footer {
    overflow: hidden;
    position: relative;
}

.footer-mnt {
    width: 100%;
    display: block;
    filter: brightness(0.7);
}

.footer-bg {
    position: absolute;
    bottom: 0;
    width: 100%;
    transform: translateY(20%);
    z-index: 0;
    opacity: 0.07;
}

.footer-content {
    background-color: #1c1c1c;
    color: white;
    padding: 4rem 4rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr 0.7fr;
    grid-template-rows: auto auto;
    column-gap: 4rem;
    row-gap: 2rem;
}

.footer-content * {
    z-index: 10;
    position: relative;
}

.footer-content h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-status {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-status~p {
    margin-top: 0;
}

.footer-content .status {
    cursor: inherit;
    width: fit-content;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #bcbcbc;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-bottom: 1rem;
}

.social-link a {
    display: block;
    color: #bcbcbc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-link a:hover {
    color: white;
}

.social-link img {
    height: 1.5rem;
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    color: #bcbcbc;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: #bcbcbc;
}

/* Responsive */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .parallax {
        height: 60vh;
    }

    .hero-content {
        height: 100%;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .mnt {
        width: 150%;
        left: -30%;
    }

    .mnt.back {
        --mnt-cap-height: clamp(0px, calc(150vw * 55.482769 / 297), 100%);
    }

    .mnt.front {
        --mnt-cap-height: clamp(0px, calc(150vw * 49.110889 / 297), 100%);
    }

    footer {
        margin-top: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 0;
        padding: 2rem;
    }

    .footer-content>div {
        grid-column: 1;
    }

    .footer-content .status {
        justify-content: center;
    }

    .footer-mnt {
        display: none;
    }

    .footer-bg {
        display: none;
    }
}

/* Responsive Header */
.menu-btn {
    display: none;
}

.mobile-header {
    grid-row: 2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    padding: 0;
}

.mobile-header .divider {
    height: 1px;
    width: 100%;
    background: #ffffff44;
}

@media screen and (max-width: 900px) {
    header {
        width: 85%;
        padding: 8px 16px;
        border-radius: 22px;
    }

    .pc-header .status {
        display: none;
    }

    .pc-header nav {
        display: none;
    }

    .pc-header .language {
        display: none;
    }

    .menu-btn {
        display: block;
        background: none;
        border: none;
        color: white;
        display: flex;
        align-items: center;
        text-shadow: var(--dark-text-shadow);
        transition: transform 0.3s ease;
    }

    header.open .menu-btn {
        transform: rotate(180deg);
    }

    header.open {
        grid-template-rows: auto 1fr;
    }

    header.open .mobile-header {
        opacity: 1;
        padding: 1rem 0 0.5rem 0;
    }

    .mobile-header .status {
        width: fit-content;
        margin: 0 7px 0 5px;
    }

    .mobile-header .status:hover {
        text-shadow: none;
    }

    .mobile-header .lang-divider {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .mobile-header .mobile-lang {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mnt {
        --mnt-init-height: 120px;
    }
}