:root {
    /* Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --dark-gradient: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%);
    --accent-blue: #4f46e5;
    
    /* Light Mode (Default) */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.95);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --calc-track: #e2e8f0;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-header: rgba(15, 23, 42, 0.95);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --calc-track: #334155;
    --dark-gradient: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Heebo', sans-serif;
    direction: rtl;
    text-align: right;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.nav { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 1.5rem; font-weight: 800; background: var(--primary-gradient); -webkit-background-clip: text; color: transparent; text-decoration: none; }
.nav-menu { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-link { text-decoration: none; color: var(--text-main); font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--accent-blue); }

.status-badge {
    font-size: 0.8rem; background: rgba(16, 185, 129, 0.1); color: #10b981;
    padding: 4px 10px; border-radius: 20px; display: flex; align-items: center; gap: 6px; font-weight: 600;
}
.status-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: pulse 2s infinite; }

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: var(--dark-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.hero p { font-size: 1.25rem; color: #cbd5e1; max-width: 600px; margin: 0 auto 3rem; }
.btn-primary {
    background: var(--primary-gradient); color: white; padding: 12px 32px; border-radius: 50px;
    text-decoration: none; font-weight: 700; display: inline-block; transition: transform 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3); }

/* --- CALCULATOR SECTION (NEW) --- */
.calc-section { margin-top: -60px; position: relative; z-index: 10; margin-bottom: 4rem; }
.calc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.range-group { margin-bottom: 2rem; }
.range-header { display: flex; justify-content: space-between; margin-bottom: 1rem; font-weight: 600; }
.range-value { color: var(--accent-blue); font-weight: 800; font-size: 1.2rem; }

input[type=range] {
    width: 100%; height: 6px; background: var(--calc-track); border-radius: 5px; outline: none; -webkit-appearance: none;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 24px; height: 24px; background: var(--accent-blue); border-radius: 50%; cursor: pointer; border: 3px solid white; box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.price-display {
    text-align: center; padding: 2rem; background: var(--bg-body); border-radius: 16px; border: 1px solid var(--border-color);
}
.price-tag { font-size: 3rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.price-sub { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Partners Marquee */
.partners-scroll {
    overflow: hidden; padding: 2rem 0; background: var(--bg-body); border-bottom: 1px solid var(--border-color);
}
.partners-track { display: flex; gap: 4rem; width: max-content; animation: scroll 30s linear infinite; }
.partner-logo { font-size: 1.5rem; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: 10px; filter: grayscale(100%); opacity: 0.7; }

/* Bento Grid */
.bento-section { padding: 4rem 0; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.bento-card {
    background: var(--bg-card); padding: 2rem; border-radius: 20px; border: 1px solid var(--border-color); transition: 0.3s;
}
.bento-card:hover { border-color: var(--accent-blue); transform: translateY(-5px); }
.bento-large { grid-column: span 2; background: linear-gradient(135deg, var(--bg-card), var(--bg-body)); }

/* Mobile & Tablet Optimizations */
@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .calc-card { gap: 2rem; padding: 2rem; }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-header);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 999;
        transition: all 0.3s ease-in-out;
    }
    
    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .burger-menu {
        display: block !important;
        font-size: 1.8rem;
        cursor: pointer;
        order: 3;
    }

    .logo { font-size: 1.3rem; }
    
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }

    .calc-section { margin-top: 0; padding: 2rem 0; }
    .calc-card { grid-template-columns: 1fr; border-radius: 0; border-left: none; border-right: none; }
    
    .bento-grid { grid-template-columns: 1fr; gap: 1rem; }
    .bento-large { grid-column: auto; }

    .feature-grid { grid-template-columns: 1fr; }
    
    /* Table Responsiveness */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Sticky first column for tables on mobile */
    table td:first-child, table th:first-child {
        position: sticky;
        left: 0;
        background: var(--bg-card);
        z-index: 2;
        border-left: 2px solid var(--border-color);
    }

    .industry-section, .industry-section.reverse {
        flex-direction: column !important;
        gap: 2rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .industry-visual { width: 100%; min-height: 200px; }
    
    .footer { text-align: center; }
    .footer .container { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .btn-primary { width: 100%; text-align: center; }
    .price-tag { font-size: 2.5rem; }
    
    .status-badge { display: none; } /* Hide on very small screens to save space */
    
    .job-header { flex-direction: column; align-items: flex-start; }
    .job-title { font-size: 1.2rem; }
    
    .project-stats { flex-direction: column; gap: 0.5rem; }
}

/* Base Utility for touch targets */
button, .btn-primary, .nav-link, input[type=range] {
    min-height: 44px;
}

/* Animations */
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }