/* CSS Variables - Ultra-Premium Dark Theme */
:root {
    --bg-color: #050810; /* Deeper Midnight */
    --surface-color: rgba(17, 24, 39, 0.4); /* Glass Navy */
    --card-color: rgba(17, 24, 39, 0.6);
    --border-color: rgba(255, 255, 255, 0.05);
    
    --accent-primary: #C9933A; /* Gold */
    --accent-secondary: #E8B86D; /* Gold Light */
    --accent-glow: rgba(201, 147, 58, 0.15);
    --cyan-glow: rgba(0, 212, 255, 0.03); /* Subtle depth */
    
    --text-primary: #F9FAFB; /* Pure Ivory */
    --text-secondary: #9CA3AF; /* Slate */
    
    --font-en: 'Inter', sans-serif;
    --font-heading: 'Cormorant Garamond', serif;
    --font-mono: 'DM Mono', monospace;
    --font-ar: 'Tajawal', sans-serif;
}

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

/* Hide default cursor to use custom cursor only on desktop devices */
@media (pointer: fine) {
    * {
    }
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent-primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(201, 147, 58, 0.5);
    background: rgba(201, 147, 58, 0.05);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, transform 0.1s linear, background-color 0.2s, border-radius 0.2s;
    /* Removed backdrop-filter to prevent massive scroll lag */
}

.cursor-outline.magnetic-active {
    border-radius: 8px;
    background: rgba(201, 147, 58, 0.15);
    border-color: var(--accent-primary);
    transition: width 0.3s, height 0.3s, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 50%, var(--cyan-glow), transparent 25%),
        radial-gradient(circle at 85% 30%, var(--accent-glow), transparent 25%);
    color: var(--text-primary);
    font-family: var(--font-en);
    line-height: 1.6;
    overflow-x: hidden;
}

body[dir="rtl"] {
    font-family: var(--font-ar);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.dark-bg {
    background-color: rgba(5, 8, 16, 0.8);
    border-top: 1px solid var(--border-color);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 600;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(to right, #FFF, #9CA3AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 64px auto;
    font-size: 1.15rem;
}

.badge, .popular-badge, .price .currency {
    font-family: var(--font-mono);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), #FFF);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-primary) 100%);
    background-size: 200% auto;
    color: var(--bg-color);
    box-shadow: 0 8px 24px rgba(201, 147, 58, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(201, 147, 58, 0.4);
}

@keyframes shine {
    to { background-position: 200% center; }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(201, 147, 58, 0.1);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #1DA851);
    color: #fff;
    gap: 12px;
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

.full-width {
    width: 100%;
    margin-top: auto;
}

/* Navbar - Ultra Glass */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    z-index: 1000;
    background: rgba(5, 8, 16, 0.6);
    -webkit-
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(201, 147, 58, 0.2);
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--accent-primary);
    opacity: 1;
    text-shadow: 0 0 15px rgba(201, 147, 58, 0.4);
}

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

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(201, 147, 58, 0.05);
}

body[dir="rtl"] .lang-btn {
    font-family: 'Inter', sans-serif;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 8, 16, 0.95);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 24px 64px;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(201,147,58,0.15) 0%, rgba(5,8,16,0) 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.hero h1 {
    font-size: 5rem;
    max-width: 900px;
    margin: 0 auto 24px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 48px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* System Grid (Glass Cards with Tracers) */
@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

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

.system-card, .pricing-card, .niche-card {
    position: relative;
    background: var(--card-color);
    border: 1px solid transparent; /* Hide solid border to show tracer */
    border-radius: 20px;
    padding: 40px 32px;
    -webkit-
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    background-clip: padding-box;
}





@keyframes rotateTracer {
    to { --angle: 360deg; }
}

.system-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201, 147, 58, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(201, 147, 58, 0.1);
}

.system-card .icon {
    margin-bottom: 24px;
}

.system-card .icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(201,147,58,0.3));
}

.system-card h3 {
    font-size: 1.8rem;
}

.system-card p {
    color: var(--text-secondary);
}

/* Niches Section (Asymmetrical feel) */
.niche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.niche-card {
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0; /* Reset padding for image cards */
}

.niche-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 30px rgba(201, 147, 58, 0.1);
    border-color: rgba(201, 147, 58, 0.3);
}

.niche-image {
    height: 240px;
    position: relative;
}

.niche-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.niche-card:hover .niche-image img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(5, 8, 16, 0.7);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.15);
}

body[dir="rtl"] .badge {
    left: auto;
    right: 20px;
}

.niche-content {
    padding: 36px;
}

.niche-content h3 {
    font-size: 1.6rem;
}

.niche-content p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.niche-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.niche-link:hover {
    gap: 14px;
    text-shadow: 0 0 10px rgba(201, 147, 58, 0.5);
}

/* Results Section */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.result-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.4s ease;
}

.result-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 0 20px rgba(201,147,58,0.05);
}

.result-number {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-card h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.result-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
}

.about-team {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

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

.team-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
}

.team-member:hover .team-img {
    border-color: var(--accent-primary);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(201,147,58,0.15);
}

.team-member h4 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.team-role {
    color: var(--accent-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Pricing Tabs */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.pricing-tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Tajawal', sans-serif;
}

.pricing-tab-btn:hover {
    border-color: rgba(201, 147, 58, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.pricing-tab-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #111;
    border-color: var(--accent-primary);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(201, 147, 58, 0.3);
}

/* Pricing Grid */
.pricing-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.pricing-grid.active {
    display: grid;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card {
    background: var(--card-color);
    border-radius: 24px;
    padding: 48px 32px;
    -webkit-
    display: flex;
    flex-direction: column;
    min-height: 520px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.pricing-card.featured {
    background: linear-gradient(180deg, var(--surface-color) 0%, rgba(201,147,58,0.08) 100%);
    border-color: rgba(201, 147, 58, 0.4);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), inset 0 0 30px rgba(201,147,58,0.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 0 30px rgba(201,147,58,0.1);
    border-color: var(--accent-primary);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #111;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(201, 147, 58, 0.3);
}

.pricing-card h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.currency {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.period {
    color: var(--text-secondary);
    margin-left: 6px;
}

body[dir="rtl"] .period {
    margin-left: 0;
    margin-right: 6px;
}

.setup-fee {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.features {
    list-style: none;
    margin-bottom: 48px;
}

.features li {
    margin-bottom: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    font-size: 1.05rem;
}

.features li::before {
    content: "✓";
    color: var(--accent-primary);
    margin-right: 14px;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(201,147,58,0.4);
}

body[dir="rtl"] .features li::before {
    margin-right: 0;
    margin-left: 14px;
}

/* Contact Section */
.contact-box {
    background: linear-gradient(135deg, rgba(17,24,39,0.8), rgba(201,147,58,0.08));
    border: 1px solid rgba(201,147,58,0.2);
    border-radius: 32px;
    padding: 80px 48px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 0 40px rgba(201,147,58,0.05);
}

.contact-box h2 {
    font-size: 3.2rem;
}

.contact-box p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

/* Footer */
footer {
    padding: 80px 24px 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #03050a;
}

footer .logo {
    margin-bottom: 20px;
}

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

footer .copyright {
    margin-top: 48px;
    font-size: 0.95rem;
    opacity: 0.4;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Cinematic Text Reveal */
.split-text-span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(-20deg);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-text-span.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 4rem; }
    .pricing-card.featured { transform: none; z-index: 1; }
    .pricing-card.featured:hover { transform: translateY(-5px); }
    .section-title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 16px 24px; }
    .nav-links, .nav-actions .btn-primary { display: none; }
    .hamburger { display: flex; }
    
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }
    
    .section-title { font-size: 2.4rem; }
    .contact-box h2 { font-size: 2.2rem; }
    .contact-box { padding: 48px 24px; border-radius: 20px; }

    /* Contact form stacks on mobile */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .contact-grid > div:last-child {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 32px;
    }

    /* Footer stacks on mobile */
    footer .container > div:first-child {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px !important;
    }
    footer .container > div:first-child > div {
        align-items: center;
    }
    footer .container > div:first-child > div > div[style*="display: flex; gap: 16px"] {
        justify-content: center;
    }
}

/* Currency Toggle */
.currency-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.currency-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.currency-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: .4s;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background-color: var(--accent-primary);
    transition: .4s;
    box-shadow: 0 0 10px rgba(201, 147, 58, 0.5);
}

.toggle-switch input:checked + .slider {
    background-color: rgba(201, 147, 58, 0.2);
    border-color: var(--accent-primary);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(26px);
}

.toggle-switch .slider.round {
    border-radius: 34px;
}

.toggle-switch .slider.round:before {
    border-radius: 50%;
}
