/* Matrix Field - website. Precision palette; self-hosted fonts; no external requests. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Arabic"; font-weight: 400; font-display: swap; src: url("fonts/noto-sans-arabic-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Arabic"; font-weight: 600; font-display: swap; src: url("fonts/noto-sans-arabic-arabic-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Arabic"; font-weight: 700; font-display: swap; src: url("fonts/noto-sans-arabic-arabic-700-normal.woff2") format("woff2"); }

:root {
    --emerald: #087F5B;
    --emerald-2: #0BA374;
    --emerald-soft: #E9F5EF;
    --navy: #102A43;
    --navy-2: #0B1F33;
    --ink: #102A43;
    --muted: #526575;
    --line: #D8E1E5;
    --bg: #F5F7F8;
    --surface: #FFFFFF;
    --amber: #B7791F;
    --font: "Noto Sans Arabic", "Inter", Tahoma, Arial, sans-serif;
    --font-latin: "Inter", "Noto Sans Arabic", Arial, sans-serif;
    --radius: 16px;
    --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
html[lang="en"] body { font-family: var(--font-latin); line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.latin { font-family: var(--font-latin); }
:focus-visible { outline: 3px solid #377AC1; outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245, 247, 248, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 38px; height: 35px; }
.brand b { font-family: var(--font-latin); font-weight: 700; letter-spacing: .05em; font-size: 17px; }
.brand i { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: -2px; }
.nav { display: flex; gap: 24px; margin-inline-start: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.lang { font-size: 14px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; }
.btn-primary { background: var(--emerald); color: #fff; box-shadow: 0 8px 24px rgba(8, 127, 91, .28); }
.btn-primary:hover { background: #06674A; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }
.btn svg { width: 18px; height: 18px; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.top .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #DDF3E9 0%, rgba(221, 243, 233, 0) 60%), var(--bg); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: 72px 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--emerald); background: var(--emerald-soft); border-radius: 999px; padding: 6px 14px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(8, 127, 91, .18); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; margin-top: 18px; letter-spacing: -.01em; }
html[lang="en"] .hero h1 { letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--emerald); }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin-top: 20px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: 14px; color: var(--muted); }
.hero .facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero .facts svg { width: 18px; height: 18px; color: var(--emerald); }

/* the stage: route map + phone + floating proofs */
.stage { position: relative; min-height: 560px; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; }
.route path { fill: none; stroke: var(--emerald); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 10; opacity: .45; animation: dash 18s linear infinite; }
.route .pin { fill: var(--surface); stroke: var(--emerald); stroke-width: 3; }
.route .pin-done { fill: var(--emerald); }
@keyframes dash { to { stroke-dashoffset: -360; } }

.phone { position: relative; z-index: 2; width: 290px; margin: 10px auto 0; background: var(--navy-2); border-radius: 42px; padding: 12px; box-shadow: 0 40px 80px rgba(16, 42, 67, .28), 0 0 0 1px rgba(16, 42, 67, .08); }
.screen { background: var(--bg); border-radius: 31px; overflow: hidden; min-height: 560px; font-size: 13px; line-height: 1.6; }
.screen .bar { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.screen .bar svg { width: 26px; height: 24px; }
.screen .bar b { font-size: 16px; display: block; }
.screen .bar small { color: var(--muted); font-size: 11px; }
.screen .sync { margin-inline-start: auto; background: var(--emerald-soft); color: #086344; font-weight: 700; font-size: 10.5px; border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.screen .body { padding: 12px; display: grid; gap: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.work { display: flex; align-items: center; gap: 10px; }
.ico { width: 32px; height: 32px; border-radius: 9px; background: var(--emerald-soft); color: var(--emerald); display: grid; place-items: center; flex: none; }
.ico svg { width: 18px; height: 18px; }
.work small, .cur small { color: var(--muted); font-size: 11px; display: block; }
.chip { font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 2px 8px; background: var(--emerald-soft); color: #086344; white-space: nowrap; }
.chip.amber { background: #FFF3DC; color: #805000; }
.work .chip { margin-inline-start: auto; }
.cur .head { display: flex; align-items: center; gap: 10px; }
.cur b { font-size: 15px; }
.cur .go { margin-top: 12px; background: var(--emerald); color: #fff; border-radius: 10px; text-align: center; padding: 10px; font-weight: 700; }
.stops { list-style: none; margin: 0; padding: 0; }
.stops li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stops li:last-child { border-bottom: 0; }
.num { width: 24px; height: 24px; border-radius: 50%; background: var(--emerald-soft); color: var(--emerald); font-weight: 700; display: grid; place-items: center; font-size: 11px; font-family: var(--font-latin); flex: none; }
.num.on { background: var(--emerald); color: #fff; }
.stops .chip { margin-inline-start: auto; }

.proof { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 18px 40px rgba(16, 42, 67, .14); font-size: 14px; animation: float 6s ease-in-out infinite; }
.proof .ico { width: 34px; height: 34px; }
.proof b { display: block; font-size: 14px; }
.proof small { display: block; color: var(--muted); font-size: 12px; }
.proof-1 { top: 70px; inset-inline-start: -6px; }
.proof-2 { top: 260px; inset-inline-end: -18px; animation-delay: -2s; }
.proof-3 { bottom: 40px; inset-inline-start: 12px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- sections ---------- */
section { padding-block: 96px; }
.head-c { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.kicker { color: var(--emerald); font-weight: 700; font-size: 15px; }
.head-c h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 8px; }
.head-c p { color: var(--muted); margin-top: 14px; font-size: 18px; }

.strip { padding-block: 26px; background: var(--surface); border-block: 1px solid var(--line); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; color: var(--muted); font-size: 15px; }
.strip span { display: inline-flex; align-items: center; gap: 8px; }
.strip svg { width: 20px; height: 20px; color: var(--emerald); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-latin); font-weight: 700; font-size: 14px; color: var(--emerald); background: var(--emerald-soft); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.step h3 { font-size: 20px; margin-top: 18px; }
.step p { color: var(--muted); margin-top: 8px; font-size: 16px; }

.features { background: var(--surface); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--emerald); transform: translateY(-2px); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; margin-top: 18px; }
.feature p { color: var(--muted); margin-top: 8px; font-size: 16px; }

.privacy { background: var(--navy); color: #E7EEF3; position: relative; overflow: hidden; }
.privacy::after { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 15% 0%, rgba(11, 163, 116, .25), transparent 70%); pointer-events: none; }
.privacy .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.privacy .kicker { color: #6EE7B7; }
.privacy h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 8px; color: #fff; }
.privacy p.lead { color: #B7C5CF; margin-top: 16px; font-size: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 16px 18px; }
.checks svg { width: 22px; height: 22px; color: #6EE7B7; flex: none; margin-top: 3px; }
.checks b { color: #fff; display: block; }
.checks span { color: #B7C5CF; font-size: 15px; }

.who .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.who .col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.who .col h3 { font-size: 21px; }
.who .col p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.who ul { margin: 16px 0 0; padding-inline-start: 20px; color: var(--ink); font-size: 15px; display: grid; gap: 6px; }

.faq { background: var(--surface); }
.faq .list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 4px 22px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-latin); color: var(--emerald); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 18px; }

.cta { padding-block: 88px; }
.cta .box { background: linear-gradient(135deg, var(--emerald) 0%, #066F50 100%); color: #fff; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta .box::after { content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid rgba(255, 255, 255, .07); }
.cta h2 { font-size: clamp(28px, 3.2vw, 40px); }
.cta p { color: #D7F3E7; margin-top: 12px; font-size: 18px; }
.cta .btn { background: #fff; color: var(--emerald); justify-self: end; position: relative; z-index: 1; }
.cta .mail { display: block; margin-top: 10px; color: #D7F3E7; font-size: 14px; justify-self: end; position: relative; z-index: 1; }

footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- motion on scroll (content visible without JS) ---------- */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal:not(.in) { opacity: 0; transform: translateY(16px); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 64px; }
    .stage { min-height: 600px; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .grid, .who .cols { grid-template-columns: 1fr 1fr; }
    .privacy .wrap, .cta .box { grid-template-columns: 1fr; }
    .cta .btn, .cta .mail { justify-self: start; }
    .nav { display: none; }
    .top .wrap { justify-content: space-between; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    section { padding-block: 64px; }
    .steps, .grid, .who .cols { grid-template-columns: 1fr; }
    .proof { font-size: 13px; padding: 8px 12px; }
    .proof-1 { inset-inline-start: 0; top: 30px; }
    .proof-2 { inset-inline-end: 0; }
    .proof-3 { inset-inline-start: 0; }
    .cta .box { padding: 32px 24px; }
    .top .btn { display: none; }
    .head-c { margin-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal:not(.in) { opacity: 1; transform: none; }
}

/* ---------- refinements after the first render ---------- */
html[lang="ar"] .hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.3; }
.phone { width: 324px; margin-top: 56px; }
.screen .bar div, .work div, .cur .head div { min-width: 0; }
.work b, .work small, .stops li, .cur small { white-space: nowrap; }
.stops li { overflow: hidden; }
.proof { white-space: nowrap; }
.proof-1 { top: 0; inset-inline-start: 0; }
.proof-2 { top: 300px; inset-inline-end: -10px; }
.proof-3 { bottom: 0; inset-inline-start: 10px; }
/* visible at rest: the scroll effect only lifts content into place */
.js .reveal:not(.in) { opacity: 1; transform: translateY(14px); }
@media (max-width: 640px) {
    .phone { width: 300px; }
    .stage { min-height: 640px; }
}
.mf { white-space: nowrap; font-family: var(--font-latin); }
