/* ==========================================================================
   DEVixo design system
   Light, warm-neutral surfaces · near-black ink · brand orange from the logo.
   Spacing follows an 8-point scale. Logical properties keep RTL automatic.
   ========================================================================== */

:root {
  /* Color */
  --bg: #ffffff;
  --surface: #f7f6f3;
  --surface-2: #efede8;
  --line: #e7e4dd;
  --line-strong: #d5d1c7;
  --ink: #16161a;
  --ink-2: #3d3e45;
  --muted: #62636b;
  --accent: #fda305;          /* logo orange — fills, never small text on white */
  --accent-hover: #ee9600;
  --accent-ink: #16161a;      /* text on accent */
  --accent-text: #985a00;     /* accessible orange for text/icons on white (5.1:1) */
  --accent-soft: #fff3d9;
  --dark: #151513;            /* logo background */
  --dark-2: #1e1e1b;
  --dark-line: #302f2b;
  --dark-muted: #aeada6;
  --ok: #1d6b45; --ok-soft: #e4f2ea;
  --warn: #8a5100; --warn-soft: #fff1d6;
  --err: #b42318; --err-soft: #fdecea;
  --wa: #1d9c55;

  /* Type */
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Manrope', ui-sans-serif, system-ui, 'Segoe UI', Tahoma, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Spacing (8pt) */
  --s-1: 4px; --s0: 8px; --s1: 16px; --s2: 24px; --s3: 32px; --s4: 40px; --s5: 48px; --s6: 64px; --s7: 80px; --s8: 96px;
  --section: clamp(64px, 8vw, 112px);

  /* Shape */
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 28px; --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(22, 22, 26, .06);
  --shadow: 0 1px 2px rgba(22, 22, 26, .04), 0 10px 28px -12px rgba(22, 22, 26, .14);
  --shadow-lg: 0 2px 6px rgba(22, 22, 26, .05), 0 28px 56px -24px rgba(22, 22, 26, .28);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang='ar'] body { font-family: var(--font-ar); line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.tone-dark :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: var(--accent); }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: 0; }
.muted { color: var(--muted); }
[dir='rtl'] .flip { transform: scaleX(-1); }
.icon { flex: none; }

/* ---------- Type scale ---------- */
.display { font-size: clamp(2.375rem, 1.6rem + 2.9vw, 3.875rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.h1 { font-size: clamp(2.125rem, 1.55rem + 2.4vw, 3.375rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.625rem); line-height: 1.14; letter-spacing: -.025em; font-weight: 800; }
.h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }
.h4 { font-size: 1.0625rem; line-height: 1.35; font-weight: 700; }
.lead { font-size: 1.0625rem; color: var(--ink-2); max-width: 62ch; }
.lead-lg { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); }
html[lang='ar'] .display, html[lang='ar'] .h1, html[lang='ar'] .h2, html[lang='ar'] .h3 { letter-spacing: 0; font-weight: 700; }
html[lang='ar'] .display { line-height: 1.32; }
html[lang='ar'] .h1 { line-height: 1.35; }
html[lang='ar'] .h2 { line-height: 1.4; }
html[lang='ar'] .h3, html[lang='ar'] .h4 { line-height: 1.5; }
.hl { background-image: linear-gradient(to top, rgba(253, 163, 5, .38) 0 .26em, transparent .26em); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: .04em; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--s1); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
html[lang='ar'] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9375rem; }
.eyebrow::before { content: ''; width: 18px; height: 3px; border-radius: 3px; background: var(--accent); }
.eyebrow-num { font-family: var(--mono); color: var(--ink); font-weight: 500; letter-spacing: 0; }
.eyebrow:has(.eyebrow-num)::before { display: none; }
.eyebrow-num::after { content: ''; display: inline-block; width: 18px; height: 3px; border-radius: 3px; background: var(--accent); margin-inline-start: 10px; vertical-align: middle; }

/* ---------- Buttons & links ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: var(--pill); border: 1px solid transparent;
  font-weight: 700; font-size: .9375rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: .875rem; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 18px -8px rgba(238, 150, 0, .7); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .55; pointer-events: none; }
.btn .spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9375rem; color: var(--ink); text-decoration: none; }
.link-arrow .icon { color: var(--accent-text); transition: transform .2s var(--ease); }
.link-arrow:hover .icon, .card:hover .link-arrow .icon { transform: translateX(3px); }
[dir='rtl'] .link-arrow:hover .icon, [dir='rtl'] .card:hover .link-arrow .icon { transform: scaleX(-1) translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.center-row { display: flex; justify-content: center; margin-top: var(--s5); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(22, 22, 26, .35); }
.header-inner { display: flex; align-items: center; gap: var(--s3); height: var(--header-h); }
.logo { display: inline-flex; flex: none; border-radius: 6px; }
.logo img { width: 132px; height: auto; }
.main-nav { margin-inline: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav a, .nav-trigger { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: var(--r-sm); font-size: .9375rem; font-weight: 600; color: var(--ink-2); text-decoration: none; background: none; border: 0; }
.main-nav a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded='true'] { color: var(--ink); background: var(--surface); }
.main-nav a[aria-current='page'], .nav-trigger[data-active] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-trigger .icon { transition: transform .2s; }
.nav-trigger[aria-expanded='true'] .icon { transform: rotate(180deg); }
.has-menu { position: relative; }
.mega { position: absolute; top: calc(100% + 12px); inset-inline-start: 50%; transform: translateX(-50%); width: min(760px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 12px; }
[dir='rtl'] .mega { transform: translateX(50%); }
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.main-nav .mega-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: var(--r); white-space: normal; }
.main-nav .mega-item:hover { background: var(--surface); }
.mega-item strong { display: block; font-size: .9375rem; color: var(--ink); }
.mega-item small { display: block; font-size: .8125rem; color: var(--muted); font-weight: 500; }
.mega-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 12px 4px; border-top: 1px solid var(--line); }
.main-nav .mega-foot a { padding: 0; background: none; }
.mega-wa { color: var(--muted) !important; font-size: .875rem !important; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.main-nav + .header-actions { margin-inline-start: 0; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--pill); font-weight: 600; font-size: .875rem; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); }
.lang-switch:hover { border-color: var(--ink); color: var(--ink); }
.lang-switch[lang='ar'] span { font-family: var(--font-ar); }
.lang-switch[lang='en'] span { font-family: var(--font); }
.menu-btn { display: none; place-items: center; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; color: var(--ink); }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(21, 21, 19, .45); z-index: 60; opacity: 0; transition: opacity .2s; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(380px, 88vw); background: #fff; z-index: 61; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .28s var(--ease); overflow-y: auto; }
[dir='rtl'] .drawer { transform: translateX(-100%); }
.drawer.is-open { transform: none !important; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); padding-inline: 20px; border-bottom: 1px solid var(--line); }
.drawer-head .menu-btn { display: grid; }
.drawer-nav { display: flex; flex-direction: column; padding: 12px 12px; }
.drawer-nav > a, .drawer-nav summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 12px; border-radius: var(--r); font-weight: 700; font-size: 1.0625rem; text-decoration: none; list-style: none; cursor: pointer; }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav > a:hover, .drawer-nav summary:hover { background: var(--surface); }
.drawer-nav details[open] summary .icon { transform: rotate(180deg); }
.drawer-sub { display: flex; flex-direction: column; padding: 4px 0 8px; }
.drawer-sub a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px 0 20px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; text-decoration: none; }
.drawer-sub a:hover { background: var(--surface); color: var(--ink); }
.drawer-sub .icon { color: var(--accent-text); }
.drawer-foot { margin-top: auto; display: grid; gap: 10px; padding: 20px; border-top: 1px solid var(--line); }
.lang-block { justify-content: center; min-height: 44px; }
body.drawer-open { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.tone-soft { background: var(--surface); }
.tone-dark { background: var(--dark); color: #fff; }
.tone-dark h2, .tone-dark h3 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s2) var(--s3); margin-bottom: var(--s5); }
.section-head-text { max-width: 720px; }
.section-head .lead { margin-top: var(--s1); }
.section-head.is-center { justify-content: center; text-align: center; }
.section-head.is-center .section-head-text { margin-inline: auto; }
.section-head.is-center .lead { margin-inline: auto; }
.section-head-action { flex: 0 1 auto; max-width: 100%; }

.grid { display: grid; gap: var(--s2); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Cards ---------- */
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.card:has(.stretched):hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card:has(.stretched:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.stretched { text-decoration: none; }
.stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.stretched:focus-visible { outline: none; }
.icon-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); }

.service-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.service-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.service-card p { color: var(--ink-2); }
.service-card .link-arrow { margin-top: auto; padding-top: 8px; }
.check-list { list-style: none; display: grid; gap: 6px; margin: 4px 0 8px; font-size: .9375rem; color: var(--ink-2); }
.check-list li { display: flex; gap: 8px; align-items: flex-start; }
.check-list .icon { margin-top: 4px; color: var(--accent-text); }
html[lang='ar'] .check-list .icon { margin-top: 6px; }
.service-card-combined { background: var(--ink); border-color: var(--ink); color: #fff; }
.service-card-combined h3 { color: #fff; }
.service-card-combined p { color: var(--dark-muted); }
.service-card-combined .icon-tile { background: rgba(253, 163, 5, .14); color: var(--accent); }
.service-card-combined .muted { color: var(--dark-muted); }
.link-list { list-style: none; display: grid; gap: 2px; margin-top: auto; }
.link-list a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--dark-line); color: #fff; text-decoration: none; font-weight: 600; font-size: .9375rem; }
.link-list a .icon:first-child { color: var(--accent); }
.link-list a .icon:last-child { margin-inline-start: auto; color: var(--dark-muted); transition: transform .2s; }
.link-list a:hover .icon:last-child { color: var(--accent); }

/* Tags & chips */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--pill); font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
html[lang='ar'] .tag { font-size: .8125rem; }
.tag-accent { background: var(--accent-soft); color: var(--accent-text); }
.tag-soft { background: transparent; border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.chip-strong { border-color: var(--line-strong); color: var(--ink); }
.chip-strong::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Browser & phone frames ---------- */
.browser { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 30px; padding-inline: 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 5px; flex: none; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.browser-url { flex: 1; max-width: 60%; margin-inline: auto; padding: 2px 10px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); font-family: var(--mono); font-size: 10px; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.browser-view > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone { position: relative; border: 7px solid var(--ink); border-radius: 30px; background: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; aspect-ratio: 9 / 19; }
.phone-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 34%; height: 14px; border-radius: 10px; background: var(--ink); z-index: 2; }
.phone-view { position: absolute; inset: 0; border-radius: 23px; overflow: hidden; background: #fff; }
.phone-view > img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }
.shot-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--ph, var(--surface-2)); background-image: repeating-linear-gradient(135deg, rgba(22, 22, 26, .035) 0 1px, transparent 1px 12px); }
.shot-name { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; color: rgba(22, 22, 26, .62); text-align: center; padding-inline: 16px; }
.shot-note { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pill); background: rgba(255, 255, 255, .75); font-size: .75rem; font-weight: 600; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(22, 22, 26, .09) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 78% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 78% 40%, #000 0%, transparent 70%); pointer-events: none; }
[dir='rtl'] .hero::before { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 22% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 22% 40%, #000 0%, transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text .lead { margin: var(--s2) 0 var(--s4); }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: var(--s3); font-size: .9375rem; color: var(--muted); font-weight: 500; }
.hero-note .icon { color: var(--wa); }

.hero-visual { position: relative; aspect-ratio: 1.08; min-height: 0; }
.hv-desktop { position: absolute; top: 4%; inset-inline-start: 0; width: 90%; }
.hv-small { position: absolute; bottom: 2%; inset-inline-start: 6%; width: 50%; }
.hv-small .browser-view { aspect-ratio: 16 / 9.4; }
.hv-phone { position: absolute; bottom: 0; inset-inline-end: 2%; width: 31%; z-index: 2; }
.hv-badge { position: absolute; top: 0; inset-inline-end: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hv-badge strong { display: block; font-size: .875rem; }
.hv-badge small { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
.hv-badge-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); }

/* Capability strip */
.cap-strip { border-block: 1px solid var(--line); background: #fff; }
.cap-strip ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; list-style: none; padding-block: 22px; }
.cap-strip li { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9375rem; color: var(--ink-2); }
.cap-strip .icon { color: var(--accent-text); }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2); }
.project-card { display: flex; flex-direction: column; overflow: hidden; grid-column: span 2; }
.project-card.size-lg { grid-column: span 3; }
.project-card > .browser { margin: 14px 14px 0; box-shadow: none; border-radius: 10px; }
.project-card.size-lg .browser-view { aspect-ratio: 16 / 9; }
.project-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 24px; flex: 1; }
.project-body .h3 { margin-top: 4px; }
.project-body .muted { margin: 0; }
.project-summary { color: var(--ink-2); font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-body .link-arrow { margin-top: auto; padding-top: 8px; }
.project-card[hidden] { display: none; }
.filter-empty { grid-column: 1 / -1; padding: var(--s5); text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 40px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: #fff; font-weight: 600; font-size: .875rem; color: var(--ink-2); transition: all .15s; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.why-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.why-intro .lead { margin: var(--s2) 0 var(--s4); }
.why-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); }
.why-list li { display: flex; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.why-list li:nth-child(-n + 2) { border-top-color: var(--ink); }
.why-num { color: var(--accent-text); padding-top: 2px; }
.why-list p { margin-top: 8px; color: var(--ink-2); font-size: .9375rem; }

/* ---------- Tech stack table ---------- */
.stack-table { border-top: 1px solid var(--line-strong); }
.stack-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s3); align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stack-label { display: flex; flex-direction: column; gap: 4px; }
.stack-label p { font-size: .875rem; color: var(--muted); margin: 0; }

/* ---------- Process ---------- */
.process { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); counter-reset: step; }
.process-step { position: relative; }
.process-marker { position: relative; display: flex; align-items: center; height: 40px; margin-bottom: var(--s2); }
.process-marker::before { content: ''; position: absolute; inset-inline: 0 calc(-1 * var(--s2)); top: 50%; height: 2px; background: repeating-linear-gradient(to right, var(--line-strong) 0 6px, transparent 6px 12px); }
.process-step:last-child .process-marker::before { inset-inline-end: 0; background: linear-gradient(to right, var(--line-strong), transparent); }
[dir='rtl'] .process-step:last-child .process-marker::before { background: linear-gradient(to left, var(--line-strong), transparent); }
.process-num { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8125rem; }
.process-step:first-child .process-num { background: var(--accent); color: var(--accent-ink); }
.process-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); color: var(--accent-text); margin-bottom: 12px; }
.tone-soft .process-icon { background: #fff; }
.process-body p { margin-top: 8px; color: var(--ink-2); font-size: .9375rem; }

/* ---------- Testimonials ---------- */
.testimonial { margin: 0; padding: 32px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.testimonial.is-empty { border-style: dashed; border-color: var(--line-strong); background: transparent; }
.testimonial.is-empty blockquote { color: var(--muted); }
.testimonial blockquote { margin: 0; font-size: 1.125rem; font-weight: 500; }
.quote-icon { color: var(--accent); }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption strong { display: block; font-size: .9375rem; }
.testimonial figcaption small { display: block; color: var(--muted); font-size: .8125rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); border: 1px dashed var(--line-strong); flex: none; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: var(--s3); }
.cta-inner { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s4); padding: clamp(40px, 6vw, 72px); border-radius: var(--r-xl); background: var(--dark); color: #fff; }
.cta-inner h2 { color: #fff; }
.cta-text p { margin-top: var(--s1); color: var(--dark-muted); font-size: 1.0625rem; max-width: 56ch; }
.cta-mark { position: absolute; inset-inline-end: -12px; top: -42px; font-family: var(--mono); font-size: 200px; line-height: 1; color: rgba(253, 163, 5, .07); pointer-events: none; user-select: none; }
.cta-inner > *:not(.cta-mark) { position: relative; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-intro .lead { margin: var(--s2) 0 var(--s3); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.0625rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-text); }
.faq-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .2s var(--ease), background .2s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.faq-answer { padding: 0 0 24px; color: var(--ink-2); max-width: 68ch; }
.faq-group + .faq-group { margin-top: var(--s5); }
.faq-group h2 { margin-bottom: var(--s2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-muted); padding-top: var(--s7); margin-top: var(--s3); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: var(--s4); padding-bottom: var(--s6); }
.footer-brand p { margin: var(--s2) 0; max-width: 40ch; font-size: .9375rem; }
.footer-brand .logo img { width: 140px; }
.footer-contact { display: grid; gap: 8px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; }
.footer-wa .icon { color: var(--accent); }
.footer-social { display: flex; gap: 8px; margin-top: var(--s2); }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--dark-line); color: #fff; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-title { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted); font-weight: 700; margin-bottom: var(--s1); }
html[lang='ar'] .footer-title { letter-spacing: 0; font-size: .9375rem; }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding: 4px 0; color: #e9e8e3; text-decoration: none; font-size: .9375rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0 32px; border-top: 1px solid var(--dark-line); font-size: .875rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.footer-legal a { color: var(--dark-muted); text-decoration: none; }
.footer-legal a:hover { color: #fff; }
.lang-footer { border-color: var(--dark-line); color: #fff !important; }

.wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(29, 156, 85, .6); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--s3) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: center; margin-top: var(--s4); }
.page-hero.has-visual .page-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.page-hero-text .lead { margin: var(--s2) 0 0; }
.page-hero-text .actions { margin-top: var(--s4); }
.page-hero:not(.has-visual) .page-hero-text { max-width: 820px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; list-style: none; font-size: .875rem; color: var(--muted); font-weight: 500; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Mockups ---------- */
.mock-figure { position: relative; margin: 0; }
.visual-caption { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.sk { display: block; height: 7px; border-radius: 4px; background: var(--surface-2); }
.sk.accent { background: var(--accent); opacity: .8; }
.sk.light { background: rgba(255, 255, 255, .55); }
.w20 { width: 20%; } .w30 { width: 30%; } .w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }
.sk-num { display: block; width: 46%; height: 16px; border-radius: 4px; background: var(--ink); opacity: .85; margin-top: 4px; }
.sk-num.light { background: #fff; opacity: .9; }
.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--pill); font-size: 10px; font-weight: 700; white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-low, .pill-wait { background: var(--warn-soft); color: var(--warn); }

.mock-dash .browser-view { aspect-ratio: 16 / 10.5; background: #fff; }
.dash { position: absolute; inset: 0; display: grid; grid-template-columns: 30% 1fr; font-size: 11px; }
.dash-side { background: var(--dark); color: var(--dark-muted); padding: 12px 8px; display: flex; flex-direction: column; gap: 3px; }
.dash-logo { width: 46px; height: 10px; border-radius: 3px; background: var(--accent); margin: 2px 8px 12px; }
.dash-nav { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; }
.dash-nav.on { background: rgba(253, 163, 5, .14); color: #fff; }
.dash-nav.on .icon { color: var(--accent); }
.dash-main { padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); min-width: 0; }
.dash-top { display: flex; justify-content: space-between; align-items: center; }
.dash-title { font-weight: 800; font-size: 13px; }
.dash-search { display: grid; place-items: center; width: 60px; height: 20px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--muted); justify-content: end; padding-inline: 6px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-kpi { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.spark { height: 14px; margin-top: 4px; border-radius: 3px; background: linear-gradient(90deg, var(--accent-soft), var(--accent)); opacity: .7; clip-path: polygon(0 80%, 15% 60%, 30% 70%, 45% 40%, 60% 50%, 75% 20%, 90% 30%, 100% 10%, 100% 100%, 0 100%); }
.spark.s1 { clip-path: polygon(0 50%, 15% 60%, 30% 30%, 45% 45%, 60% 25%, 75% 35%, 90% 15%, 100% 20%, 100% 100%, 0 100%); }
.spark.s2 { background: linear-gradient(90deg, #e4e2dc, #9b9a94); clip-path: polygon(0 30%, 20% 40%, 40% 35%, 60% 55%, 80% 45%, 100% 60%, 100% 100%, 0 100%); }
.dash-panels { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; flex: 1; min-height: 0; }
.dash-chart { display: flex; align-items: flex-end; gap: 5px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.dash-chart span { flex: 1; border-radius: 3px 3px 0 0; background: var(--ink); opacity: .85; }
.dash-chart span:nth-child(6) { background: var(--accent); opacity: 1; }
.dash-table { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; display: flex; flex-direction: column; justify-content: space-around; }
.dash-row { display: grid; grid-template-columns: 1fr .7fr auto; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.dash-row:last-child { border-bottom: 0; }

.store-visual { padding-bottom: 24px; }
.sv-main { width: 86%; }
.sv-phone { position: absolute; bottom: 30px; inset-inline-end: 0; width: 30%; }
.pm-store, .pm-app { position: absolute; inset: 0; padding: 22px 10px 10px; display: flex; flex-direction: column; gap: 7px; font-size: 9px; }
.pm-head { display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.pm-hero { height: 22%; border-radius: 8px; background: linear-gradient(135deg, #e8e1d7, #cfc4b4); flex: none; }
.pm-hero.tall { height: 36%; }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pm-prod { display: flex; flex-direction: column; gap: 4px; }
.pm-img { aspect-ratio: 1; border-radius: 6px; background: #ece6dd; }
.pm-img.c1 { background: #e3e7ee; } .pm-img.c2 { background: #efe2df; } .pm-img.c3 { background: #e5ebe3; }
.pm-cta { margin-top: auto; display: grid; place-items: center; height: 26px; border-radius: var(--pill); background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 9px; }
.pm-card { border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.pm-card.accent { background: var(--ink); }
.pm-list { display: grid; grid-template-columns: 14px 1fr auto; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pm-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent-soft); border: 2px solid var(--accent); }
.pm-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); }

.web-visual { padding-bottom: 40px; }
.wv-main { width: 88%; }
.wv-second { position: absolute; bottom: 0; inset-inline-end: 0; width: 50%; }

.mobile-visual { display: flex; justify-content: center; align-items: flex-end; gap: 6%; flex-wrap: wrap; }
.mobile-visual .phone { width: 38%; }
.mv-a { transform: translateY(-24px); }
.mobile-visual .visual-caption { width: 100%; justify-content: center; }

.design-visual { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.dv-step { display: flex; flex-direction: column; gap: 10px; }
.dv-label { color: var(--muted); font-size: 11px; }
.dv-card { aspect-ratio: 3 / 4; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.dv-card.wire { border: 1.5px dashed var(--line-strong); background: #fff; }
.wf-img { flex: 1; border-radius: 8px; background: repeating-linear-gradient(45deg, var(--surface) 0 6px, #fff 6px 12px); border: 1px solid var(--line); }
.wf-line { height: 8px; border-radius: 4px; background: var(--line); }
.wf-btn { height: 26px; width: 60%; border-radius: var(--pill); border: 1.5px dashed var(--line-strong); }
.dv-card.final { background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.dv-card.final img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: 80% center; border-radius: 8px; }
.final-title { font-weight: 800; font-size: 13px; }
.final-btn { display: grid; place-items: center; height: 28px; border-radius: var(--pill); background: var(--accent); font-size: 11px; font-weight: 800; }
.dv-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; }
.dv-tokens { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.dv-tokens span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); }
.dv-tokens .mono { width: auto; border: 0; font-weight: 700; color: var(--ink); }
.design-visual .visual-caption { grid-column: 1 / -1; margin: 0; }

.hub { position: relative; aspect-ratio: 4 / 3; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-lines line { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.hub-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 22px; border-radius: var(--r-lg); background: var(--ink); color: #fff; text-align: center; box-shadow: var(--shadow-lg); width: 42%; }
.hub-center .icon { color: var(--accent); }
.hub-center strong { font-size: .9375rem; }
.hub-node { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: .8125rem; white-space: nowrap; }
.hub-node .icon { color: var(--accent-text); }
.hub-node.n1 { left: 15%; top: 16.6%; } .hub-node.n2 { left: 85%; top: 16.6%; } .hub-node.n3 { left: 10%; top: 50%; }
.hub-node.n4 { left: 90%; top: 50%; } .hub-node.n5 { left: 15%; top: 83.3%; } .hub-node.n6 { left: 85%; top: 83.3%; }

.sp-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.sp-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sp-panel ul { list-style: none; }
.sp-panel li { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .9375rem; }
.sp-panel li:last-child { border-bottom: 0; }
.sp-panel li .icon { color: var(--accent-text); }
.sp-panel em { font-style: normal; font-size: .8125rem; color: var(--muted); }

/* Data flow diagram */
.flow { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); }
.flow-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.flow-step:nth-child(3) { background: var(--ink); border-color: var(--ink); color: #fff; }
.flow-step:nth-child(3) p { color: var(--dark-muted); }
.flow-step:nth-child(3) .flow-icon { background: rgba(253, 163, 5, .16); color: var(--accent); }
.flow-step p { font-size: .875rem; color: var(--muted); margin: 0; }
.flow-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 4px; }
.flow-arrow { position: absolute; top: 50%; inset-inline-end: calc(-1 * var(--s2) / 2 - 12px); transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }

/* ---------- Content blocks ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.offer { padding: 28px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); background: #fff; }
.offer h3 { display: flex; align-items: center; gap: 10px; }
.offer h3 .icon { color: var(--accent-text); }
.offer p { margin-top: 8px; color: var(--ink-2); font-size: .9375rem; }
.tone-soft .offer-grid { background: #fff; }

.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.type-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.type-item .icon { color: var(--accent-text); margin-top: 3px; }
.type-item strong { display: block; font-size: .9375rem; }
.type-item span { display: block; font-size: .875rem; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-text .lead { margin-top: var(--s2); }
.bullet-list { list-style: none; display: grid; gap: 12px; margin-top: var(--s3); }
.bullet-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.bullet-list .icon { flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); margin-top: 1px; }
html[lang='ar'] .bullet-list .icon { margin-top: 4px; }

/* Platform directory */
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.platform { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.platform-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 800; font-size: 1.0625rem; }
.platform p { margin: 0; font-size: .875rem; color: var(--muted); }
.platform.is-primary { grid-column: span 2; grid-row: span 2; background: var(--ink); color: #fff; border-color: var(--ink); padding: 32px; justify-content: space-between; }
.platform.is-primary p { color: var(--dark-muted); font-size: 1rem; }
.platform.is-primary .platform-name { font-size: 2rem; letter-spacing: -.03em; }
.platform-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--pill); font-size: .75rem; font-weight: 700; background: var(--accent); color: var(--accent-ink); align-self: flex-start; }
.platform-region { font-size: .75rem; font-weight: 700; color: var(--accent-text); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: var(--s2); font-size: .875rem; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.criteria { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.criterion { padding-top: 20px; border-top: 2px solid var(--ink); }
.criterion .icon { color: var(--accent-text); margin-bottom: 14px; }
.criterion p { margin-top: 8px; font-size: .9375rem; color: var(--ink-2); }

/* Comparison table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.compare th, .compare td { padding: 18px 22px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--surface); font-size: .875rem; }
.compare thead th:last-child { background: var(--ink); color: #fff; }
.compare tbody th { font-weight: 700; width: 24%; font-size: .9375rem; }
.compare td { color: var(--ink-2); font-size: .9375rem; }
.compare td:last-child { background: #fffbf2; color: var(--ink); font-weight: 600; }
.compare tr:last-child > * { border-bottom: 0; }
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); }

/* Systems accordion grid */
.systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.system { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.system summary { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 700; }
.system summary::-webkit-details-marker { display: none; }
.system summary .icon-tile { width: 40px; height: 40px; border-radius: 12px; }
.system summary .faq-icon { margin-inline-start: auto; }
.system[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.system[open] .faq-icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.system-body { padding: 0 20px 20px; display: grid; gap: 16px; }
.system-body > p { margin: 0; color: var(--ink-2); }
.system-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px; border-radius: var(--r); background: var(--surface); }
.system-cols h4, .system-cols .sys-h { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
html[lang='ar'] .system-cols h4, .system-cols .sys-h { letter-spacing: 0; font-size: .8125rem; }
.system-cols ul { list-style: none; display: grid; gap: 4px; font-size: .875rem; font-weight: 600; }
.system-cols li::before { content: '—'; color: var(--accent-text); margin-inline-end: 6px; }
.system-body .link-arrow { justify-self: start; }

/* Notes & placeholders */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r); background: var(--accent-soft); color: var(--ink); font-size: .9375rem; }
.note .icon { color: var(--accent-text); margin-top: 3px; }
.cms-placeholder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; border-radius: var(--r); border: 1.5px dashed var(--line-strong); color: var(--muted); font-size: .875rem; font-weight: 600; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(22, 22, 26, .02) 10px 20px); }

/* ---------- Case study ---------- */
.case-hero .page-hero-grid { align-items: end; }
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: var(--s5); border-top: 1px solid var(--line-strong); }
.case-meta div { padding: 16px 16px 0 0; }
[dir='rtl'] .case-meta div { padding: 16px 0 0 16px; }
.case-meta dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
html[lang='ar'] .case-meta dt { letter-spacing: 0; font-size: .8125rem; text-transform: none; }
.case-meta dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.case-meta a { color: var(--ink); }
.case-shot { margin-top: calc(-1 * var(--s6)); position: relative; z-index: 1; }
.case-shot .browser-view { aspect-ratio: 16 / 8.5; }
.case-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); }
.toc p { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
html[lang='ar'] .toc p { letter-spacing: 0; text-transform: none; font-size: .875rem; }
.toc ol { list-style: none; display: grid; gap: 2px; border-inline-start: 1px solid var(--line); }
.toc a { display: block; padding: 6px 14px; margin-inline-start: -1px; border-inline-start: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 600; }
.toc a:hover, .toc a.is-current { color: var(--ink); border-inline-start-color: var(--accent); }
.case-section { padding-block: 32px; border-bottom: 1px solid var(--line); }
.case-section:first-child { padding-top: 0; }
.case-section h2 { font-size: 1.5rem; margin-bottom: 16px; letter-spacing: -.015em; }
.case-section p { color: var(--ink-2); font-size: 1.0625rem; }

/* ---------- Prose (blog, legal) ---------- */
.prose { max-width: 70ch; font-size: 1.0625rem; color: var(--ink-2); }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; letter-spacing: -.015em; }
.prose ul { padding-inline-start: 1.2em; margin: 0 0 1.2em; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent-text); }
.article-head { max-width: 820px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: var(--s2); color: var(--muted); font-size: .9375rem; font-weight: 600; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.aside-card { position: sticky; top: calc(var(--header-h) + 32px); padding: 28px; border-radius: var(--r-lg); background: var(--dark); color: #fff; }
.aside-card h2 { color: #fff; font-size: 1.25rem; margin-bottom: 8px; }
.aside-card p { color: var(--dark-muted); font-size: .9375rem; margin-bottom: 20px; }
.cover { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.cover-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; }
.cover-icon { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: #fff; color: var(--accent-text); box-shadow: var(--shadow); }
.cover-store { background: #f1ebe1; } .cover-website { background: #e9edf2; } .cover-dashboard { background: #ecebe6; }
.cover-dashboard .cover-icon { background: var(--ink); color: var(--accent); }
.post-card { display: flex; flex-direction: column; overflow: hidden; }
.post-card .cover { border-radius: 0; }
.post-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-body .link-arrow { margin-top: auto; padding-top: 8px; }
.post-meta { display: flex; gap: 12px; font-size: .8125rem; color: var(--muted); font-weight: 600; }

/* ---------- About ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl); background: var(--surface-2); border: 1.5px dashed var(--line-strong); display: grid; place-items: center; overflow: hidden; }
.portrait-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: .875rem; text-align: center; padding: 24px; }
.portrait-inner .icon { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: #fff; color: var(--accent-text); }
.founder.no-photo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.founder-id { display: flex; align-items: center; gap: 16px; margin: 20px 0 12px; }
.founder-id img { width: 96px; height: 96px; flex-shrink: 0; display: block; }
.founder-id .lead { margin: 0; }
.portrait-tag { position: absolute; bottom: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); background: var(--ink); color: #fff; font-family: var(--mono); font-size: 12px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.principle { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.principle .mono { color: var(--accent-text); }
.principle h3 { margin: 12px 0 8px; }
.principle p { color: var(--ink-2); font-size: .9375rem; }
.stat-free { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s3); }

/* ---------- Technologies page ---------- */
.tech-section { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.tech-section:first-of-type { border-top-color: var(--ink); }
.tech-section p { color: var(--muted); margin-top: 8px; font-size: .9375rem; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tech-card { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.tech-card strong { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.tech-card small { color: var(--muted); font-weight: 600; font-size: .8125rem; }
.tech-card.is-core strong::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-inline-start: auto; }

/* ---------- Forms ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-card { padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .875rem; font-weight: 700; color: var(--ink); padding: 0; }
.field .opt { font-weight: 500; color: var(--muted); margin-inline-start: 6px; }
.field .req { color: var(--err); margin-inline-start: 2px; }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2316161a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
[dir='rtl'] .select { background-position: left 14px center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.input[dir='ltr'] { text-align: start; }
[dir='rtl'] .input[dir='ltr'] { text-align: right; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--err); box-shadow: 0 0 0 4px var(--err-soft); }
.field-error { display: none; align-items: center; gap: 6px; color: var(--err); font-size: .8125rem; font-weight: 600; }
.field.is-invalid .field-error { display: flex; }
.field-hint { font-size: .8125rem; color: var(--muted); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: #fff; font-weight: 600; font-size: .9375rem; transition: all .15s; }
.choice input:hover + span { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.field.is-invalid .choice span { border-color: var(--err); }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .9375rem; }
.check-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-privacy { display: flex; gap: 8px; align-items: flex-start; font-size: .8125rem; color: var(--muted); max-width: 44ch; margin: 0; }
.form-privacy .icon { color: var(--ok); margin-top: 2px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); font-size: .9375rem; font-weight: 600; margin-bottom: 20px; }
.alert-error { background: var(--err-soft); color: var(--err); }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.alert[hidden] { display: none; }
.form-success { text-align: center; padding: clamp(24px, 5vw, 56px) 0; }
.form-success .success-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); margin-bottom: var(--s2); }
.form-success p { color: var(--ink-2); max-width: 46ch; margin: 12px auto 28px; }
.form-success .actions { justify-content: center; }
.contact-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-card { padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.contact-card h2 { font-size: 1.125rem; margin-bottom: 6px; }
.contact-card p { font-size: .9375rem; color: var(--muted); margin-bottom: 16px; }
.contact-card.dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.contact-card.dark h2 { color: #fff; }
.contact-card.dark p { color: var(--dark-muted); }
.contact-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.contact-line .icon { color: var(--accent-text); }
.steps-mini { list-style: none; display: grid; gap: 14px; counter-reset: s; }
.steps-mini li { display: flex; gap: 12px; font-size: .9375rem; font-weight: 600; color: #e9e8e3; }
.steps-mini li::before { counter-increment: s; content: counter(s); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 12px; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: var(--s7) 0; }
.notfound-code { font-family: var(--mono); font-size: clamp(5rem, 14vw, 10rem); line-height: 1; color: var(--accent); letter-spacing: -.04em; }
.notfound .lead { margin: var(--s2) auto var(--s4); }
.notfound .actions { justify-content: center; }
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--s4); }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal-ready .reveal.is-in { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav a, .nav-trigger { padding: 8px 9px; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s5); }
  .process-step:nth-child(3) .process-marker::before { inset-inline-end: 0; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-step:nth-child(3) .flow-arrow { display: none; }
  .platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1060px) {
  .main-nav, .lang-switch.hide-sm { display: none; }
  .menu-btn { display: grid; }
  .header-actions { margin-inline-start: auto; }
  .hero-grid, .page-hero.has-visual .page-hero-grid, .split, .why-grid, .faq-layout, .founder, .contact-layout, .article-layout, .case-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 640px; width: 100%; margin-inline: auto; }
  .why-intro, .toc, .aside-card, .contact-aside { position: static; }
  .grid-3, .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4, .criteria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card, .project-card.size-lg { grid-column: span 1; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-section { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .toc { display: none; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portrait { max-width: 420px; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .logo img { width: 116px; }
  .lang-switch.hide-sm { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: var(--s4); }
  .section-head.is-center { align-items: center; }
  .grid-2, .grid-3, .grid-4, .principles, .criteria, .systems { grid-template-columns: minmax(0, 1fr); }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .why-list { grid-template-columns: minmax(0, 1fr); }
  .why-list li:nth-child(2) { border-top-color: var(--line); }
  .stack-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .process { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .process-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding-bottom: var(--s3); }
  .process-marker { height: 100%; align-items: flex-start; margin: 0; flex-direction: column; }
  .process-marker::before, .process-step:last-child .process-marker::before { inset-inline: 19px auto; top: 40px; bottom: -8px; width: 2px; height: auto; background: var(--line-strong); }
  .process-step:last-child .process-marker::before { display: none; }
  .process-icon { display: none; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .flow-arrow { display: grid !important; top: auto; bottom: -22px; inset-inline-end: auto; inset-inline-start: 28px; transform: rotate(90deg); }
  [dir='rtl'] .flow-arrow .icon { transform: none; }
  .flow-step:last-child .flow-arrow { display: none !important; }
  .cta-inner { grid-template-columns: minmax(0, 1fr); }
  .cta-inner .actions .btn { flex: 1 1 100%; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform.is-primary { grid-column: 1 / -1; grid-row: auto; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn { width: 100%; }
  .system-cols { grid-template-columns: minmax(0, 1fr); }
  .cap-strip ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .cap-strip li { font-size: .875rem; }
  .cap-strip li:last-child { grid-column: 1 / -1; }
  .hero-text .actions .btn { flex: 1 1 auto; }
  .hv-badge { display: none; }
  .design-visual { grid-template-columns: 1fr; }
  .dv-arrow { justify-self: center; transform: rotate(90deg); }
  .dv-card { aspect-ratio: 4 / 3; }
  .hub { aspect-ratio: 1; }
  .hub-node { font-size: .75rem; padding: 7px 10px; }
  .hub-node.n1, .hub-node.n5 { left: 22%; } .hub-node.n2, .hub-node.n6 { left: 78%; }
  .hub-node.n3 { left: 50%; top: 22%; } .hub-node.n4 { left: 50%; top: 78%; }
  .hub-node.n1, .hub-node.n2 { top: 8%; } .hub-node.n5, .hub-node.n6 { top: 92%; }
  .hub-lines { display: none; }
  .hub-center { width: 60%; }
  .compare th, .compare td { padding: 14px; }
  .compare { min-width: 620px; }
  .case-shot { margin-top: calc(-1 * var(--s4)); }
  .wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
}

@media (max-width: 420px) {
  .header-cta { padding: 0 12px; font-size: .8125rem; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .case-meta { grid-template-columns: minmax(0, 1fr); }
  .platforms { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .site-header, .site-footer, .wa-float, .cta-band { display: none; }
}

.stack-legend { margin: var(--s2) 0 0; }

/* ---------- Additional page components ---------- */
.guide-list { list-style: none; display: grid; gap: 10px; }
.guide-list a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; transition: border-color .15s, box-shadow .15s; }
.tone-soft .guide-list a { border-color: transparent; }
.guide-list a:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.guide-list a > .icon:last-child { margin-inline-start: auto; color: var(--accent-text); }
.guide-text small { display: block; font-weight: 600; color: var(--muted); font-size: .8125rem; margin-top: 2px; }
.aside-card.static { position: static; }
.aside-card .h3 { color: #fff; margin-bottom: 12px; }
.chips-dark .chip { background: transparent; border-color: var(--dark-line); color: #fff; }
.chips-lg .chip { min-height: 44px; font-size: .9375rem; padding: 0 18px; }
.tech-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 24px 0; border-block: 1px solid var(--line); }
.tech-inline .chips { flex: 1; }
.auto-rule { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr); align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.auto-rule > .icon { color: var(--accent-text); }
.auto-when, .auto-then { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .9375rem; }
.auto-then { font-weight: 600; color: var(--ink-2); }
.auto-when .mono, .auto-then .mono { font-size: 11px; color: var(--muted); font-weight: 500; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: var(--s4); }
.toolbar-end { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.search { position: relative; display: block; min-width: 240px; }
.search .icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-inline-start: 42px; min-height: 44px; border-radius: var(--pill); }
.count { margin: 0; color: var(--muted); font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.count strong { color: var(--ink); }
div.filter-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; }
div.filter-empty[hidden] { display: none; }
.live-link { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: var(--r-lg); border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 1rem; text-decoration: none; }
.live-link:hover { border-color: var(--ink); }
.live-link .icon { color: var(--accent-text); }
.case-shot-wrap { position: relative; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; gap: 2px; border-inline-start: 1px solid var(--line); }
.faq-nav a { padding: 8px 16px; margin-inline-start: -1px; border-inline-start: 2px solid transparent; text-decoration: none; font-weight: 600; color: var(--muted); }
.faq-nav a:hover { color: var(--ink); border-inline-start-color: var(--accent); }
.service-hero .page-hero-visual { min-width: 0; }
@media (max-width: 1060px) {
  .faq-nav { position: static; flex-direction: row; flex-wrap: wrap; border: 0; gap: 8px; }
  .faq-nav a { border: 1px solid var(--line-strong); border-radius: var(--pill); padding: 6px 14px; margin: 0; }
}
@media (max-width: 760px) {
  .auto-rule { grid-template-columns: minmax(0, 1fr); }
  .auto-rule > .icon { transform: rotate(90deg); }
  .toolbar, .toolbar-end, .search { width: 100%; }
  .search { min-width: 0; }
  .tech-inline .chips { flex-basis: 100%; }
}
.grid > .project-card, .grid > .project-card.size-lg { grid-column: auto; }

.sys-preview { display: grid; grid-template-columns: 34% 1fr; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); font-size: 11px; min-height: 170px; }
.sys-side { background: var(--dark); color: var(--dark-muted); padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.sys-side .dash-nav { white-space: normal; line-height: 1.3; }
.sys-main { background: var(--surface); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sys-role { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.sys-row { display: grid; grid-template-columns: 1fr .6fr auto; gap: 8px; align-items: center; padding: 7px 8px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }

/* ==========================================================================
   Motion layer — only for visitors who have not asked for reduced motion
   ========================================================================== */
.cap-dup { display: none; }
.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 70; background: var(--accent); transform-origin: left; transform: scaleX(0); pointer-events: none; }
[dir='rtl'] .scroll-progress { transform-origin: right; }

@keyframes dvx-fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes dvx-desktop-in { from { opacity: 0; transform: translateY(60px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes dvx-small-in { from { opacity: 0; transform: translate(calc(var(--dir) * -70px), 30px) rotate(calc(var(--dir) * -6deg)); } to { opacity: 1; transform: none; } }
@keyframes dvx-phone-in { from { opacity: 0; transform: translateY(120px) rotate(calc(var(--dir) * 10deg)); } to { opacity: 1; transform: none; } }
@keyframes dvx-pop { 0% { opacity: 0; transform: scale(.5); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes dvx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes dvx-float-sm { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(calc(var(--dir) * 1.5deg)); } }
@keyframes dvx-hl { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes dvx-marquee { to { transform: translateX(calc(var(--dir) * -50%)); } }
@keyframes dvx-shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
@keyframes dvx-glow { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(calc(var(--dir) * -120px), 40px) scale(1.25); } }
@keyframes dvx-blink { 50% { opacity: 0; } }
@keyframes dvx-pulse { 0% { box-shadow: 0 0 0 0 rgba(29, 156, 85, .55); } 100% { box-shadow: 0 0 0 18px rgba(29, 156, 85, 0); } }

:root { --dir: 1; }
[dir='rtl'] { --dir: -1; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance */
  .hero-text > * { animation: dvx-fade-up .9s var(--ease) both; }
  .hero-text > :nth-child(1) { animation-delay: .05s; }
  .hero-text > :nth-child(2) { animation-delay: .15s; }
  .hero-text > :nth-child(3) { animation-delay: .3s; }
  .hero-text > :nth-child(4) { animation-delay: .42s; }
  .hero-text > :nth-child(5) { animation-delay: .54s; }
  .hero .hl { background-repeat: no-repeat; background-position: left bottom; animation: dvx-hl .9s .9s var(--ease) both; }
  [dir='rtl'] .hero .hl { background-position: right bottom; }
  .hv-desktop { animation: dvx-desktop-in 1.1s .25s var(--ease) both; }
  .hv-small { animation: dvx-small-in 1.1s .55s var(--ease) both; }
  .hv-phone { animation: dvx-phone-in 1.2s .7s var(--ease) both, dvx-float-sm 6s 2s ease-in-out infinite; }
  .hv-badge { animation: dvx-pop .7s 1.3s var(--ease) both, dvx-float 4.5s 2.2s ease-in-out infinite; }
  .hero-visual > * { translate: calc(var(--mx, 0) * var(--depth, 10px)) calc(var(--my, 0) * var(--depth, 10px)); transition: translate .5s var(--ease); }
  .hv-desktop { --depth: 8px; } .hv-small { --depth: 18px; } .hv-phone { --depth: 26px; } .hv-badge { --depth: 34px; }
  .page-hero-text > * { animation: dvx-fade-up .8s var(--ease) both; }
  .page-hero-text > :nth-child(2) { animation-delay: .1s; }
  .page-hero-text > :nth-child(3) { animation-delay: .2s; }
  .page-hero-text > :nth-child(4) { animation-delay: .3s; }
  .page-hero-visual { animation: dvx-desktop-in 1s .25s var(--ease) both; }

  /* Capability marquee */
  .cap-marquee { overflow: hidden; max-width: none; padding-inline: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .cap-track { display: flex; width: max-content; animation: dvx-marquee 28s linear infinite; }
  .cap-strip:hover .cap-track { animation-play-state: paused; }
  .cap-strip .cap-track ul, .cap-strip .cap-dup { display: flex !important; flex-wrap: nowrap; gap: 56px; padding-inline-end: 56px; justify-content: flex-start; }
  .cap-strip .cap-track li { white-space: nowrap; font-size: 1rem; }
  .cap-strip .cap-track li:last-child { grid-column: auto; }

  /* Stronger, staggered reveals */
  .reveal-ready .reveal { transform: translateY(36px) scale(.97); filter: blur(4px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .reveal-ready .reveal.is-in { filter: none; }

  /* Process line draws in */
  .reveal-ready .process .process-marker::before { transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 180ms + .2s); }
  [dir='rtl'].reveal-ready .process .process-marker::before, .reveal-ready [dir='rtl'] .process .process-marker::before { transform-origin: right; }
  .reveal-ready .process-step.is-in .process-marker::before { transform: none; }
  .reveal-ready .process-num { transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--d, 0) * 180ms); }
  .reveal-ready .process-step.is-in .process-num { transform: none; }

  /* Mockups come alive */
  .reveal-ready .mock-figure .dash-chart span { transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease); }
  .reveal-ready .mock-figure.is-in .dash-chart span { transform: none; }
  .reveal-ready .mock-figure.is-in .dash-chart span:nth-child(2) { transition-delay: .08s; } .reveal-ready .mock-figure.is-in .dash-chart span:nth-child(3) { transition-delay: .16s; }
  .reveal-ready .mock-figure.is-in .dash-chart span:nth-child(4) { transition-delay: .24s; } .reveal-ready .mock-figure.is-in .dash-chart span:nth-child(5) { transition-delay: .32s; }
  .reveal-ready .mock-figure.is-in .dash-chart span:nth-child(6) { transition-delay: .4s; } .reveal-ready .mock-figure.is-in .dash-chart span:nth-child(7) { transition-delay: .48s; }
  .reveal-ready .mock-figure.is-in .dash-chart span:nth-child(8) { transition-delay: .56s; }
  .hub-node { animation: dvx-float 5s ease-in-out infinite; }
  .hub-node.n2 { animation-delay: -1s; } .hub-node.n3 { animation-delay: -2s; } .hub-node.n4 { animation-delay: -3s; } .hub-node.n5 { animation-delay: -4s; }
  .hub-lines line { animation: dvx-dash 1.2s linear infinite; }
  @keyframes dvx-dash { to { stroke-dashoffset: -20; } }
  .hub-node { animation-name: dvx-hub-float; }
  @keyframes dvx-hub-float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 8px)); } }
  .sv-phone, .mv-b { animation: dvx-float 5s 1.5s ease-in-out infinite; }

  /* Hover depth */
  .service-card .icon-tile, .mega-icon { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background-color .25s, color .25s; }
  .service-card:hover .icon-tile { transform: rotate(calc(var(--dir) * -10deg)) scale(1.12); background: var(--accent); color: var(--accent-ink); }
  .service-card-combined:hover .icon-tile { background: var(--accent); color: var(--accent-ink); }
  .card:has(.stretched):hover { box-shadow: 0 2px 6px rgba(22, 22, 26, .05), 0 26px 50px -24px rgba(238, 150, 0, .45); transform: translateY(-6px); }
  .project-card .browser-view > img { transition: transform 1.2s var(--ease), object-position 4s ease; }
  .project-card:hover .browser-view > img { transform: scale(1.06); }
  .mega-item:hover .mega-icon { transform: scale(1.12) rotate(calc(var(--dir) * -8deg)); }

  /* Primary button shine */
  .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
  .btn-primary::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-120%) skewX(-20deg); z-index: -1; pointer-events: none; }
  .btn-primary:hover::after { animation: dvx-shine .8s var(--ease); }
  .btn-primary:hover { transform: translateY(-2px); }
  .btn:hover .flip, .btn:hover .icon:last-child { transition: translate .25s; }
  .btn:hover > .icon:last-child { translate: calc(var(--dir) * 4px) 0; }

  /* CTA glow */
  .cta-inner::before { content: ''; position: absolute; width: 520px; height: 520px; top: -220px; inset-inline-end: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 163, 5, .28), transparent 65%); animation: dvx-glow 12s ease-in-out infinite; pointer-events: none; }
  .cta-mark { animation: dvx-float 7s ease-in-out infinite; }
  .cta-text h2::after { content: '_'; color: var(--accent); margin-inline-start: 4px; animation: dvx-blink 1.1s steps(1) infinite; }

  /* WhatsApp button pulse */
  .wa-float { animation: dvx-pulse 2.2s 3s ease-out infinite; }
}

/* Compact footer */
.site-footer { padding-top: var(--s5); }
.site-footer .footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-bottom: var(--s4); }
.site-footer .footer-brand p { margin: 10px 0 0; font-size: .875rem; max-width: none; }
.site-footer .footer-brand .logo img { width: 124px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-nav a { color: #e9e8e3; text-decoration: none; font-weight: 600; font-size: .9375rem; padding: 4px 0; }
.footer-nav a:hover { color: var(--accent); }
.site-footer .footer-contact { display: flex; align-items: center; gap: 16px; }
.site-footer .footer-social { margin: 0; }
.site-footer .footer-bottom { padding: 18px 0 24px; }
@media (max-width: 1060px) {
  .site-footer .footer-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) { .site-footer .footer-bottom { padding-bottom: 88px; } }
.icon-brand { display: inline-block; flex: none; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.phone-view > img.phone-shot { object-position: top center; }
.case-gallery { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; }
.case-gallery:has(> :only-child) { grid-template-columns: 240px; }
.case-shot-item { margin: 0; }
.case-shot-item figcaption { margin-top: 10px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.case-shot-item .browser { box-shadow: var(--shadow); }
@media (max-width: 760px) { .case-gallery { grid-template-columns: minmax(0, 1fr); } .case-shot-item.is-mobile { max-width: 240px; } }
.testimonial-grid { columns: 3 320px; column-gap: var(--s2); }
.testimonial-grid .testimonial { break-inside: avoid; margin-bottom: var(--s2); }
.testimonial { gap: 16px; }
.testimonial-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-source { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; color: var(--muted); padding: 4px 10px; border-radius: var(--pill); background: var(--surface); }
.testimonial blockquote { font-size: 1.0625rem; line-height: 1.7; color: var(--ink); }
.testimonial blockquote[lang='ar'] { font-family: var(--font-ar); line-height: 1.9; }
.review-translation { margin: 0; font-size: .875rem; color: var(--muted); border-inline-start: 2px solid var(--accent); padding-inline-start: 12px; }
.review-translation span { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 4px; }
.avatar-initials { display: grid; place-items: center; border: 0; background: var(--ink); color: var(--accent); font-weight: 800; font-size: .875rem; font-family: var(--font); }
.testimonial figcaption a { color: var(--accent-text); font-weight: 700; text-decoration: none; position: relative; z-index: 2; }
.case-reviews .testimonial { background: var(--surface); border: 0; }
/* Facebook review screenshots */
.testimonial-grid { columns: 2 420px; column-gap: var(--s2); }
.review-shot { break-inside: avoid; margin: 0 0 var(--s2); padding: 10px; border-radius: var(--r-lg); background: #242526; box-shadow: var(--shadow); }
.review-shot img { display: block; width: 100%; height: auto; border-radius: 10px; }
.review-shot figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 6px 2px; font-size: .8125rem; color: #b0b3b8; }
.review-shot figcaption span { display: inline-flex; align-items: center; gap: 6px; }
.review-shot figcaption strong { color: #e4e6eb; }
.review-shot figcaption a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; text-decoration: none; }
.case-reviews { max-width: 640px; }
.review-shot > a { display: block; cursor: zoom-in; border-radius: 10px; }

/* ==========================================================================
   Mobile carousels (≤760px): long card lists become swipeable rows
   ========================================================================== */
@media (max-width: 760px) {
  .m-carousel {
    display: flex !important; flex-wrap: nowrap; gap: 14px; columns: auto;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; border: 0 !important; list-style: none;
  }
  .m-carousel::-webkit-scrollbar { display: none; }
  .m-carousel > * { flex: 0 0 86%; max-width: 86%; scroll-snap-align: start; margin: 0 !important; grid-column: auto !important; }
  .m-carousel > [hidden], .m-carousel > .filter-empty[hidden] { display: none !important; }
  .m-carousel > .filter-empty { flex-basis: 100%; max-width: 100%; }
  /* Items that were rows/lines on desktop get a card look */
  .m-carousel.offer-grid > .offer, .m-carousel.why-list > li, .m-carousel.criteria > .criterion {
    border: 1px solid var(--line) !important; border-radius: var(--r-lg); background: #fff; padding: 22px;
  }
  .m-carousel.why-list > li { border-top-color: var(--line) !important; }
  .m-carousel.criteria > .criterion { border-top: 2px solid var(--ink) !important; }
  .m-carousel.platforms > .platform.is-primary { grid-row: auto; }
  .m-carousel.type-grid > * { flex-basis: 72%; max-width: 72%; }
  .m-carousel.testimonial-grid > .review-shot { flex-basis: 90%; max-width: 90%; align-self: flex-start; }
  .m-dots { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 8px; }
  .m-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); transition: width .25s var(--ease), background .25s; }
  .m-dots button[aria-current='true'] { width: 22px; background: var(--accent); }
  .m-dots button::before { content: ''; position: absolute; inset: -14px -6px; }
  .m-dots button { position: relative; }
  .tone-dark .m-dots button { background: var(--dark-line); }
}
@media (min-width: 761px) { .m-dots { display: none; } }

/* Lightbox */
html.lb-open, html.lb-open body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; grid-template-rows: 64px minmax(0, 1fr); align-items: center; opacity: 0; transition: opacity .22s var(--ease); }
.lb.is-open { opacity: 1; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(12, 12, 11, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lb-top { position: relative; grid-column: 1 / -1; grid-row: 1; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; color: #fff; }
.lb-count { font-family: var(--mono); font-size: .8125rem; color: #cfcfca; padding-inline-start: 8px; }
.lb-btn { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff; transition: background .15s, transform .15s; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-btn:active { transform: scale(.94); }
.lb-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lb-close { background: #fff; color: var(--ink); border-color: #fff; }
.lb-close:hover { background: var(--accent); border-color: var(--accent); }
.lb-nav { grid-row: 2; justify-self: center; }
.lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }
[dir='rtl'] .lb-nav svg { transform: scaleX(-1); }
.lb-stage { position: relative; grid-column: 2; grid-row: 2; margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 8px 0 28px; min-height: 0; }
.lb-img { max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); opacity: 0; transform: scale(.96); transition: opacity .28s var(--ease), transform .28s var(--ease); background: #1d1d1b; }
.lb-img.from-r { transform: translateX(40px); } .lb-img.from-l { transform: translateX(-40px); }
.lb-img.is-in { opacity: 1; transform: none; }
.lb-cap { color: #e9e8e3; font-size: .875rem; font-weight: 600; text-align: center; }
.lb-link { display: block; cursor: zoom-in; border-radius: 14px; }
.lb-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 760px) {
  .lb { grid-template-columns: 0 minmax(0, 1fr) 0; grid-template-rows: 60px minmax(0, 1fr) 76px; }
  .lb-stage { padding: 0 12px; }
  .lb-nav { grid-row: 3; grid-column: 1 / -1 !important; position: absolute; bottom: 14px; }
  .lb-prev { inset-inline-start: calc(50% - 60px); } .lb-next { inset-inline-start: calc(50% + 12px); }
}
@media (prefers-reduced-motion: reduce) { .lb, .lb-img { transition: none; } }

/* Larger tap targets */
.logo { padding-block: 10px; }
.breadcrumbs a { display: inline-block; padding-block: 8px; }
.footer-legal a, .footer-nav a { padding-block: 10px; }
.link-arrow { padding-block: 8px; }
@media (min-width: 1061px) { .offer-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
