/* ═══════════════════════════════════════════════════════════
   SONIC POS — Landing Page Styles
   Premium Dark Theme with Purple/Amber Accents
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #8b5cf6;       /* Violet */
    --primary-dark: #6d28d9;  /* Deep Purple */
    --primary-light: #a78bfa; /* Soft Lavender */
    --accent: #06b6d4;        /* Cyan */
    --accent-dark: #0891b2;   /* Deep Cyan */
    --accent-light: #22d3ee;  /* Neon Cyan */
    --success: #10b981;
    --danger: #ef4444;
    --bg-dark: #070913;
    --bg-card: #0f1322;
    --bg-card-hover: #171d34;
    --bg-surface: #0b0e1b;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-dim: #64748b;
    --border: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.12);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --radius: 18px;
    --radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -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;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-size: 22px;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.nav-brand strong { font-weight: 800; }

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav-login {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-nav-login:hover { color: white; background: rgba(255,255,255,0.05); }

.btn-nav-cta {
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.45);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-effects { position: absolute; inset: 0; z-index: 0; }

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent);
    top: -15%;
    right: -10%;
    animation: glowPulse 6s ease-in-out infinite alternate;
}

.hero-glow-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35), transparent);
    bottom: 10%;
    left: -5%;
    animation: glowPulse 8s ease-in-out infinite alternate-reverse;
}

@keyframes glowPulse {
    from { opacity: 0.3; transform: scale(1); }
    to { opacity: 0.5; transform: scale(1.15); }
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-primary-hero, .btn-secondary-hero {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.btn-primary-hero {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.55);
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-light);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

.hero-trust {
    display: flex;
    gap: 24px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dim);
}

.trust-item i { color: var(--success); font-size: 14px; }

/* ── Hero Visual (Dashboard Preview) ── */
.hero-visual {
    position: relative;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.dashboard-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.04);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}

.preview-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }
.preview-title { font-size: 12px; color: var(--text-dim); margin-right: auto; font-family: 'Outfit', sans-serif; }

.preview-body { display: flex; min-height: 260px; }

.preview-sidebar {
    width: 50px;
    background: rgba(255,255,255,0.02);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0;
    gap: 6px;
}

.ps-item {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-dim);
    transition: var(--transition);
}

.ps-item.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

.preview-main { flex: 1; padding: 16px; }

.preview-stat-row { display: flex; gap: 10px; margin-bottom: 16px; }

.preview-stat {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
}

.preview-stat .stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-bottom: 8px;
}

.preview-stat.blue .stat-icon { background: rgba(99, 102, 241, 0.15); color: var(--primary-light); }
.preview-stat.green .stat-icon { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.preview-stat.amber .stat-icon { background: rgba(245, 158, 11, 0.15); color: var(--accent); }

.stat-val { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px; }
.stat-label { font-size: 11px; color: var(--text-dim); }

.preview-chart {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    height: 100px;
}

.chart-bars { display: flex; gap: 8px; align-items: flex-end; height: 100%; }

.bar {
    flex: 1;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
}

.bar.active { background: linear-gradient(180deg, var(--primary-light), var(--primary)); }
.bar:hover { background: rgba(99, 102, 241, 0.4); }

/* ── Floating Cards ── */
.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

.floating-card i { font-size: 16px; }

.card-pos { top: 20%; right: -30px; color: var(--primary-light); animation-delay: 0s; }
.card-store { bottom: 25%; left: -40px; color: var(--success); animation-delay: 1s; }
.card-reports { bottom: 5%; right: 10%; color: var(--accent); animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════ STATS BAR ═══════════════════ */
.stats-bar {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 50px 0;
}

.stats-container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; }

.stat-block { text-align: center; }

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-text { font-size: 14px; color: var(--text-dim); margin-top: 4px; }

/* ═══════════════════ SECTION HEADERS ═══════════════════ */
.section-header { text-align: center; margin-bottom: 60px; }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* ═══════════════════ FEATURES ═══════════════════ */
.features { padding: 100px 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent, var(--primary)), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent, var(--primary));
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ═══════════════════ MODULES ═══════════════════ */
.modules-section {
    padding: 100px 0;
    background: var(--bg-surface);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.module-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.module-info h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.module-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.module-info li {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-info li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: var(--success);
    flex-shrink: 0;
}

/* ═══════════════════ PRICING ═══════════════════ */
.pricing-section { padding: 100px 0; }

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.toggle-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dim);
    transition: var(--transition);
    cursor: pointer;
}

.toggle-label.active { color: var(--text-main); }

.save-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 50px;
    font-weight: 700;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input { display: none; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    top: 2px;
    right: 2px;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    right: calc(100% - 24px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.pricing-loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    color: var(--text-dim);
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pricing-loader i { font-size: 28px; color: var(--primary-light); }

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.plan-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

.plan-card.popular::before {
    content: 'الأكثر طلباً';
    position: absolute;
    top: 18px;
    left: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.plan-name {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.plan-desc {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 20px;
    min-height: 20px;
}

.plan-price {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: white;
}

.price-currency { font-size: 18px; color: var(--text-muted); font-weight: 500; }
.price-period { font-size: 14px; color: var(--text-dim); }

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    margin-bottom: 28px;
}

.plan-features li {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    font-size: 12px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.plan-features li i.fa-check { color: var(--success); }
.plan-features li i.fa-times { color: var(--text-dim); opacity: 0.4; }

.btn-plan {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-plan:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-light);
    color: white;
}

.plan-card.popular .btn-plan {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.plan-card.popular .btn-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.5);
}

.plan-trial {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-dim);
}

/* ═══════════════════ TESTIMONIALS ═══════════════════ */
.testimonials {
    padding: 100px 0;
    background: var(--bg-surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 16px;
}

.testimonial-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: 15px; }
.testimonial-author span { font-size: 12px; color: var(--text-dim); }

/* ═══════════════════ FAQ ═══════════════════ */
.faq-section { padding: 100px 0; }

.faq-grid {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active { border-color: var(--border-hover); }

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    text-align: right;
    transition: var(--transition);
}

.faq-question:hover { color: var(--primary-light); }

.faq-question i {
    font-size: 12px;
    color: var(--text-dim);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--primary-light); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer { max-height: 300px; }

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ═══════════════════ CTA ═══════════════════ */
.cta-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-surface);
}

.cta-bg-effects { position: absolute; inset: 0; }

.cta-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(100px);
}

.cta-container {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-container h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-container p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 32px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
    transition: var(--transition);
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.55);
}

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 16px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-brand .nav-brand { font-size: 20px; }

.footer-links h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p { font-size: 13px; color: var(--text-dim); }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; gap: 50px; }
    .hero-visual { display: none; }
    .hero-content { text-align: center; }
    .hero-desc { margin: 0 auto 32px; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-actions { display: none; }
    .mobile-toggle { display: flex; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(10, 14, 26, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active li { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav-links.active li:last-child { border: none; }

    .hero { padding: 100px 0 60px; }
    .stats-container { gap: 20px; }
    .stat-number { font-size: 32px; }
    .features-grid { grid-template-columns: 1fr; }
    .modules-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-primary-hero, .btn-secondary-hero { justify-content: center; }
}

/* ═══════════════════ SCREENSHOTS GALLERY ═══════════════════ */
.screenshots-section {
    padding: 100px 0;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.screenshot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.screenshot-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.screenshot-frame {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #05070e;
    cursor: pointer;
}

.screenshot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-card:hover .screenshot-frame img {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: rgba(139, 92, 246, 0.3);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.screenshot-frame:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-zoom {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow);
    transform: scale(0.85);
    transition: transform 0.25s ease;
}

.screenshot-frame:hover .screenshot-zoom {
    transform: scale(1);
}

.screenshot-meta {
    padding: 24px;
}

.screenshot-meta h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.screenshot-meta p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 14, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    border: 1px solid var(--border-hover);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

/* ── Screenshots Category Tabs ── */
.screenshots-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
}

.tab-btn i {
    font-size: 13px;
    color: var(--accent-light);
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.tab-btn.active i {
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInTab 0.35s ease-out;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
