/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0f;
    --bg-alt: #111118;
    --surface: #1a1a24;
    --border: #2a2a3a;
    --text: #e4e4ed;
    --text-muted: #9090a8;
    --primary: #6c5ce7;
    --primary-hover: #7f6ff0;
    --accent: #00cec9;
    --radius: 12px;
    --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .85; }

code {
    background: var(--surface);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .9em;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 10, 15, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}

.logo { font-weight: 800; font-size: 1.2rem; color: var(--text); }
.logo:hover { opacity: 1; color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); opacity: 1; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block; padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600; font-size: .95rem;
    transition: all .2s; cursor: pointer; border: none;
}

.btn-sm { padding: 8px 18px; font-size: .85rem; }

.btn-primary {
    background: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; opacity: 1; }

.btn-outline {
    background: transparent; color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); opacity: 1; }

/* ===== HERO ===== */
.hero {
    padding: 160px 0 80px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(108, 92, 231, .15) 0%, transparent 60%);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.25rem; color: var(--accent);
    font-weight: 600; margin-bottom: 16px;
}

.hero-desc {
    max-width: 620px; margin: 0 auto 32px;
    color: var(--text-muted); font-size: 1.05rem; line-height: 1.7;
}

.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
    display: flex; justify-content: center; gap: 48px;
    margin-top: 56px; flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: .85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
    text-align: center; font-size: 2rem; font-weight: 800;
    margin-bottom: 12px;
}

.section-desc {
    text-align: center; color: var(--text-muted);
    max-width: 560px; margin: 0 auto 48px; font-size: 1.05rem;
}

/* ===== GRID & CARDS ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color .2s, transform .2s;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: .92rem; line-height: 1.65; }

.game-card { text-align: center; }

/* ===== CONTROLS ===== */
.controls-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}

.control {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-weight: 600; font-size: .95rem;
}

/* ===== LANGUAGES ===== */
.lang-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}

.lang-tag {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: .9rem; font-weight: 500;
}

/* ===== TECH ===== */
.tech-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    margin-top: 32px;
}

.tech {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    font-size: .9rem; font-weight: 600;
    color: var(--accent);
}

/* ===== CTA ===== */
.cta {
    text-align: center;
    background: radial-gradient(ellipse at 50% 100%, rgba(108, 92, 231, .12) 0%, transparent 60%);
}

.cta h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta p { color: var(--text-muted); margin-bottom: 28px; font-size: 1.05rem; }

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
}

.footer-content {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 20px;
}

.footer-content div:first-child { color: var(--text-muted); font-size: .9rem; line-height: 1.8; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: .9rem; }
.footer-links a:hover { color: var(--text); }

.copyright {
    text-align: center; color: var(--text-muted);
    font-size: .8rem; margin-top: 32px; padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links a:not(.btn) { display: none; }
    .hero { padding: 120px 0 60px; }
    .hero-stats { gap: 24px; }
    .stat-num { font-size: 1.5rem; }
    .grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
}
