:root {
  --ink: #14213d;
  --muted: #5e6a7d;
  --primary: #0878B7;
  --primary-dark: #075985;
  --green: #75BC43;
  --green-dark: #3A9A49;
  --accent: #75BC43;
  --surface: #ffffff;
  --soft: #eef8f5;
  --line: #dbe7e4;
  --shadow: 0 24px 70px rgba(20, 33, 61, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Tajawal", system-ui, sans-serif;
  color: var(--ink);
  background: #fbfdfc;
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.section-shell { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 183, 3, 0.22), transparent 28%),
    radial-gradient(circle at 83% 22%, rgba(8, 120, 183, 0.20), transparent 26%),
    linear-gradient(135deg, #f7fffc 0%, #edf8ff 100%);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto -12% -32% -12%;
  height: 360px;
  background: rgba(8, 120, 183, 0.08);
  filter: blur(70px);
}
.navbar {
  position: relative;
  z-index: 3;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.25rem; }
.brand-logo { width: 172px; height: auto; display: block; }
.nav-links { display: flex; gap: 24px; color: var(--muted); font-weight: 700; }
.nav-links a:hover { color: var(--primary-dark); }
.nav-cta, .btn { border-radius: 999px; padding: 12px 22px; font-weight: 800; }
.nav-cta, .btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--green)); box-shadow: 0 14px 30px rgba(8, 120, 183, 0.28); }
.btn-ghost { color: var(--primary-dark); background: #fff; border: 1px solid var(--line); }
.menu-toggle { display: none; border: 0; background: #fff; border-radius: 12px; padding: 10px; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px; background: var(--ink); }

.hero { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; min-height: 690px; padding: 70px 0 110px; }
.eyebrow { display: inline-flex; margin: 0 0 12px; color: var(--primary-dark); background: rgba(8, 120, 183, 0.10); border: 1px solid rgba(8, 120, 183, 0.18); border-radius: 999px; padding: 6px 14px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 5.1rem); line-height: 1.05; margin-bottom: 24px; letter-spacing: -1.5px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; margin-bottom: 18px; }
h3 { margin-bottom: 8px; }
.hero-text, .section-heading p, .split-layout p, .impact-copy p, .cta-card p { color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.7); color: var(--muted); font-weight: 800; }
.hero-visual { position: relative; min-height: 560px; display: grid; place-items: center; }
.hero-device-showcase::before { content: ""; position: absolute; width: min(510px, 90vw); height: min(510px, 90vw); border-radius: 50%; background: linear-gradient(135deg, rgba(8,120,183,.14), rgba(117,188,67,.18)); filter: blur(4px); }
.hero-device-image { position: relative; z-index: 1; width: min(430px, 92vw); height: auto; filter: drop-shadow(0 34px 55px rgba(7, 57, 93, .28)); transform: rotate(-2deg); }
.floating-card { position: absolute; z-index: 2; padding: 16px 18px; border-radius: 22px; background: rgba(255,255,255,0.9); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 800; }
.card-one { top: 112px; right: 0; } .card-two { bottom: 28px; left: 10px; }

.challenge-section, .services-section, .workflow-section, .comparison-section, .gallery-section { padding: 92px 0; }
.section-heading { max-width: 720px; margin-bottom: 38px; }
.centered { text-align: center; margin-inline: auto; }
.challenge-grid, .services-grid, .metrics { display: grid; gap: 18px; }
.challenge-grid { grid-template-columns: repeat(4, 1fr); }
.challenge-grid article, .service-card, .timeline article, .metrics article { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: 0 18px 50px rgba(20, 33, 61, 0.06); }
.challenge-grid span { color: var(--accent); font-weight: 900; }
.challenge-grid p, .service-card p, .timeline p { color: var(--muted); margin-bottom: 0; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card.featured { background: linear-gradient(135deg, var(--primary-dark), var(--green-dark)); color: #fff; }
.service-card.featured p { color: rgba(255,255,255,0.78); }
.icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; margin-bottom: 18px; background: var(--soft); font-size: 1.5rem; }
.featured .icon { background: rgba(255,255,255,0.14); }
.device-gallery-card { display: grid; grid-template-columns: .75fr 1fr; align-items: center; gap: 36px; padding: 34px; border-radius: 36px; background: linear-gradient(135deg, #f7fbff, #eef8f5); border: 1px solid var(--line); box-shadow: var(--shadow); }
.device-gallery-card img { width: min(320px, 100%); justify-self: center; filter: drop-shadow(0 28px 44px rgba(7, 57, 93, .22)); }
.device-gallery-card h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.device-gallery-card p { color: var(--muted); font-size: 1.08rem; }
.dashboard-gallery-section, .sectors-section, .impact-section { padding: 92px 0; background: #07395d; color: #fff; }
.dashboard-gallery-grid { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 34px; }
.dashboard-gallery-grid p { color: rgba(255,255,255,0.72); }
.dashboard-gallery-section .eyebrow { background: rgba(255,255,255,0.10); color: #a7f3d0; border-color: rgba(255,255,255,0.16); }
.dashboard-shots { display: grid; gap: 18px; }
.dashboard-shots img { width: 100%; border-radius: 26px; border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 24px 70px rgba(0,0,0,.24); background: #fff; }
.dashboard-shots img + img { width: 78%; justify-self: end; margin-top: -76px; }
.sectors-section, .impact-section { padding: 92px 0; background: #07395d; color: #fff; }
.split-layout, .impact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 46px; align-items: center; }
.sectors-section .eyebrow, .impact-section .eyebrow { background: rgba(255,255,255,0.10); color: #a7f3d0; border-color: rgba(255,255,255,0.16); }
.split-layout p, .impact-copy p { color: rgba(255,255,255,0.72); }
.sector-list { display: flex; flex-wrap: wrap; gap: 14px; }
.sector-list span { padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); font-weight: 800; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.timeline span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); font-weight: 900; margin-bottom: 18px; }
.metrics { grid-template-columns: repeat(2, 1fr); }
.metrics article { color: var(--ink); }
.metrics strong { display: block; color: var(--primary-dark); font-size: 2.7rem; line-height: 1; margin-bottom: 10px; }
.metrics span { color: var(--muted); font-weight: 700; }
.comparison-table { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1px; align-items: center; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row span, .row strong { padding: 18px; text-align: center; }
.row span:first-child { text-align: right; font-weight: 800; }
.row.head { background: var(--soft); font-weight: 900; }
.row strong { color: var(--primary-dark); font-size: 1.4rem; }
.cta-section { padding: 92px 0; }
.cta-card { display: grid; grid-template-columns: 1fr 0.9fr; gap: 34px; align-items: center; padding: 44px; border-radius: 36px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--green-dark)); box-shadow: var(--shadow); }
.cta-card .eyebrow { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.18); }
.cta-card p { color: rgba(255,255,255,0.75); }
.contact-info { display: grid; gap: 14px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); padding: 22px; border-radius: 26px; }
.contact-info article { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.16); }
.contact-info h3 { margin: 0 0 2px; }
.contact-info a { color: #fff; font-weight: 800; direction: ltr; unicode-bidi: embed; }
.contact-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 46px; border-radius: 16px; background: rgba(255,255,255,0.18); font-size: 1.35rem; }
.site-footer { padding: 28px 0; background: #052f4a; color: rgba(255,255,255,0.75); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-block; }
  .nav-links, .nav-cta { display: none; }
  .navbar.open .nav-links { display: grid; position: absolute; top: 76px; inset-inline: 0; padding: 20px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
  .hero, .split-layout, .impact-grid, .cta-card, .device-gallery-card, .dashboard-gallery-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; text-align: center; }
  .hero-actions, .trust-row { justify-content: center; }
  .challenge-grid, .services-grid, .timeline, .metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section-shell, .navbar { width: min(100% - 22px, 1160px); }
  .hero { min-height: auto; padding-bottom: 70px; }
  .hero-visual { min-height: 430px; }
  .hero-device-image { width: min(330px, 92vw); }
  .dashboard-shots img + img { width: 100%; margin-top: 0; }
  .challenge-grid, .services-grid, .timeline, .metrics { grid-template-columns: 1fr; }
  .challenge-section, .services-section, .workflow-section, .comparison-section, .gallery-section, .dashboard-gallery-section, .sectors-section, .impact-section, .cta-section { padding: 64px 0; }
  .row { grid-template-columns: 1.2fr repeat(2, 0.8fr); font-size: 0.9rem; }
  .row span, .row strong { padding: 12px 8px; }
  .cta-card { padding: 26px; border-radius: 28px; }
  .card-one { right: 202px; top: 61px; }
  .card-two { left: 0; bottom: -12px; }
}
