:root {
    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --secondary-color: #0ea5e9;
    --surface-color: #ffffff;
    --background-color: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Cairo', 'Outfit', sans-serif;
    background-color: var(--background-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.text-gradient {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.navbar-scrolled {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bs-primary) 100%);
}
.btn-outline-primary {
    border: 2px solid var(--bs-primary);
    color: var(--bs-primary);
}
.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}
.app-button:hover {
    transform: scale(1.03) translateY(-3px);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    background: var(--background-color);
    overflow: hidden;
    z-index: 1;
}
.hero-bg-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s ease-in-out infinite;
}
.hero-bg-shape-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40%;
    height: 50%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 8s ease-in-out infinite reverse;
}
.hero-content { z-index: 2; position: relative; }

/* Bento Grid Features Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.bento-card {
    background: var(--surface-color);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(79,70,229,0.03) 0%, transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    border-color: rgba(79, 70, 229, 0.3);
}
.bento-card:hover::before { opacity: 1; }
.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--bs-primary);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
}

/* UI Showcase Windows (Glassmorphism + Modern shadow) */
.ui-window {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.ui-window:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.15);
}
.window-header {
    display: flex;
    gap: 8px;
    padding: 0.5rem 0.75rem 1rem;
}
.window-dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.dot-r { background-color: #ff5f56; }
.dot-y { background-color: #ffbd2e; }
.dot-g { background-color: #27c93f; }
.ui-window img {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
}
.tour-icon-box {
    display: inline-flex;
    padding: 1rem;
    border-radius: 18px;
    background: var(--surface-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}
/* Central Showcase Design */
.central-showcase-container {
    position: relative;
    z-index: 1;
}
.showcase-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 20px;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.showcase-item:hover {
    background: rgba(var(--bs-primary-rgb), 0.03);
}
.showcase-item.active {
    background: #fff;
    border-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transform: translateX(5px);
}
[dir="rtl"] .showcase-item.active {
    transform: translateX(-5px);
}
.showcase-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: #f8fafc;
    color: var(--bs-primary);
    transition: all 0.3s ease;
}
.showcase-item.active .showcase-icon {
    background: var(--bs-primary);
    color: #fff;
    transform: scale(1.1);
}

.browser-mockup {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}
.browser-header {
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.browser-header .dots {
    display: flex;
    gap: 6px;
}
.browser-header .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dots .r { background: #ff5f56; }
.dots .y { background: #ffbd2e; }
.dots .g { background: #27c93f; }

.browser-url {
    flex-grow: 1;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    background: #fff;
    margin: 0 1rem;
    padding: 0.25rem 0;
    border-radius: 6px;
}

.browser-body {
    position: relative;
    background: #f8fafc;
}
.showcase-fade-in {
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.fade-out {
    opacity: 0;
    transform: scale(0.98);
}

@media (max-width: 991px) {
    .showcase-item {
        margin-bottom: 1rem;
    }
}

/* Pricing Cards */
.pricing-wrapper {
    position: relative;
}
.pricing-card {
    background: var(--surface-color);
    border-radius: 32px;
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    height: 100%;
}
.pricing-card:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.pricing-card.popular {
    border: 2px solid var(--bs-primary);
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.25);
    z-index: 2;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
}
.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--bs-primary), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}
.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 1.5rem 0;
    letter-spacing: -2px;
}
.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0;
}
.pricing-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-weight: 500;
}
.pricing-list li:last-child { border-bottom: none; }
.pricing-list i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-inline-end: 12px;
    font-size: 0.8rem;
}
.pricing-list i.fa-check {
    background: rgba(39, 201, 63, 0.1);
    color: #27c93f;
}
.pricing-list i.fa-times {
    background: rgba(255, 95, 86, 0.1);
    color: #ff5f56;
}

/* Download Section (Mobile App) */
.mobile-mockup {
    border: 14px solid #0f172a;
    border-radius: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    background: #fff;
    max-width: 280px;
    margin: 0 auto;
}
.mobile-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background-color: #0f172a;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    z-index: 10;
}

/* Specific elements */
.badge-custom {
    background: rgba(79, 70, 229, 0.1);
    color: var(--bs-primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@media (max-width: 991px) {
    .pricing-card.popular {
        transform: scale(1);
    }
}
