@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --primary: #00b894; /* Elegant Teal  */
    --primary-dark: #019b7d;
    --secondary: #e1ff00; /* Vibrant accent similar to neo-modern Salla style */
    --dark: #0f172a; 
    --gray-900: #1e293b;
    --gray-600: #475569;
    --gray-300: #cbd5e1;
    --gray-100: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Tajawal', sans-serif; }
body { background-color: var(--white); color: var(--gray-600); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Typography */
h1, h2, h3, h4, h5, h6 { color: var(--dark); font-weight: 700; line-height: 1.3; }

/* Utility */
.container { padding: 0 24px; max-width: 1140px; margin: 0 auto; }
.text-center { text-align: center; }
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; max-width: 650px; margin-inline: auto; }
.section-header h2 { font-size: 38px; margin-bottom: 20px; color: var(--dark); font-weight: 800;}
.section-header p { font-size: 18px; color: var(--gray-600); line-height: 1.8; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; border-radius: 50px; font-weight: 700; transition: var(--transition); cursor: pointer; border: none; font-size: 16px; font-family: inherit;}
.btn-primary { background-color: var(--primary); color: var(--white); box-shadow: 0 4px 14px 0 rgba(0, 184, 148, 0.39); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 184, 148, 0.23); }
.btn-outline { background-color: transparent; border: 2px solid var(--gray-300); color: var(--dark); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: transparent; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.03); transition: var(--transition); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 90px; transition: var(--transition); }
.header.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow-sm); }
.header.scrolled .container { height: 75px; }

.logo { font-size: 28px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px;}
.logo svg { color: var(--primary); }
.logo span { color: var(--dark); }
.nav { display: flex; gap: 32px; align-items: center; }
.nav-link { font-weight: 600; font-size: 16px; color: var(--gray-900); transition: var(--transition); }
.nav-link:hover { color: var(--primary); }
.header-actions { display: flex; gap: 16px; align-items: center; }

/* Hero */
.hero { padding: 180px 0 120px; background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 10%; right: -5%; width: 500px; height: 500px; background: var(--secondary); border-radius: 50%; opacity: 0.15; filter: blur(60px); z-index:1; }
.hero-content { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; z-index: 10; }
.hero-text h1 { font-size: 58px; margin-bottom: 24px; color: var(--dark); font-weight: 800; line-height: 1.2; }
.hero-text p { font-size: 20px; margin-bottom: 40px; color: var(--gray-600); line-height: 1.8;}
.hero-actions { display: flex; gap: 16px; }
.hero-image { position: relative; z-index: 10; }
.hero-image img { border-radius: 24px; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); border: 8px solid var(--white); transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); transition: var(--transition); }
.hero-image img:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.feature-card { padding: 40px 30px; border-radius: 24px; background: var(--white); border: 1px solid var(--gray-100); transition: var(--transition); box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05); border-color: transparent; }
.feature-icon { width: 64px; height: 64px; border-radius: 18px; background: rgba(0, 184, 148, 0.1); color: var(--primary); display: flex; justify-content: center; align-items: center; margin-bottom: 24px; font-size: 28px; }
.feature-card h3 { font-size: 22px; margin-bottom: 16px; font-weight: 800; }
.feature-card p { color: var(--gray-600); font-size: 16px; line-height: 1.7; }

/* Steps */
.steps-wrapper { display: flex; justify-content: space-between; position: relative; margin-top: 40px; }
.steps-wrapper::before { content: ''; position: absolute; top: 35px; left: 10%; right: 10%; height: 2px; background: var(--gray-300); border-style: dashed; z-index: 1; }
.step { position: relative; z-index: 2; padding: 20px; text-align: center; flex: 1; }
.step-number { width: 70px; height: 70px; background: var(--white); border: 3px solid var(--primary); color: var(--primary); font-size: 26px; font-weight: 800; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto 24px; box-shadow: 0 0 0 10px var(--gray-100); transition: var(--transition); }
.step:hover .step-number { background: var(--primary); color: var(--white); }
.step h4 { font-size: 20px; margin-bottom: 12px; color: var(--dark); font-weight: 800; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: center; margin-top: 40px; }
.pricing-card { background: var(--white); border-radius: 24px; padding: 50px 40px; border: 1px solid #e2e8f0; transition: var(--transition); position: relative; box-shadow: var(--shadow-sm); }
.pricing-card:hover { box-shadow: var(--shadow-xl); border-color:#cbd5e1; }
.pricing-card.popular { border: 2px solid var(--primary); transform: scale(1.05); box-shadow: 0 20px 40px rgba(0, 184, 148, 0.15); z-index: 10; background: #fff;}
.popular-badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 8px 24px; border-radius: 30px; font-size: 14px; font-weight: 800; letter-spacing: 0.5px;}
.pricing-header h3 { font-size: 26px; margin-bottom: 16px; font-weight: 800; }
.price { font-size: 54px; font-weight: 800; color: var(--dark); display: flex; align-items: baseline; gap: 8px; margin-bottom: 30px;}
.price span { font-size: 18px; color: var(--gray-600); font-weight: 500;}
.pricing-features { margin-bottom: 40px; }
.pricing-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 16px; color: var(--gray-600); font-weight: 500;}
.pricing-features li svg { color: var(--primary); flex-shrink: 0; }
.pricing-card .btn { width: 100%; border-radius: 12px; }

/* Stats */
.stats { background: var(--dark); color: var(--white); padding: 80px 0; position: relative; overflow: hidden; }
.stats::after { content: ''; position: absolute; bottom: -50%; left: -10%; width: 50%; height: 100%; background: var(--primary); opacity: 0.2; filter: blur(80px); border-radius: 50%; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; position: relative; z-index: 10;}
.stat-item h3 { font-size: 56px; color: var(--white); margin-bottom: 12px; font-weight: 800; }
.stat-item p { font-size: 18px; color: rgba(255,255,255,0.7); font-weight: 500; }

/* FAQ */
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item { margin-bottom: 20px; border: 1px solid var(--gray-300); border-radius: 16px; overflow: hidden; background: var(--white); transition: var(--transition); }
.faq-item:hover { border-color: var(--primary); }
.faq-question { padding: 24px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 18px; cursor: pointer; color: var(--dark); transition: var(--transition); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: all 0.4s ease; color: var(--gray-600); line-height: 1.8; }
.faq-item.active { border-color: var(--primary); box-shadow: 0 4px 15px rgba(0, 184, 148, 0.08); }
.faq-item.active .faq-answer { padding: 0 24px 24px; max-height: 500px; }
.faq-item.active .faq-question svg { transform: rotate(180deg); color: var(--primary); }

/* Footer */
.footer { background: #0b1120; color: var(--gray-300); padding: 100px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 80px; }
.footer-logo { font-size: 32px; font-weight: 800; color: var(--white); margin-bottom: 24px; display: inline-flex; align-items: center; gap: 8px; }
.footer-logo svg { color: var(--primary); }
.footer-desc { margin-bottom: 30px; line-height: 1.9; font-size: 16px; padding-left: 40px;}
.footer-links h4 { color: var(--white); font-size: 20px; margin-bottom: 24px; font-weight: 700; }
.footer-links ul li { margin-bottom: 16px; }
.footer-links ul li a { transition: var(--transition); color: #94a3b8; font-weight: 500; }
.footer-links ul li a:hover { color: var(--primary); padding-right: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; text-align: center; font-size: 15px; display: flex; justify-content: space-between; align-items: center;}

/* Responsive */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 44px; }
    .hero-actions { justify-content: center; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; gap: 40px; }
    .pricing-card.popular { transform: none; }
    .steps-wrapper::before { display: none; }
    .steps-wrapper { flex-direction: column; gap: 30px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 50px;}
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 20px; }
}

@media (max-width: 768px) {
    .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 30px; gap: 20px; border-bottom: 1px solid var(--gray-100); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: var(--transition); }
    .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
    .header-actions { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; gap: 40px; }
    .stat-item h3 { font-size: 42px; }
    .hero { padding: 140px 0 80px; }
}
