/* mourakeb.com: the red-and-white launch look, with a small touch of black (the Platform
   button, the server box and the footer). Logical properties throughout, so the Arabic page
   mirrors without its own rules. Font URLs are filled in by build.cjs. */

@font-face { font-family: Cairo; src: url(/assets/cairo-regular.767b5dec36.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Cairo; src: url(/assets/cairo-medium.eaef65c0f8.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Cairo; src: url(/assets/cairo-bold.f292ca3510.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --red: #C1272D; --red-deep: #9C1F24; --red-bright: #E0353C; --tint: #F8E6E7;
  --ink: #00051C; --ink-2: #4A5360; --ink-3: #6B7480; --line: #E1E4E8; --mist: #F4F5F7;
  --black: #0B0B0D; --paper: #FFFFFF;
  --chrome: #16191D;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(0, 5, 28, 0.08);
  --gutter: 16px;
  --font: Cairo, "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (min-width: 760px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.01em; }
[dir="rtl"] h2, [dir="rtl"] h1 { letter-spacing: 0; line-height: 1.35; }
h3 { font-size: 22px; }
.red { color: var(--red); }
.muted { color: var(--ink-3); font-weight: 500; }
.center { text-align: center; margin-inline: auto; }
.narrow { max-width: 860px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; border-radius: 6px; }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .ic-flip { transform: scaleX(-1); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--black); color: #fff; padding: 8px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 17px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { background: #26262B; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost .ic { color: var(--red); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--tint); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-sm .ic { width: 18px; height: 18px; }
.btn-wide { width: 100%; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand img { width: 132px; height: auto; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 24px; }
.nav ul a { text-decoration: none; font-weight: 500; font-size: 16px; color: var(--ink-2); }
.nav ul a:hover { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 6px; }
.lang:hover { color: var(--red); }
.menu-btn { display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; margin: auto; position: relative; transition: transform .2s, background .2s; }
.bars::before, .bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 5, 28, .08);
    flex-direction: column; align-items: stretch; gap: 8px; padding: 12px var(--gutter) 22px; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav-actions { flex-wrap: wrap; padding-top: 10px; }
  .nav-actions .btn { flex: 1 1 140px; min-height: 48px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 64px; }
.hero-drop { position: absolute; width: 130vw; inset-inline-end: -55vw; bottom: -40vw; pointer-events: none; }
[dir="rtl"] .hero-drop { transform: scaleX(-1); }
.hero-in { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero { padding: 64px 0 96px; } .hero-in { grid-template-columns: 1fr 1.05fr; gap: 48px; } .hero-drop { width: 900px; top: 40px; bottom: auto; inset-inline-end: -260px; } }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--tint); color: var(--red-deep); font-weight: 700; font-size: 14px; padding: 6px 16px 5px; border-radius: 999px; }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(193, 39, 45, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(193, 39, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(193, 39, 45, 0); } }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: 22px; }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: 16px; }
.kicker.red { color: var(--red); margin: 0 0 10px; }
.kicker .muted { text-transform: none; letter-spacing: 0; }
h1 { margin-top: 14px; font-size: clamp(46px, 7.4vw, 86px); line-height: 1.02; letter-spacing: -0.025em; }
h1 span { display: block; }
[dir="rtl"] h1 { font-size: clamp(48px, 7.6vw, 92px); line-height: 1.25; }
.verbs-line { margin-top: 18px; font-weight: 700; font-size: 22px; }
.verbs-line .dot { color: var(--red); padding-inline: .45em; }
.lead { margin-top: 18px; font-size: 19px; line-height: 1.65; color: var(--ink-2); max-width: 560px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.devices { position: relative; padding-bottom: 6%; }
.laptop { width: 92%; margin-inline-start: 0; }
.lid { background: #1B2030; border-radius: 16px 16px 0 0; padding: 1.8%; box-shadow: 0 30px 70px rgba(0, 5, 28, .28); }
.lid img { width: 100%; aspect-ratio: 2642 / 1486; object-fit: cover; border-radius: 2px; }
.base { height: 16px; margin-inline: -4.5%; border-radius: 0 0 14px 14px; background: linear-gradient(#E6E9EE, #AEB4BF); }
.phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 24%; aspect-ratio: 319 / 610; background: #0B0F1A; border-radius: 22% / 11.5%; padding: 4%; box-shadow: 0 24px 50px rgba(0, 5, 28, .35); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 18% / 9.5%; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.band { padding: 72px 0; background: var(--mist); }
@media (min-width: 1000px) { .section, .band { padding: 104px 0; } }
.section > .wrap > h2, .band > .wrap > h2 { margin-bottom: 40px; }

.well { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--tint); color: var(--red); flex: none; }
.well .ic { width: 26px; height: 26px; }
.well-red { background: var(--red); color: #fff; }
.well.sm { width: 40px; height: 40px; }
.well.sm .ic { width: 21px; height: 21px; }

.verb-cards { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 860px) { .verb-cards { grid-template-columns: repeat(3, 1fr); } }
.verb-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.verb-card h3 { font-size: 30px; margin-top: 18px; }
.verb-card p { color: var(--ink-2); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.chips a { display: inline-block; text-decoration: none; font-size: 14px; font-weight: 500; background: var(--mist); padding: 5px 12px 4px; border-radius: 999px; color: var(--ink); }
.chips a:hover { background: var(--tint); color: var(--red-deep); }

.group { margin-top: 64px; }
.group-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 30px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.group-sub { font-size: 17px; font-weight: 500; color: var(--ink-3); }
.feature-grid { display: grid; gap: 40px 32px; margin-top: 32px; }
@media (min-width: 760px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature h4 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin-top: 18px; }
.feature h4 .ic { color: var(--red); }
.feature p { color: var(--ink-2); margin-top: 4px; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: var(--chrome); border-radius: 12px; overflow: hidden; cursor: zoom-in; box-shadow: 0 18px 40px rgba(0, 5, 28, .16); transition: transform .2s, box-shadow .2s; text-align: start; }
.shot:hover { transform: translateY(-3px); box-shadow: 0 26px 50px rgba(0, 5, 28, .22); }
.shot .bar { display: flex; align-items: center; gap: 6px; height: 30px; padding-inline: 12px; direction: ltr; }
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3A404B; }
.shot .bar span { margin-inline: auto; transform: translateX(-20px); font: 500 12px/1 var(--font); color: #A3AAB2; background: #23272D; padding: 5px 16px 4px; border-radius: 6px; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }

.film .video { margin-top: 36px; border-radius: var(--radius); overflow: hidden; background: var(--black); box-shadow: 0 30px 70px rgba(0, 5, 28, .22); max-width: 1040px; margin-inline: auto; }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--black); }
.film p.center { margin-top: 8px; }

.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: var(--mist); border-radius: var(--radius); padding: 26px; }
.step .num { position: absolute; top: 24px; inset-inline-end: 24px; font-weight: 700; color: var(--ink-3); font-size: 18px; }
.step h3 { font-size: 26px; margin-top: 18px; }
.step p { color: var(--ink-2); margin-top: 4px; }

.aud-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .aud-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .aud-grid { grid-template-columns: repeat(4, 1fr); } }
.aud { background: #fff; border-radius: var(--radius); padding: 26px; border-top: 5px solid var(--red); box-shadow: var(--shadow); }
.aud h3 { margin-top: 18px; font-size: 21px; }
.aud p { color: var(--ink-2); margin-top: 6px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 10px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-inline-start: 18px; border-inline-start: 2px solid var(--line); }
.stat dd { font-size: clamp(54px, 7vw, 84px); font-weight: 700; color: var(--red); line-height: 1.05; text-align: start; }
[dir="rtl"] .stat dd { text-align: right; }
.stat dt { font-size: 18px; color: var(--ink-2); margin-top: 6px; }
.proofs { display: grid; gap: 14px; margin-top: 44px; }
@media (min-width: 760px) { .proofs { grid-template-columns: 1fr 1fr; } }
.proofs li { display: flex; align-items: center; gap: 14px; background: var(--mist); border-radius: 14px; padding: 18px 20px; font-weight: 700; }
.proofs .ic { color: var(--red); width: 26px; height: 26px; }

.deploy-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .deploy-in { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.deploy .lead { max-width: 520px; }
.flow { display: grid; gap: 10px; justify-items: stretch; }
@media (min-width: 640px) { .flow { grid-template-columns: 1fr auto 1.25fr auto 1fr; align-items: center; } }
.node { position: relative; display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.node .ic { color: var(--red); width: 26px; height: 26px; margin-bottom: 6px; }
.node b { font-size: 18px; }
.node span { font-size: 14px; color: var(--ink-3); line-height: 1.4; }
.node.core { background: var(--black); border-color: var(--black); color: #fff; padding: 26px 20px; }
.node.core span { color: #B4B4BA; }
.node .lock { position: absolute; top: -16px; inset-inline-end: -12px; width: 44px; height: 44px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.node .lock .ic { color: #fff; margin: 0; width: 22px; height: 22px; }
.arrow { display: grid; place-items: center; color: var(--red); }
@media (max-width: 639px) { .arrow { transform: rotate(90deg); } [dir="rtl"] .arrow { transform: rotate(90deg); } }

.launch { background: var(--red); color: #fff; padding: 44px 0; position: relative; overflow: hidden; }
.launch-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.badge-on-red { background: rgba(255, 255, 255, .16); color: #fff; }
.badge-on-red .live { background: #fff; }
.launch-title { margin-top: 14px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; line-height: 1.25; }
.launch-title span { color: #FFE3E1; display: block; }

.demo-in { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .demo-in { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } .demo-copy { position: sticky; top: 120px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
@media (min-width: 760px) { .card { padding: 36px; } }
.demo-form { display: grid; gap: 18px; }
.row2 { display: grid; gap: 18px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.demo-form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.opt { font-weight: 400; color: var(--ink-3); }
.demo-form input:not([type="checkbox"]), .demo-form textarea { width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
[dir="rtl"] .demo-form input[dir="ltr"] { text-align: right; }
.demo-form input:focus, .demo-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(193, 39, 45, .12); }
.demo-form .bad { border-color: var(--red); background: #FFF8F8; }
.demo-form textarea { resize: vertical; min-height: 96px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 500 !important; background: var(--mist); border: 1.5px solid transparent; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.check input { accent-color: var(--red); width: 16px; height: 16px; margin: 0; }
.check:has(input:checked) { background: var(--tint); border-color: var(--red); color: var(--red-deep); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 14px; color: var(--ink-3); }
.or-write { text-align: center; }
.or-write a { color: var(--red-deep); font-weight: 700; }
.status { min-height: 1.6em; font-weight: 700; }
.status.ok { color: #1E7A46; }
.status.err { color: var(--red-deep); }
.demo-form.sent > :not(.status) { display: none; }
.demo-form.sent .status { font-size: 20px; padding: 30px 0; }
.stand-only { font-size: 20px; font-weight: 700; }

/* ---------- footer: black ---------- */
.foot { background: var(--black); color: #fff; padding: 64px 0 28px; }
.foot-in { display: grid; gap: 36px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; } }
.foot-brand img { width: 150px; }
.foot-brand p { color: #B4B4BA; margin-top: 14px; }
.foot-brand .verbs-line { color: #fff; font-size: 18px; margin-top: 6px; }
.foot-brand .dot { color: var(--red-bright); }
.foot-links { display: grid; gap: 10px; }
.foot-links a { text-decoration: none; color: #E4E4E7; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-parent { display: grid; gap: 12px; justify-items: start; color: #B4B4BA; font-size: 15px; }
.foot-parent img { height: 40px; width: auto; }
.foot-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid #2A2A30; color: #8E8E94; font-size: 14px; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1600px, 96vw); width: 96vw; }
.lightbox::backdrop { background: rgba(0, 5, 28, .82); }
.lightbox figure { background: var(--chrome); border-radius: 12px; overflow: hidden; }
.lightbox img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; background: var(--chrome); }
.lightbox figcaption { color: #fff; padding: 12px 16px; font-weight: 700; }
.lb-close { position: fixed; top: 16px; inset-inline-end: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }

/* ---------- 404 ---------- */
.nf { display: grid; min-height: 100vh; place-items: center; text-align: center; }
.nf-in { display: grid; gap: 18px; justify-items: center; padding-block: 60px; }
.nf h1 { font-size: 40px; }
.nf .btn { margin: 6px; }
