/* ===== DESIGN TOKENS ===== */
:root {
    --bg-primary: #0A0E17;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-glass: rgba(17, 24, 39, 0.5);
    --accent: #00D4FF;
    --accent2: #7C3AED;
    --accent-glow: rgba(0, 212, 255, 0.3);
    --green: #34D399;
    --orange: #F59E0B;
    --red: #EF4444;
    --text: #F3F4F6;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(0,212,255,0.3);
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Inter', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body { font-family: var(--font-ar); }

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.85; }

img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 20px var(--accent-glow); } 50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(124, 58, 237, 0.2); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

[data-anim] { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-anim].visible { opacity: 1; transform: translateY(0); }

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent2), #F59E0B);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 22px; font-weight: 900; }
.logo-aero { color: var(--accent); }
.logo-vpn { color: var(--text-muted); }

.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: var(--transition); position: relative; }
.nav-links a:hover { color: var(--accent); opacity: 1; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--accent); transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.06); border: 1px solid var(--border);
    color: var(--text-muted); padding: 6px 14px; border-radius: 8px;
    cursor: pointer; font-size: 13px; transition: var(--transition);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; padding: 8px 20px; border-radius: 8px;
    font-size: 13px; font-weight: 600;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.mobile-menu-btn {
    display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 24px 80px; text-align: center;
    overflow: hidden;
}
.particle-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0, 212, 255, 0.08); border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 6px 16px; border-radius: 50px; font-size: 13px; color: var(--accent);
    margin-bottom: 24px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero-subtitle { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
    display: flex; align-items: center; justify-content: center; gap: 32px;
    margin-top: 60px; padding: 20px 32px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius);
}
.stat { text-align: center; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--accent); }
.stat-suffix { font-size: 20px; font-weight: 700; color: var(--accent); }
.stat-label { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 10px; font-size: 15px; font-weight: 600;
    border: none; cursor: pointer; transition: var(--transition);
    text-decoration: none; position: relative; overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); opacity: 1; }
.btn-outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-loader { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px;
    color: var(--accent); background: rgba(0,212,255,0.08);
    padding: 6px 16px; border-radius: 50px; margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* ===== FEATURES ===== */
.features { background: var(--bg-secondary); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0; transition: var(--transition);
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== HOW IT WORKS ===== */
.steps-grid { display: flex; align-items: center; justify-content: center; gap: 24px; }
.step-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px; text-align: center;
    flex: 1; max-width: 300px; transition: var(--transition);
}
.step-card:hover { border-color: var(--border-hover); }
.step-number {
    font-size: 48px; font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 16px;
}
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-muted); }
.step-connector { font-size: 28px; color: var(--accent); opacity: 0.5; }

/* ===== PRICING ===== */
.pricing { background: var(--bg-secondary); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.price-card {
    background: var(--bg-card); border: 1px solid var(--border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg); padding: 24px; position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    display: flex; flex-direction: column;
}
.price-card .btn { margin-top: auto; }
.price-card:hover { 
    border-color: var(--accent); 
    transform: translateY(-10px) scale(1.05); 
    box-shadow: 0 20px 40px rgba(0,212,255,0.3), inset 0 0 20px rgba(0,212,255,0.1);
    background: linear-gradient(180deg, rgba(0,212,255,0.08) 0%, rgba(17,24,39,0.95) 100%);
    z-index: 10;
    animation: glowPulse 2s infinite alternate;
}

.price-card-offer {
    border: 2px solid #FFD700;
}
.price-save-banner {
    background: #FFD700;
    color: #000;
}
@keyframes glowPulse {
    0% { box-shadow: 0 0 15px rgba(0,212,255,0.2), inset 0 0 20px rgba(124,58,237,0.1); }
    100% { box-shadow: 0 0 30px rgba(0,212,255,0.5), inset 0 0 40px rgba(124,58,237,0.2); }
}
.price-card-featured:hover { 
    transform: scale(1.08) translateY(-8px); 
    animation: none; 
    box-shadow: 0 20px 40px rgba(0,212,255,0.4), inset 0 0 20px rgba(0,212,255,0.2); 
    border-color: #fff;
}
.price-popular {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; padding: 4px 20px; border-radius: 50px; font-size: 12px; font-weight: 700;
    white-space: nowrap;
}
.price-save {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--green), #059669);
    color: #fff; padding: 4px 20px; border-radius: 50px; font-size: 12px; font-weight: 700;
}
.price-header { text-align: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.price-name { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 1px; text-transform: uppercase; }
.price-amount { margin: 12px 0 4px; display: flex; justify-content: center; align-items: baseline; }
.price-value { font-size: 56px; font-weight: 900; background: linear-gradient(to bottom, #ffffff, #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.price-original { font-size: 20px; color: var(--text-dim); text-decoration: line-through; margin-right: 10px; font-weight: 500; }
.price-currency { font-size: 18px; color: var(--accent); font-weight: 700; margin-right: 6px; }
.price-extra-info { font-size: 12px; color: var(--accent); margin-top: 8px; font-weight: 600; opacity: 0.9; }
.offer-timer { font-size: 14px; color: #fff; background: rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 20px; display: inline-block; margin-top: 10px; font-family: monospace; font-weight: 700; border: 1px solid rgba(255,255,255,0.2); }
.price-features { list-style: none; margin-bottom: 16px; }
.price-features li { padding: 4px 0; font-size: 13px; color: var(--text-muted); }

/* ===== DOWNLOAD ===== */
.download-card {
    background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(124,58,237,0.08));
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 60px; text-align: center;
}
.download-content h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.download-content p { color: var(--text-muted); margin-bottom: 28px; }
.download-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.download-buttons .btn { text-align: left; }
.download-buttons small { display: block; font-size: 11px; color: var(--text-dim); font-weight: 400; }
.download-note { font-size: 12px; color: var(--text-dim); margin-top: 16px; }

/* ===== FAQ ===== */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; background: none; border: none; color: var(--text);
    padding: 20px 0; font-size: 16px; font-weight: 600; cursor: pointer;
    text-align: left; transition: var(--transition); font-family: inherit;
}
html[dir="rtl"] .faq-question { text-align: right; }
.faq-question:hover { color: var(--accent); }
.faq-arrow { transition: var(--transition); font-size: 12px; color: var(--text-dim); }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding: 0 0 20px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-secondary); padding: 60px 0 24px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-dim); }

/* ===== MODAL ===== */
.modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s ease; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); }
.modal-content {
    position: relative; background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px; max-width: 480px; width: 90%;
    max-height: 90vh; overflow-y: auto;
}
.modal-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(255,255,255,0.06); border: none; color: var(--text-muted);
    width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
    font-size: 14px; transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.modal-content h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-input {
    width: 100%; padding: 12px 16px; background: rgba(255,255,255,0.04);
    border: 1px solid var(--border); border-radius: 8px; color: var(--text);
    font-size: 14px; font-family: inherit; transition: var(--transition);
}
.form-input option {
    background: #1a1f2e;
    color: #fff;
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group small { display: block; margin-top: 4px; font-size: 11px; color: var(--text-dim); }
.form-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--red); padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.form-summary {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.15);
    padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }

    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 60px; left: 0; right: 0;
        background: rgba(10,14,23,0.97); backdrop-filter: blur(20px);
        padding: 20px; gap: 16px; border-bottom: 1px solid var(--border);
    }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; }
    .step-connector { transform: rotate(90deg); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 600px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card-featured { transform: scale(1); }
    .price-card-featured:hover { transform: translateY(-4px); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
    .download-card { padding: 32px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 32px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .modal-content { padding: 24px; }
}
