:root {
    --bg: #f2f2ef;
    --bg-secondary: #e9e9e5;

    --text: #161616;
    --text-secondary: #777770;

    --accent: #171717;
    --border: rgba(0, 0, 0, 0.08);

    --card: rgba(255, 255, 255, 0.52);

    --shadow: 0 25px 80px rgba(0, 0, 0, 0.08);

    --transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}


body.dark {
    --bg: #1b1c1a;
    --bg-secondary: #242521;

    --text: #efefe9;
    --text-secondary: #a8a8a0;

    --accent: #f1f1eb;
    --border: rgba(255, 255, 255, 0.08);

    --card: rgba(255, 255, 255, 0.035);

    --shadow: 0 25px 80px rgba(0, 0, 0, 0.22);
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    font-family: "Manrope", sans-serif;

    color: var(--text);
    background: var(--bg);

    overflow-x: hidden;

    transition:
        background var(--transition),
        color var(--transition);
}


button,
a {
    font: inherit;
}


button {
    border: none;
}


a {
    text-decoration: none;
    color: inherit;
}


/* =========================
   BACKGROUND
========================= */

.background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}


.background-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.025) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85),
        transparent 80%
    );
}


body.dark .background-grid {
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
}


.background-glow {
    position: absolute;

    width: 550px;
    height: 550px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.24;

    animation: floatGlow 12s ease-in-out infinite;
}


.glow-1 {
    background: #d6d6ce;

    top: -250px;
    left: -180px;
}


.glow-2 {
    background: #bcbcb4;

    bottom: -300px;
    right: -180px;

    animation-delay: -5s;
}


body.dark .glow-1 {
    background: #686b60;
}


body.dark .glow-2 {
    background: #4b4e46;
}


@keyframes floatGlow {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(30px, -30px, 0) scale(1.08);
    }
}


/* =========================
   TOP BAR
========================= */

.top-bar {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 26px 34px;

    z-index: 100;
}


.top-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}


/* =========================
   WIKI BUTTON
========================= */

.icon-button {
    position: relative;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--text);

    background: var(--card);

    border: 1px solid var(--border);

    backdrop-filter: blur(15px);

    cursor: pointer;

    transition:
        transform var(--transition),
        background var(--transition);
}


.icon-button:hover {
    transform: translateY(-3px);
}


.icon-button:active {
    transform: scale(0.94);
}


.tooltip {
    position: absolute;

    left: 58px;
    top: 50%;

    transform:
        translateY(-50%)
        translateX(-6px);

    padding: 7px 11px;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;

    color: var(--text);

    background: var(--card);

    border: 1px solid var(--border);

    backdrop-filter: blur(15px);

    opacity: 0;
    visibility: hidden;

    transition: var(--transition);
}


.icon-button:hover .tooltip {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(-50%)
        translateX(0);
}


/* =========================
   LANGUAGE
========================= */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 12px;
    font-weight: 700;

    color: var(--text-secondary);
}


.language-button {
    padding: 4px;

    color: var(--text-secondary);

    background: transparent;

    cursor: pointer;

    transition:
        color var(--transition),
        transform var(--transition);
}


.language-button:hover {
    color: var(--text);
    transform: translateY(-1px);
}


.language-button.active {
    color: var(--text);
}


/* =========================
   THEME
========================= */

.theme-button {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--text);

    background: transparent;

    cursor: pointer;

    transition:
        transform var(--transition),
        color var(--transition);
}


.theme-button:hover {
    transform: translateY(-2px);
}


.theme-icon {
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}


.theme-button:hover .theme-icon {
    transform: rotate(25deg);
}


.theme-label {
    font-size: 12px;
    font-weight: 600;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 120px 30px 60px;

    position: relative;
}


.hero-content {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}


.hero-line {
    width: 1px;
    height: 75px;

    margin-bottom: 28px;

    background: linear-gradient(
        to bottom,
        transparent,
        var(--text),
        transparent
    );

    animation: lineAppear 1.2s ease forwards;
}


@keyframes lineAppear {
    from {
        opacity: 0;
        height: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        height: 75px;
        transform: translateY(0);
    }
}


/* =========================
   MAIN LOGO
========================= */

.logo-title {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(
        70px,
        15vw,
        190px
    );

    font-weight: 700;

    letter-spacing: -0.08em;

    line-height: 0.85;

    background: linear-gradient(
        110deg,
        var(--text) 0%,
        var(--text) 45%,
        var(--text-secondary) 65%,
        var(--text) 85%
    );

    background-size: 220% auto;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    animation:
        logoReveal 1.4s cubic-bezier(0.22, 1, 0.36, 1),
        logoGradient 7s linear infinite;

    user-select: none;
}


@keyframes logoReveal {
    from {
        opacity: 0;

        transform:
            translateY(45px)
            scale(0.94);

        filter: blur(18px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);

        filter: blur(0);
    }
}


@keyframes logoGradient {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 220% 50%;
    }
}


/* =========================
   SUBTITLE
========================= */

.hero-subtitle {
    margin-top: 34px;

    font-size: clamp(
        16px,
        2vw,
        22px
    );

    font-weight: 500;

    color: var(--text-secondary);

    opacity: 0;

    animation:
        subtitleReveal 1s 0.45s
        cubic-bezier(0.22, 1, 0.36, 1)
        forwards;
}


@keyframes subtitleReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   DATE
========================= */

.release-date {
    margin-top: 25px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 13px;

    letter-spacing: 0.3em;

    color: var(--text-secondary);

    opacity: 0;

    animation:
        subtitleReveal 1s 0.7s
        cubic-bezier(0.22, 1, 0.36, 1)
        forwards;
}


/* =========================
   SCROLL
========================= */

.scroll-indicator {
    position: absolute;

    bottom: 35px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    color: var(--text-secondary);

    font-size: 11px;

    letter-spacing: 0.08em;

    animation: scrollFloat 2.5s ease-in-out infinite;
}


.scroll-arrow {
    font-size: 18px;
}


@keyframes scrollFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}


/* =========================
   FUTURE SECTION
========================= */

.future-section {
    min-height: 70vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 100px 30px;
}


.future-content {
    max-width: 680px;

    text-align: center;
}


.section-line {
    position: absolute;

    left: 50%;

    width: 1px;
    height: 90px;

    transform: translate(-50%, -240px);

    background: linear-gradient(
        to bottom,
        transparent,
        var(--border)
    );
}


.future-label {
    display: inline-block;

    margin-bottom: 20px;

    padding: 7px 12px;

    border-radius: 30px;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.12em;

    color: var(--text-secondary);

    border: 1px solid var(--border);

    background: var(--card);

    backdrop-filter: blur(15px);
}


.future-content h2 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(
        32px,
        5vw,
        58px
    );

    line-height: 1.05;

    letter-spacing: -0.04em;

    margin-bottom: 25px;
}


.future-content p {
    max-width: 570px;

    margin: auto;

    color: var(--text-secondary);

    line-height: 1.8;

    font-size: 15px;
}


/* =========================
   FOOTER
========================= */

.footer {
    padding: 80px 8vw 35px;

    border-top: 1px solid var(--border);

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(0, 0, 0, 0.018)
        );
}


.footer-inner {
    max-width: 1150px;

    margin: auto;

    display: grid;

    grid-template-columns:
        minmax(180px, 1fr)
        minmax(180px, 280px);

    align-items: center;

    gap: 80px;
}


/* =========================
   FOOTER LOGO
========================= */

.footer-logo {
    width: 240px;
    aspect-ratio: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 30px;

    background: var(--card);

    border: 1px solid var(--border);

    box-shadow: var(--shadow);

    overflow: hidden;
}


.footer-logo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.footer-logo-placeholder {
    font-family: "Space Grotesk", sans-serif;

    font-weight: 700;

    font-size: 26px;

    letter-spacing: -0.05em;

    color: var(--text-secondary);
}


/* =========================
   FOOTER LINKS
========================= */

.footer-menu {
    display: flex;
    flex-direction: column;

    gap: 18px;
}


.footer-link {
    position: relative;

    width: fit-content;

    font-size: 14px;

    color: var(--text-secondary);

    background: transparent;

    cursor: pointer;

    transition:
        color var(--transition),
        transform var(--transition);
}


.footer-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 0;
    height: 1px;

    background: var(--text);

    transition:
        width var(--transition);
}


.footer-link:hover {
    color: var(--text);

    transform: translateX(5px);
}


.footer-link:hover::after {
    width: 100%;
}


.disabled-link {
    opacity: 0.45;
}


.footer-bottom {
    max-width: 1150px;

    margin: 70px auto 0;

    padding-top: 25px;

    border-top: 1px solid var(--border);

    display: flex;
    justify-content: space-between;

    gap: 20px;

    font-size: 11px;

    color: var(--text-secondary);
}


/* =========================
   MODAL
========================= */

.modal {
    position: fixed;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;
    visibility: hidden;

    z-index: 1000;

    transition:
        opacity var(--transition),
        visibility var(--transition);
}


.modal.active {
    opacity: 1;
    visibility: visible;
}


.modal-backdrop {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(10px);
}


.modal-window {
    position: relative;

    width: min(
        100%,
        450px
    );

    padding: 42px;

    text-align: center;

    border-radius: 28px;

    background: var(--bg);

    border: 1px solid var(--border);

    box-shadow: var(--shadow);

    transform:
        translateY(30px)
        scale(0.96);

    transition:
        transform 0.55s
        cubic-bezier(0.22, 1, 0.36, 1);
}


.modal.active .modal-window {
    transform:
        translateY(0)
        scale(1);
}


.modal-icon {
    width: 60px;
    height: 60px;

    margin: auto auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    color: var(--text);

    background: var(--card);

    border: 1px solid var(--border);
}


.modal-window h3 {
    font-family: "Space Grotesk", sans-serif;

    font-size: 25px;

    margin-bottom: 12px;
}


.modal-window p {
    margin-bottom: 28px;

    color: var(--text-secondary);

    line-height: 1.6;

    font-size: 14px;
}


.modal-close {
    padding: 12px 20px;

    border-radius: 12px;

    color: var(--bg);

    background: var(--text);

    cursor: pointer;

    transition:
        transform var(--transition),
        opacity var(--transition);
}


.modal-close:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .top-bar {
        padding: 18px;
    }


    .theme-label {
        display: none;
    }


    .hero {
        padding-inline: 20px;
    }


    .logo-title {
        font-size: clamp(
            55px,
            17vw,
            110px
        );
    }


    .hero-subtitle {
        max-width: 340px;

        line-height: 1.5;
    }


    .footer {
        padding:
            65px
            25px
            30px;
    }


    .footer-inner {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .footer-logo {
        width: 190px;
    }


    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}
