/* ── RESET & ROOT ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f8fafc;
    --bg2: #f1f5f9;
    --card: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --accent: #2563eb;
    --accent2: #0ea5e9;
    --gold: #f59e0b;
    --text: #0f172a;
    --muted: #475569;
    --radius: 14px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.10);
    --chat-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 68px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
}
.nav-logo img {
    height: 32px;
    width: auto;
}
.nav-logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.nav-logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color .2s;
}
.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.nav-cta:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

/* ── HERO ── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 60px;
    overflow: hidden;
    background: var(--bg);
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0.10;
}
.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-video-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.20);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}
.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent2);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.4); }
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: var(--text);
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1rem;
    color: var(--muted);
    max-width: 480px;
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.30);
    transition: transform .2s, box-shadow .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.45);
}

.btn-outline {
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--text);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    transition: border-color .2s, background .2s, transform .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.06);
    transform: translateY(-2px);
}

/* ── DASHBOARD ── */
.dashboard {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.06);
    transition: box-shadow .3s;
}
.dashboard:hover {
    box-shadow: 0 48px 96px rgba(0, 0, 0, 0.10);
}

.dash-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    align-items: center;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-r { background: #f87171; }
.dot-y { background: #fbbf24; }
.dot-g { background: #34d399; }
.dash-title {
    font-size: 0.7rem;
    color: var(--muted);
    margin-left: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dash-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    padding: 12px;
    transition: border-color .2s, background .2s;
}
.dash-card:hover {
    border-color: rgba(37, 99, 235, 0.15);
    background: rgba(37, 99, 235, 0.02);
}

.dash-label {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}
.dash-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}
.dash-delta {
    font-size: 0.65rem;
    color: #22c55e;
    font-weight: 600;
}
.dash-delta.down {
    color: #ef4444;
}

.sparkline {
    margin-top: 6px;
    height: 28px;
}
.spark-bar {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 100%;
}
.spark-bar span {
    flex: 1;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    opacity: .6;
    transition: opacity .3s;
    min-height: 4px;
}
.spark-bar span:hover {
    opacity: 1;
}

.ai-card {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(14, 165, 233, 0.04));
    border-color: rgba(37, 99, 235, 0.10);
}
.ai-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1rem;
    animation: glow 3s ease-in-out infinite alternate;
}
@keyframes glow {
    from { box-shadow: 0 0 8px rgba(37, 99, 235, .3); }
    to { box-shadow: 0 0 28px rgba(14, 165, 233, .5); }
}
.ai-info {
    flex: 1;
}
.ai-status {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ai-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
.ai-status-text {
    font-size: .75rem;
    font-weight: 700;
    color: #22c55e;
}
.ai-info .dash-label {
    margin-bottom: 0;
}

.mini-chart {
    grid-column: span 2;
}
.line-chart {
    height: 36px;
}
.line-chart svg {
    width: 100%;
    height: 100%;
}

/* ── TRUST BAR ── */
#trust {
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 5%;
}
.trust-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}
.trust-stat {
    text-align: center;
}
.trust-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}
.trust-desc {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 2px;
    font-weight: 500;
}
.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}
.trust-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.trust-tag {
    border: 1px solid var(--border);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--muted);
    background: var(--bg);
    font-weight: 500;
}

/* ── CLIENT LOGOS ── */
#clients {
    background: var(--bg2);
    padding: 2.5rem 5%;
    border-bottom: 1px solid var(--border);
}
.clients-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.clients-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
}
.client-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.85rem;
    opacity: 0.6;
    transition: opacity .3s, transform .2s;
    cursor: default;
}
.client-logo svg {
    width: 22px;
    height: 22px;
    color: var(--accent2);
}
.client-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* ── WHY CHOOSE ── */
#why-choose {
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-top: 2.5rem;
}
.why-choose-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.2rem;
    text-align: center;
    transition: border-color .3s, transform .3s, box-shadow .3s;
    box-shadow: var(--shadow);
}
.why-choose-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.why-choose-card .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}
.why-choose-card h4 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}
.why-choose-card p {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ── TECH STACK ── */
#tech-stack {
    background: var(--bg2);
}
.tech-stack-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem 2.5rem;
    margin-top: 2rem;
}
.tech-stack-grid img {
    height: 36px;
    width: auto;
    opacity: 0.5;
    transition: opacity .3s, transform .2s;
    filter: grayscale(100%);
}
.tech-stack-grid img:hover {
    opacity: 1;
    transform: translateY(-3px);
    filter: grayscale(0);
}

/* ── MAP SECTION ── */
#map-section {
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.map-container {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.map-container svg {
    max-width: 100%;
    height: auto;
    max-height: 250px;
}
.map-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    justify-content: center;
}
.map-cities span {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    transition: border-color .2s, color .2s;
}
.map-cities span:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* ── FLOW ── */
#flow {
    background: var(--bg2);
}
.flow-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 2.5rem;
    position: relative;
}
.flow-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    opacity: 0.15;
    transform: translateX(-50%);
}
.flow-node {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem 1.5rem;
    width: 320px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease, border-color .3s, box-shadow .3s;
    box-shadow: var(--shadow);
    z-index: 1;
}
.flow-node.visible {
    opacity: 1;
    transform: translateY(0);
}
.flow-node:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}
.flow-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}
.flow-icon svg {
    width: 20px;
    height: 20px;
}
.flow-label {
    font-weight: 700;
    font-size: 0.9rem;
}
.flow-desc {
    font-size: 0.75rem;
    color: var(--muted);
}
.flow-arrow {
    font-size: 1.1rem;
    color: var(--accent2);
    margin: 2px 0;
    animation: bounce 1.8s ease-in-out infinite;
    z-index: 1;
    opacity: 0.5;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ── SOLUTIONS ── */
#solutions {
    background: var(--bg);
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 2.5rem;
}
.sol-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color .3s, transform .3s, box-shadow .3s;
    box-shadow: var(--shadow);
}
.sol-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(14, 165, 233, 0.02));
    opacity: 0;
    transition: opacity .3s;
}
.sol-card:hover::before {
    opacity: 1;
}
.sol-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.sol-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    margin-bottom: 0.6rem;
}
.sol-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}
.sol-desc {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}
.sol-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1.2rem;
    color: var(--accent);
    opacity: 0;
    transition: opacity .3s, transform .3s;
    font-size: 1rem;
}
.sol-card:hover .sol-arrow {
    opacity: 1;
    transform: translateX(-4px);
}

/* ── INDUSTRIES ── */
#industries {
    background: var(--bg2);
}
.industries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
    justify-content: center;
}
.ind-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
    cursor: default;
    box-shadow: var(--shadow);
}
.ind-pill:hover {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.04);
    transform: scale(1.04);
    box-shadow: var(--shadow-hover);
}
.ind-pill svg {
    width: 16px;
    height: 16px;
    color: var(--accent2);
}

/* ── PROJECTS ── */
#projects {
    background: var(--bg);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.proj-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.proj-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}
.proj-thumb {
    height: 160px;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.proj-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.proj-body {
    padding: 1rem;
}
.proj-industry {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent2);
    margin-bottom: 2px;
}
.proj-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.proj-kv {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.proj-row {
    display: flex;
    gap: 6px;
    font-size: 0.75rem;
}
.proj-key {
    color: var(--muted);
    min-width: 70px;
    font-weight: 500;
}
.proj-val {
    color: var(--text);
}
.proj-impact {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.20);
    color: #16a34a;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 8px;
}
.proj-impact svg {
    width: 13px;
    height: 13px;
}

/* ── WHY US ── */
#why {
    background: var(--bg2);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-top: 2.5rem;
}
.why-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    text-align: center;
    transition: border-color .3s, transform .3s, box-shadow .3s;
    box-shadow: var(--shadow);
}
.why-card:hover {
    border-color: var(--accent2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.why-card .icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: block;
}
.why-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}
.why-desc {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ── TIMELINE ── */
#journey {
    background: var(--bg);
}
.timeline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 2.5rem;
    align-items: center;
}
.tl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}
.tl-dot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: border-color .3s, transform .3s, box-shadow .3s;
    box-shadow: var(--shadow);
}
.tl-step:hover .tl-dot {
    border-color: var(--accent);
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}
.tl-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    text-align: center;
    transition: color .3s;
}
.tl-step:hover .tl-label {
    color: var(--text);
}
.tl-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    margin-bottom: 24px;
    flex-shrink: 0;
    opacity: 0.3;
}

/* ── CTA ── */
#cta {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 70px 5%;
}
.cta-inner {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}
.cta-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 0.8rem;
}
.cta-sub {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.cta-contacts {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s, transform .2s, box-shadow .2s;
    box-shadow: var(--shadow);
}
.cta-contact-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.contact-icon {
    font-size: 1.1rem;
}
.btn-large {
    font-size: 1rem;
    padding: 14px 36px;
}

/* ── FOOTER ── */
footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 2.5rem 5% 1.2rem;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.6rem;
    text-decoration: none;
    color: var(--text);
}
.footer-logo img {
    height: 32px;
    width: auto;
}
.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 800;
}
.footer-logo-text span {
    color: var(--accent);
}
.footer-desc {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 260px;
}
.footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
}
.social-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--muted);
    transition: border-color .2s, color .2s, transform .2s;
    font-weight: 700;
}
.social-btn:hover {
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-2px);
}
.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 0.8rem;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-col ul li a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color .2s;
}
.footer-col ul li a:hover {
    color: var(--text);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--muted);
}

/* ── WHATSAPP FLOAT ── */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.40);
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform .2s, box-shadow .2s;
    color: #fff;
}
.wa-float:hover {
    transform: scale(1.10);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.55);
}

/* ── LIVE AI CHAT ── */
.chat-float {
    position: fixed;
    bottom: 88px;
    right: 24px;
    z-index: 100;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.45);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    border: none;
    color: #fff;
    font-size: 1.4rem;
}
.chat-float:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 48px rgba(37, 99, 235, 0.6);
}
.chat-float .badge-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: pulse 1.5s infinite;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 40px);
    max-height: 500px;
    background: var(--card);
    border-radius: 18px;
    box-shadow: var(--chat-shadow);
    border: 1px solid var(--border);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity .25s ease, transform .25s ease;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}
.chat-window.open {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-header {
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}
.chat-header-info h4 {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0;
}
.chat-header-info span {
    font-size: 0.65rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
}
.chat-header-info span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}
.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity .2s;
    padding: 0 4px;
}
.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 14px 18px;
    overflow-y: auto;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 240px;
    max-height: 280px;
}
.chat-messages .msg {
    max-width: 85%;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    animation: msgFade .3s ease;
    word-wrap: break-word;
}
@keyframes msgFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.msg.bot {
    align-self: flex-start;
    background: var(--card);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    color: var(--text);
    box-shadow: var(--shadow);
}
.msg.user {
    align-self: flex-end;
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.msg .typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}
.msg .typing-dots span {
    width: 7px;
    height: 7px;
    background: var(--muted);
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.4s infinite;
}
.msg .typing-dots span:nth-child(2) { animation-delay: .2s; }
.msg .typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.chat-input-area {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: var(--card);
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-input-area input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color .2s;
    background: var(--bg);
}
.chat-input-area input:focus {
    border-color: var(--accent);
}
.chat-input-area button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .15s;
    font-size: 0.85rem;
}
.chat-input-area button:hover {
    background: #1d4ed8;
}
.chat-input-area button:active {
    transform: scale(0.95);
}

/* ── SECTION SHELL ── */
section {
    padding: 70px 5%;
}
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.section-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--accent);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.section-sub {
    color: var(--muted);
    max-width: 520px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.center {
    text-align: center;
}
.center .section-sub {
    margin: 0 auto;
}

/* ── RTL OVERRIDES ── */
[dir="rtl"] .dash-title {
    margin-left: 0;
    margin-right: 8px;
}
[dir="rtl"] .flow-arrow {
    transform: scaleX(-1);
}
[dir="rtl"] .sol-arrow {
    right: auto;
    left: 1.2rem;
    transform: scaleX(-1);
}
[dir="rtl"] .sol-card:hover .sol-arrow {
    transform: scaleX(-1) translateX(-4px);
}
[dir="rtl"] .chat-float { right: auto; left: 24px; }
[dir="rtl"] .wa-float { right: auto; left: 24px; }
[dir="rtl"] .chat-window { right: auto; left: 24px; }
[dir="rtl"] .lang-btn { font-family: 'Cairo', sans-serif; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .dashboard { display: none; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .flow-wrap::before { display: none; }
    .flow-node { width: 100%; max-width: 320px; }
    .map-container { flex-direction: column; align-items: center; }
    [dir="rtl"] .chat-float { left: 16px; right: auto; }
    [dir="rtl"] .wa-float { left: 16px; right: auto; }
    [dir="rtl"] .chat-window { left: 12px; right: auto; }
}
@media (max-width: 600px) {
    nav .nav-links { display: none; }
    .trust-divider { display: none; }
    .footer-top { grid-template-columns: 1fr; }
    .tl-line { width: 30px; }
    .client-logos { gap: 1rem 1.5rem; }
    .dash-grid { grid-template-columns: 1fr; }
    .ai-card { grid-column: span 1; }
    .mini-chart { grid-column: span 1; }
    .tech-stack-grid img { height: 28px; }
    .chat-window { width: calc(100vw - 24px); right: 12px; bottom: 90px; max-height: 400px; }
    .chat-float { bottom: 76px; right: 12px; width: 48px; height: 48px; font-size: 1.2rem; }
    .wa-float { right: 12px; bottom: 16px; width: 48px; height: 48px; font-size: 1.2rem; }
    [dir="rtl"] .chat-window { right: 12px; left: auto; }
    [dir="rtl"] .chat-float { right: 12px; left: auto; }
    [dir="rtl"] .wa-float { right: 12px; left: auto; }
}