/* ElAstool marketing site · "Live map". Dark-only by choice: the night control room.
   Layout: full-bleed live map hero, a pinned scroll journey (order → Excel), before/after, then quiet grids. */
:root {
  color-scheme: dark;
  --ink: #041828;          /* nile 975 */
  --ink-2: #09253A;        /* nile 950 */
  --ink-3: #103856;        /* nile 900 */
  --line: rgba(158, 203, 243, .14);
  --line-2: rgba(158, 203, 243, .28);
  --fg: #EAF3FC;
  --muted: #94AEC6;
  --nile: #75B0E1;
  --nile-hi: #C3E0FA;
  --violet: #B79CF5;
  --indigo: #A3AEFF;
  --blue: #6FA8FF;
  --cyan: #3ABBDA;
  --teal: #4ABFAE;
  --green: #5DC277;
  --amber: #F0BC67;
  --red: #FF7B74;
  --f-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --f-hand: "Aref Ruqaa", "Caveat", cursive;
  --max: 1240px;
}
:root[lang="en"] { --f-hand: "Caveat", "Aref Ruqaa", cursive; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--fg);
  font: 400 17px/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--nile-hi); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--nile-hi); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.wrap { max-width: var(--max); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; letter-spacing: -.01em; }
:root[lang="en"] h1, :root[lang="en"] h2 { letter-spacing: -.025em; }
.eyebrow { font: 500 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--nile); }
:root[lang="ar"] .eyebrow { letter-spacing: 0; font-family: var(--f-body); font-size: 14px; font-weight: 600; }

/* tones */
.tone-indigo { color: var(--indigo); background: rgba(163, 174, 255, .12); }
.tone-violet { color: var(--violet); background: rgba(183, 156, 245, .12); }
.tone-blue { color: var(--blue); background: rgba(111, 168, 255, .12); }
.tone-cyan { color: var(--cyan); background: rgba(58, 187, 218, .12); }
.tone-teal { color: var(--teal); background: rgba(74, 191, 174, .12); }
.tone-green { color: var(--green); background: rgba(93, 194, 119, .12); }
.tone-amber { color: var(--amber); background: rgba(240, 188, 103, .12); }
.tone-red { color: var(--red); background: rgba(255, 123, 116, .12); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--f-body); padding: 5px 9px; border-radius: 99px; white-space: nowrap; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(4, 24, 40, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 22px/1 var(--f-body); }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo small { font: 600 11px/1 var(--f-body); letter-spacing: .14em; color: var(--muted); display: block; margin-top: 4px; text-transform: uppercase; }
.nav-links { display: flex; gap: 24px; margin-inline-start: 14px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
.nav-end { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
[dir="rtl"] .nav-login svg { transform: scaleX(-1); }
.lang { border: 1px solid var(--line-2); border-radius: 99px; padding: 8px 14px; font: 600 13px/1 var(--f-body); }
.lang:hover { background: var(--ink-3); }
.btn { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; border-radius: 99px; padding: 13px 24px; font: 600 16px/1 var(--f-body); border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--nile-hi); color: var(--ink); }
.btn.primary:hover { box-shadow: 0 0 0 6px rgba(158, 203, 243, .14), 0 10px 40px rgba(117, 176, 225, .35); }
.btn.ghost { border-color: var(--line-2); color: var(--fg); }
.btn.ghost:hover { background: var(--ink-3); }
.btn.sm { padding: 10px 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
[dir="rtl"] .btn .arr { transform: scaleX(-1); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 760px; padding-top: 72px; overflow: hidden; isolation: isolate; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
[dir="rtl"] .hero::after { background: linear-gradient(to bottom, transparent 70%, var(--ink)), linear-gradient(to left, rgba(4, 24, 40, .96) 0%, rgba(4, 24, 40, .8) 34%, transparent 62%); }
[dir="ltr"] .hero::after { background: linear-gradient(to bottom, transparent 70%, var(--ink)), linear-gradient(to right, rgba(4, 24, 40, .96) 0%, rgba(4, 24, 40, .8) 34%, transparent 62%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 560px) 1fr; padding-block: 84px 64px; min-height: 688px; align-content: center; }
.hero-copy { display: grid; gap: 26px; }
.live-pill { justify-self: start; display: inline-flex; gap: 10px; align-items: center; border: 1px solid var(--line-2); background: rgba(9, 37, 58, .7); border-radius: 99px; padding: 8px 16px 8px 14px; font-size: 14px; color: var(--muted); backdrop-filter: blur(6px); }
.live-pill b { color: var(--fg); font-weight: 600; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(93, 194, 119, .7); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(93, 194, 119, 0); } 100% { box-shadow: 0 0 0 0 rgba(93, 194, 119, 0); } }
.hero h1 { font-size: clamp(42px, 6vw, 78px); line-height: 1.08; font-weight: 800; }
:root[lang="ar"] .hero h1 { line-height: 1.25; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(90deg, var(--nile-hi), var(--teal)); -webkit-background-clip: text; background-clip: text; }
.hero h1 .thin { font-weight: 300; color: var(--muted); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin: 0; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { list-style: none; margin: 0; padding: 8px 0 0; display: flex; gap: 10px 28px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.hero-meta li { display: inline-flex; gap: 8px; align-items: center; }
.hero-meta svg { width: 16px; height: 16px; color: var(--teal); }

.feed { position: absolute; inset-inline-end: max(20px, env(safe-area-inset-right, 0px)); bottom: 56px; width: 330px; z-index: 2; border: 1px solid var(--line); background: rgba(4, 24, 40, .74); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 18px; padding: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.feed-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.feed-head b { color: var(--fg); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.feed ol { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 2px; height: 252px; overflow: hidden; }
.feed li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 8px 6px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
.feed li.new { animation: feedIn .5s cubic-bezier(.2, .8, .2, 1); }
.feed li:first-child { background: rgba(158, 203, 243, .07); }
.feed li .dot { grid-row: span 2; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; }
.feed li .s { color: var(--muted); font-size: 12.5px; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-12px); } }

/* ---------- sections ---------- */
.sec { padding-block: 120px; }
.sec.tight { padding-top: 40px; }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.15; font-weight: 700; }
:root[lang="ar"] .sec-head h2 { line-height: 1.35; }
.sec-head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 40em; }

.strip { border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 34px 28px; display: grid; gap: 6px; align-content: start; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat .n { font: 700 clamp(30px, 3.4vw, 44px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.stat .n small { font-size: .5em; color: var(--nile); font-weight: 500; margin-inline-start: 4px; }
.stat .l { color: var(--muted); font-size: 15px; }

/* journey */
.journey { height: 520vh; }
.j-pin { position: sticky; top: 0; height: 100vh; min-height: 640px; display: grid; align-content: center; overflow: hidden; }
.j-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.j-title { display: grid; gap: 14px; }
.j-top h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.2; font-weight: 700; max-width: 16em; }
.j-count { font: 500 15px/1 var(--f-mono); color: var(--muted); white-space: nowrap; }
.j-count b { color: var(--fg); font-size: 34px; font-weight: 500; }
.road { position: relative; height: 190px; }
.road .track-svg { width: 100%; height: 100%; overflow: visible; display: block; }
[dir="rtl"] .road .track-svg { transform: scaleX(-1); }
.road .track { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.road .done { fill: none; stroke: url(#roadGrad); stroke-width: 4; stroke-linecap: round; }
.road .node { fill: var(--ink); stroke: var(--line-2); stroke-width: 2; transition: fill .3s, stroke .3s; }
.road .node.on { fill: var(--nile-hi); stroke: var(--nile-hi); }
.road .node-ring { fill: none; stroke: var(--nile-hi); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.road .node-ring.on { animation: ring 1.6s ease-out infinite; }
@keyframes ring { from { opacity: .8; transform: scale(.6); } to { opacity: 0; transform: scale(2.4); } }
.truck { position: absolute; top: 0; left: 0; width: 96px; height: 46px; margin: -40px 0 0 -48px; will-change: transform; pointer-events: none; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.stages { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.stage { border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; display: grid; gap: 10px; align-content: start; background: rgba(9, 37, 58, .35); opacity: .45; transform: translateY(8px); transition: opacity .45s, transform .45s, border-color .45s, background .45s; }
.stage.on { opacity: 1; transform: none; border-color: var(--line-2); background: rgba(16, 56, 86, .55); }
.stage.now { border-color: var(--nile); box-shadow: 0 0 0 1px var(--nile) inset, 0 18px 50px rgba(117, 176, 225, .14); }
.stage .k { display: flex; gap: 8px; align-items: center; font: 500 12px/1 var(--f-mono); color: var(--muted); }
.stage h3 { font-size: 18px; font-weight: 700; }
.stage p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.stage .proof { font: 500 12.5px/1.5 var(--f-mono); color: var(--nile-hi); border-top: 1px dashed var(--line-2); padding-top: 10px; }

/* before / after */
.compare { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); height: 560px; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.cmp-side { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; }
.cmp-old { background: radial-gradient(70% 70% at 50% 45%, #3A3027, #1C1813 75%); }
.cmp-new { background: radial-gradient(120% 90% at 20% 0%, rgba(117, 176, 225, .16), transparent 60%), var(--ink-2); clip-path: inset(0 0 0 var(--cut, 50%)); }
[dir="rtl"] .cmp-new { clip-path: inset(0 var(--cut, 50%) 0 0); }
.cmp-label { position: absolute; top: 18px; font: 600 13px/1 var(--f-body); padding: 8px 14px; border-radius: 99px; }
.cmp-old .cmp-label { inset-inline-start: 18px; color: #FFCFCB; background: rgba(203, 36, 45, .3); }
.cmp-new .cmp-label { inset-inline-end: 18px; color: var(--ink); background: var(--nile-hi); }
.handle { position: absolute; top: 0; bottom: 0; left: var(--hx, 50%); width: 2px; margin-left: -1px; background: var(--nile-hi); pointer-events: none; z-index: 3; box-shadow: 0 0 20px rgba(195, 224, 250, .5); }
.handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--nile-hi); color: var(--ink); display: grid; place-items: center; font-size: 22px; box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }
.compare input:focus-visible ~ .handle::after { outline: 3px solid var(--nile); outline-offset: 4px; }
.dn { width: min(420px, 100%); background: #FBF8F2; padding: 26px 28px; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); transform: rotate(-2.5deg); position: relative; font-size: 14px; color: #4D4842; }
.dn::before { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; inset-inline-end: 20px; bottom: 30px; border: 10px solid rgba(120, 72, 20, .12); }
.dn h4 { margin: 0 0 14px; font: 700 18px/1 var(--f-body); text-align: center; border-bottom: 2px solid #4D4842; padding-bottom: 10px; }
.dn .row { display: flex; gap: 10px; align-items: baseline; border-bottom: 1px dotted #AEA8A1; padding-block: 7px; }
.dn .row span:first-child { white-space: nowrap; }
.dn .hw { font: 700 22px/1 var(--f-hand); color: #1F3D8A; }
.dn .sig { margin-top: 18px; display: flex; justify-content: space-between; align-items: end; }
.dn .sig svg { width: 120px; height: 40px; }
.dn .late { position: absolute; inset-inline-start: -14px; bottom: -18px; transform: rotate(-8deg); background: #FFE97A; font: 700 19px/1.2 var(--f-hand); padding: 10px 12px; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); color: #3B3200; max-width: 200px; }
.dg { width: min(440px, 100%); background: var(--ink); border-radius: 20px; border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(117, 176, 225, .08); padding: 22px; display: grid; gap: 14px; font-size: 14px; }
.dg-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dg-top b { font-size: 15px; font-weight: 500; }
.dg-map { height: 120px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; }
.dg-map svg { width: 100%; height: 100%; display: block; }
.dg-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.dg-steps span { height: 6px; border-radius: 3px; background: var(--green); }
.dg-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.dg-facts div { display: grid; gap: 2px; }
.dg-facts dt { color: var(--muted); font-size: 12px; }
.dg-facts dd { margin: 0; font: 500 14px/1.3 var(--f-mono); color: var(--nile-hi); }

/* alerts */
.alerts { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.al-big { border: 1px solid var(--line); border-radius: 24px; padding: 28px; background: radial-gradient(120% 90% at 80% 0%, rgba(255, 123, 116, .14), transparent 60%), var(--ink-2); display: grid; gap: 22px; align-content: start; }
.al-big canvas { width: 100%; height: 230px; border-radius: 14px; background: var(--ink); border: 1px solid var(--line); display: block; }
.al-big-text { display: grid; gap: 10px; }
.al-big h3 { font-size: 26px; }
.al-big p { margin: 0; color: var(--muted); }
.al-rule { font-size: 13px; line-height: 1.6; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.al-rule span { color: var(--red); }
.al-list { display: grid; gap: 14px; }
.al { border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; background: var(--ink-2); transition: border-color .3s, transform .3s; }
.al:hover { border-color: var(--line-2); transform: translateX(-4px); }
[dir="ltr"] .al:hover { transform: translateX(4px); }
.al .ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.al .ic svg { width: 22px; height: 22px; }
.al h3 { font-size: 18px; font-weight: 700; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.al p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.sev { font: 600 11px/1 var(--f-mono); padding: 4px 8px; border-radius: 6px; letter-spacing: .04em; }

/* roles */
.roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.role { padding: 30px 24px 34px; display: grid; gap: 14px; align-content: start; border-inline-start: 1px solid var(--line); transition: background .3s; }
.role:first-child { border-inline-start: 0; }
.role:hover { background: var(--ink-2); }
.role .ic { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--nile-hi); }
.role .ic svg { width: 22px; height: 22px; }
.role h3 { font-size: 19px; }
.role p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.role .where { font: 500 12px/1 var(--f-mono); color: var(--nile); }

/* templates */
.tpl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tpl-card { border-radius: 28px; padding: 0 34px 34px; display: grid; gap: 16px; align-content: start; overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.tpl-card .art { display: block; width: calc(100% + 68px); max-width: none; height: 220px; margin-inline: -34px; }
.tpl-card h3 { font-size: 28px; }
.tpl-card p { margin: 0; color: var(--muted); max-width: 30em; }
.tpl-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-card li { font-size: 13.5px; border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 12px; }
.modules { margin-top: 20px; border: 1px dashed var(--line-2); border-radius: 22px; padding: 22px 26px; display: flex; gap: 18px 28px; flex-wrap: wrap; align-items: center; }
.modules b { font-family: var(--f-display); font-weight: 500; font-size: 17px; }
.modules span { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 15px; }
.modules i { width: 8px; height: 8px; border-radius: 2px; background: var(--nile); }
.modules i.amber { background: var(--amber); }
.modules i.teal { background: var(--teal); }

/* hardware calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); }
.calc-in { padding: 40px; background: var(--ink-2); display: grid; gap: 18px; align-content: center; }
.calc-in label { font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.calc-in output { font: 600 46px/1 var(--f-display); color: var(--nile-hi); font-variant-numeric: tabular-nums; }
.calc-in input { width: 100%; accent-color: var(--nile); height: 28px; cursor: pointer; }
.calc-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: -10px; }
.calc-in p { margin: 0; color: var(--muted); font-size: 14px; }
.calc-out { padding: 40px; background: linear-gradient(140deg, var(--nile-hi), #9ECBF3); color: var(--ink); display: grid; gap: 24px; align-content: center; }
.calc-out .lbl { font-size: 15px; color: var(--ink-3); }
.calc-out .big { font: 800 clamp(30px, 8.6vw, 64px)/1.05 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-out .split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 20px; border-top: 1px solid rgba(4, 24, 40, .2); }
.calc-out .split b { display: block; font: 700 26px/1.1 var(--f-display); }
.calc-out .split span { font-size: 14px; color: var(--ink-3); }

/* trust */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tr { padding-top: 26px; border-top: 1px solid var(--line-2); display: grid; gap: 10px; align-content: start; }
.tr h3 { font-size: 20px; }
.tr p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* cta */
.cta { padding-block: 140px 120px; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta .mark-big { width: 160px; height: 160px; margin: 0 auto 30px; display: block; }
.cta h2 { font-size: clamp(36px, 5vw, 66px); line-height: 1.15; font-weight: 800; }
:root[lang="ar"] .cta h2 { line-height: 1.35; }
.cta p { color: var(--muted); font-size: 19px; margin: 20px auto 34px; max-width: 34em; }
.cta .ctas { justify-content: center; }
.cta::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(50% 50% at 50% 50%, rgba(117, 176, 225, .18), transparent 70%); z-index: -1; }

footer { border-top: 1px solid var(--line); padding-block: 40px calc(34px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; }
.foot-brand { display: grid; gap: 10px; }
.foot-brand .logo { font-size: 18px; color: var(--fg); }
.foot-brand .logo svg { width: 28px; height: 28px; }
.foot-brand p { margin: 0; max-width: 30em; }
.foot-links { display: flex; gap: 10px 24px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--fg); }
.copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

/* scroll-driven reveals: visible at rest everywhere, animated where supported */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes rv { from { opacity: 0; transform: translateY(40px); } }
  }
}

/* responsive */
@media (max-width: 1180px) {
  .nav-links { gap: 18px; }
}
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .feed { display: none; }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role { border-top: 1px solid var(--line); }
  .role:nth-child(odd) { border-inline-start: 0; }
  .role:nth-child(-n+2) { border-top: 0; }
  .role:last-child { grid-column: span 2; }
}
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-block: 48px 380px; }
  [dir] .hero::after { background: linear-gradient(to bottom, rgba(4, 24, 40, .94) 0%, rgba(4, 24, 40, .86) 52%, transparent 70%, rgba(4, 24, 40, .2) 92%, var(--ink)); }
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px; }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .journey { height: auto; }
  .j-pin { position: static; height: auto; min-height: 0; padding-block: 100px 40px; }
  .road, .j-count { display: none; }
  .stages { grid-template-columns: 1fr; }
  .stage { opacity: 1; transform: none; border-color: var(--line-2); }
  .alerts, .tpl, .trust, .calc { grid-template-columns: 1fr; }
  .compare { height: 640px; }
  .cmp-side { padding: 64px 16px 24px; }
  .sec { padding-block: 84px; }
  .sec.tight { padding-top: 20px; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav .btn.primary.sm { display: none; }
  .nav-end { gap: 8px; }
  .nav .nav-login { padding: 9px 14px; }
  .logo small { display: none; }
  .roles { grid-template-columns: 1fr; }
  .role { border-inline-start: 0; border-top: 1px solid var(--line); }
  .role:nth-child(2) { border-top: 1px solid var(--line); }
  .role:last-child { grid-column: auto; }
  .tpl-card { padding: 0 24px 24px; }
  .tpl-card .art { width: calc(100% + 48px); margin-inline: -24px; height: 170px; }
  .calc-in, .calc-out { padding: 28px 22px; }
  .dn { padding: 20px; }
  .dn .hw { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* Narrow phones: the Arabic "sign in" label is long, so the top bar drops the icon */
@media (max-width: 420px) {
  .nav .nav-login { padding: 9px 12px; }
  .nav-login svg { display: none; }
  .nav .wrap { gap: 12px; }
}
@media (max-width: 350px) {
  .logo { font-size: 18px; gap: 8px; }
  .logo svg { width: 30px; height: 30px; }
  .nav-end { gap: 6px; }
}
