:root {
    --primary: #16A34A;
    --primary-light: #f0fdf4;
    --primary-hover: #15803d;
    --primary-rgb: 22, 163, 74;
    --secondary: #ffcb27;
    --bg: #f9fafb;
    --surface: #ffffff;
    --text: #111827;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.02);
    --font-base: 'IBM Plex Sans Arabic', sans-serif;
    --radius-card: 24px;
    --radius-btn: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    direction: rtl;
    text-align: right;
}

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

/* Utils */
.gradient-text {
    background: linear-gradient(to left, var(--primary), #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-bold { font-weight: 900; }
.w-full { width: 100%; }
.mb-16 { margin-bottom: 64px; }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(var(--primary-rgb), 0.4);
}

.btn-xl { padding: 20px 48px; font-size: 1.25rem; }
.btn-lg { padding: 16px 40px; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-text {
    color: var(--text-muted);
    font-weight: 700;
    text-decoration: none;
    padding: 10px 16px;
    transition: 0.3s;
}

.btn-text:hover {
    color: var(--primary);
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* New Landing Nav (used by LandingLayout) */
.landing-nav {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
}

.nav-inner {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 30px -5px rgba(0, 0, 0, 0.08);
    max-width: 1280px;
    margin: 0 auto;
    transition: 0.3s;
}

.landing-nav.scrolled .nav-inner {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.12);
    padding: 0 24px;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 900;
    font-size: 1.2rem;
}

.nav-logo .logo-icon {
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px -4px rgba(var(--primary-rgb), 0.4);
    transition: 0.3s;
    overflow: hidden;
}

.logo-icon.has-custom-logo {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.nav-logo:hover .logo-icon:not(.has-custom-logo) { transform: rotate(-5deg) scale(1.05); }

.btn-nav-primary {
    background: var(--primary);
    color: white;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}
.btn-nav-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-nav-outline {
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    border: 1.5px solid var(--border);
}
.btn-nav-outline:hover { color: var(--primary); border-color: var(--primary); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 6px;
}

/* Drawer header inside aside */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.drawer-header button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
}

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

.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 50px -10px rgba(0, 0, 0, 0.08);
    max-width: 1280px;
    width: calc(100% - 48px);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    background: var(--primary);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px -5px rgba(var(--primary-rgb), 0.4);
}

.logo-text { font-size: 1.35rem; font-weight: 900; color: var(--text); transition: 0.3s; }
.logo:hover .logo-text { color: var(--primary); }
.logo:hover .logo-icon { transform: rotate(-5deg) scale(1.05); }

.nav-links { list-style: none; display: flex; gap: 4px; }
.nav-links a {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 14px;
    transition: 0.3s;
    position: relative;
}
.nav-links a:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}
.nav-links a.active {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

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

/* Hero Section */
.hero {
    padding: 240px 0 120px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

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

.hero-title { font-size: 5rem; font-weight: 900; margin-bottom: 24px; line-height: 1.1; }
.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 600;
    max-width: 600px;
    margin-bottom: 40px;
}

.typing-container {
    height: 50px;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.typing-text { font-size: 2.2rem; font-weight: 900; color: var(--primary); }
.cursor { width: 4px; height: 40px; background: var(--primary); animation: blink 0.8s infinite; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.avatar-group { display: flex; margin-left: 12px; }
.avatar-group img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid white;
    margin-right: -14px;
    object-fit: cover;
}

.social-proof { display: flex; align-items: center; gap: 16px; font-weight: 700; color: var(--text-muted); }

/* Hero Visual & Circles */
.hero-visual { display: flex; justify-content: center; }
.concentric-circles {
    position: relative;
    width: 550px;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle { border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0,0,0,0.05); }
.c3 { width: 550px; height: 550px; background: rgba(var(--primary-rgb), 0.02); animation: float 10s ease-in-out infinite; }
.c2 { width: 420px; height: 420px; background: rgba(var(--primary-rgb), 0.03); }
.c1 { width: 300px; height: 300px; background: #fff; box-shadow: 0 40px 100px -20px rgba(0,0,0,0.12); }

.hero-logo-box { width: 120px; height: 120px; background: var(--primary); border-radius: 32px; display: flex; align-items: center; justify-content: center; box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.5); }
.hero-icon { width: 60px; height: 60px; color: #fff; }

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

/* Features Section */
.features { padding: 120px 0; background: var(--bg); }
.section-header { text-align: center; margin-bottom: 80px; }
.section-title { font-size: 3.5rem; font-weight: 900; margin-bottom: 16px; letter-spacing: -1px; }
.section-desc { font-size: 1.25rem; color: var(--text-muted); font-weight: 600; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card {
    padding: 60px 48px;
    background: #fff;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover { transform: translateY(-12px); border-color: var(--primary); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.1); }

.f-icon { width: 64px; height: 64px; background: var(--primary-light); color: var(--primary); border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 32px; }
.f-icon i { width: 32px; height: 32px; }
.feature-card h3 { font-size: 1.75rem; margin-bottom: 16px; }
.feature-card p { color: var(--text-muted); font-weight: 600; font-size: 1.1rem; }

/* Pricing Section */
.pricing { padding: 120px 0; background: var(--bg); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 1000px; margin: 0 auto; }
.pricing-card {
    padding: 60px; background: #fff; border-radius: var(--radius-card); border: 2px solid var(--border);
    display: flex; flex-direction: column; gap: 40px; position: relative; transition: 0.4s;
}
.pricing-card.popular { border-color: var(--primary); transform: scale(1.05); box-shadow: 0 40px 80px -20px rgba(var(--primary-rgb), 0.1); }
.popular-badge { position: absolute; top: 24px; left: 24px; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 20px; font-weight: 900; font-size: 0.85rem; }

.price { font-size: 4rem; font-weight: 900; }
.price span { font-size: 1.1rem; color: var(--text-light); }
.p-features { list-style: none; display: flex; flex-direction: column; gap: 20px; flex: 1; margin-bottom: 30px; }
.p-features li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text-muted); }
.p-features i { color: var(--primary); }

/* How It Works Section */
.how-it-works { padding: 120px 0; background: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-card { text-align: center; position: relative; padding: 40px; border-radius: 24px; border: 1px solid var(--border); transition: 0.3s; }
.step-card:hover { border-color: var(--primary); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05); transform: translateY(-5px); }
.step-num { font-size: 4rem; font-weight: 900; color: var(--primary-light); margin-bottom: 20px; line-height: 1; transition: 0.3s; }
.step-card:hover .step-num { color: rgba(var(--primary-rgb), 0.2); }
.step-card h3 { font-size: 1.5rem; margin-bottom: 16px; color: var(--text); }
.step-card p { color: var(--text-muted); font-size: 1.1rem; }

/* Video Section */
.video-section { padding: 60px 0; background: var(--bg); }
.video-wrapper { max-width: 1000px; margin: 0 auto; border-radius: 32px; overflow: hidden; box-shadow: 0 30px 60px -15px rgba(0,0,0,0.15); position: relative; aspect-ratio: 16/9; }
.video-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.video-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: white; transition: 0.3s; cursor: pointer; }
.video-wrapper:hover .video-overlay { background: rgba(0,0,0,0.5); }
.play-btn { width: 80px; height: 80px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; position: relative; box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.5); font-size: 2rem; }
.play-btn i { color: #fff; margin-right: -4px; }
.play-pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1); }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.video-text h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 12px; }
.video-text p { font-size: 1.2rem; opacity: 0.9; }

/* About Section */
.about { padding: 120px 0; background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.about-content .badge-premium { display: inline-block; padding: 8px 16px; background: var(--primary-light); color: var(--primary); border-radius: 12px; font-weight: 800; font-size: 0.9rem; margin-bottom: 24px; }
.section-title-large { font-size: 3rem; font-weight: 900; line-height: 1.2; margin-bottom: 40px; }
.about-text-blocks { display: flex; flex-direction: column; gap: 32px; margin-bottom: 48px; }
.text-block h3 { font-size: 1.5rem; margin-bottom: 12px; color: var(--text); }
.text-block p { font-size: 1.15rem; color: var(--text-muted); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 40px; border-top: 1px solid var(--border); }
.stat-num { font-size: 2.5rem; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.stat-label { font-size: 1.05rem; font-weight: 700; color: var(--text-muted); }
.about-visual { display: flex; justify-content: center; }

/* Testimonials Section */
.testimonials { padding: 120px 0; background: var(--bg); }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 1000px; margin: 0 auto; }
.testimonial-card { background: #fff; padding: 48px; border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-premium); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; transition: 0.3s; }
.testimonial-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.t-text { font-size: 1.25rem; font-weight: 600; color: var(--text); line-height: 1.8; font-style: italic; position: relative; }
.t-text::before { content: '"'; font-size: 4rem; color: var(--primary-light); position: absolute; top: -30px; right: -20px; font-family: sans-serif; opacity: 0.5; }
.t-user { display: flex; align-items: center; gap: 16px; }
.t-user img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.t-user h4 { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.t-user span { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }

/* FAQ Section */
.faq { padding: 120px 0; background: #fff; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; padding: 24px 32px; background: var(--bg); transition: 0.3s; }
.faq-item:hover { border-color: var(--primary); background: #fff; }
.faq-question { font-size: 1.25rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.faq-answer { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; }

/* Value Prop Section (Cards match Header Width) */
.value-prop { padding: 120px 0; background: #fff; }
.value-prop-box {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    padding: 120px 80px; border-radius: 48px; position: relative; overflow: hidden;
}
.v-glow-1 { position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; background: rgba(59,130,246,0.3); border-radius: 50%; filter: blur(100px); }
.v-glow-2 { position: absolute; bottom: -100px; left: -100px; width: 400px; height: 400px; background: rgba(16,185,129,0.2); border-radius: 50%; filter: blur(80px); }

.badge-white { display: inline-block; padding: 10px 20px; background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 14px; font-weight: 900; margin-bottom: 32px; backdrop-filter: blur(10px); }
.v-title { color: #fff; font-size: 4.5rem; font-weight: 900; margin-bottom: 32px; line-height: 1.1; }
.v-desc { color: rgba(255,255,255,0.85); font-size: 1.6rem; font-weight: 700; max-width: 900px; margin: 0 auto 80px; }

.v-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.v-card {
    padding: 48px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 32px; backdrop-filter: blur(30px); transition: 0.5s;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.v-card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.12); }
.v-icon-box { width: 84px; height: 84px; background: #fff; color: #2563eb; border-radius: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 32px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.v-icon-box i { width: 42px; height: 42px; }
.v-card h3 { color: #fff; font-size: 1.8rem; margin-bottom: 16px; }
.v-card p { color: rgba(255,255,255,0.7); font-weight: 700; font-size: 1.15rem; }

/* Drawer */
.drawer {
    position: fixed; top: 0; right: -320px; width: 320px; height: 100%;
    background: #fff; z-index: 2000; transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 32px; display: flex; flex-direction: column;
    box-shadow: -20px 0 60px rgba(0,0,0,0.1);
}
.drawer.open { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.drawer-menu { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.drawer-menu a {
    text-decoration: none; color: var(--text-muted); padding: 20px 24px; border-radius: 18px; font-weight: 800;
    transition: 0.3s; display: flex; align-items: center; gap: 16px;
}
.drawer-menu a:hover { background: var(--primary-light); color: var(--primary); transform: translateX(-8px); }
.drawer-footer { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 32px; border-top: 1px solid var(--border); }

.drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1500;
    opacity: 0; pointer-events: none; transition: 0.4s; backdrop-filter: blur(4px);
}
.drawer-overlay.active { opacity: 1; pointer-events: auto; }

/* Responsive */
@media (max-width: 1024px) {
    .navbar { margin: 0 20px; width: calc(100% - 40px); }
    .nav-links, .nav-actions .btn-text, .nav-actions .btn-primary { display: none; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-title { font-size: 3.5rem; }
    .hero-desc { margin: 0 auto 40px; }
    .mobile-menu-btn { display: flex; }
    .features-grid, .v-cards, .pricing-grid, .steps-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .about-visual { order: -1; } /* Visual on top on mobile */
    .value-prop-box { padding: 80px 40px; border-radius: 32px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-title { font-size: 3rem; }
    .concentric-circles { width: 320px; height: 320px; }
    .c3 { width: 320px; height: 320px; }
    .c2 { width: 260px; height: 260px; }
    .c1 { width: 180px; height: 180px; }
    .hero-logo-box { width: 90px; height: 90px; }
}

/* Animations */
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } }

.mobile-menu-btn { 
    background: none; border: none; cursor: pointer; padding: 10px; 
    display: none; align-items: center; justify-content: center; 
}
.menu-icon { width: 24px; height: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.menu-icon span { width: 100%; height: 3px; background: var(--text); border-radius: 3px; }

/* Final Footer Design */
.footer { padding: 120px 0 60px; background: #fff; border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; margin-bottom: 80px; }
.f-col h3 { font-size: 1.25rem; font-weight: 900; margin-bottom: 24px; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.f-col a { text-decoration: none; color: var(--text-muted); font-weight: 700; transition: 0.3s; }
.f-col a:hover { color: var(--primary); }

.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 40px; color: var(--text-light); font-weight: 700; }
.footer-legal { display: flex; gap: 32px; }
.footer-legal a { color: var(--text-light); text-decoration: none; }
