:root {
    --bg: #05070b;
    --bg2: #090e16;
    --panel: #0c131d;
    --panel2: #111a27;
    --gold: #d1ad68;
    --gold-dark: #866d43;
    --text: #f3f5f7;
    --muted: #8995a4;
    --green: #48df8b;
    --border: rgba(209, 173, 104, .16);
    --sidebar-width: 275px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at 50% -20%, #19253a 0%, transparent 40%),
        linear-gradient(180deg, var(--bg2), var(--bg));
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.017) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.017) 1px, transparent 1px);
    background-size: 46px 46px;
}

a {
    color: inherit;
}

button {
    font: inherit;
}


/* LANGUAGE GATE */

.language-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        radial-gradient(circle at 50% 15%, #172338 0%, transparent 45%),
        rgba(4, 7, 11, .98);

    transition:
        opacity .35s ease,
        visibility .35s ease;
}

.language-gate.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.language-card {
    width: min(580px, 100%);
    padding: 52px 42px;
    text-align: center;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(9, 14, 22, .96);

    box-shadow: 0 30px 100px rgba(0,0,0,.45);

    animation: gate-enter .55s ease;
}

@keyframes gate-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.gate-emblem {
    width: 85px;
    height: 85px;

    display: grid;
    place-items: center;

    margin: 0 auto 24px;

    border: 1px solid var(--gold-dark);
    border-radius: 50%;

    color: var(--gold);
    font-size: 37px;
}

.language-card h1 {
    margin: 0;
    letter-spacing: 7px;
}

.language-card p {
    margin: 16px 0 30px;
    color: var(--muted);
}

.gate-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gate-options button {
    padding: 17px;

    border: 1px solid var(--border);
    border-radius: 9px;

    color: var(--muted);
    background: var(--panel);

    cursor: pointer;

    transition: .2s ease;
}

.gate-options button strong {
    display: block;
    margin-bottom: 5px;

    color: var(--gold);
    font-size: 16px;
}

.gate-options button:hover {
    transform: translateY(-3px);
    border-color: var(--gold-dark);
    color: white;
}


/* SIDEBAR */

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;

    width: var(--sidebar-width);

    z-index: 1000;

    padding: 27px 18px;

    overflow-y: auto;

    background: rgba(6, 10, 16, .97);

    backdrop-filter: blur(16px);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

html[dir="ltr"] .sidebar {
    left: 0;
    border-right: 1px solid var(--border);
}

html[dir="rtl"] .sidebar {
    right: 0;
    border-left: 1px solid var(--border);
}

.brand {
    display: block;

    padding: 10px 12px 9px;

    color: white;

    font-size: 17px;
    font-weight: 900;

    letter-spacing: 4px;

    text-decoration: none;
}

.brand span {
    color: var(--gold);
}

.alpha {
    padding: 0 12px 25px;

    border-bottom: 1px solid var(--border);

    color: var(--gold);

    font-size: 8px;
    letter-spacing: 2px;
}

.navigation {
    padding-top: 20px;
}

.nav-label {
    margin-top: 12px;
    padding: 10px 12px;

    color: #556171;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2px;
}

.nav-item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    margin: 3px 0;

    padding: 12px 13px;

    border-radius: 7px;

    color: #9ca7b5;

    text-decoration: none;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease;
}

.nav-item::before {
    content: "";

    position: absolute;

    top: 50%;

    width: 3px;
    height: 0;

    border-radius: 4px;

    background: var(--gold);

    transform: translateY(-50%);

    transition: height .2s ease;
}

html[dir="ltr"] .nav-item::before {
    left: 0;
}

html[dir="rtl"] .nav-item::before {
    right: 0;
}

.nav-item:hover {
    color: white;
    background: rgba(209,173,104,.055);
}

html[dir="ltr"] .nav-item:hover {
    transform: translateX(4px);
}

html[dir="rtl"] .nav-item:hover {
    transform: translateX(-4px);
}

.nav-item.active {
    color: var(--gold);
    background: rgba(209,173,104,.075);
}

.nav-item.active::before {
    height: 55%;
}

.sidebar-language {
    margin-top: 30px;
    padding: 20px 10px 5px;

    border-top: 1px solid var(--border);
}

.sidebar-language > span {
    display: block;

    margin-bottom: 9px;

    color: #596575;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2px;
}

.sidebar-language > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.sidebar-language button {
    padding: 9px 6px;

    border: 1px solid var(--border);
    border-radius: 6px;

    color: #8d99a8;
    background: #0d151f;

    cursor: pointer;

    transition: .2s ease;
}

.sidebar-language button:hover,
.sidebar-language button.selected {
    color: var(--gold);

    border-color: var(--gold-dark);

    background: rgba(209,173,104,.07);
}


/* MAIN */

.main {
    min-height: 100vh;
}

html[dir="ltr"] .main {
    margin-left: var(--sidebar-width);
}

html[dir="rtl"] .main {
    margin-right: var(--sidebar-width);
}

.topbar {
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 0 35px;

    border-bottom: 1px solid var(--border);

    background: rgba(6, 10, 16, .72);

    backdrop-filter: blur(13px);
}

.top-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 8px 13px;

    border: 1px solid rgba(72,223,139,.17);
    border-radius: 40px;

    color: #b8f3d0;

    font-size: 10px;
    letter-spacing: 1px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow: 0 0 12px var(--green);

    animation: pulse 2s infinite;
}

@keyframes pulse {
    50% {
        opacity: .5;
        box-shadow: 0 0 22px var(--green);
    }
}

.page-container {
    width: min(1120px, 91%);
    margin: auto;

    padding: 50px 0 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 35px;

    color: #697586;

    font-size: 11px;
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
}

.back-button {
    border: 0;

    color: #9ca7b5;
    background: none;

    cursor: pointer;
}

.back-button:hover {
    color: white;
}

.breadcrumb-separator {
    color: #38414d;
}


/* CONTENT */

.hero {
    min-height: 590px;

    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;

    animation: content-enter .55s ease;
}

@keyframes content-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.eyebrow {
    color: var(--gold);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 4px;
}

.hero h1 {
    margin: 15px 0 0;

    font-size: clamp(48px, 8vw, 88px);

    letter-spacing: 8px;

    line-height: 1;
}

.hero-subtitle {
    margin-top: 20px;

    color: #929dac;

    font-size: 12px;

    letter-spacing: 3px;
}

.lead {
    max-width: 760px;

    margin-top: 27px;

    color: #a6b0bd;

    line-height: 1.85;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 30px;
}

.button {
    display: inline-block;

    padding: 11px 17px;

    border: 1px solid var(--border);
    border-radius: 7px;

    color: #dfe4ea;
    background: transparent;

    text-decoration: none;

    cursor: pointer;

    transition: .2s ease;
}

.button:hover {
    transform: translateY(-2px);

    border-color: var(--gold-dark);

    color: var(--gold);

    background: rgba(209,173,104,.06);
}

.button.primary {
    color: var(--gold);
    background: rgba(209,173,104,.075);
}

.section {
    padding: 50px 0 80px;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h1,
.section-heading h2 {
    margin: 10px 0;

    font-size: clamp(30px, 5vw, 48px);
}

.section-heading p {
    max-width: 760px;

    color: var(--muted);

    line-height: 1.8;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.card,
.legal-card {
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background:
        linear-gradient(145deg, var(--panel2), var(--panel));

    transition:
        transform .25s ease,
        border-color .25s ease;
}

.card:hover {
    transform: translateY(-5px);

    border-color: rgba(209,173,104,.4);
}

.card h3,
.legal-card h2 {
    margin-top: 0;
}

.card h3 {
    letter-spacing: 1px;
}

.card p,
.legal-card p,
.legal-card li {
    color: var(--muted);

    line-height: 1.75;
}

.legal-card {
    margin-bottom: 14px;
}

.legal-card h2 {
    color: var(--gold);

    font-size: 18px;
}

.legal-card a {
    color: var(--gold);
}

.login-panel {
    max-width: 620px;

    margin: 20px auto 70px;

    padding: 35px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--panel);
}

.login-option {
    display: block;

    width: 100%;

    margin-bottom: 10px;

    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: 8px;

    color: white;
    background: #101824;

    text-align: center;
    text-decoration: none;

    transition: .2s ease;
}

.login-option:hover {
    transform: translateY(-2px);

    border-color: var(--gold-dark);
}

.login-option.disabled {
    opacity: .48;

    cursor: not-allowed;
}

.login-divider {
    margin: 20px 0;

    color: #5e6b7a;

    text-align: center;
}


/* FOOTER */

.site-footer {
    margin-top: 75px;
    padding: 55px 0 25px;

    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;

    gap: 45px;
}

.footer-logo {
    margin-bottom: 15px;

    color: white;

    font-weight: 900;

    letter-spacing: 3px;
}

.footer-about p {
    max-width: 340px;

    color: #717e8e;

    font-size: 12px;

    line-height: 1.75;
}

.footer-about strong {
    color: var(--gold);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column strong {
    margin-bottom: 6px;

    font-size: 11px;
}

.footer-column a {
    color: #768292;

    font-size: 12px;

    text-decoration: none;

    transition: color .2s ease;
}

.footer-column a:hover {
    color: var(--gold);
}

.footer-bottom {
    margin-top: 45px;
    padding-top: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-top: 1px solid rgba(255,255,255,.07);

    color: #657181;

    font-size: 10px;
}

.footer-legal,
.footer-region {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom a,
.footer-region button {
    border: 0;

    color: #8490a0;
    background: none;

    text-decoration: none;

    cursor: pointer;
}

.footer-bottom a:hover,
.footer-region button:hover {
    color: var(--gold);
}


/* MOBILE */

.mobile-menu {
    display: none;
}

@media (max-width: 950px) {

    .sidebar {
        width: min(300px, 86vw);

        box-shadow: 15px 0 50px rgba(0,0,0,.35);
    }

    html[dir="ltr"] .sidebar {
        transform: translateX(-110%);
    }

    html[dir="rtl"] .sidebar {
        transform: translateX(110%);
    }

    .sidebar.open {
        transform: translateX(0) !important;
    }

    html[dir="ltr"] .main,
    html[dir="rtl"] .main {
        margin: 0;
    }

    .mobile-menu {
        position: fixed;

        top: 14px;

        z-index: 1200;

        width: 42px;
        height: 42px;

        display: block;

        border: 1px solid var(--border);
        border-radius: 7px;

        color: var(--gold);
        background: #0b121c;

        cursor: pointer;
    }

    html[dir="ltr"] .mobile-menu {
        left: 17px;
    }

    html[dir="rtl"] .mobile-menu {
        right: 17px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {

    .page-container {
        width: 90%;

        padding-top: 38px;
    }

    .topbar {
        height: 66px;

        padding: 0 18px;
    }

    .top-status {
        font-size: 8px;
    }

    .hero {
        min-height: 520px;
    }

    .hero h1 {
        letter-spacing: 3px;

        font-size: clamp(42px, 14vw, 65px);
    }

    .hero-subtitle {
        letter-spacing: 1.5px;

        line-height: 1.8;
    }

    .gate-options {
        grid-template-columns: 1fr;
    }

    .language-card {
        padding: 38px 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
