:root {
  --bg: #f7f9fc;
  --dark: #0f172a;
  --muted: #64748b;
  --primary: #175cff;
  --primary-dark: #0b3eb8;
  --accent: #18b7a6;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
}
body.lang-ar { font-family: 'Cairo', Arial, sans-serif; direction: rtl; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand strong { display: block; font-size: 16px; }
.brand span { display: block; font-size: 12px; color: var(--muted); }
.logo-placeholder {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--white); font-size: 11px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; color: #334155; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle, .menu-toggle {
  border: 1px solid var(--border); background: var(--white); border-radius: 999px;
  padding: 9px 14px; cursor: pointer; font-weight: 700;
}
.menu-toggle { display: none; font-size: 20px; padding: 6px 12px; }

.hero { padding: 92px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--primary); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; margin: 0 0 12px; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; margin: 0 0 22px; letter-spacing: -0.04em; }
body.lang-ar h1 { letter-spacing: 0; line-height: 1.18; }
.hero-text { color: var(--muted); font-size: 18px; max-width: 620px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; padding: 13px 20px; font-weight: 800; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--primary); color: var(--white); box-shadow: 0 14px 32px rgba(23,92,255,.24); }
.btn.secondary { background: var(--white); border-color: var(--border); color: var(--dark); }
.btn.light { background: var(--white); color: var(--primary); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 620px; }
.stats-row div { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.stats-row strong { display: block; font-size: 20px; }
.stats-row span { color: var(--muted); font-size: 13px; }

.hero-visual { position: relative; min-height: 440px; }
.visual-card {
  background: linear-gradient(180deg, #fff, #eef5ff);
  border: 1px solid rgba(226,232,240,.9); border-radius: 34px; box-shadow: var(--shadow);
}
.big-card { height: 390px; padding: 28px; position: relative; overflow: hidden; }
.big-card:before {
  content: ""; position: absolute; inset: -70px -90px auto auto; width: 260px; height: 260px;
  background: rgba(24,183,166,.18); border-radius: 50%;
}
.mini-header { height: 38px; width: 70%; border-radius: 14px; background: #dfe9ff; margin-bottom: 26px; }
.dashboard-lines span { display: block; height: 18px; border-radius: 99px; background: #e2e8f0; margin: 13px 0; }
.dashboard-lines span:nth-child(1) { width: 88%; }
.dashboard-lines span:nth-child(2) { width: 62%; }
.dashboard-lines span:nth-child(3) { width: 74%; }
.pulse-circle {
  width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--white); font-size: 42px; margin: 38px auto 20px;
  box-shadow: 0 0 0 18px rgba(23,92,255,.10);
}
.big-card p { text-align: center; color: var(--muted); font-weight: 700; }
.floating-card {
  position: absolute; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow);
  border-radius: 18px; padding: 14px 20px; font-weight: 900; color: var(--primary);
}
.card-one { top: 36px; right: -8px; }
.card-two { bottom: 72px; left: -18px; color: var(--accent); }
.card-three { bottom: 12px; right: 56px; color: var(--primary-dark); }

.section { padding: 78px 0; }
.clients-strip { padding: 26px 0; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: center; color: var(--muted); }
.strip-grid strong { color: var(--dark); }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 44px; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.03em; }
body.lang-ar h2 { letter-spacing: 0; line-height: 1.25; }
.section-heading p:last-child, .split-grid p, .about-grid p, .contact p { color: var(--muted); }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: 26px; padding: 26px; box-shadow: 0 12px 30px rgba(15,23,42,.05); }
.icon { width: 50px; height: 50px; display: grid; place-items: center; background: #eef5ff; border-radius: 16px; font-size: 22px; margin-bottom: 18px; }
.service-card h3 { margin: 0 0 12px; line-height: 1.25; }
.service-card p { color: var(--muted); margin: 0; font-size: 14px; }
.highlight { background: var(--dark); color: var(--white); }
.highlight .eyebrow { color: #7dd3fc; }
.highlight p { color: #cbd5e1; }
.split-grid, .about-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.check-list { padding: 0; margin: 26px 0 0; list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; }
body.lang-ar .check-list li { padding-left: 0; padding-right: 30px; }
.check-list li:before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
body.lang-ar .check-list li:before { left: auto; right: 0; }
.image-placeholder {
  min-height: 340px; border-radius: 32px; border: 2px dashed rgba(148,163,184,.55);
  display: grid; place-items: center; text-align: center; color: #94a3b8;
  background: rgba(255,255,255,.05); padding: 28px; font-weight: 800;
}
.about-grid .image-placeholder { background: #eef5ff; color: var(--muted); }
.image-placeholder.tall { min-height: 430px; }
.cta-section { padding: 40px 0; }
.cta-box {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: var(--white); border-radius: 32px; padding: 38px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: var(--shadow);
}
.cta-box h2 { margin-bottom: 10px; }
.cta-box p { margin: 0; color: rgba(255,255,255,.82); }
.contact-info { display: grid; gap: 10px; margin-top: 24px; }
.contact-info a { color: var(--primary); font-weight: 800; }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); }
.contact-form label { display: block; font-weight: 800; margin: 14px 0 7px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; font: inherit; background: #f8fafc;
}
.contact-form button { margin-top: 18px; width: 100%; }
.site-footer { background: #0b1222; color: var(--white); padding: 28px 0; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-grid p { color: #94a3b8; margin: 4px 0 0; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 78px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero-grid, .split-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .cta-box, .footer-grid { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 24px, 1120px); }
  .hero { padding: 52px 0; }
  .brand span { display: none; }
  .stats-row, .cards-grid, .strip-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .big-card { height: 330px; }
  .floating-card { display: none; }
}


/* Fixed image integration */
.site-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 14px;
  background: #111827;
  padding: 4px;
}

.hero-visual {
  position: relative;
  min-height: auto;
}

.hero-dashboard-image {
  width: 100%;
  display: block;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.image-box {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.22);
  background: #ffffff;
}

.image-box img {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
}

.contact-center-image {
  height: 380px;
}

.office-image {
  height: 430px;
}

body.lang-ar .brand { flex-direction: row-reverse; }
body.lang-ar .nav-wrap { direction: rtl; }
body.lang-ar .hero-content, body.lang-ar .section-heading, body.lang-ar .contact-grid, body.lang-ar .about-grid, body.lang-ar .split-grid { direction: rtl; }

@media (max-width: 900px) {
  .contact-center-image,
  .office-image { height: auto; }
  .site-logo { width: 50px; height: 50px; }
}
