:root {
    --bg-color: #050505;
    --text-main: #e0e0e0;
    --blood-red: #aa0000;
    --glass-bg: rgba(15, 15, 15, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --gold: #d4af37;
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    background-image: url('bg.png');
    background-size: cover; background-position: center; background-attachment: fixed;
    color: var(--text-main); font-family: 'Tajawal', sans-serif;
    min-height: 100vh; overflow-x: hidden; line-height: 1.6;
}

/* Background Effects */
.vignette { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, transparent 20%, #000000 120%); pointer-events: none; z-index: 1; }
.noise-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: url('data:image/svg+xml;utf8,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.8%22 numOctaves=%224%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22 opacity=%220.02%22/%3E%3C/svg%3E'); pointer-events: none; z-index: 2; }
.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }

/* Embers Animation */
.ember {
    position: absolute; bottom: -10px; width: 3px; height: 3px;
    background: #ff5500; border-radius: 50%;
    box-shadow: 0 0 8px #ff2200;
    animation: floatUp linear infinite; opacity: 0;
}
@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 0.8; }
    100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }

.glass-panel {
    background: var(--glass-bg); backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); border-radius: 8px;
    padding: 2.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.6s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.pulse-dot { display: inline-block; width: 8px; height: 8px; background: #ff3333; border-radius: 50%; box-shadow: 0 0 8px #ff0000; animation: pulse 1.5s infinite; margin-left: 8px; }

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 50, 50, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 50, 50, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 50, 50, 0); }
}

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%; z-index: 100; background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
    backdrop-filter: blur(5px); border-bottom: 1px solid transparent; transition: all 0.3s;
}
.nav-brand { font-family: 'Cinzel', serif; font-size: 1.5rem; color: #fff; display: flex; align-items: center; gap: 10px; letter-spacing: 2px; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: #ccc; text-decoration: none; font-weight: 500; font-size: 1.05rem; transition: color 0.3s; position: relative; }
.nav-links a:hover { color: #fff; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; right: 0; background-color: var(--blood-red); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; left: 0; }
.mobile-menu-btn { display: none; font-size: 1.5rem; color: #fff; cursor: pointer; }

/* Hero Section */
.container { position: relative; z-index: 10; width: 100%; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; padding-top: 6rem; }
.hero-content { text-align: center; max-width: 800px; }

.live-stats { display: inline-flex; align-items: center; padding: 8px 20px; font-weight: 500; font-size: 1.1rem; margin-bottom: 2rem; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); border-radius: 30px; }
.live-stats strong { margin-right: 8px; font-size: 1.2rem; color: #fff; }

.title { font-family: 'Cinzel', serif; font-size: 6rem; font-weight: 700; color: #fff; margin-bottom: 1rem; letter-spacing: 2px; text-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.subtitle { font-size: 1.4rem; color: #ccc; margin-bottom: 3rem; font-weight: 400; line-height: 1.6; }

/* Game Badges */
.game-badges { display: flex; gap: 1rem; justify-content: center; margin-bottom: 3rem; flex-wrap: wrap; }
.badge { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); padding: 8px 18px; border-radius: 20px; font-weight: 500; font-size: 1rem; color: #eee; display: flex; align-items: center; gap: 8px; }
.badge i { color: var(--blood-red); }

/* Download Section */
.download-section { max-width: 600px; margin: 0 auto; position: relative; }
.warning-text { color: #ff6b6b; font-size: 1rem; margin-bottom: 2rem; padding: 1rem; border: 1px solid rgba(255, 107, 107, 0.3); border-radius: 6px; background: rgba(255, 107, 107, 0.05); }

.premium-btn { background: var(--blood-red); color: white; border: none; padding: 1.2rem 2.5rem; font-size: 1.3rem; font-family: 'Tajawal', sans-serif; font-weight: 700; border-radius: 6px; width: 100%; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 15px; cursor: pointer; box-shadow: 0 4px 15px rgba(170, 0, 0, 0.4); }
.premium-btn:hover { background: #cc0000; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(170, 0, 0, 0.6); }

.version-info { margin-top: 1.5rem; font-size: 0.95rem; color: #888; }
.online-status { color: #4cd137; font-weight: 500; }

/* Progress */
.progress-container { width: 100%; margin-top: 1rem; }
.progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 4px; position: relative; overflow: hidden; margin-bottom: 0.5rem; }
.progress-fill { position: absolute; top: 0; right: 0; height: 100%; width: 0%; background: var(--blood-red); transition: width 0.2s ease; }
.progress-status { display: flex; justify-content: space-between; font-size: 0.95rem; color: #aaa; }
.blood-text { color: #fff; }

/* Sections */
.section { position: relative; z-index: 10; padding: 6rem 5%; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3.5rem; color: #fff; font-family: 'Cinzel', serif; font-weight: 700; }

/* Reviews & Features */
.reviews-grid, .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { background: rgba(15,15,15,0.6); border: 1px solid rgba(255,255,255,0.05); padding: 2.5rem; border-radius: 8px; transition: transform 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.1); background: rgba(20,20,20,0.8); }

.stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 1rem; letter-spacing: 2px; }
.review-item p { font-size: 1.1rem; margin-bottom: 1.5rem; color: #ddd; line-height: 1.7; font-style: italic; }
.review-item span { color: #888; font-size: 0.95rem; }

.feature-icon { font-size: 2.5rem; color: var(--blood-red); margin-bottom: 1.5rem; }
.feature-card h3 { color: #fff; margin-bottom: 1rem; font-size: 1.4rem; font-weight: 700; }
.feature-card p { color: #aaa; font-size: 1.05rem; line-height: 1.7; }

/* Instructions */
.instructions-wrapper { display: flex; gap: 3rem; align-items: flex-start; flex-wrap: wrap; }
.instructions-content { flex: 2; min-width: 300px; }
.sys-req-box { flex: 1; min-width: 300px; }

.steps-timeline { display: flex; flex-direction: column; gap: 1.5rem; }
.step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-num { background: rgba(255,255,255,0.1); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.step-text { font-size: 1.1rem; line-height: 1.7; color: #ccc; padding-top: 5px; }
.step-text strong { color: #fff; }
.step-text code { background: rgba(0,0,0,0.5); padding: 3px 8px; border-radius: 4px; color: #fff; border: 1px solid rgba(255,255,255,0.1); }

.req-list { list-style: none; }
.req-list li { margin-bottom: 1rem; font-size: 1rem; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 0.5rem; color: #ddd; }
.req-list span { color: #888; }
.sys-req-box h3 { color: #fff; margin-bottom: 1.5rem; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.sys-req-box h3 i { color: var(--blood-red); }

/* Footer */
.footer { position: relative; z-index: 10; background: #050505; padding: 4rem 2rem 2rem; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-logo { font-family: 'Cinzel', serif; font-size: 1.8rem; margin-bottom: 1.5rem; color: #fff; }
.social-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
.social-btn { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.05); color: #ccc; font-size: 1.2rem; transition: all 0.3s ease; text-decoration: none; }
.social-btn:hover { background: var(--blood-red); color: #fff; transform: translateY(-3px); }
.copyright { color: #777; font-size: 1rem; margin-bottom: 0.5rem; }
.disclaimer { color: #555; font-size: 0.9rem; }

@media (max-width: 768px) {
    .title { font-size: 3.5rem; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .instructions-wrapper { flex-direction: column; }
    .sys-req-box { width: 100%; }
}
