:root {
    --primary: #1E40AF; /* Navy Blue 800 (from Flutter) */
    --primary-dark: #0F172A; /* Slate 900 */
    --accent: #F59E0B; /* Amber 500 (from Flutter) */
    --accent-light: #FBBF24;
    --accent-dark: #D97706;
    --bg-light: #FAFAFA;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --white: #FFFFFF;
    --radius-l: 16px;
    --radius-xl: 24px;
    --shadow-soft: 0 10px 40px -10px rgba(30, 64, 175, 0.15);
}

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

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

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

h1 { font-size: 3rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 3rem; text-align: center; }
p { color: var(--text-secondary); margin-bottom: 1rem; }

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-right: 1rem;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Header */
header {
    padding: 1.5rem 0;
    position: absolute;
    width: 100%;
    z-index: 10;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.9); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero p { color: rgba(255,255,255,0.8); font-size: 1.25rem; max-width: 600px; margin-bottom: 2.5rem; }
.hero h1 { color: var(--white); }

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text { flex: 1; }
.hero-image { flex: 1; position: relative; }

.mockup-container {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.mockup-container img {
    width: 100%;
    border-radius: var(--radius-l);
    display: block;
}

/* Features Section */
.features { padding: 6rem 0; background: var(--white); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-l);
    transition: transform 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    border-color: rgba(30, 64, 175, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 1.5rem;
}

.feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }

/* Screenshots Carousel */
.screenshots { padding: 6rem 0; background: var(--bg-light); overflow: hidden; }

.swiper-container {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.swiper-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.swiper-wrapper::-webkit-scrollbar { display: none; }

.swiper-slide {
    flex: 0 0 300px;
    scroll-snap-align: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.swiper-slide:hover { transform: scale(1.02); }
.swiper-slide img { width: 100%; display: block; }

/* CTA Section */
.cta {
    background: var(--primary-dark);
    padding: 5rem 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta h2 { color: var(--white); margin-bottom: 1.5rem; }
.cta p { color: rgba(255,255,255,0.7); margin-bottom: 2.5rem; font-size: 1.1rem; }

/* Footer */
footer {
    background: #0B1120;
    color: #94A3B8;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #1E293B;
}

.footer-col h4 { color: var(--white); margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col a { color: #94A3B8; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

.copyright { text-align: center; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    .hero-content { flex-direction: column; text-align: center; gap: 3rem; }
    .hero p { margin: 0 auto 2rem; }
    .btn-secondary { margin: 0 0 1rem 0; display: block; width: 100%; margin-right: 0;}
    .btn-primary { width: 100%; }
    .mockup-container { transform: none; width: 80%; margin: 0 auto; }
}
