/* Google Fonts & Root Variables */
:root {
    --bg-dark: #0f1115;
    --bg-card: #1a1d24;
    --bg-card-hover: #232730;
    --primary-color: #D9232E;
    --primary-hover: #b81d26;
    --text-main: #f8f9fa;
    --text-muted: #a0aab2;
    --border-color: rgba(255, 255, 255, 0.05);
    --font-family: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.highlight { color: var(--primary-color); }

/* Navbar */
.navbar {
    background-color: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.logo i { color: var(--primary-color); font-size: 28px; }
.logo span { color: var(--primary-color); }
.nav-btn { background-color: var(--primary-color); color: #fff; padding: 8px 20px; border-radius: 6px; font-weight: 600; transition: 0.3s ease; }
.nav-btn:hover { background-color: var(--primary-hover); }

/* Hero Section */
.hero { padding: 140px 0 60px; text-align: center; position: relative; }
.update-badge { display: inline-flex; align-items: center; background-color: rgba(217, 35, 46, 0.1); border: 1px solid rgba(217, 35, 46, 0.3); padding: 8px 16px; border-radius: 50px; margin-bottom: 24px; font-size: 14px; }
.badge-icon { color: var(--primary-color); margin-right: 8px; font-size: 18px; }
.hero h1 { font-size: 48px; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.hero-desc { color: var(--text-muted); font-size: 18px; max-width: 700px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.3s ease; }
.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(217, 35, 46, 0.3); }
.btn-outline { background-color: transparent; border: 2px solid var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--text-main); background-color: rgba(255, 255, 255, 0.05); }

/* Telegram Banner */
.telegram-banner { padding: 20px 0 40px; }
.tg-box { 
    display: flex; justify-content: space-between; align-items: center; 
    background: linear-gradient(135deg, #0088cc 0%, #004466 100%); 
    padding: 30px; border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.2); gap: 20px;
}
.tg-icon-text { display: flex; align-items: center; gap: 20px; }
.tg-icon i { font-size: 50px; color: #fff; }
.tg-text h3 { font-size: 22px; color: #fff; margin-bottom: 5px; }
.tg-text p { color: rgba(255, 255, 255, 0.85); font-size: 15px; }
.btn-telegram { background: #fff; color: #0088cc; font-weight: bold; border-radius: 50px; white-space: nowrap; padding: 12px 28px; }
.btn-telegram:hover { background: #e6f5ff; transform: scale(1.05); color: #0088cc; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* Features Section */
.features-section { padding: 60px 0; }
.section-title { text-align: center; font-size: 32px; margin-bottom: 50px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card { background-color: var(--bg-card); padding: 30px; border-radius: 16px; border: 1px solid var(--border-color); transition: 0.3s ease; position: relative; overflow: hidden; }
.feature-card:hover { background-color: var(--bg-card-hover); transform: translateY(-5px); border-color: rgba(217, 35, 46, 0.3); }
.feature-icon { font-size: 32px; color: var(--primary-color); margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 15px; }
.new-feature { border-color: rgba(217, 35, 46, 0.5); }
.new-tag { position: absolute; top: 20px; right: 20px; background-color: var(--primary-color); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }

/* Download Section */
.download-section { padding: 60px 0 100px; }
.download-box { background: linear-gradient(145deg, var(--bg-card) 0%, #15171c 100%); border: 1px solid var(--border-color); border-radius: 20px; padding: 60px 20px; text-align: center; }
.download-box h2 { font-size: 32px; margin-bottom: 16px; }
.download-box p { color: var(--text-muted); margin-bottom: 30px; font-size: 18px; }
.btn-large { padding: 16px 40px; font-size: 18px; }
.version-info { margin-top: 20px !important; font-size: 14px !important; }

/* Login Guide Box */
.guide-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    margin-top: 30px;
    text-align: left;
}
.guide-box h3 {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.guide-box h3 i {
    color: var(--primary-color);
}
.guide-box p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 16px;
}
.guide-box ol {
    color: var(--text-muted);
    margin-left: 20px;
    line-height: 1.8;
}
.guide-box ol li {
    margin-bottom: 8px;
}
.guide-box ol li::marker {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
footer { background-color: var(--bg-card); border-top: 1px solid var(--border-color); padding: 40px 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-left h3 { font-size: 24px; margin-bottom: 5px; }
.footer-left span { color: var(--primary-color); }
.footer-left p { color: var(--text-muted); font-size: 14px; }
.star-repo { margin-top: 8px; font-style: italic; }
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 50%; color: var(--text-main); font-size: 20px; transition: 0.3s ease; }
.footer-social a:hover { background-color: var(--primary-color); border-color: var(--primary-color); transform: translateY(-3px); }

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   RESPONSIVE DESIGN (Tablets & Mobiles) 
   ========================================= */

@media (max-width: 992px) {
    .tg-box { flex-direction: column; text-align: center; gap: 25px; }
    .tg-icon-text { flex-direction: column; }
}

@media (max-width: 768px) {
    .nav-container { height: 60px; }
    .logo { font-size: 20px; }
    .logo i { font-size: 24px; }
    .nav-btn { padding: 6px 14px; font-size: 14px; }
    
    .hero { padding: 100px 0 40px; }
    .hero h1 { font-size: 32px; }
    .hero-desc { font-size: 16px; padding: 0 10px; }
    .hero-actions { flex-direction: column; width: 100%; padding: 0 20px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .update-badge { font-size: 12px; padding: 6px 12px; flex-direction: column; gap: 5px; }

    .tg-box { padding: 25px 15px; }
    .tg-text h3 { font-size: 20px; }
    .tg-text p { font-size: 14px; }
    .btn-telegram { width: 100%; justify-content: center; }

    .section-title { font-size: 26px; margin-bottom: 30px; }
    .download-box { padding: 40px 15px; }
    .download-box h2 { font-size: 26px; }
    
    .guide-box { padding: 30px 20px; }
    .guide-box h3 { font-size: 20px; }
    
    .footer-content { flex-direction: column; text-align: center; }
    .footer-social { justify-content: center; width: 100%; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
}
