:root {
  --navy: #0B1F3A;
  --navy-2: #122a4d;
  --navy-3: #1b3863;
  --accent: #14B8A6;
  --accent-soft: #dcf7f2;
  --ink: #0B1F3A;
  --ink-2: #44546b;
  --ink-3: #6b7a8f;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --ok: #19a463;
  --warn: #F5A300;
  --bad: #e5484d;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(11, 31, 58, .35);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
}
html[lang="ar"] { --font: "Noto Sans Arabic", "Manrope", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 10px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--navy); box-shadow: 0 8px 24px -10px rgba(20, 184, 166, .8); }
.btn-primary:hover { background: #2dd4bf; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn svg { width: 18px; height: 18px; }
html[dir="rtl"] .btn svg.arrow { transform: scaleX(-1); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 31, 58, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav .btn { padding: 10px 16px; font-size: 15px; }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; color: rgba(255, 255, 255, .85);
  display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px;
  padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .18);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; }
.lang[open] summary { background: rgba(255, 255, 255, .08); }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 6px; min-width: 180px;
}
.lang li a {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 600;
}
.lang li a span { color: var(--ink-3); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.lang li a:hover, .lang li a[aria-current] { background: var(--bg-2); }

.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(20, 184, 166, .14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(59, 111, 191, .25), transparent 60%),
    var(--navy);
  color: #fff;
  padding: 96px 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(20, 184, 166, .2); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; margin-top: 18px; }
.hero h1 span { display: block; color: var(--accent); }
.hero .lead { font-size: 19px; color: rgba(255, 255, 255, .78); margin-top: 22px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 22px; font-size: 14px; color: rgba(255, 255, 255, .55); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* Mock dashboard */
.mock {
  background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  padding: 22px; position: relative;
}
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock-head h3 { font-size: 16px; font-weight: 800; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--ok); text-transform: uppercase; letter-spacing: .06em; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(25, 164, 99, .5); } 70% { box-shadow: 0 0 0 8px rgba(25, 164, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 164, 99, 0); } }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.kpi { background: var(--bg-2); border-radius: 10px; padding: 12px; }
.kpi b { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.kpi small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.kpi.ok b { color: var(--ok); }
.kpi.bad b { color: var(--bad); }
.kpi.warn b { color: #c98500; }
.spark { margin-top: 14px; height: 54px; background: var(--bg-2); border-radius: 10px; padding: 8px; }
.spark svg { width: 100%; height: 100%; }
.events { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.events li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.bad { background: var(--bad); } .dot.warn { background: var(--warn); } .dot.ok { background: var(--ok); } .dot.off { background: #98a2b3; }
.events .site { font-size: 13px; font-weight: 800; }
.events .ev { font-size: 12px; color: var(--ink-3); }
.tag { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: #0b6158; white-space: nowrap; }
.tag.ok { background: #e3f6ec; color: #0e7a47; }

/* Stats */
.stats { background: var(--navy-2); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; border-inline-start: 1px solid rgba(255, 255, 255, .08); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat b { display: block; font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .7); }

/* Sections */
section { padding: 104px 0; }
section.alt { background: var(--bg-2); }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin-top: 12px; }
.sec-head p { font-size: 18px; color: var(--ink-2); margin-top: 16px; }

.cards { display: grid; gap: 20px; }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: #cdd6e2; box-shadow: 0 16px 40px -24px rgba(11, 31, 58, .35); transform: translateY(-2px); }
.card h3 { font-size: 19px; font-weight: 800; margin-top: 18px; }
.card p { color: var(--ink-2); margin-top: 10px; font-size: 16px; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: var(--accent);
}
.icon svg { width: 24px; height: 24px; }
.problem .icon { background: #fdecec; color: var(--bad); }

/* Layers */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.layer { position: relative; background: var(--navy); color: #fff; border-radius: 18px; padding: 34px 30px; overflow: hidden; }
.layer::after {
  content: attr(data-n); position: absolute; inset-inline-end: 22px; top: 10px;
  font-size: 88px; font-weight: 800; color: rgba(255, 255, 255, .05); line-height: 1;
}
.layer h3 { font-size: 22px; font-weight: 800; margin-top: 20px; }
.layer p { color: rgba(255, 255, 255, .72); margin-top: 12px; }
.layer .icon { background: rgba(20, 184, 166, .14); }
.layer.mid { background: linear-gradient(160deg, var(--navy-3), var(--navy)); outline: 2px solid var(--accent); outline-offset: -2px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; inset-inline: 10%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px);
}
.steps li { position: relative; text-align: center; padding: 0 6px; }
.steps .num {
  position: relative; width: 56px; height: 56px; margin: 0 auto; border-radius: 50%;
  background: var(--navy); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 20px;
  box-shadow: 0 0 0 8px var(--bg);
}
.steps h3 { font-size: 18px; font-weight: 800; margin-top: 20px; }
.steps p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }

/* Field app */
.app-sec { background: var(--navy); color: #fff; }
.app-sec .sec-head p { color: rgba(255, 255, 255, .72); }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 8px; }
.phones figure { margin: 0; }
.phone {
  width: 100%; max-width: 250px; margin: 0 auto; aspect-ratio: 9 / 17.5; border-radius: 32px; padding: 9px;
  background: #050f1f; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -24px rgba(0, 0, 0, .7);
}
.scr {
  height: 100%; border-radius: 24px; background: var(--bg-2); color: var(--ink); overflow: hidden;
  padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; font-size: 12px; line-height: 1.4;
}
.scr .bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 2px 2px; }
.scr .bar b { font-size: 14px; font-weight: 800; }
.scr .pill { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); color: #0b6158; white-space: nowrap; }
.scr .pill.ai { background: var(--navy); color: var(--accent); }
.scr .map { border-radius: 12px; overflow: hidden; flex: 1 1 auto; min-height: 90px; }
.scr .map svg { width: 100%; height: 100%; }
.scr .card-m { background: #fff; border-radius: 12px; padding: 10px; border: 1px solid var(--line); }
.scr .card-m .t { font-weight: 800; font-size: 12.5px; }
.scr .s { color: var(--ink-2); }
.scr .muted { color: var(--ink-3); font-size: 11px; margin-top: 2px; }
.scr .chip-m { display: flex; align-items: center; gap: 6px; border-radius: 10px; padding: 8px 10px; background: var(--navy); color: #fff; font-weight: 700; font-size: 11.5px; }
.scr .chip-m.ok { background: #e3f6ec; color: #0e7a47; }
.scr .chip-m svg { width: 15px; height: 15px; flex: none; }
.scr .note { color: var(--ink-3); font-size: 11px; }
.scr .checks, .scr .mats, .scr .tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.scr .checks li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.scr .checks li::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 11px; flex: none; }
.scr .checks li.bad { border-color: #f6c4c5; background: #fff5f5; }
.scr .checks li.bad::before { content: "!"; background: var(--bad); font-weight: 800; }
.scr .hint { border-radius: 10px; padding: 9px 10px; background: var(--accent-soft); color: #0b5149; font-weight: 600; font-size: 11.5px; border-inline-start: 3px solid var(--accent); }
.scr .photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.scr .ph { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; }
.scr .ph.before { background: linear-gradient(160deg, #8d8578, #5f574c); }
.scr .ph.after { background: linear-gradient(160deg, #dfe8f1, #b9c9da); }
.scr .ph svg { width: 78%; }
.scr .ph span { position: absolute; inset-inline-start: 6px; bottom: 6px; font-size: 10px; font-weight: 800; background: rgba(11, 31, 58, .8); color: #fff; padding: 2px 7px; border-radius: 99px; }
.scr .lbl { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-top: 2px; }
.scr .mats li { display: flex; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.scr .mats b { white-space: nowrap; }
.scr .tl { position: relative; gap: 10px; padding-inline-start: 16px; }
.scr .tl::before { content: ""; position: absolute; inset-inline-start: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.scr .tl li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.scr .tl li::before { content: ""; position: absolute; inset-inline-start: -16px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.scr .sent { display: flex; justify-content: space-between; align-items: center; border-radius: 10px; padding: 8px 10px; background: #e3f6ec; color: #0e7a47; font-weight: 700; }
.scr .sent:first-of-type { margin-top: auto; }
.scr .sent i { font-style: normal; font-weight: 800; }
.phones figcaption { margin-top: 22px; text-align: center; }
.phones .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--navy); font-weight: 800; font-size: 14px; }
.phones h3 { font-size: 18px; font-weight: 800; margin-top: 10px; }
.phones figcaption p { color: rgba(255, 255, 255, .72); font-size: 15px; margin-top: 6px; }
@media (max-width: 1080px) { .phones { grid-template-columns: repeat(2, 1fr); gap: 48px 28px; } }
@media (max-width: 640px) {
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; margin-inline: -16px; padding: 4px 16px 8px; }
  .phones figure { flex: 0 0 78%; scroll-snap-align: center; }
}

/* Features */
.features .card { padding: 26px; }
.features .card h3 { font-size: 17px; }
.features .card p { font-size: 15px; }

/* ComAp */
.comap-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.chip { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.chip .icon { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.chip .icon svg { width: 20px; height: 20px; }
.chip b { display: block; font-size: 16px; font-weight: 800; }
.chip span { display: block; font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.disclaimer { margin-top: 28px; font-size: 13px; color: var(--ink-3); }

/* Industries */
.inds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ind { border-top: 3px solid var(--accent); padding-top: 20px; }
.ind h3 { font-size: 18px; font-weight: 800; margin-top: 14px; }
.ind p { color: var(--ink-2); margin-top: 8px; font-size: 15px; }
.ind .icon { background: var(--accent-soft); color: var(--navy); }

/* CTA */
.cta-band { padding: 0 0 104px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 24px; color: #fff; padding: 64px;
  background: radial-gradient(600px 300px at 100% 0%, rgba(20, 184, 166, .25), transparent 60%), var(--navy);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-box h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; }
.cta-box p { color: rgba(255, 255, 255, .75); margin-top: 14px; font-size: 18px; }
.cta-side { display: grid; gap: 16px; justify-items: start; }
.cta-side small { color: rgba(255, 255, 255, .55); font-size: 14px; }
.cta-side a.mail { color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; border-bottom: 2px solid var(--accent); }
.cta-mark { position: absolute; inset-inline-end: -40px; bottom: -60px; width: 260px; opacity: .06; pointer-events: none; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .65); padding: 48px 0; font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot img { height: 30px; width: auto; }
.foot p + p { margin-top: 4px; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 0; }
.foot-langs a { text-decoration: none; color: rgba(255, 255, 255, .65); }
.foot-langs a:hover, .foot-langs a[aria-current] { color: var(--accent); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .live::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1080px) {
  .inds { grid-template-columns: repeat(3, 1fr); }
  .cards.c4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .comap-grid, .cta-box { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 80px; }
  .layers { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 0; bottom: 0; inset-inline-start: 27px; inset-inline-end: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 16px); }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: start; padding: 0; }
  .steps .num { grid-row: span 2; margin: 0; }
  .steps h3 { margin-top: 4px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-actions .btn { display: none; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; inset-inline: 0; background: var(--navy); padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .site-header.open .nav-links a { display: block; padding: 12px 0; font-size: 17px; }
  .nav-actions { margin-inline-start: auto; }
  .cta-box { padding: 40px 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 72px 0; }
  .cards.c4, .cards.c3, .chips, .inds { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .events li { grid-template-columns: auto 1fr; }
  .events .tag { grid-column: 2; justify-self: start; }
  .stat { padding: 24px 12px; }
  .stat b { font-size: 32px; }
  .brand img { height: 28px; }
  .hero .lead { font-size: 17px; }
  .cta-band { padding-bottom: 72px; }
}
