/* --- CSS VARIABLES --- */
:root {
    --bg-main: #0B0C10;
    --bg-secondary: #1A1A1D;
    
    --gold-primary: #D4AF37;
    --gold-light: #F1C40F;
    --gold-bright: #FFD700;
    --platinum: #E5E4E2;
    
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

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


body {
    /* Твой темный цвет + Картинка с затемнением 80% */
    background: linear-gradient(rgba(11, 12, 16, 0.85), rgba(11, 12, 16, 0.95)), url('bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* Proper Paddings for breathing room */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }

h1, h2, h3, .logo { font-family: var(--font-heading); }

.text-gradient {
    background: linear-gradient(to right, var(--gold-primary), var(--gold-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- PREMIUM GLASSMORPHISM --- */
.glass-panel {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.glass-panel-inner {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--platinum);
    z-index: 1001; /* Above mobile menu */
}

.logo-accent { color: var(--gold-primary); }

/* Nav Wrapper (Desktop) */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links { display: flex; gap: 30px; }

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover { color: var(--gold-primary); }

.header-actions { display: flex; align-items: center; gap: 20px; }

/* Hamburger (Hidden on Desktop) */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--platinum);
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
}

/* --- LANG SWITCHER --- */
.lang-switcher { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.lang-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; transition: 0.3s; }
.lang-btn:hover { color: var(--platinum); }
.lang-btn.active { color: var(--gold-bright); text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.divider { color: var(--text-muted); }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.btn-large { padding: 16px 40px; font-size: 16px; }

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: var(--bg-main);
    border: none;
    transition: transform 0.2s, box-shadow 0.3s;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(241, 196, 15, 0.6); }

.btn-secondary {
    background: rgba(26, 26, 29, 0.5);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover { background: rgba(212, 175, 55, 0.1); box-shadow: 0 0 15px rgba(212, 175, 55, 0.3); }
.btn-glow { box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1A1A1D 0%, #0B0C10 80%);
    padding-top: 80px; /* Prevent header overlap */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; }

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to bottom right, var(--platinum), var(--gold-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

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

/* --- FEATURES GRID --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.6);
}

.feature-icon {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--platinum); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- CRYPTO BANNER --- */
.token-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    gap: 30px;
    border-left: 4px solid var(--gold-primary); /* Keeps the style accent */
}

.token-info { flex: 1; min-width: 250px; }
.token-title { font-size: 2.2rem; margin-bottom: 10px; }
.token-desc { color: var(--platinum); font-size: 1.1rem; }

.token-rate-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
}

.token-icon { font-size: 2.5rem; color: var(--gold-light); }
.token-rate {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-bright);
}

/* --- FOOTER --- */
.footer { background-color: #07080a; border-top: 1px solid rgba(212, 175, 55, 0.1); padding: 60px 0 20px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.social-links { display: flex; gap: 20px; }
.social-links a { color: var(--text-muted); font-size: 1.5rem; }
.social-links a:hover { color: var(--gold-primary); transform: scale(1.1); }
.footer-bottom { text-align: center; color: #555; font-size: 0.9rem; border-top: 1px solid #1A1A1D; padding-top: 20px; }


/* --- СЕКЦИИ СЕТОК (КАК НА СКРИНШОТАХ) --- */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Сетка: 2 колонки на десктопе, как в референсе */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.bento-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-light);
}

.feature-icon-small {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.bento-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--platinum);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bento-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}




/* --- СЕТКА ДВИЖКА (ТЕХНИЧЕСКИЕ КАРТОЧКИ) --- */
.engine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.engine-card {
    padding: 35px 30px;
    text-align: left; /* Текст слева, а не по центру */
    border-left: 3px solid var(--gold-primary); /* Стильная акцентная линия слева */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.engine-card:hover {
    border-left-color: var(--gold-bright);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
}

.engine-card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.engine-icon {
    font-size: 1.4rem;
    color: var(--gold-bright);
    margin-top: 2px;
}

.engine-card-header h4 {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

.engine-card-body {
    color: var(--platinum);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Стили для выделения внутри текста (Богатство форматирования) */
.text-highlight { color: var(--gold-bright); font-weight: bold; }
.text-warning { color: #e74c3c; font-weight: bold; }
.text-success { color: #2ecc71; font-weight: bold; }



/* --- EPICGRAM LINK (ШАПКА) --- */
.epicgram-link {
    color: #00bfff !important; /* Ледяной синий для контраста */
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.epicgram-link:hover {
    color: #fff !important;
    text-shadow: 0 0 15px rgba(0, 191, 255, 0.8);
}

/* --- МОДАЛЬНЫЕ ОКНА (POPUPS) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: absolute;
    width: 90%;
    max-width: 400px;
    padding: 40px 30px;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.modal h3 {
    font-size: 1.8rem;
    color: var(--gold-bright);
    margin-bottom: 10px;
    text-align: center;
}

.modal p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 25px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover { color: var(--gold-primary); transform: scale(1.1); }

/* Форма регистрации в модалке */
.modal-form { display: flex; flex-direction: column; gap: 15px; }

.modal-form input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.modal-form input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}








/* =========================================
   📱 MOBILE RESPONSIVE (CRITICAL FIXES)
========================================= */
@media (max-width: 768px) {
    
    /* Header & Mobile Menu */
    .hamburger { display: block; }
    
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 100%;
        height: 100vh;
        background: rgba(11, 12, 16, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        gap: 30px;
    }

    .nav-wrapper.active { right: 0; }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-links a { font-size: 18px; }

    .header-actions {
        flex-direction: column;
        gap: 20px;
    }


/* Адаптация новых сеток для мобилок */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .bento-grid {
        grid-template-columns: 1fr; /* На телефоне делаем 1 колонку (в столбик) */
        gap: 15px;
    }

    .bento-card {
        padding: 25px 20px; /* Немного уменьшаем внутренние отступы карточек на мобилке */
    }



.engine-grid { grid-template-columns: 1fr; gap: 20px; }
    .engine-card { padding: 25px 20px; }


    /* Scaling Fonts down */
    .hero { padding-top: 100px; padding-bottom: 60px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 30px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }

    /* Fix token banner padding and alignment */
    .token-banner { padding: 30px 20px; text-align: center; justify-content: center; }
    .token-title { font-size: 1.8rem; }
    .token-desc { font-size: 1rem; }
    .token-rate-box { flex-direction: column; text-align: center; padding: 20px; width: 100%; }

    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}




/* --- WELCOME SCREEN (Экран входа) --- */
body.no-scroll { overflow: hidden; }

.welcome-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: #050505; /* Максимально глубокий черный фон */
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.welcome-screen.hidden {
    opacity: 0; visibility: hidden; pointer-events: none;
}

.welcome-content {
    text-align: center;
    animation: pulseGlow 3s infinite alternate;
}

/* Обертка для логотипов */
.welcome-brand {
    margin-bottom: 40px;
}

/* FIREPOINT (Отец проекта) */
.welcome-parent-brand {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    margin-bottom: -5px; /* Придвигаем нижний текст поближе */
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* GOLDWAR.VIP (Сам сервер - не мелкий, размашистый) */
.welcome-sub-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--platinum);
    text-transform: uppercase;
    letter-spacing: 6px; /* Делаем широкие пробелы между буквами как на скрине */
    font-weight: 700;
}

.welcome-sub-brand .logo-accent {
    color: var(--gold-primary);
}

/* Утонченная кнопка (Как на скрине EpicWar) */
.welcome-enter-btn {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 12px 35px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px; /* Строгие, почти прямые углы */
}

.welcome-enter-btn:hover {
    background: rgba(212, 175, 55, 0.05);
    color: var(--gold-bright);
    border-color: var(--gold-bright);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

@keyframes pulseGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(212,175,55,0.1)); }
    100% { transform: scale(1.02); filter: drop-shadow(0 0 20px rgba(212,175,55,0.4)); }
}

/* Адаптация логотипов для мобилок */
@media (max-width: 768px) {
    .welcome-parent-brand { font-size: 2rem; }
    .welcome-sub-brand { font-size: 1.4rem; letter-spacing: 4px; }
}


/* --- КНОПКА МЬЮТА (В ШАПКЕ) --- */
.mute-btn {
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s ease;
    padding: 5px;
}

.mute-btn:hover {
    color: var(--gold-bright);
    transform: scale(1.1);
}

.mute-btn i.muted {
    color: var(--text-muted); /* Серая иконка, если звук выключен */
}




/* --- ТВОИ ГРАДИЕНТЫ И ШРИФТЫ (ОСТАВЛЯЕМ КАК ЕСТЬ) --- */
hfp, hfp1, hfp2, hfpbeta {
    /*font-family: 'Times New Roman', serif;*/
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1;
    
font-family: var(--font-heading);
    
}

hfp {  font-size: 1.3em; }
hfp1 { font-size: 1em; }
hfp2 { font-size: 1em; }
hfpbeta { font-size: 0.8em; font-style: italic; margin-left: 5px; }





/* =========================================
   HEADER (ДЕСКТОП - БАЗОВЫЕ СТИЛИ)
========================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--platinum);
}

.logo-accent { color: var(--gold-primary); }

/* --- 1. ССЫЛКИ НА ПК --- */
.nav-links {
    display: flex;
    flex-direction: row; /* Строго в ряд */
    gap: 30px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--platinum) !important; /* ЖЕСТКО ЗАДАЕМ СВЕТЛЫЙ ЦВЕТ */
    transition: 0.3s;
}

.nav-links a:hover { color: var(--gold-primary) !important; }

/* --- 2. КНОПКИ ДЕЙСТВИЙ НА ПК --- */
.header-actions {
    display: flex;
    flex-direction: row; /* Строго в ряд */
    align-items: center;
    gap: 20px;
}

.epicgram-link {
    color: #00bfff !important;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.epicgram-link:hover { color: #fff !important; }

/* =========================================
   📱 АДАПТАЦИЯ ШАПКИ (ТЕЛЕФОНЫ - 3 ЭТАЖА)
========================================= */
@media (max-width: 950px) {
    .header-container {
        flex-direction: column; /* Сама шапка становится колонкой */
        padding: 15px 10px 10px 10px;
        gap: 15px; 
    }

    /* ЭТАЖ 1: Логотип */
    .logo {
        text-align: center;
        margin: 0 auto;
    }

    /* ЭТАЖ 2: Кнопки действий (В РЯД) */
    .header-actions {
        width: 100%;
        display: flex;
        flex-direction: row !important; /* ЖЕСТКО В РЯД */
        flex-wrap: wrap; /* Разрешаем перенос, если экран узкий */
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    .epicgram-text { display: none; } /* Убираем текст EpicGram */
    .epicgram-link i, .mute-btn i { font-size: 1.4rem; }
    
    .header-actions .btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    /* ЭТАЖ 3: Ссылки (В РЯД) */
    .nav-links {
        width: 100%;
        display: flex;
        flex-direction: row !important; /* ЖЕСТКО В РЯД */
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 20px;
        border-top: 1px solid rgba(212, 175, 55, 0.2); 
        padding-top: 15px;
    }

    .nav-links a {
        font-size: 12px;
        color: var(--platinum) !important; /* СВЕТЛЫЙ ЦВЕТ И НА МОБИЛКЕ */
    }

    /* Сдвигаем главный текст вниз, чтобы шапка не перекрывала его */
    .hero {
        padding-top: 190px; 
    }
}
