

:root {
    --bg: #0f0f16;
    --bg-secondary: #13131b;
    --card: #191921;
    --card-hover: #21212b;
    --border: #24242e;
    --border-light: #31313d;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --dim: #71717a;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --purple: #9B59B6;
    --green: #22c55e;
    --red: #ef4444;
    --blue: #3b82f6;
    
    --font-main: 'Brand', 'Segoe UI', -apple-system, sans-serif;
    --font-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --header-height: 80px;
    --max-width: 1400px;
    --transition: 0.2s ease;
    
    color-scheme: dark;
}

body { overflow-x: clip; }

[data-theme="light"] {
    --bg: #f8fafc;
    --bg-secondary: #f1f5f9;
    --card: #ffffff;
    --card-hover: #f8fafc;
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    --text: #0f172a;
    --text-secondary: #475569;
    --dim: #64748b;
    
    color-scheme: light;
}

@font-face {
    font-family: 'Brand';
    src: url('/assets/fonts/brand.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

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

html {
    overflow-y: scroll;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.site-header .header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.header-spacer {
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
}

.logo img {
    height: 46px;
    width: 46px;
}

.logo span {
    color: var(--accent);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dim);
    transition: all var(--transition);
    cursor: pointer;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: var(--border);
    color: var(--text);
}

.nav-link.active {
    text-decoration: underline;
    text-underline-offset: 7px;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2.5px;
}

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    font-weight: 700;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
}

.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 200px;
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 1200;
}
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}
.dropdown-menu a,
.dropdown-menu .dropdown-soon {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}
.dropdown-menu a:hover { background: var(--card-hover); color: var(--accent); }
.dropdown-menu .dropdown-soon { color: var(--dim); cursor: default; }
.dropdown-menu .dropdown-soon em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--dim); border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; margin-left: 6px; }

.lang-btn {
    padding: 10px 16px;
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    margin-left: 10px;
    transition: all var(--transition);
    letter-spacing: 1px;
}

.lang-btn:hover {
    background: var(--card-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.theme-btn {
    padding: 10px 13px;
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition);
}

.theme-btn:hover {
    background: var(--card-hover);
    border-color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: var(--border);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 22px;
}

.site-footer {
    background: linear-gradient(180deg, var(--card) 0%, #0a0a0e 100%);
    border-top: 1px solid var(--border);
    padding: 80px 40px 40px;
}

.site-footer.minimal {
    padding: 30px 40px;
    text-align: center;
}

.site-footer.minimal .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.site-footer.minimal p {
    font-size: 14px;
    color: var(--dim);
    font-family: var(--font-body);
}

.footer-links-inline {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.footer-links-inline a {
    color: var(--dim);
}

.footer-links-inline a:hover {
    color: var(--accent);
}

.footer-links-inline span {
    color: var(--border);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 15px;
    color: var(--dim);
    line-height: 1.7;
    font-family: var(--font-body);
    max-width: 300px;
}

.footer-column h4 {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-column a {
    display: block;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-family: var(--font-body);
    transition: color var(--transition);
}

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

.footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 36px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.social-btn {
    width: 50px;
    height: 50px;
    background: var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dim);
    transition: all var(--transition);
}

.social-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.social-btn.youtube:hover { background: #ff0000; }
.social-btn.twitch:hover { background: #9146ff; }
.social-btn.tiktok:hover { background: #ff0050; }
.social-btn.twitter:hover { background: #1da1f2; }

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--dim);
    margin-bottom: 6px;
    font-family: var(--font-body);
}

.footer-bottom .trademark {
    font-size: 12px;
    color: #52525b;
}

.page-nav {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    z-index: 100;
    min-width: 180px;
}

.page-nav h4 {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 20px;
    padding: 0 14px;
}

.page-nav a {
    display: block;
    padding: 14px 18px;
    font-size: 16px;
    color: var(--dim);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all var(--transition);
    letter-spacing: 1px;
}

.page-nav a:hover {
    background: var(--border);
    color: var(--text);
}

.page-nav a.active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    z-index: 2000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-banner p {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: var(--font-body);
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-actions a {
    color: var(--dim);
    font-size: 14px;
}

.cookie-actions a:hover {
    color: var(--accent);
}

.cookie-actions button {
    padding: 10px 24px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    font-size: 14px;
    transition: all var(--transition);
}

.cookie-actions button:hover {
    background: var(--accent-hover);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: scale(1.1);
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 15px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1200px) {
    .page-nav {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .dropdown-menu { display: none; }
    :root {
        --header-height: 70px;
    }
    
    .site-header .header-content {
        padding: 0 20px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .logo img {
        height: 40px;
        width: 40px;
    }
    
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        display: none;
    }
    
    .nav.mobile-open {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
    
        
        
    .theme-btn {
        width: 100%;
        margin-left: 0;
        text-align: center;
        padding: 14px;
    }

    .lang-btn {
        width: 100%;
        margin-left: 0;
        text-align: center;
        padding: 14px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    
    .site-footer {
        padding: 60px 20px 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .cookie-banner {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .site-header .header-content {
        padding: 0 16px;
    }
    
    .logo span {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .social-btn {
        width: 44px;
        height: 44px;
    }
    
    .scroll-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}

.detail-content { max-width: 860px; margin: 0 auto; padding: 80px 40px 100px; }
.detail-head { margin-bottom: 44px; }
.detail-head .proj-status { margin-bottom: 14px; }
.detail-head h1 { font-size: 40px; margin-bottom: 12px; }
.detail-head .detail-tagline { color: var(--text-secondary); font-size: 17px; font-family: var(--font-body); line-height: 1.6; }
.detail-section { margin-bottom: 38px; }
.detail-section h2 { font-size: 22px; margin-bottom: 12px; color: var(--accent); }
.detail-section p { color: var(--text-secondary); font-family: var(--font-body); font-size: 15px; line-height: 1.75; margin-bottom: 10px; }
.detail-section ul { list-style: none; padding: 0; }
.detail-section li { color: var(--text-secondary); font-family: var(--font-body); font-size: 15px; line-height: 1.7; padding-left: 22px; position: relative; margin-bottom: 8px; }
.detail-section li::before { content: '›'; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.detail-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 14px; margin: 24px 0; }
.detail-fact { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.detail-fact .num { font-size: 22px; font-weight: 700; color: var(--accent); }
.detail-fact .lbl { font-size: 12px; color: var(--dim); margin-top: 4px; font-family: var(--font-body); }
.detail-back { display: inline-block; margin-bottom: 26px; color: var(--dim); text-decoration: none; font-size: 14px; transition: var(--transition); }
.detail-back:hover { color: var(--accent); }
.proj-status { align-self: flex-start; display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.proj-status.released { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.proj-status.dev { background: rgba(139, 92, 246, 0.14); color: var(--accent); }
.proj-status.soon { background: rgba(255, 255, 255, 0.06); color: var(--dim); }
.proj-links { display: flex; gap: 10px; flex-wrap: wrap; }
.proj-links a { font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; padding: 8px 14px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; transition: var(--transition); }
.proj-links a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) {
    .detail-content { padding: 50px 20px 70px; }
    .detail-head h1 { font-size: 30px; }
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.status-dot { position: relative; cursor: default; }
.status-dot[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%) translateY(3px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 6px 11px;
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 500;
}
.status-dot[data-tip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

 .highlight {
    color: var(--accent);
    font-weight: 600;
}
a.highlight { text-decoration: none; border-bottom: 1px dashed currentColor; transition: var(--transition); }
a.highlight:hover { border-bottom-style: solid; filter: brightness(1.2); }

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 18px;
    max-width: 1000px;
    margin: 0 auto;
}
.video-card {
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}
.video-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb .play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 44px; color: #fff; background: rgba(0, 0, 0, 0.25); transition: var(--transition);
}
.video-card:hover .play { background: rgba(0, 0, 0, 0.1); transform: scale(1.08); }
.video-thumb iframe { width: 100%; height: 100%; border: 0; position: absolute; inset: 0; }
.video-meta { padding: 13px 15px; }
.video-meta strong { display: block; font-size: 14px; line-height: 1.4; font-family: var(--font-body); font-weight: 600; }
.video-meta small { color: var(--dim); font-size: 12px; font-family: var(--font-body); }

[data-theme="light"] .site-header {
    background: rgba(248, 250, 252, 0.92);
}

[data-theme="light"] .site-footer {
    background: linear-gradient(180deg, var(--card) 0%, #e8edf4 100%);
}

[data-theme="light"] .proj-status.soon {
    background: rgba(0, 0, 0, 0.05);
}
