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

:root {
    --primary: #6c63ff;
    --primary-dark: #4b44cc;
    --secondary: #00d4aa;
    --accent: #ffd60a;
    --dark: #0d1117;
    --dark2: #161b22;
    --dark3: #21262d;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --border: #30363d;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #6c63ff 0%, #4b44cc 100%);
    --gradient-gold: linear-gradient(135deg, #ffd60a 0%, #f4a261 100%);
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--dark); color: var(--text); line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background: var(--dark2); }
.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1rem; }

/* ===== NAVBAR ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(13,17,23,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; }
.logo-icon { font-size: 1.4rem; }
.logo-accent { color: var(--primary); }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a { padding: 7px 14px; border-radius: 8px; font-size: 0.9rem; color: var(--text-muted); transition: var(--transition); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--dark3); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 68px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 50%, rgba(108,99,255,0.12) 0%, transparent 70%); pointer-events: none; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 60px 20px; }
.hero-badge { display: inline-block; background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.3); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 600; margin-bottom: 24px; }
.hero-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.highlight { color: var(--primary); }
.hero-subtitle { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 36px; max-width: 480px; }

.hero-buttons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.hero-buttons .btn { width: 100%; justify-content: center; }

.hero-stats { display: flex; align-items: center; gap: 32px; }
.stat-item { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Game cards in hero */
.hero-cards { display: flex; justify-content: center; align-items: center; }
.card-fan { position: relative; width: 280px; height: 280px; display: flex; align-items: center; justify-content: center; }
.game-card { position: absolute; width: 100px; height: 100px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 3rem; box-shadow: var(--shadow-lg); }
.card-1 { background: var(--gradient); transform: rotate(-15deg) translate(-60px, 20px); }
.card-2 { background: linear-gradient(135deg, #00d4aa, #00a885); transform: rotate(5deg); z-index: 2; }
.card-3 { background: linear-gradient(135deg, #ffd60a, #f4a261); transform: rotate(20deg) translate(60px, 20px); }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; transition: var(--transition); cursor: pointer; border: none; font-family: inherit; }
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,99,255,0.4); }
.btn-glow { box-shadow: 0 4px 16px rgba(108,99,255,0.3); }
.btn-secondary { background: var(--dark3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== AD BANNER ===== */
.ad-banner { padding: 20px 0; }
.ad-placeholder { background: var(--dark2); border: 1px dashed var(--border); border-radius: var(--radius); min-height: 90px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.85rem; }

/* ===== NAV CARDS ===== */
.nav-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nav-card { background: var(--dark2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; transition: var(--transition); position: relative; overflow: hidden; }
.nav-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 12px 40px rgba(108,99,255,0.15); }
.nav-card.featured { border-color: var(--primary); }
.nav-card-badge { position: absolute; top: 16px; right: 16px; background: var(--gradient); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
.nav-card-icon { font-size: 2.2rem; margin-bottom: 14px; }
.nav-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.nav-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 16px; }
.nav-card-cta { color: var(--primary); font-size: 0.85rem; font-weight: 600; }

/* ===== FEATURED ===== */
.featured-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.article-card { background: var(--dark3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.article-card.large { padding: 36px; }
.article-tag { display: inline-block; background: rgba(108,99,255,0.15); color: var(--primary); font-size: 0.75rem; font-weight: 700; padding: 3px 12px; border-radius: 50px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.article-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.article-card.large h3 { font-size: 1.35rem; }
.article-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; }
.article-list { margin: 16px 0 24px; display: flex; flex-direction: column; gap: 8px; }
.article-list li { color: var(--text-muted); font-size: 0.88rem; display: flex; gap: 8px; }
.featured-sidebar { display: flex; flex-direction: column; gap: 16px; }
.article-card.small { padding: 20px 24px; }
.read-more { color: var(--primary); font-size: 0.85rem; font-weight: 600; }

/* ===== RANKINGS (Engines) ===== */
.rankings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rank-card { background: var(--dark2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: var(--transition); }
.rank-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.rank-num { width: 32px; height: 32px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; color: #fff; }
.rank-1 .rank-num { background: linear-gradient(135deg, #ffd60a, #f4a261); color: #000; }
.rank-2 .rank-num { background: linear-gradient(135deg, #8b949e, #6e7681); }
.rank-name { font-weight: 700; font-size: 1rem; }
.rank-example { color: var(--primary); font-size: 0.82rem; font-weight: 600; }
.rank-desc { color: var(--text-muted); font-size: 0.83rem; line-height: 1.5; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--dark3); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; background: none; border: none; color: var(--text); font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; text-align: left; gap: 16px; }
.faq-icon { color: var(--primary); font-size: 1.3rem; font-weight: 300; flex-shrink: 0; transition: var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 24px 20px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ===== FOOTER ===== */
.footer { background: var(--dark2); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 14px; line-height: 1.6; }
.footer-links h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-info h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; }
.footer-info p { color: var(--text-muted); font-size: 0.83rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: var(--text-muted); font-size: 0.83rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted); font-size: 0.83rem; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--primary); }

/* ===== INNER PAGE HERO ===== */
.page-hero { padding: 120px 0 60px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(108,99,255,0.1) 0%, transparent 70%); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 1rem; }

/* ===== CONTENT PAGE ===== */
.content-section { padding: 60px 0 80px; }
.content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.content-body h2 { font-size: 1.4rem; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.content-body h2:first-child { margin-top: 0; }
.content-body h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 10px; color: var(--secondary); }
.content-body p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.8; margin-bottom: 14px; }
.content-body ul, .content-body ol { padding-left: 20px; margin-bottom: 16px; }
.content-body li { color: var(--text-muted); font-size: 0.92rem; line-height: 1.8; margin-bottom: 6px; }
.content-body a { color: var(--primary); }
.content-body strong { color: var(--text); }

.content-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--dark2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.sidebar-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.sidebar-card ul { display: flex; flex-direction: column; gap: 8px; }
.sidebar-card a { color: var(--text-muted); font-size: 0.88rem; transition: var(--transition); display: block; padding: 6px 10px; border-radius: 8px; }
.sidebar-card a:hover { color: var(--primary); background: var(--dark3); }

/* ===== STEP BOXES ===== */
.step-box { background: var(--dark2); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px; }
.step-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.step-box p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ===== INFO BOX ===== */
.info-box { background: rgba(108,99,255,0.08); border: 1px solid rgba(108,99,255,0.25); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.info-box p { color: var(--text); font-size: 0.88rem; margin: 0; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .navbar .container { height: 60px; }
    .nav-links {
        position: fixed;
        top: 60px; left: 0; right: 0;
        background: var(--dark2);
        flex-direction: column;
        padding: 20px;
        gap: 6px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-200%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s;
        z-index: 999;
    }
    .nav-links.open { transform: translateY(0); visibility: visible; }
    .nav-links a { width: 100%; padding: 10px 14px; }
    .hamburger { display: flex; }

    .hero { min-height: auto; padding-top: 60px; }
    .hero .container { grid-template-columns: 1fr; padding: 28px 20px 32px; gap: 0; }
    .hero-cards { display: none; }
    .hero-title { font-size: clamp(1.55rem, 5.5vw, 2rem); margin-bottom: 12px; }
    .hero-subtitle { font-size: 0.88rem; margin: 0 auto 18px; }
    .hero-buttons { gap: 10px; margin-bottom: 22px; }
    .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-divider { display: none; }

    .nav-cards-grid { grid-template-columns: 1fr; gap: 14px; }
    .featured-grid { grid-template-columns: 1fr; }
    .rankings-grid { grid-template-columns: 1fr; gap: 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
    .page-hero { padding: 85px 0 36px; }
    .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .hero-buttons { flex-direction: column; }
}
