:root {
    --bg-color: #050508;
    --text-color: #E2E8F0;
    --text-dim: #94A3B8;
    --accent: #a78bfa;
    --accent-secondary: #ec4899;
    --accent-cyan: #38bdf8;
    --accent-gradient: linear-gradient(135deg, #ec4899, #8b5cf6);
    --glass: rgba(167, 139, 250, 0.08);
    --glass-hover: rgba(167, 139, 250, 0.14);
    --glass-border: rgba(167, 139, 250, 0.18);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background: #7c3aed;
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #06060c;
}

::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.25);
    border-radius: 999px;
    border: 2px solid #06060c;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.5);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    scrollbar-gutter: stable;
}

/* --- Cursor --- */
#cursor-ring, #cursor {
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 100000;
    mix-blend-mode: difference;
    display: none;
    top: 0;
    left: 0;
    transition: width 0.3s, height 0.3s, background 0.3s;
}

#cursor-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100001;
    transform: translate(-50%, -50%);
}

.cursor-expand {
    width: 50px !important;
    height: 50px !important;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.1));
}

.no-mouse {
    cursor: none !important;
}

/* --- Navigation --- */
.glass-nav, nav {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    max-width: 1300px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 12px 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    z-index: 1002;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.7));
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: clamp(14px, 1.6vw, 25px);
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.25s ease, text-shadow 0.25s ease;
    white-space: nowrap;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 999px;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(167, 139, 250, 0.4);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    left: 0;
}

.nav-links a.active {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 16px rgba(167, 139, 250, 0.6);
}

.support-btn, .support-nav-btn {
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
}

.support-btn:hover, .support-nav-btn:hover {
    background: var(--accent-gradient);
    color: white !important;
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.6);
    border-color: transparent;
    transform: translateY(-2px);
}

/* --- Dropdown / Mobile Menu --- */
.hamburger-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    min-width: 40px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    cursor: pointer;
    color: white;
    white-space: nowrap;
    transition: var(--transition);
}

.hamburger-btn span {
    display: none;
}

.hamburger-btn::after {
    content: "More";
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.hamburger-btn:hover,
.hamburger-btn:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.16);
    outline: none;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    background: #0f0f0f;
    min-width: 180px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: #ccc;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:hover {
    background: var(--accent);
    color: white;
}

/* --- Legal Modal --- */
.legal-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 2, 4, 0.97);
    z-index: 9999;
    overflow-y: auto;
    padding: 80px 5%;
}

.legal-inner {
    max-width: 680px;
    margin: 0 auto;
}

.legal-close-span {
    position: fixed;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.legal-close-span:hover,
.legal-close-span:focus-visible {
    opacity: 1;
    outline: none;
}

.legal-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 6vw, 3rem);
    margin-bottom: 20px;
}

.legal-desc {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: #aaa;
    line-height: 2;
}

/* --- Footer --- */
footer {
    padding: 100px 5% 40px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(to bottom, #050505, #0a0a0a);
}

.footer-copyright {
    color: #333;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* --- Nav hamburger wrapper (sits outside nav-links) --- */
.nav-hamburger {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Legal links shown only inside the mobile menu */
.nav-legal-link {
    display: none;
}

/* Hamburger X animation when active */
.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

@media (max-width: 1280px) {
    /* Nav collapses to logo + hamburger row */
    .glass-nav, nav {
        top: 12px;
        padding: 10px 18px;
        border-radius: 20px;
        flex-direction: row;
        width: 94%;
        gap: 0;
    }

    /* Mobile nav drawer — slides in from right */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 72vw;
        max-width: 300px;
        min-width: 220px;
        flex-direction: column;
        justify-content: flex-start;
        background: rgba(8, 6, 14, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--glass-border);
        border-radius: 0;
        padding: 80px 0 32px;
        gap: 2px;
        z-index: 1001;
        visibility: hidden;
        transform: translateX(100%);
        pointer-events: none;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
        overscroll-behavior: contain;
        overflow-y: auto;
        flex: initial;
    }

    .nav-links.mobile-open {
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
    }

    /* Each nav link — left-aligned, inset from drawer edge */
    .nav-links > a {
        font-size: 0.85rem;
        letter-spacing: 1px;
        padding: 13px 24px;
        border-radius: 8px;
        margin: 0 12px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: calc(100% - 24px);
        text-align: left;
    }

    .nav-links > a:hover,
    .nav-links > a.active {
        background: var(--glass);
    }

    .support-btn, .support-nav-btn {
        margin: 6px 12px 2px;
        width: calc(100% - 24px);
        text-align: center;
        font-size: 0.85rem;
        padding: 13px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Legal links visible inside the mobile menu */
    .nav-legal-link {
        display: flex !important;
        color: var(--text-dim) !important;
        font-size: 0.8rem !important;
        justify-content: flex-start !important;
    }

    .nav-links > .nav-legal-link:first-of-type {
        border-top: 1px solid var(--glass-border);
        margin-top: 8px;
        padding-top: 10px;
    }

    /* Drawer backdrop */
    .nav-drawer-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 1000;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s;
    }

    .nav-drawer-backdrop.visible {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    /* Hamburger button — proper 44px touch target */
    .hamburger-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
        margin-left: auto;
        border-radius: 50%;
        flex-direction: column;
        gap: 4px;
    }

    .hamburger-btn span {
        display: block;
        width: 18px;
        height: 2px;
        background: white;
        transition: 0.3s;
    }

    .hamburger-btn::after {
        content: none;
    }

    /* Hide desktop dropdown on mobile (legal links are in the mobile menu instead) */
    .nav-hamburger .dropdown-content {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .glass-nav, nav {
        top: 10px;
        padding: 8px 14px;
        width: 96%;
    }

    .logo {
        font-size: 0.9rem;
    }

    .logo-img {
        width: 26px;
        height: 26px;
    }


}
