:root {
    --bg: #07030f;
    --text: #ffffff;
    --accent: #cb6ce6;
    --accent-glow: rgba(203, 108, 230, 0.28);
    --card-bg: #0d0817;
    --border: rgba(203, 108, 230, 0.15);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
    background: radial-gradient(140% 140% at 20% 25%, #000, transparent 45%), radial-gradient(110% 120% at 80% 30%, rgba(120, 67, 255, 0.22), transparent 45%), linear-gradient(150deg, #000 0%, #0a0314 55%, #000 100%);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
}
.light-glow {
    position: fixed; width: 70vw; height: 70vw;
    background: radial-gradient(circle, rgba(203,108,230,0.32) 0%, transparent 70%);
    filter: blur(95px); z-index: -1; pointer-events: none;
}
#canvas-fibers { position: fixed; inset: 0; z-index: -2; opacity: 0.25; }

header {
    position: fixed; top: 0; width: 100%; padding: 22px 52px;
    display: flex; justify-content: space-between; align-items: center; z-index: 1000;
    background: linear-gradient(90deg, rgba(15, 6, 25, 0.95), rgba(8, 2, 15, 0.9));
    backdrop-filter: blur(24px); border-bottom: 1px solid rgba(203,108,230,0.2);
    box-shadow: 0 10px 40px rgba(203,108,230,0.12);
}
.logo { font-weight: 900; font-size: 1.4rem; letter-spacing: -1px; text-decoration: none; color: #fff; display: inline-flex; align-items: center; gap: 10px; }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a { color: #fff; text-decoration: none; font-size: 0.8rem; font-weight: 500; opacity: 0.7; transition: 0.3s; font-family: var(--font-mono); }
.nav-links a:hover { opacity: 1; color: var(--accent); }
.btn-games { border: 1px solid var(--accent); padding: 8px 16px; border-radius: 8px; opacity: 1 !important; color: var(--accent) !important; box-shadow: 0 6px 18px rgba(203,108,230,0.25); }

.lang-switch { display: flex; gap: 10px; font-family: var(--font-mono); font-size: 0.7rem; margin-left: 15px; border-left: 1px solid var(--border); padding-left: 15px; }
.lang-btn { cursor: pointer; opacity: 0.4; transition: 0.3s; }
.lang-btn.active { opacity: 1; color: var(--accent); }

.tech-bar {
    position: fixed; top: 85px; width: 100%; height: 52px;
    background: linear-gradient(90deg, rgba(203,108,230,0.16), rgba(120,67,255,0.14)); border-bottom: 1px solid rgba(203,108,230,0.25);
    display: flex; align-items: center; z-index: 999; overflow: hidden;
}
.marquee { display: flex; gap: 80px; animation: scrollMarquee 36s linear infinite; padding: 0 20px; }
.marquee span { font-family: var(--font-mono); font-size: 0.82rem; color: rgba(255,255,255,0.78); display: flex; align-items: center; gap: 14px; white-space: nowrap; letter-spacing: 0.6px; }
.marquee i { color: var(--accent); }

.sidebar { position: fixed; left: 50px; top: 50%; transform: translateY(-50%); z-index: 100; display: flex; align-items: center; gap: 20px; }
.track { width: 2px; height: 300px; background: rgba(203,108,230,0.18); position: relative; box-shadow: 0 0 12px rgba(203,108,230,0.15); }
.fill { position: absolute; top: 0; width: 100%; height: 0%; background: var(--accent); transition: height 0.2s; box-shadow: 0 0 18px rgba(203,108,230,0.4); }
.side-items { display: flex; flex-direction: column; gap: 35px; }
.side-link { color: rgba(255,255,255,0.6); font-size: 0.6rem; font-family: var(--font-mono); text-decoration: none; writing-mode: vertical-rl; transform: rotate(180deg); opacity: 0.4; transition: 0.4s; letter-spacing: 1px; }
.side-link.active { opacity: 1; color: var(--accent); letter-spacing: 3px; }

main { transition: opacity 0.4s ease; position: relative; }
.page-overlay, main::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(90% 90% at 30% 40%, rgba(203,108,230,0.22), transparent 55%),
        radial-gradient(75% 75% at 70% 30%, rgba(120,67,255,0.18), transparent 55%);
    pointer-events: none;
    z-index: -1;
}
.section { min-height: 100vh; padding: 220px 10% 120px 150px; display: flex; flex-direction: column; justify-content: center; }
.hero-title { font-size: clamp(4rem, 12vw, 8.5rem); font-weight: 900; letter-spacing: -6px; line-height: 0.85; background: linear-gradient(180deg, #ffffff 0%, #cb6ce6 90%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-lead { font-size: 1.5rem; max-width: 800px; margin-top: 35px; opacity: 0.9; line-height: 1.45; color: #e9dcfa; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; margin-top: 60px; }
.card { background: radial-gradient(120% 120% at 20% 20%, rgba(203,108,230,0.16), transparent 60%), #0d0817; border: 1px solid rgba(203,108,230,0.2); padding: 50px; border-radius: 8px; transition: 0.5s; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.card:hover { border-color: var(--accent); background: #140b22; transform: translateY(-5px); box-shadow: 0 25px 70px rgba(203,108,230,0.15); }
.card i { font-size: 1.6rem; color: var(--accent); margin-bottom: 25px; display: block; }
.card h3 { font-size: 1.2rem; margin-bottom: 15px; font-weight: 700; letter-spacing: -0.5px; }
.card p { font-size: 0.95rem; opacity: 0.5; line-height: 1.7; }

.about-preview { max-width: 800px; }
.about-preview h2 { font-size: 3rem; margin-bottom: 20px; letter-spacing: -2px; }
.about-preview p { font-size: 1.1rem; opacity: 0.7; line-height: 1.8; margin-bottom: 30px; }
.btn-more { display: inline-block; padding: 12px 30px; border: 1px solid var(--accent); color: #0b0415; background: var(--accent); text-decoration: none; font-family: var(--font-mono); font-size: 0.8rem; transition: 0.3s; border-radius: 6px; box-shadow: 0 12px 30px rgba(203,108,230,0.25); }
.btn-more:hover { background: transparent; color: var(--accent); box-shadow: 0 12px 30px rgba(203,108,230,0.35); }

.protocol-container { margin-top: 60px; border-left: 1px solid var(--border); padding-left: 50px; }
.step { margin-bottom: 60px; position: relative; }
.step::before { content: ""; position: absolute; left: -56px; top: 10px; width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--accent); border-radius: 50%; }
.step-status { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }

.brand-section { padding: 120px 10% 100px 150px; background: linear-gradient(135deg, rgba(8,4,18,0.95), rgba(24,6,36,0.9)); border-top: 1px solid var(--border); }
.brand-header { max-width: 720px; }
.brand-tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 4px; margin-bottom: 10px; display: inline-block; }
.brand-title { font-size: 2.5rem; letter-spacing: -1.5px; margin-bottom: 10px; }
.brand-copy { color: rgba(255,255,255,0.65); line-height: 1.6; max-width: 620px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 26px; }
.brand-card { background: #0b0610; border: 1px solid var(--border); border-radius: 12px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.brand-asset { width: 100%; height: 140px; object-fit: contain; background: #050505; border: 1px solid var(--border); border-radius: 10px; padding: 14px; box-shadow: 0 0 25px var(--accent-glow); }
.brand-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ghost-link { border-color: var(--border); color: #fff; }
.ghost-link:hover { background: var(--border); color: #000; }

.contact-section { padding: 120px 10% 120px 150px; border-top: 1px solid var(--border); background: #050505; }
.cyber-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1000px; margin-top: 40px; }
input, select, textarea { background: #000; border: 1px solid var(--border); padding: 20px; color: #fff; font-family: var(--font-mono); font-size: 0.85rem; outline: none; transition: 0.3s; }
input:focus { border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }
.btn-submit { grid-column: span 2; background: var(--accent); color: #000; border: none; padding: 22px; font-weight: 900; cursor: pointer; text-transform: uppercase; font-family: var(--font-mono); }

footer { padding: 100px 10% 40px 150px; border-top: 1px solid var(--border); background: #000; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.footer-col h4 { font-family: var(--font-mono); color: var(--accent); margin-bottom: 25px; font-size: 0.8rem; letter-spacing: 2px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; opacity: 0.6; transition: 0.3s; cursor: pointer; font-size: 0.9rem; }
.footer-col ul li:hover { opacity: 1; color: var(--accent); padding-left: 5px; }
.footer-bottom { margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; font-size: 0.7rem; opacity: 0.4; font-family: var(--font-mono); }

@keyframes scrollMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 1024px) {
    header { padding: 20px; background: rgba(8,2,15,0.95); }
    .sidebar, .tech-bar { display: none; }
    .section { padding: 160px 20px 80px 20px; text-align: center; }
    .brand-section { padding: 100px 20px; }
    .brand-grid { grid-template-columns: 1fr; }
    .brand-header, .brand-copy { margin: 0 auto; text-align: center; }
    .contact-section { padding: 100px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}
