:root {
  --bg: #F7F6F4; --surface: #FFFFFF; --fg: #141212; --muted: #5E5955; --line: #E6E2DE;
  --red: #E31E24; --red-text: #C8161D; --on-red: #FFFFFF; --hl: #FDECEC;
  --band: #141212; --on-band: #F7F6F4; --band-muted: #B9B3AE; --band-line: #2E2B29;
  --display: "Cairo", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --r: 14px; --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121111; --surface: #1C1A19; --fg: #F3F1EE; --muted: #ABA6A1; --line: #2E2B29;
    --red-text: #FF5C61; --hl: #3A1517; --band: #1E1B1A; color-scheme: dark; }
}
.lang-en { --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif; --display: "Cairo", "IBM Plex Sans", "Segoe UI", Arial, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.75; }
img, video { max-width: 100%; }
a { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.25; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
h1 em { font-style: normal; color: var(--red-text); }
.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--red-text); }
.lang-en .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--red); color: var(--on-red); font-weight: 600; text-decoration: none; font-family: var(--body); font-size: 1rem; border: 0; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn.ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--line); }
.btn.ghost-light { background: transparent; color: var(--on-band); border: 1.5px solid color-mix(in srgb, var(--on-band) 35%, transparent); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { color: var(--fg); display: flex; }
.logo-mark { height: 34px; width: auto; display: block; }
.lang-en .logo-mark { height: 28px; }
.nav { display: flex; gap: 18px; flex: 1; overflow-x: auto; scrollbar-width: none; font-weight: 500; font-size: .95rem; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--fg); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.lang { color: var(--fg); font-weight: 600; text-decoration: none; font-size: .95rem; }
@media (max-width: 760px) {
  .top-row { flex-wrap: wrap; gap: 8px 14px; padding-block: 10px; }
  .nav { order: 3; flex-basis: 100%; }
  .top-actions { margin-inline-start: auto; }
}

/* hero */
main { display: block; }
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-block: 52px 40px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.index { flex: 1 1 400px; min-width: 0; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.index-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.index-head h2 { font-size: 1.1rem; }
.index-head span { color: var(--muted); font-size: .85rem; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles.others { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.tile { display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 58px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--fg); font-weight: 600; font-size: .95rem; line-height: 1.35; min-width: 0; }
.tile:hover { border-color: var(--red); background: var(--hl); }
.tile svg { width: 24px; height: 24px; stroke: var(--red-text); flex: none; }
@media (max-width: 360px) { .tiles { grid-template-columns: 1fr; } }

/* breadcrumbs + category hero */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; padding-top: 22px; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-hero { padding-block: 24px 32px; align-items: flex-start; }
.cat-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.ic { width: 40px; height: 40px; border-radius: 12px; background: var(--hl); display: inline-grid; place-items: center; flex: none; }
.ic svg { width: 22px; height: 22px; stroke: var(--red-text); }
.deliver { flex: 1 1 320px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.deliver h2 { font-size: 1.15rem; }

/* tables */
.ledger { min-width: 0; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.ledger-head { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; align-items: baseline; }
.ledger-head h3 { font-size: 1.05rem; }
.ledger-head span { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; min-width: 0; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
th, td { padding: 10px 8px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 600; color: var(--muted); font-size: .85rem; }
td.num, th.num { text-align: end; direction: ltr; }
tr.best td { background: var(--hl); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--red); color: var(--on-red); margin-inline-start: 6px; }
.note { font-size: .9rem; color: var(--muted); }

/* bands */
.band { background: var(--band); color: var(--on-band); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; padding-block: 8px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 22px 18px; border-inline-start: 1px solid var(--band-line); }
.kpi:first-child { border-inline-start: 0; }
.kpi b { font-family: var(--display); font-size: 2rem; line-height: 1.2; direction: ltr; text-align: start; font-variant-numeric: tabular-nums; }
.kpi::before { content: ""; width: 28px; height: 3px; background: var(--red); border-radius: 2px; margin-bottom: 10px; }
.kpi span { color: var(--band-muted); font-size: .92rem; }
.lang-ar .kpi b, .lang-ar .stat b { text-align: right; }
@media (max-width: 500px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi { border-inline-start: 0; padding: 18px 12px; } .kpi b { font-size: 1.6rem; } }

/* sections */
.section { display: flex; flex-direction: column; gap: 28px; padding-block: 72px 8px; scroll-margin-top: 80px; }
#agent, #contact { scroll-margin-top: 80px; }
.section-head { display: flex; flex-direction: column; gap: 8px; max-width: 42em; }

/* home: categories */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.cat { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cat-head { display: flex; align-items: center; gap: 12px; }
.cat h3 a { color: var(--fg); text-decoration: none; }
.cat h3 a:hover { color: var(--red-text); }
.cat > p { color: var(--muted); font-size: .96rem; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 4px 16px; font-size: .93rem; }
.mini li { display: flex; gap: 8px; align-items: baseline; }
.mini li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; transform: translateY(-2px); }
.more { margin-top: auto; padding-top: 4px; font-weight: 600; text-decoration: none; color: var(--red-text); align-self: flex-start; }
.more:hover { text-decoration: underline; }
.extras { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1.5px dashed var(--line); border-radius: var(--r); }
.extras .chips li { font-weight: 500; font-size: .95rem; padding: 8px 14px; }

/* category: service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.cards.n8 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card > svg { width: 28px; height: 28px; stroke: var(--red-text); }
.card p { color: var(--muted); font-size: .95rem; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
.ticks li { display: flex; gap: 8px; align-items: baseline; }
.ticks li::before { content: "✓"; color: var(--red-text); font-weight: 700; flex: none; }
.callout { padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--red); display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.chips.tech li { font-weight: 500; font-size: .95rem; padding: 8px 14px; }

/* agent */
.agent { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 64px; }
.agent-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.agent .eyebrow { color: #FF5C61; }
.agent .note { color: var(--band-muted); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--red); transform: translateY(-1px); }
.phone { flex: 0 1 300px; margin-inline: auto; background: #000; border-radius: 28px; padding: 10px; border: 1px solid var(--band-line); }
.phone video { display: block; width: 100%; aspect-ratio: 1080 / 2340; border-radius: 20px; background: #000; }

/* results */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.cases.one { max-width: 640px; }
.case { padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.case .kind { font-size: .85rem; color: var(--muted); font-weight: 500; }
.stat-row { display: flex; gap: 22px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat b { font-family: var(--display); font-size: 1.9rem; line-height: 1.2; color: var(--red-text); font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
.stat span { font-size: .86rem; color: var(--muted); }
.case ul { margin: 0; padding-inline-start: 1.2em; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }

/* chips */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; padding: 20px; border-top: 3px solid var(--red); background: var(--surface); border-radius: 0 0 var(--r) var(--r); display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: var(--red-text); line-height: 1; }
.lang-ar .steps li::before { content: counter(step, arabic-indic); }
.steps p { color: var(--muted); font-size: .96rem; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--red-text); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 16px; }

/* contact */
.contact { background: var(--band); color: var(--on-band); border-radius: calc(var(--r) * 1.5); padding: 32px 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); padding: 40px; } }
.contact-copy { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.contact-copy > p { color: var(--band-muted); }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 10px; }
.contact .or { color: var(--band-muted); font-size: .9rem; }
.contact .number { font-family: var(--display); font-size: 1.5rem; font-weight: 800; user-select: all; background: color-mix(in srgb, var(--on-band) 12%, transparent); padding: 6px 14px; border-radius: 10px; }
.contact .row { display: flex; gap: 10px; flex-wrap: wrap; }
#copy-status { font-size: .9rem; color: var(--band-muted); min-height: 1.4em; }
.lead-form { background: var(--surface); color: var(--fg); border-radius: var(--r); padding: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full, .form-foot, #form-status { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--fg); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent); }
.form-foot { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
#form-status { font-size: .95rem; font-weight: 600; }
#form-status:empty { display: none; }
.hp { display: none; }

/* simple pages */
.simple { padding-block: 72px 24px; align-items: flex-start; }

/* footer */
.foot { margin-top: 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; padding-block: 44px 100px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 28px; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.foot .slogan { height: 30px; width: auto; max-width: 100%; color: var(--fg); align-self: flex-start; }
.foot-h { font-weight: 600; color: var(--fg); margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); text-decoration: underline; }

/* floating whatsapp */
.wa-float { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); inset-inline-end: max(18px, env(safe-area-inset-right, 0px)); width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / .25); z-index: 30; }
.wa-float svg { width: 30px; height: 30px; }
/* keep clear of the host's badge in the bottom-right corner */
.lang-en .wa-float { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
