@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg1: #0f172a;
  --bg2: #1e293b;
  --acc: #3b82f6;
  --acc2: #22d3ee;
  --card-bg: rgba(255,255,255,.10);
  --card-brd: rgba(255,255,255,.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted2: #94a3b8;
  --success: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[dir="rtl"] body { font-family: "Tajawal", Tahoma, Arial, sans-serif; }
html[dir="ltr"] body { font-family: "Inter", "Segoe UI", Arial, sans-serif; }

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg1);
  background-image:
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(34, 211, 238, 0.1), transparent 50%),
    linear-gradient(165deg, var(--bg1) 0%, #111827 45%, #0b1736 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--acc2); text-decoration: none; transition: color .2s; }
a:hover { color: #67e8f9; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.15rem; color: var(--text);
  text-decoration: none;
}
.logo-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  display: grid; place-items: center; font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(59,130,246,.35);
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--muted); font-size: .9rem; padding: 8px 14px;
  border-radius: 10px; transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255,255,255,.08); color: var(--text); }

.lang-switch {
  display: flex; border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; overflow: hidden;
}
.lang-switch button {
  background: transparent; border: 0; color: var(--muted);
  padding: 7px 12px; cursor: pointer; font-size: .85rem; font-weight: 600;
  transition: background .2s, color .2s;
}
.lang-switch button.active {
  background: linear-gradient(135deg, rgba(59,130,246,.3), rgba(34,211,238,.2));
  color: var(--text);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: transform .1s, filter .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: #07121f; box-shadow: 0 4px 24px rgba(59,130,246,.35);
}
.btn-primary:hover { filter: brightness(1.08); color: #07121f; }
.btn-outline {
  background: rgba(255,255,255,.06); color: var(--text);
  border: 1px solid rgba(255,255,255,.2);
}
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--text); }

.menu-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: var(--text); cursor: pointer; font-size: 1.2rem;
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 60px) 0 80px;
  position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(59,130,246,.15); border: 1px solid rgba(59,130,246,.3);
  color: #93c5fd; font-size: .82rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15;
  margin: 0 0 20px;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem; color: var(--muted); margin-bottom: 32px; max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 28px;
}
.hero-stat .num {
  font-size: 1.8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat .lbl { font-size: .85rem; color: var(--muted2); }
.hero-visual {
  position: relative;
}
.hero-visual img,
.showcase-img img {
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  object-fit: cover;
  width: 100%;
}
.hero-visual img {
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
}
.hero-glow {
  position: absolute; inset: -20%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(59,130,246,.2), transparent 70%);
  pointer-events: none;
}

/* Sections */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin: 0 0 14px;
}
.section-header p {
  color: var(--muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto;
}
.section-label {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--acc2); margin-bottom: 12px;
}

/* Features grid */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  backdrop-filter: blur(16px); background: var(--card-bg);
  border: 1px solid var(--card-brd); border-radius: 20px;
  padding: 28px 24px; transition: transform .25s, border-color .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,.35);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(34,211,238,.15));
  border: 1px solid rgba(59,130,246,.25);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px;
}
.feature-card h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 700; }
.feature-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.65; }

/* Showcase */
.showcase-item {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; margin-bottom: 80px;
}
.showcase-item:last-child { margin-bottom: 0; }
.showcase-item.reverse .showcase-img { order: 2; }
.showcase-item.reverse .showcase-text { order: 1; }
.showcase-text h3 {
  font-size: 1.6rem; font-weight: 800; margin: 0 0 16px;
}
.showcase-text p { color: var(--muted); margin: 0 0 20px; }
.showcase-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
}
.showcase-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--muted); font-size: .95rem;
}
.showcase-list li::before {
  content: "✓"; color: var(--success); font-weight: 800; flex-shrink: 0;
}

/* Sectors */
.sectors-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.sector-card {
  text-align: center; padding: 28px 16px;
  backdrop-filter: blur(12px); background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
  transition: background .2s, transform .2s;
}
.sector-card:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); }
.sector-card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.sector-card h4 { margin: 0 0 6px; font-size: 1rem; }
.sector-card p { margin: 0; font-size: .82rem; color: var(--muted2); }

/* Regions SEO strip */
.regions-strip {
  backdrop-filter: blur(12px); background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1); border-radius: 20px;
  padding: 32px; text-align: center;
}
.regions-strip h3 { margin: 0 0 16px; font-size: 1.2rem; }
.region-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.region-tag {
  padding: 8px 16px; border-radius: 999px;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.25);
  color: #93c5fd; font-size: .85rem; font-weight: 600;
}

/* Pricing / CTA */
.cta-section {
  text-align: center; padding: 80px 0;
}
.cta-box {
  backdrop-filter: blur(20px); background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(34,211,238,.08));
  border: 1px solid rgba(59,130,246,.25); border-radius: 28px;
  padding: 60px 40px; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(59,130,246,.15), transparent 60%);
  pointer-events: none;
}
.cta-box h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 14px; position: relative; }
.cta-box p { color: var(--muted); margin: 0 0 28px; font-size: 1.05rem; position: relative; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; position: relative; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 40px 0 100px;
  margin-top: 20px;
}
.footer-simple {
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.footer-brand .logo {
  display: inline-flex;
  justify-content: center;
}
.footer-brand p {
  color: var(--muted2);
  font-size: .9rem;
  margin: 10px 0 0;
  max-width: 480px;
}
.footer-copy {
  color: var(--muted2);
  font-size: .85rem;
  margin: 0;
}

/* Contact FAB — single site button */
.contact-fab {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  padding: 14px 32px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  font-family: inherit;
  color: #07121f;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  box-shadow: 0 8px 32px rgba(59,130,246,.45);
  transition: transform .15s, filter .2s, box-shadow .2s;
}
.contact-fab:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 40px rgba(59,130,246,.55);
}
.contact-fab:active { transform: translateX(-50%) translateY(1px); }

/* Contact modal — hidden until opened */
.contact-scrim[hidden],
.contact-modal[hidden] {
  display: none !important;
}
.contact-scrim {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
}
.contact-modal-box {
  position: relative;
  width: min(480px, 100%);
  backdrop-filter: blur(20px);
  background: rgba(15,23,42,.97);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,.45);
}
.contact-modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}
.contact-modal-box h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
}
.contact-modal-desc {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: .95rem;
}
.contact-form {
  display: grid;
  gap: 16px;
}
.contact-label {
  display: grid;
  gap: 6px;
  font-size: .88rem;
  color: var(--muted);
}
.contact-label input,
.contact-label textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}
.contact-label input:focus,
.contact-label textarea:focus {
  outline: none;
  border-color: rgba(34,211,238,.6);
  box-shadow: 0 0 0 3px rgba(34,211,238,.12);
}
.contact-submit {
  width: 100%;
  margin-top: 4px;
}
.contact-feedback {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .9rem;
}
.contact-feedback.is-error {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.4);
  color: #fecaca;
}
.contact-feedback.is-success {
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.4);
  color: #bbf7d0;
}
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.mobile-nav.open { opacity: 1; visibility: visible; display: flex; }
.mobile-nav a {
  color: var(--text); font-size: 1.2rem; font-weight: 600; padding: 12px 24px;
}
.mobile-close {
  position: absolute; top: 20px; inset-inline-end: 20px;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: var(--text); font-size: 1.4rem; cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .hero-grid, .showcase-item, .showcase-item.reverse { grid-template-columns: 1fr; }
  .showcase-item.reverse .showcase-img,
  .showcase-item.reverse .showcase-text { order: unset; }
  .features-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-bottom: 48px; }
  section { padding: 56px 0; }
  .cta-box { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .sectors-grid { grid-template-columns: 1fr; }
  .contact-fab { width: calc(100% - 40px); max-width: 320px; }
}

/* Bilingual content toggle */
html[lang="en"] [lang-content="ar"] { display: none !important; }
html[lang="ar"] [lang-content="en"] { display: none !important; }
html[lang="en"] .nav-links { display: flex; }
html[lang="ar"] .nav-links { display: flex; }
html[lang="en"] .hero-stats,
html[lang="ar"] .hero-stats { display: flex; }
