:root {
  --a-light: 108, 126, 224;
  --a-dark: 44, 58, 138;
  --bg: #050912;
  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.12);
  --text: #eef0f8;
  --text-dim: rgba(238,240,248,0.65);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: 'Cairo', sans-serif; }

.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(var(--a-light),0.16) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(var(--a-dark),0.22) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(var(--a-light),0.12) 0%, transparent 45%);
}

header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6%;
  background: rgba(5,9,18,0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration:none; color: var(--text); }
.header-left { display: flex; align-items: center; gap: 14px; }
.logo-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
nav { display: flex; align-items: center; gap: 30px; }
nav a.nav-active { color: rgb(var(--a-light)) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4); text-decoration: none; font-size: 28px;
  transition: transform .2s;
}
html[dir="rtl"] .whatsapp-float { right: auto; left: 24px; }
.whatsapp-float:hover { transform: scale(1.08); }
nav a {
  color: var(--text-dim); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .2s;
}
nav a:hover { color: #fff; }
.btn {
  display: inline-block; padding: 11px 24px; border-radius: 10px;
  font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, rgb(var(--a-light)), rgb(var(--a-dark)));
  color: #fff; box-shadow: 0 8px 24px rgba(var(--a-light),0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(var(--a-light),0.45); }
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); }
.lang-btn {
  background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.header-actions { display: flex; align-items: center; gap: 14px; }

section { position: relative; z-index: 1; padding: 90px 6%; }
.container { max-width: 1180px; margin: 0 auto; }

.hero { text-align: center; padding-top: 120px; padding-bottom: 100px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.15; max-width: 900px; margin: 0 auto 22px; }
.hero h1 span { background: linear-gradient(135deg, rgb(var(--a-light)), #a5b4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; color: var(--text-dim); max-width: 620px; margin: 0 auto 36px; line-height: 1.6; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.section-tag {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: rgba(var(--a-light),0.12); color: rgb(var(--a-light));
  font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.section-title { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; margin-bottom: 14px; }
.section-sub { color: var(--text-dim); font-size: 16px; max-width: 620px; margin-bottom: 50px; line-height: 1.6; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .hamburger { display: flex; }
  nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(5,9,18,0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08); padding: 10px 6%;
  }
  nav.open { display: flex; }
  nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
}
@media (max-width: 600px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 28px 24px; transition: transform .2s, border-color .2s;
  text-decoration: none; color: var(--text); display: block;
}
.card:hover { transform: translateY(-4px); border-color: rgba(var(--a-light),0.4); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(var(--a-light),0.25), rgba(var(--a-dark),0.25));
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }

.steps { display: flex; gap: 20px; }
@media (max-width: 900px) { .steps { flex-direction: column; } }
.step { flex: 1; position: relative; padding-top: 10px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(var(--a-light),0.15); border: 1px solid rgba(var(--a-light),0.4);
  color: rgb(var(--a-light)); font-weight: 800; margin-bottom: 16px;
}
.step h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }

.why-box {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px;
  padding: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
@media (max-width: 700px) { .why-box { grid-template-columns: 1fr; } }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-icon { font-size: 20px; color: rgb(var(--a-light)); margin-top: 2px; }
.why-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.why-item p { font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }

.cta-band {
  text-align: center; border-radius: 24px; padding: 60px 30px;
  background: linear-gradient(135deg, rgba(var(--a-light),0.18), rgba(var(--a-dark),0.28));
  border: 1px solid rgba(var(--a-light),0.3);
}
.cta-band h2 { font-size: clamp(24px,3vw,32px); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); margin-bottom: 28px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info-item .ic {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(var(--a-light),0.14); display: flex; align-items: center; justify-content: center;
}
.contact-info-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.contact-info-item p { font-size: 14px; color: var(--text-dim); }

form { display: flex; flex-direction: column; gap: 14px; }
input, textarea {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 13px 16px; color: var(--text); font-family: inherit; font-size: 14px;
}
input:focus, textarea:focus { outline: none; border-color: rgb(var(--a-light)); }
textarea { resize: vertical; min-height: 110px; }

footer {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 40px 6%;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  position: relative; z-index: 1;
}
footer .logo { font-size: 16px; }
footer p { font-size: 13px; color: var(--text-dim); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: #fff; }

/* Service page specific */
.breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 22px; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

.service-hero { text-align: center; padding-top: 130px; padding-bottom: 50px; }
.service-hero h1 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 800; max-width: 820px; margin: 0 auto 16px; line-height: 1.2; }
.service-hero .lead { font-size: 17px; color: var(--text-dim); max-width: 680px; margin: 0 auto; line-height: 1.75; }

.service-content { max-width: 760px; margin: 0 auto; padding-top: 10px; }
.service-content h2 { font-size: 23px; font-weight: 800; margin: 48px 0 14px; }
.service-content h2:first-child { margin-top: 0; }
.service-content h3 { font-size: 17px; font-weight: 700; margin: 6px 0 10px; color: rgb(var(--a-light)); }
.service-content p { color: var(--text-dim); line-height: 1.85; margin-bottom: 14px; font-size: 15.5px; }
.service-content ul { margin: 0 0 16px; padding-inline-start: 22px; color: var(--text-dim); line-height: 1.95; font-size: 15.5px; }
.service-content li { margin-bottom: 6px; }

.step-block {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 20px 22px; margin-bottom: 14px;
}
.step-block strong { color: #fff; display: block; margin-bottom: 6px; font-size: 15px; }
.step-block p { margin-bottom: 0; }

.demo-cta { text-align: center; margin-top: 56px; }

.related-services { max-width: 900px; margin: 70px auto 0; }
.related-services h3 { font-size: 20px; font-weight: 800; margin-bottom: 20px; text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 800px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px;
  padding: 16px 18px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600;
  display: block; text-align: center; transition: border-color .2s, transform .2s;
}
.related-card:hover { border-color: rgba(var(--a-light),0.4); transform: translateY(-2px); }

/* 404 page */
.notfound { text-align: center; padding-top: 160px; padding-bottom: 140px; }
.notfound .code { font-size: clamp(60px,10vw,120px); font-weight: 800; background: linear-gradient(135deg, rgb(var(--a-light)), #a5b4ff); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 10px; }
.notfound h1 { font-size: clamp(22px,3vw,30px); font-weight: 800; margin-bottom: 14px; }
.notfound p { color: var(--text-dim); margin-bottom: 30px; }

/* Language redirect splash */
.lang-splash { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; flex-direction: column; gap: 20px; }
.lang-splash .logo-img { width: 56px; height: 56px; border-radius: 50%; }
.lang-splash .choices { display: flex; gap: 14px; }
