/* CSS Variables for Theming */
:root {
    --bg-color: #0b0f19;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* RTL Support */
html[dir="rtl"] {
    --font-heading: 'Tajawal', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.4;
    animation: drift 20s infinite alternate linear;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    bottom: -20%;
    right: -10%;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Reusable Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

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

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-heading);
    display: flex;
    align-items: baseline;
}

.logo-dot {
    color: var(--accent-purple);
    font-size: 32px;
    line-height: 0;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--glass-bg);
}

.coming-soon-badge {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Add custom layout utilities for RTL */
html[dir="rtl"] .nav-actions { gap: 16px; }

/* Sections Common */
section {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px auto;
}

.section-header h2, .section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 150px;
    gap: 64px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-visual {
    flex: 1;
    position: relative;
    padding: 16px;
    perspective: 1000px;
}

html[dir="rtl"] .hero-visual {
    perspective-origin: right;
}

.mockup-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.floating-badge {
    position: absolute;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: float 4s infinite ease-in-out;
}

.badge-1 {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20%;
    right: -5%;
    border-color: rgba(139, 92, 246, 0.3);
    animation-delay: 2s;
}

html[dir="rtl"] .badge-1 { left: auto; right: -10%; }
html[dir="rtl"] .badge-2 { right: auto; left: -5%; }

/* Concept Section */
.concept-visuals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
}

.concept-box {
    padding: 32px;
    text-align: center;
    min-width: 250px;
}

.concept-box h3 { margin-bottom: 16px; font-size: 1.5rem; }
.concept-box .icon-box { font-size: 3rem; }

.connector {
    display: flex;
    align-items: center;
    width: 100px;
}

.connector .line {
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    flex: 1;
}

.connector .arrow {
    width: 0; 
    height: 0; 
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid var(--accent-purple);
}

html[dir="rtl"] .connector .arrow {
    border-left: none;
    border-right: 10px solid var(--accent-purple);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    padding: 32px 24px;
    transition: var(--transition);
}

.feature-card.hover-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: inline-block;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Journey Section */
.journey {
    display: flex;
    align-items: center;
    gap: 64px;
}

.journey-content { flex: 1; }
.journey-content h2 { font-size: 2.5rem; margin-bottom: 48px; }

.journey-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.step-item h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #fff;
}

.step-item p {
    color: var(--text-secondary);
}

.journey-visual {
    flex: 1;
    padding: 16px;
}

/* B2B Section */
.b2b-container {
    padding: 64px;
    text-align: center;
    background: linear-gradient(180deg, var(--glass-bg), rgba(59, 130, 246, 0.05));
}

.b2b-container h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.b2b-container p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

.b2b-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.b2b-tags span {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.b2b-tags span:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
    border-color: var(--accent-blue);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 64px 24px 24px 24px;
    background: rgba(11, 15, 25, 0.9);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes drift {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(50px) translateX(50px); }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 900px) {
    .hero, .journey {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { margin: 0 auto 32px auto; }
    
    .floating-badge { display: none; } /* Simplify on mobile */
    
    .concept-visuals {
        flex-direction: column;
    }
    
    .connector {
        width: 2px;
        height: 50px;
    }
    
    .connector .line {
        background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
    }
    
    .connector .arrow {
        border-top: 10px solid var(--accent-purple);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: none;
    }

    html[dir="rtl"] .connector .arrow {
        border-top: 10px solid var(--accent-purple);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
    }
    
    .journey-steps {
        align-items: center;
        text-align: left;
    }
    
    html[dir="rtl"] .journey-steps { text-align: right; }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    
    .nav-links { display: none; } /* Simple approach for MVP */
}
