@import url('/fonts/google/gfonts-9.css');

:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(255, 255, 255, 0.3);
    --accent: #0ea5e9;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    background: var(--bg-gradient);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
}

/* Glassmorphism Utility */
.glass-card {
    background: var(--white-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #4338ca;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4338ca;
}

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

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid #6366f1;
    color: #6366f1;
}

.btn-outline:hover {
    background: #6366f1;
    color: white;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 10%;
    min-height: 85vh;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.1));
    animation: float 6s ease-in-out infinite;
}

/* Features */
.features {
    padding: 8rem 10%;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    padding: 3rem 2rem;
    border-radius: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: white;
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.1), 0 18px 36px -18px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

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

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Stats Section */
.stats {
    padding: 4rem 10%;
    background: #1e1b4b;
    color: white;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Plans */
.plans {
    padding: 8rem 10%;
    background: #fcfcfc;
    text-align: center;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.plan-card {
    padding: 4rem 3rem;
    border-radius: 40px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s;
    background: white;
}

.plan-card.featured {
    background: #1e1b4b;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 40px 80px -20px rgba(30, 27, 75, 0.4);
}

.plan-card.featured .plan-name,
.plan-card.featured .plan-duration {
    color: rgba(255,255,255,0.7);
}

.plan-card.featured .plan-price {
    color: white;
}

.plan-price {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 500;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 3rem 0;
    text-align: right;
}

.plan-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px border rgba(0,0,0,0.05);
}

.plan-card.featured .plan-features li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.plan-features li i {
    color: #22c55e;
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    padding: 6rem 10% 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    opacity: 0.6;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.6;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    padding-right: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.4;
    font-size: 0.9rem;
}

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

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 3rem;
    }
    
    .hero h1 { font-size: 3rem; }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .navbar { padding: 1rem 5%; }
    .hero { padding: 3rem 5%; }
    .features { padding: 4rem 5%; }
    .footer-grid { grid-template-columns: 1fr; }
}
