/* =========================================================
   01. HEADER
========================================================= */

.site-header {
    position: relative;
    width: 100%;
    z-index: 1000;
    padding: 24px 0 0;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 84px;
    padding: 0 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
        linear-gradient(90deg, rgba(7, 11, 18, 0.92), rgba(8, 13, 22, 0.88));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    overflow: visible;
}

.header-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 50%, rgba(193, 255, 114, 0.05), transparent 22%),
        radial-gradient(circle at 82% 50%, rgba(95, 168, 255, 0.06), transparent 24%);
}

/* =========================================================
   01.10 BRAND
========================================================= */

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 20;
    flex: 0 0 auto;
}

.site-brand-mark {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #c1ff72;
    box-shadow:
        0 0 18px rgba(193, 255, 114, 0.42),
        0 0 36px rgba(193, 255, 114, 0.12);
    flex: 0 0 12px;
}

.site-brand-text {
    font-family: "Sora", Arial, Helvetica, sans-serif;
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f8fafc;
}

/* =========================================================
   01.20 NAV
========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    position: relative;
    z-index: 20;
}

.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.70);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition:
        color 0.22s ease,
        opacity 0.22s ease,
        transform 0.22s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 1px;
    background: linear-gradient(90deg, #5fa8ff 0%, #8bc3ff 45%, #c1ff72 100%);
    opacity: 0;
    transform: scaleX(0.35);
    transform-origin: center;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.main-nav a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.main-nav a.is-active {
    color: #ffffff;
}

/* =========================================================
   01.30 LANGUAGE SWITCHER
========================================================= */

.language-switcher {
    position: relative;
    z-index: 30;
    flex: 0 0 auto;
    margin-left: 18px;
}

.lang-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        transform 0.22s ease;
}

.lang-current:hover,
.language-switcher.is-open .lang-current {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(193, 255, 114, 0.16);
    transform: translateY(-1px);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 244px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(9, 14, 24, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.30);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

/* =========================================================
   01.10 LANGUAGE SWITCHER
========================================================= */

.language-switcher {
    position: relative;
    z-index: 30;
    flex: 0 0 auto;
    margin-left: 8px;
}

.lang-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.lang-current:hover,
.language-switcher.is-open .lang-current {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 244px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(12, 16, 28, 0.95);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

.language-switcher:hover .lang-dropdown,
.language-switcher.is-open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.84rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-option-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.lang-option.active {
    background: rgba(193, 255, 114, 0.08);
    color: #c1ff72;
}

.flag {
    font-size: 14px;
    line-height: 1;
}

.code {
    font-size: 11px;
    opacity: 0.72;
    letter-spacing: 0.06em;
}

/* =========================================================
   01.20 MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    position: relative;
    z-index: 40;
    flex: 0 0 auto;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   02. TABLET
========================================================= */

@media (max-width: 1100px) {
    .header-inner {
        padding: 0 20px;
    }
}

/* =========================================================
   03. MOBILE
========================================================= */

@media (max-width: 767px) {
    .site-header {
        padding-top: 14px;
    }

    .header-inner {
        min-height: 72px;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 16px;
    }

    .site-brand-text {
        font-size: 0.96rem;
        letter-spacing: 0.12em;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
        order: 3;
    }

    .language-switcher {
        order: 2;
        margin-left: auto;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 15;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 10px;
        padding: 110px 24px 36px;
        background: rgba(0, 0, 0, 0.74);
        backdrop-filter: blur(10px);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.32s ease, opacity 0.32s ease, visibility 0.32s ease;
    }

    .main-nav.is-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav a {
        width: 100%;
        min-height: 48px;
        justify-content: flex-start;
        padding: 0 16px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.02);
        font-size: 0.84rem;
        text-align: left;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a:hover,
    .main-nav a.is-active {
        background: rgba(255, 255, 255, 0.05);
        color: #ffffff;
        transform: none;
    }

    .lang-dropdown {
        width: 220px;
    }
}