:root {
    --primary: #1e6b52;
    --primary-light: #2a8f6e;
    --secondary: #e2a03f;
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 20px 40px rgba(30, 107, 82, 0.05);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-dark);
    background: radial-gradient(circle at 10% 20%, rgba(244, 248, 246, 1) 0%, rgba(255, 255, 255, 1) 90%);
    line-height: 1.8;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Stylings */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(30, 107, 82, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(30, 107, 82, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(226, 160, 63, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(226, 160, 63, 0.3);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Typography & Layouts */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 900;
}

/* Header Navbar بكامل عرض الصفحة */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
}

/* حاوية الشعار الكبير واسم السكريبت */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    max-height: 65px; /* الشعار بحجم كبير وبارز */
    width: auto;
    object-fit: contain;
}

.script-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
}

.lang-switch {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 220px 0 120px 0; /* تمت زيادة الحشو العلوي ليتناسب مع الهيدر الأكبر */
    position: relative;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 900;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Floating Elements */
.hero-floating-container {
    position: relative;
    height: 450px;
    width: 100%;
}

.main-dashboard-canvas {
    width: 85%;
    height: 320px;
    border-radius: 24px;
    position: absolute;
    top: 40px;
    right: 0;
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
    z-index: 1;
    overflow: hidden;
}

.floating-card {
    position: absolute;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(30, 107, 82, 0.08);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.card-1 { top: 0; left: 20px; width: 180px; animation-delay: 0s; }
.card-2 { bottom: 20px; left: 50px; width: 220px; animation-delay: 2s; }
.card-3 { bottom: 120px; right: -10px; width: 160px; animation-delay: 4s; }

.progress-bar {
    width: 100%; height: 8px; background: rgba(0,0,0,0.05); border-radius: 4px; margin: 10px 0;
}
.progress-fill {
    height: 100%; background: var(--primary); border-radius: 4px;
}
.progress-text {
    font-size: 0.85rem; font-weight: 700; color: var(--primary);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Features Group */
.features { padding: 100px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.feature-card {
    padding: 40px 30px; border-radius: 20px; transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-10px); background: rgba(255, 255, 255, 0.8); box-shadow: 0 20px 40px rgba(30, 107, 82, 0.08);
}
.feature-icon {
    width: 60px; height: 60px; background: var(--white); color: var(--primary);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 25px; box-shadow: 0 8px 16px rgba(30, 107, 82, 0.05);
}

/* Live Demo Section */
.live-demo { padding: 100px 0; text-align: center; }
.demo-canvas {
    max-width: 850px; height: 480px; margin: 0 auto 40px auto; border-radius: 24px;
    background: linear-gradient(135deg, rgba(30,107,82,0.85) 0%, rgba(17,64,49,0.95) 100%);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.video-overlay { color: var(--white); }
.video-overlay i { font-size: 3.5rem; color: var(--secondary); margin-bottom: 15px; }

/* Pricing Elements */
.pricing { padding: 100px 0; }
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: center;
}
.pricing-card { border-radius: 24px; padding: 40px 30px; transition: var(--transition); position: relative; }
.pricing-card.popular { background: rgba(255, 255, 255, 0.7); border: 2px solid var(--primary); transform: scale(1.05); }
.popular-tag {
    position: absolute; top: -15px; left: 30px; background: var(--secondary); color: var(--white);
    padding: 4px 12px; border-radius: 12px; font-size: 0.8rem; font-weight: 700;
}
.price { font-size: 2.2rem; font-weight: 900; margin: 15px 0; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.pricing-features { margin-bottom: 30px; }
.pricing-features li { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; }
.pricing-features li i { color: var(--primary-light); }

/* Customization Box */
.customization { padding: 100px 0; text-align: center; }
.custom-box {
    max-width: 800px; margin: 0 auto; padding: 60px 40px; border-radius: 30px;
    background: linear-gradient(135deg, rgba(30,107,82,0.9) 0%, rgba(26,54,45,0.95) 100%); color: var(--white);
}
.custom-box h2 { color: var(--white); margin-bottom: 15px; }
.custom-box p { margin-bottom: 30px; opacity: 0.9; }

/* Footer */
footer { padding: 30px 0; text-align: center; border-top: 1px solid rgba(0,0,0,0.05); font-size: 0.95rem; color: var(--text-light); }

/* Responsive Media Queries */
@media (max-width: 1100px) {
    .script-name { font-size: 1.1rem; }
}

@media (max-width: 991px) {
    .hero-wrapper { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-floating-container { margin-top: 40px; height: 400px; }
    .nav-links { display: none; }
    .pricing-card.popular { transform: scale(1); }
}

@media (max-width: 768px) {
    .navbar { padding: 10px 20px; }
    .logo-container img { max-height: 50px; }
    .script-name { display: none; } /* إخفاء النص الطويل على الهواتف لحماية التصميم من التكثف */
}