/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7367f0;
    --primary-dark: #5e50ee;
    --primary-light: #9d95f5;
    --primary-bg: rgba(115, 103, 240, 0.08);
    --gradient: linear-gradient(135deg, #7367f0 0%, #9f95ff 50%, #ce9ffc 100%);
    --gradient-text: linear-gradient(135deg, #7367f0, #ce9ffc);
    --success: #28c76f;
    --warning: #ff9f43;
    --info: #00cfe8;
    --purple: #a855f7;
    --teal: #14b8a6;

    --bg-body: #ffffff;
    --bg-section: #f8f9fc;
    --bg-card: #ffffff;
    --bg-input: #f8f9fc;
    --bg-navbar: rgba(255, 255, 255, 0.8);
    --bg-navbar-scroll: rgba(255, 255, 255, 0.95);
    --bg-mobile-menu: #ffffff;

    --text-heading: #1a1a2e;
    --text-body: #4a4b65;
    --text-muted: #8a8ea8;
    --text-subtle: #6e7191;

    --border-light: #f0f2f8;
    --border-medium: #e4e7ef;
    --border-input: #e4e7ef;
    --placeholder: #d0d4e0;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 8px 24px rgba(115, 103, 240, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --stats-bg: #1a1a2e;
    --footer-bg: #1a1a2e;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --bg-body: #0f0f1a;
    --bg-section: #161625;
    --bg-card: #1c1c30;
    --bg-input: #1c1c30;
    --bg-navbar: rgba(15, 15, 26, 0.85);
    --bg-navbar-scroll: rgba(15, 15, 26, 0.95);
    --bg-mobile-menu: #1c1c30;

    --text-heading: #e8e8f0;
    --text-body: #a8a8c0;
    --text-muted: #7a7a9a;
    --text-subtle: #9090b0;

    --border-light: #2a2a42;
    --border-medium: #353550;
    --border-input: #353550;
    --placeholder: #505070;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.35);

    --primary-bg: rgba(115, 103, 240, 0.12);
    --stats-bg: #12121f;
    --footer-bg: #0a0a14;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-body);
    background: var(--bg-body);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

/* ===== RTL / Arabic Font ===== */
[dir="rtl"] body {
    font-family: 'Tajawal', 'Inter', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: #ffffff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(115, 103, 240, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-body);
    border: 2px solid var(--border-medium);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* ===== TOGGLE BUTTONS (Theme & Lang) ===== */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-medium);
    background: var(--bg-card);
    color: var(--text-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.icon-moon { display: none; }
.icon-sun { display: block; }

[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: none; }

.lang-btn {
    font-family: 'Tajawal', 'Inter', sans-serif;
}

.lang-label {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

/* ===== TYPOGRAPHY ===== */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    background: var(--bg-navbar-scroll);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo img {
    height: 44px;
    width: auto;
}

[data-theme="dark"] .navbar-logo img {
    filter: brightness(1.2);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links li a {
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-subtle);
    border-radius: var(--radius-sm);
    position: relative;
}

.nav-links li a:not(.btn):hover,
.nav-links li a:not(.btn).active {
    color: var(--primary);
    background: var(--primary-bg);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-heading);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-body) 100%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(80px);
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(115, 103, 240, 0.15);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

[dir="rtl"] .shape-1 {
    right: auto;
    left: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(206, 159, 252, 0.12);
    bottom: -50px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

[dir="rtl"] .shape-2 {
    left: auto;
    right: -100px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(0, 207, 232, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(115, 103, 240, 0.15);
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

[dir="rtl"] .hero-text h1 {
    letter-spacing: 0;
    line-height: 1.4;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual / Card */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    text-align: center;
    animation: cardFloat 6s ease-in-out infinite;
    position: relative;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.shield-icon {
    width: 120px;
    height: 120px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    color: #ffffff;
    box-shadow: 0 12px 40px rgba(115, 103, 240, 0.35);
}

.hero-card-stats {
    display: flex;
    gap: 32px;
}

.stat-mini {
    flex: 1;
    text-align: center;
    padding: 16px;
    background: var(--bg-section);
    border-radius: var(--radius-md);
}

.stat-mini-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-mini-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== FEATURES ===== */
.features {
    padding: 100px 0;
    background: var(--bg-body);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

[dir="rtl"] .feature-card::before {
    transform-origin: right;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-warning {
    background: rgba(255, 159, 67, 0.1);
    color: var(--warning);
}

.feature-icon-success {
    background: rgba(40, 199, 111, 0.1);
    color: var(--success);
}

.feature-icon-info {
    background: rgba(0, 207, 232, 0.1);
    color: var(--info);
}

.feature-icon-purple {
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple);
}

.feature-icon-teal {
    background: rgba(20, 184, 166, 0.1);
    color: var(--teal);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.feature-link:hover {
    gap: 10px;
}

[dir="rtl"] .feature-link svg {
    transform: scaleX(-1);
}

/* ===== FEATURE MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-section);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

[dir="rtl"] .modal-close {
    right: auto;
    left: 20px;
}

.modal-close:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 16px;
    line-height: 1.3;
}

.modal-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 28px;
}

.modal-highlights {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-section);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.modal-highlight-bullet {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.modal-highlight-item span {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .modal {
        padding: 32px 24px;
        max-height: 90vh;
    }

    .modal-title {
        font-size: 1.25rem;
        padding-right: 36px;
    }

    [dir="rtl"] .modal-title {
        padding-right: 0;
        padding-left: 36px;
    }
}

/* ===== FREE TRIAL ===== */
.free-trial {
    padding: 100px 0;
    background: var(--bg-section);
    position: relative;
    overflow: hidden;
}

.trial-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.trial-badge-row {
    margin-bottom: 20px;
}

.trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-primary);
}

.trial-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 16px;
    line-height: 1.2;
}

[dir="rtl"] .trial-content h2 {
    line-height: 1.5;
}

.trial-content > p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
    max-width: 560px;
}

.trial-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 36px;
}

.trial-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trial-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(40, 199, 111, 0.12);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.trial-feature-item span {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.5;
    font-weight: 500;
}

.trial-bottom {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.trial-no-cc {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Trial Visual Card */
.trial-visual {
    display: flex;
    justify-content: center;
}

.trial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 340px;
    animation: cardFloat 6s ease-in-out infinite;
}

.trial-card-header {
    background: var(--gradient);
    padding: 32px 28px;
    text-align: center;
    color: #ffffff;
}

.trial-card-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.trial-card-days {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.trial-days-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.trial-days-text {
    font-size: 1.25rem;
    font-weight: 600;
    opacity: 0.9;
}

.trial-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.trial-card-row {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 500;
}

.trial-card-row svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Trial responsive */
@media (max-width: 1024px) {
    .trial-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .trial-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .trial-visual {
        order: -1;
    }

    .trial-content h2 {
        font-size: 1.75rem;
    }

    .trial-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .trial-card {
        max-width: 300px;
    }
}

/* ===== ABOUT ===== */
.about {
    padding: 100px 0;
    background: var(--bg-section);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-card-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 380px;
}

.about-card-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.about-card-item:hover {
    box-shadow: var(--shadow-lg);
}

.about-card-1 { transform: translateX(0); }
.about-card-2 { transform: translateX(30px); }
.about-card-3 { transform: translateX(60px); }

.about-card-1:hover { transform: translateX(8px); }
.about-card-2:hover { transform: translateX(38px); }
.about-card-3:hover { transform: translateX(68px); }

[dir="rtl"] .about-card-2 { transform: translateX(-30px); }
[dir="rtl"] .about-card-3 { transform: translateX(-60px); }
[dir="rtl"] .about-card-1:hover { transform: translateX(-8px); }
[dir="rtl"] .about-card-2:hover { transform: translateX(-38px); }
[dir="rtl"] .about-card-3:hover { transform: translateX(-68px); }

.about-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-card-item span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-heading);
}

.about-text h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 16px;
    line-height: 1.2;
}

[dir="rtl"] .about-text h2 {
    line-height: 1.5;
}

.about-text > p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.8;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.check-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(40, 199, 111, 0.12);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-list li span {
    font-size: 0.95rem;
    color: var(--text-subtle);
    line-height: 1.6;
}

/* ===== STATS ===== */
.stats {
    padding: 80px 0;
    background: var(--stats-bg);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0.08;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 32px 16px;
}

.stat-card .stat-value {
    display: inline;
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.stat-card .stat-suffix {
    display: inline;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-card .stat-label {
    margin-top: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ===== CONTACT ===== */
.contact {
    padding: 100px 0;
    background: var(--bg-body);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 12px;
    line-height: 1.2;
}

[dir="rtl"] .contact-info h2 {
    line-height: 1.5;
}

.contact-info > p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item div strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-heading);
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-item div span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Contact Form */
.contact-form-wrapper {
    position: relative;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-input);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-heading);
    transition: var(--transition);
    background: var(--bg-input);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px var(--primary-bg);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--placeholder);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.form-success.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(40, 199, 111, 0.1);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-muted);
}

.form-loading {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 5;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    opacity: 0.96;
}

.form-loading.show {
    display: flex;
}

.form-loading-inner {
    text-align: center;
}

.form-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border: 3px solid var(--border-input);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: formSpinnerRotate 0.7s linear infinite;
}

@keyframes formSpinnerRotate {
    to {
        transform: rotate(360deg);
    }
}

.form-loading-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--footer-bg);
    padding: 60px 0 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links-group h4 {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-links-group a:hover {
    color: #ffffff;
    padding-inline-start: 4px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    z-index: 999;
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 32px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(115, 103, 240, 0.5);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.75rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-mobile-menu);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 4px;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease, left 0.3s ease;
        z-index: 1000;
    }

    [dir="rtl"] .nav-links {
        right: auto;
        left: -100%;
    }

    .nav-links.open {
        right: 0;
    }

    [dir="rtl"] .nav-links.open {
        right: auto;
        left: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }

    .nav-controls {
        padding: 12px 16px 0;
        width: 100%;
    }

    /* Hero Mobile */
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-card {
        padding: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-header h2,
    .about-text h2,
    .contact-info h2 {
        font-size: 1.75rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-card-1,
    .about-card-2,
    .about-card-3 {
        transform: translateX(0) !important;
    }

    .about-card-1:hover,
    .about-card-2:hover,
    .about-card-3:hover {
        transform: translateX(8px) !important;
    }

    [dir="rtl"] .about-card-1:hover,
    [dir="rtl"] .about-card-2:hover,
    [dir="rtl"] .about-card-3:hover {
        transform: translateX(-8px) !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card .stat-value {
        font-size: 2.25rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.85rem;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-card-stats {
        flex-direction: column;
        gap: 16px;
    }
}

/* ===== OVERLAY (Mobile Menu) ===== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.nav-overlay.show {
    display: block;
}
