/* ریست و متغیرهای اصلی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f39c12; /* طلایی/نارنجی هشدار */
    --secondary-color: #c0392b; /* قرمز دارک */
    --bg-main: #0a0a0a; /* مشکی مطلق */
    --bg-light: #121212; /* خاکستری بسیار تیره */
    --bg-card: #181818;
    --text-main: #dcdcdc;
    --text-muted: #888888;
    --border-color: #2a2a2a;
    --border-radius: 6px;
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    line-height: 1.9;
    color: var(--text-main);
    background-color: var(--bg-main);
    direction: rtl;
    overflow-x: hidden;
}

a { text-decoration: none; color: var(--primary-color); transition: var(--transition); }
a:hover { color: #fff; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 92%; max-width: 1100px; margin: 0 auto; }

/* دکمه‌ها */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-glow {
    background: var(--primary-color);
    color: #000;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(243, 156, 18, 0.7);
    background: #ffb03a;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(243, 156, 18, 0.05);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* ساختار بخش‌ها */
.section { padding: 90px 0; opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.section.animate { opacity: 1; transform: translateY(0); }

.bg-light { background-color: var(--bg-light); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.dark-section { background-color: #030303; }
.threat-bg { background: linear-gradient(180deg, #1f0606 0%, #050000 100%); border-top: 1px solid #3a0000; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.3rem; margin-bottom: 15px; color: #fff; letter-spacing: -0.5px; font-weight: 900; }
.subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 25px; }

.divider { height: 3px; width: 70px; background: var(--primary-color); margin: 0 auto; box-shadow: 0 0 10px var(--primary-color); }
.divider.light { background: #fff; box-shadow: none; }

.redacted { background-color: #000; color: #000; padding: 0 8px; user-select: none; border-radius: 2px; }
.redacted:hover { color: #444; }

/* هدر */
.header {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000; padding: 15px 0;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 1.8rem; color: var(--primary-color); }
.logo h1 { font-size: 1.6rem; color: #fff; font-weight: 800; letter-spacing: 1px; }

.desktop-nav ul { display: flex; gap: 25px; }
.desktop-nav a { color: var(--text-muted); font-size: 0.95rem; font-weight: bold; transition: color 0.3s; }
.desktop-nav a:hover { color: #fff; }
.nav-highlight { color: var(--primary-color) !important; text-shadow: 0 0 10px rgba(243,156,18,0.5); }

/* موبایل منو */
.hamburger-menu { display: none; font-size: 1.6rem; cursor: pointer; color: #fff; }
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background-color: #080808; border-left: 1px solid var(--border-color);
    transition: var(--transition); z-index: 1001; padding: 60px 20px 20px;
    overflow-y: auto;
}
.mobile-nav.active { right: 0; box-shadow: -10px 0 40px rgba(0,0,0,0.9); }
.close-menu { position: absolute; top: 20px; left: 20px; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; }
.close-menu:hover { color: #fff; }
.mobile-nav a { display: block; padding: 15px 10px; border-bottom: 1px solid var(--border-color); font-weight: bold; color: var(--text-main); }
.mobile-nav a:hover { color: var(--primary-color); padding-right: 15px; }

/* هیرو سکشن */
.hero {
    height: 100vh; min-height: 650px;
    background: url('https://www.transparenttextures.com/patterns/micro-carbon.png'), radial-gradient(circle at center, #1f1f1f 0%, #000 100%);
    position: relative;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1; }
.hero-container { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; justify-content: center; }
.hero-content { text-align: center; max-width: 850px; padding-top: 50px; display: flex; flex-direction: column; align-items: center; }

.hero-badge {
    display: inline-block; padding: 6px 18px; border: 1px solid var(--primary-color);
    border-radius: 4px; color: var(--primary-color); font-size: 0.85rem; font-family: monospace;
    margin-bottom: 25px; background: rgba(243, 156, 18, 0.05); letter-spacing: 1px;
}
.hero-content h1 { font-size: 4rem; margin-bottom: 25px; color: #fff; line-height: 1.2; font-weight: 900; }
.hero-subtitle { font-size: 1.3rem; margin-bottom: 40px; color: #ccc; line-height: 1.9; max-width: 750px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; width: 100%; }

.glow-text { text-shadow: 0 0 20px rgba(255,255,255,0.2); }

/* گرید عمومی و متن‌ها */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.text-block-large p { font-size: 1.15rem; margin-bottom: 20px; text-align: justify; line-height: 2; }
.text-block-large p:last-child { margin-bottom: 0; }

/* آیکون باکس‌های عمودی (مانیفست) */
.icon-grid-vertical { display: flex; flex-direction: column; gap: 25px; }
.icon-box { background: var(--bg-card); padding: 25px; border-radius: var(--border-radius); border-right: 3px solid var(--primary-color); }
.icon-box i { font-size: 2rem; color: var(--primary-color); margin-bottom: 15px; }
.icon-box h4 { color: #fff; margin-bottom: 10px; font-size: 1.2rem; }
.icon-box p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }

/* کرونولوژی (تایم‌لاین باستانی) */
.timeline-v2 { position: relative; max-width: 800px; margin: 0 auto; padding-right: 30px; border-right: 2px solid var(--border-color); }
.tl-item { position: relative; margin-bottom: 50px; padding-right: 30px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot { position: absolute; right: -38px; top: 0; width: 16px; height: 16px; background: var(--bg-main); border: 3px solid var(--primary-color); border-radius: 50%; box-shadow: 0 0 10px var(--primary-color); }
.tl-content { background: var(--bg-card); padding: 30px; border-radius: var(--border-radius); border: 1px solid var(--border-color); }
.tl-date { display: inline-block; padding: 4px 10px; background: rgba(255,255,255,0.05); border-radius: 4px; color: var(--primary-color); font-size: 0.85rem; font-weight: bold; margin-bottom: 15px; font-family: monospace; border: 1px solid #333; }
.tl-content h3 { color: #fff; margin-bottom: 15px; font-size: 1.3rem; }
.tl-content p { color: var(--text-muted); line-height: 1.8; font-size: 1.05rem; }

/* آمار */
.stats-section { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 60px 0; background: #050505; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-box { padding: 20px; background: var(--bg-card); border-radius: var(--border-radius); border: 1px solid #222; }
.stat-box i { font-size: 2.2rem; color: #444; margin-bottom: 15px; }
.stat-box h3 { font-size: 2.5rem; color: var(--primary-color); font-family: monospace; margin-bottom: 5px; font-weight: bold; }
.stat-box p { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; color: #888; }

/* ترمینال ارتباطی (بات) */
.terminal-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.status-badge { display: inline-block; padding: 6px 12px; background: rgba(46, 204, 113, 0.1); border: 1px solid #2ecc71; color: #2ecc71; font-size: 0.85rem; border-radius: 4px; margin-bottom: 20px; font-family: monospace; }
.terminal-text h3 { font-size: 2rem; color: #fff; margin-bottom: 20px; }
.terminal-text > p { margin-bottom: 35px; font-size: 1.15rem; color: #bbb; line-height: 1.9; text-align: justify; }

.terminal-features { display: flex; flex-direction: column; gap: 25px; }
.t-feature { display: flex; gap: 20px; align-items: flex-start; }
.t-feature i { font-size: 1.8rem; color: var(--primary-color); margin-top: 5px; background: rgba(243, 156, 18, 0.1); padding: 15px; border-radius: 8px; border: 1px solid rgba(243,156,18,0.2); }
.t-feature h4 { color: #fff; margin-bottom: 8px; font-size: 1.2rem; }
.t-feature p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }

/* شبیه‌ساز صفحه ترمینال هکری */
.cyber-window { background: #050505; border: 1px solid #333; border-radius: 8px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.9); font-family: monospace; width: 100%; }
.cyber-header { background: #151515; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; color: #777; font-size: 0.9rem; }
.cyber-dots i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: 6px; background: #444; }
.cyber-dots i:nth-child(1) { background: #ff5f56; }
.cyber-dots i:nth-child(2) { background: #ffbd2e; }
.cyber-dots i:nth-child(3) { background: #27c93f; }
.cyber-body { padding: 25px; font-size: 1rem; line-height: 1.8; color: #ccc; }
.color-green { color: #2ecc71; font-weight: bold; }
.color-blue { color: #3498db; font-weight: bold; }
.color-primary { color: var(--primary-color); }
.color-red { color: var(--secondary-color); font-weight: bold; }
.cursor-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* پارادایم تخم مرغ */
.quote-block { background: var(--bg-card); padding: 40px; border-right: 4px solid var(--primary-color); border-radius: 4px; font-style: italic; margin-bottom: 40px; position: relative; }
.quote-icon { font-size: 2.5rem; color: rgba(243, 156, 18, 0.2); position: absolute; top: 20px; right: 20px; }
.quote-block p { font-size: 1.25rem; color: #ddd; line-height: 1.9; position: relative; z-index: 1; margin-bottom: 15px; }
.quote-author { color: var(--primary-color); font-size: 1rem; font-weight: bold; }

.egg-visual { display: flex; justify-content: center; align-items: center; }
.egg-hologram { position: relative; width: 200px; height: 260px; border: 2px solid rgba(255,255,255,0.1); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; display: flex; justify-content: center; align-items: center; background: radial-gradient(circle, rgba(243, 156, 18, 0.1) 0%, transparent 70%); box-shadow: inset 0 0 30px rgba(255,255,255,0.05); overflow: hidden; }
.glowing-egg { font-size: 6rem; color: #fff; text-shadow: 0 0 20px var(--primary-color); animation: egg-pulse 3s infinite alternate; }
@keyframes egg-pulse { from { opacity: 0.6; text-shadow: 0 0 10px var(--primary-color); } to { opacity: 1; text-shadow: 0 0 30px #fff; } }
.scan-line { position: absolute; width: 100%; height: 2px; background: rgba(243, 156, 18, 0.8); box-shadow: 0 0 10px var(--primary-color); top: 0; animation: scan 2s linear infinite; }
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }

/* بیولوژی گرید */
.biology-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.bio-card { background: var(--bg-card); padding: 35px 25px; border-radius: var(--border-radius); border: 1px solid var(--border-color); transition: var(--transition); text-align: center; }
.bio-card:hover { border-color: var(--primary-color); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.bio-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.bio-card h3 { color: #fff; margin-bottom: 15px; font-size: 1.25rem; }
.bio-card p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; }

/* جدول فرکانس‌ها */
.data-table-wrapper { overflow-x: auto; background: var(--bg-card); border-radius: var(--border-radius); border: 1px solid var(--border-color); padding: 20px; }
.cyber-table { width: 100%; border-collapse: collapse; text-align: right; min-width: 700px; }
.cyber-table th { padding: 15px; border-bottom: 2px solid var(--border-color); color: var(--primary-color); font-weight: bold; font-size: 1.1rem; }
.cyber-table td { padding: 15px; border-bottom: 1px solid #222; color: #ccc; font-size: 1.05rem; font-family: monospace; }
.cyber-table tr:hover td { background: rgba(255,255,255,0.02); color: #fff; }
.cyber-table tr:last-child td { border-bottom: none; }

/* اسناد طبقه‌بندی شده */
.doc-container { display: flex; flex-direction: column; gap: 25px; max-width: 900px; margin: 0 auto; }
.doc-box { border: 1px solid #444; background: #0a0a0a; border-radius: 4px; overflow: hidden; position: relative; }
.doc-box::before { content: 'CLASSIFIED'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-15deg); font-size: 5rem; color: rgba(255,255,255,0.03); white-space: nowrap; pointer-events: none; font-family: Impact, sans-serif; letter-spacing: 5px; }
.doc-header { background: #111; padding: 15px 25px; font-family: monospace; border-bottom: 1px dashed #444; display: flex; justify-content: space-between; align-items: center; color: #888; font-size: 1rem; }
.doc-badge { background: #333; color: #fff; padding: 3px 8px; border-radius: 3px; font-size: 0.8rem; }
.doc-badge.red { background: var(--secondary-color); }
.doc-badge.green { background: #2ecc71; color: #000; }
.doc-content { padding: 30px; line-height: 2; position: relative; z-index: 2; }
.doc-content p { margin-bottom: 15px; font-size: 1.1rem; }
.doc-content strong { color: var(--primary-color); font-size: 1.15rem; }

/* عوامل تهدید */
.threat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.threat-card { background: rgba(0,0,0,0.5); padding: 40px 30px; border: 1px solid #3a0000; border-radius: var(--border-radius); text-align: center; transition: var(--transition); }
.threat-card:hover { border-color: var(--secondary-color); background: rgba(20,0,0,0.8); }
.threat-icon { font-size: 3rem; color: var(--secondary-color); margin-bottom: 20px; }
.threat-card h3 { color: #fff; margin-bottom: 15px; font-size: 1.3rem; }
.threat-card p { color: #aaa; font-size: 1.05rem; line-height: 1.8; }

/* سلسله مراتب */
.hierarchy-list { display: flex; flex-direction: column; gap: 20px; max-width: 850px; margin: 0 auto; }
.h-item { display: flex; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius); overflow: hidden; align-items: stretch; transition: var(--transition); }
.h-item:hover { border-color: #555; transform: translateX(-5px); }
.h-level { background: #111; width: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: bold; color: #777; border-left: 1px solid var(--border-color); font-size: 1.1rem; padding: 10px; text-align: center; }
.h-details { padding: 30px; flex: 1; }
.h-details h3 { color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.h-details h3 i { color: var(--primary-color); font-size: 1.2rem; }
.h-details p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }
.premium-h { border-color: var(--primary-color); box-shadow: 0 0 20px rgba(243,156,18,0.1); }
.premium-h .h-level { background: var(--primary-color); color: #000; border-color: var(--primary-color); }
.premium-h h3 { color: var(--primary-color); }

/* سوالات متداول */
.faq-container { max-width: 850px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; border: 1px solid var(--border-color); border-radius: 4px; background: var(--bg-card); transition: var(--transition); }
.faq-question { padding: 25px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-question h3 { font-size: 1.15rem; color: #fff; margin: 0; }
.faq-question i { color: var(--text-muted); transition: var(--transition); font-size: 1.2rem; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 25px; }
.faq-answer p { font-size: 1.05rem; line-height: 1.8; color: #bbb; }
.faq-item.active { border-color: #555; }
.faq-item.active .faq-answer { max-height: 400px; padding: 0 25px 25px; }
.faq-item.active .faq-question i { color: var(--primary-color); }

/* دعوتنامه نهایی */
.join-box { max-width: 700px; margin: 0 auto; text-align: center; background: var(--bg-card); padding: 60px 40px; border-radius: var(--border-radius); border: 1px solid var(--border-color); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.join-box h2 { font-size: 2.5rem; color: #fff; margin-bottom: 20px; }
.join-box p { font-size: 1.2rem; color: var(--text-muted); line-height: 1.8; }

/* فوتر */
.footer { border-top: 1px solid #222; padding: 70px 0 20px; background: #050505; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 50px; }
.footer-brand h3 { color: #fff; margin-bottom: 10px; font-size: 1.6rem; }
.footer-brand p { color: var(--text-muted); font-size: 1rem; }
.footer-links h4, .footer-contact h4 { color: #fff; margin-bottom: 25px; font-size: 1.3rem; border-bottom: 1px solid #333; padding-bottom: 12px; display: inline-block; }
.footer-links a { display: block; color: var(--text-muted); margin-bottom: 12px; font-size: 1.05rem; }
.footer-links a:hover { color: var(--primary-color); transform: translateX(-5px); }
.footer-contact p { color: var(--text-muted); margin-bottom: 15px; font-size: 1.05rem; display: flex; align-items: center; gap: 12px; }
.footer-contact p i { color: var(--primary-color); width: 20px; text-align: center; }
.footer-bottom { text-align: center; border-top: 1px solid #1a1a1a; padding-top: 25px; font-size: 0.9rem; color: #555; }

/* ========================================= */
/* مدیا کوئری‌ها (طراحی موبایل فرست و ریسپانسیو) */
/* ========================================= */

/* تبلت‌ها و لپ‌تاپ‌های کوچک */
@media (max-width: 992px) {
    .section { padding: 70px 0; }
    .content-grid, .terminal-container { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    
    .hero-content h1 { font-size: 3.2rem; }
    .hero-subtitle { font-size: 1.15rem; }
    
    .icon-grid-vertical { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .icon-box { border-right: none; border-top: 3px solid var(--primary-color); text-align: center; }
    
    .timeline-v2 { padding-right: 20px; }
    .tl-dot { right: -28px; }
}

/* موبایل‌ها */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger-menu { display: block; }
    
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 1.9rem; }
    .subtitle { font-size: 1rem; }
    
    .hero-content { padding-top: 20px; }
    .hero-content h1 { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.05rem; margin-bottom: 30px; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 320px; }
    .hero-buttons .btn { width: 100%; }
    
    .h-item { flex-direction: column; }
    .h-item:hover { transform: none; }
    .h-level { width: 100%; padding: 15px; border-left: none; border-bottom: 1px solid var(--border-color); flex-direction: row; gap: 15px; }
    .h-details { padding: 20px; }
    
    .doc-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .doc-content { padding: 20px; }
    
    .icon-grid-vertical { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .stat-box { padding: 15px; }
    .stat-box h3 { font-size: 1.8rem; }
    
    .footer-top { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-links h4, .footer-contact h4 { margin: 0 auto 15px; }
    .footer-contact p { justify-content: center; }
    
    .terminal-features .t-feature { flex-direction: column; gap: 10px; text-align: right; }
    .quote-block { padding: 30px 20px; }
}

/* موبایل‌های کوچک */
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; line-height: 1.4; }
    .faq-question { flex-direction: column; gap: 15px; text-align: right; align-items: flex-start; }
    .faq-question i { align-self: flex-end; }
    .faq-item.active .faq-answer { max-height: 600px; }
    .biology-grid { grid-template-columns: 1fr; }
    .cyber-table th, .cyber-table td { padding: 10px; font-size: 0.9rem; }
}