/* ZBD Lab — v3 corporate studio design */
:root {
  --bg: #ffffff;
  --tint: #f2f6fc;
  --tint-2: #e8eef9;
  --surface: #ffffff;
  --ink: #0b1430;
  --ink-2: #33405e;
  --muted: #64708c;
  --line: #e1e7f2;
  --line-2: #cfd8e8;
  --brand: #0272b0;
  --brand-2: #0b2a6f;
  --brand-3: #6366f1;
  --good: #16a34a;
  --dark: #0a1024;
  --on-dark: #eef2ff;
  --on-dark-2: #a9b4d6;
  --logo-cyan: #0ea5e9; --logo-ring: #6366f1; --logo-navy: #0b2a6f; --logo-blue: #0284c7;
  --f-head: "Rubik", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --r: 16px;
  --notch: 12px 12px 12px 2px;
  --shadow: 0 24px 50px -28px rgba(11, 20, 48, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="__never"] {
    --bg: #080d1f; --tint: #0d1430; --tint-2: #121a3a; --surface: #0f1733; --ink: #eef2ff; --ink-2: #c9d2ec; --muted: #94a0c4;
    --line: #1f2a52; --line-2: #2c3a6a; --brand: #38bdf8; --brand-2: #1e3a8a;
    --logo-cyan: #38bdf8; --logo-ring: #a5a8f8; --logo-navy: #e3e8ff; --logo-blue: #38bdf8; --shadow: 0 24px 50px -28px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-zbd="dark"] {
  --bg: #080d1f; --tint: #0d1430; --tint-2: #121a3a; --surface: #0f1733; --ink: #eef2ff; --ink-2: #c9d2ec; --muted: #94a0c4;
  --line: #1f2a52; --line-2: #2c3a6a; --brand: #38bdf8; --brand-2: #1e3a8a;
  --logo-cyan: #38bdf8; --logo-ring: #a5a8f8; --logo-navy: #e3e8ff; --logo-blue: #38bdf8; --shadow: 0 24px 50px -28px rgba(0,0,0,.8);
  color-scheme: dark;
}
[lang="ar"] { --f-body: "IBM Plex Sans Arabic", "Inter", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 16px; top: 8px; z-index: 100; transform: translateY(-200%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { transform: none; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
[lang="ar"] .mono { font-family: var(--f-body); letter-spacing: 0; font-size: 13.5px; font-weight: 600; }
.accent { color: var(--brand); }

/* Headings: bold, uppercase, two-tone */
.h { margin: 0; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.08; color: var(--ink); }
.h .accent { color: var(--brand); }
[lang="ar"] .h { text-transform: none; line-height: 1.35; }
.h2 { font-size: clamp(28px, 3.6vw, 44px); }
.eyebrow { display: inline-block; font-family: var(--f-head); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
[lang="ar"] .eyebrow { letter-spacing: 0; }
.orn { display: flex; align-items: center; margin: 18px 0 0; width: 140px; color: var(--brand); }
.orn i { width: 24px; height: 12px; flex: none; position: relative; }
.orn i::before { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--line-2); border-radius: 50%; }
.orn i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.orn b { flex: 1; height: 1.5px; background: var(--line-2); }
.center .orn { margin-inline: auto; width: 170px; }
.center .orn::before { content: ""; flex: 1; height: 1.5px; background: var(--line-2); }
.head { margin-bottom: clamp(32px, 5vw, 56px); }
.head.center { text-align: center; }
.head p { margin: 18px 0 0; color: var(--muted); max-width: 60ch; font-size: 17px; }
.head.center p { margin-inline: auto; }
.head-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: end; justify-content: space-between; }

/* Buttons — notched corner */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--notch); border: 1.5px solid var(--ink);
  font-family: var(--f-head); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
[lang="ar"] .btn { letter-spacing: 0; text-transform: none; font-size: 15px; }
[dir="rtl"] .btn { border-radius: 12px 12px 2px 12px; }
.btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
[dir="rtl"] .btn svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-accent, .btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 12px 24px -12px var(--brand); }
.btn-accent:hover, .btn-brand:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 12.5px; }
.btn-light { background: #fff; border-color: #fff; color: #0b1430; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: #0b1430; border-color: #fff; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.hdr.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(11,20,48,.4); }
.hdr-in { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-word { font-family: "Outfit", var(--f-head); font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--logo-navy); }
.brand-word span { color: var(--logo-blue); }
.nav { display: flex; gap: 2px; list-style: none; padding: 0; margin: 0 0 0 16px; }
[dir="rtl"] .nav { margin: 0 16px 0 0; }
.nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; text-decoration: none; font-family: var(--f-head); font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); transition: color .2s; }
[lang="ar"] .nav a { letter-spacing: 0; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.hdr-act { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.ibtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 14px; transition: border-color .2s; }
.ibtn:hover { border-color: var(--ink); }
.ibtn svg { width: 18px; height: 18px; }
.ibtn .moon { display: none; }
:root[data-zbd="dark"] .ibtn .sun { display: none; }
:root[data-zbd="dark"] .ibtn .moon { display: block; }
@media (prefers-color-scheme: dark) { :root[data-theme="__never"] .ibtn .sun { display: none; } :root[data-theme="__never"] .ibtn .moon { display: block; } }
.lang-btn { font-family: "IBM Plex Sans Arabic", var(--f-body); }
[lang="ar"] .lang-btn { font-family: "Inter", sans-serif; font-size: 12.5px; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .hdr-cta { display: none; }
  .nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; margin: 0; padding: 10px var(--gutter) 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  [dir="rtl"] .nav { margin: 0; }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
  .nav a { height: 54px; font-size: 16px; border-bottom: 1px solid var(--line); padding: 0; }
}

/* Sections */
.sec { padding-block: clamp(70px, 9vw, 120px); }
.sec-tint { background: var(--tint); }
.dark-band { position: relative; overflow: hidden; color: var(--on-dark); background: var(--dark); isolation: isolate; }
.dark-band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 70% at 50% 50%, rgba(99, 102, 241, .35), transparent 70%), radial-gradient(40% 60% at 12% 30%, rgba(14, 165, 233, .22), transparent 70%), radial-gradient(40% 60% at 88% 70%, rgba(14, 165, 233, .18), transparent 70%), linear-gradient(90deg, #0a1024, #101a3e 50%, #0a1024); }
.dark-band::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: radial-gradient(#fff 1px, transparent 1.2px); background-size: 26px 26px; }
.dark-band .h { color: #fff; }
.dark-band .h .accent { color: #38bdf8; }
.dark-band .eyebrow { color: var(--on-dark-2); }
.dark-band .orn { color: #38bdf8; }
.dark-band .orn b, .dark-band .orn::before { background: rgba(255,255,255,.2) !important; }
.dark-band .orn i::before { border-color: rgba(255,255,255,.3); }

/* Hero */
.hero { padding-top: 20px; }
.hero-box { position: relative; background: var(--tint); border-radius: 26px; padding: clamp(48px, 7vw, 90px) var(--gutter) clamp(150px, 18vw, 230px); text-align: center; overflow: hidden; isolation: isolate; }
.hero-box::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 80% at 50% 30%, #000, transparent 75%); }
.hero h1 { margin: 16px auto 0; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -.01em; max-width: 18ch; }
[lang="ar"] .hero h1 { text-transform: none; line-height: 1.35; }
.hero h1 .accent { color: var(--brand); }
.hero-lede { margin: 22px auto 0; max-width: 58ch; color: var(--ink-2); font-size: clamp(16px, 1.5vw, 18.5px); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 26px; color: var(--muted); font-size: 14.5px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 17px; height: 17px; color: var(--good); }
.showcase { position: relative; margin: calc(-1 * clamp(120px, 15vw, 190px)) auto 0; max-width: 1080px; padding-inline: var(--gutter); }
.show-panel { position: relative; overflow: hidden; border-radius: 24px; min-height: clamp(300px, 36vw, 440px); display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 3vw, 44px); padding: 40px 20px 0; box-shadow: 0 40px 80px -40px rgba(11,20,48,.55); }

.show-panel .phone:nth-child(2) { transform: rotate(-7deg); margin-bottom: -110px; }
.show-panel .phone:nth-child(4) { transform: rotate(7deg); margin-bottom: -110px; }
.show-panel .phone:nth-child(3) { width: clamp(170px, 19vw, 230px); z-index: 2; margin-bottom: -70px; }
.show-clip { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; }
.show-panel > .phone, .show-panel > .float-chip { position: relative; }
.float-chip { position: absolute !important; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; color: #0b1430; font-size: 13.5px; font-weight: 600; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); }
.float-chip b { font-family: var(--f-head); }
.float-chip i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-style: normal; flex: none; }
.float-chip i svg { width: 16px; height: 16px; }
.fc-1 { top: 34px; inset-inline-start: 5%; }
.fc-2 { top: 44%; inset-inline-end: 5%; }
@media (max-width: 720px) {
  .show-panel .phone:nth-child(2), .show-panel .phone:nth-child(4) { display: none; }
  .float-chip { font-size: 12px; padding: 8px 10px; }
  .fc-1 { top: 16px; inset-inline-start: 12px; } .fc-2 { top: auto; bottom: 30px; inset-inline-end: 12px; }
}
.after-show { height: 60px; }

/* Phone mockups */
.phone { position: relative; width: clamp(150px, 16vw, 200px); aspect-ratio: 9 / 18.5; border-radius: 30px; background: #05070f; padding: 7px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.7), inset 0 0 0 1.5px rgba(255,255,255,.12); flex: none; transition: transform .6s var(--ease); }
.phone::before { content: ""; position: absolute; top: 13px; left: 50%; width: 30%; height: 10px; border-radius: 99px; background: #05070f; transform: translateX(-50%); z-index: 3; }
.scr { position: relative; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; font-size: 10px; text-align: start; }
.scr-quran { background: linear-gradient(180deg, #0f766e, #134e4a); color: #ecfdf5; padding: 30px 11px 11px; gap: 8px; }
.scr-quran .bar { display: flex; justify-content: space-between; align-items: center; font-family: "IBM Plex Sans Arabic", sans-serif; font-weight: 700; font-size: 12px; direction: rtl; }
.scr-quran .sura { border: 1px solid rgba(255,255,255,.35); border-radius: 10px; padding: 6px; text-align: center; font-family: "IBM Plex Sans Arabic", sans-serif; font-weight: 600; font-size: 11px; background: rgba(255,255,255,.08); }
.scr-quran .page { flex: 1; background: #fdf8ec; color: #1f2937; border-radius: 12px; padding: 10px 8px; direction: rtl; text-align: center; font-family: "IBM Plex Sans Arabic", serif; font-size: 11px; line-height: 2; display: flex; flex-direction: column; gap: 2px; }
.scr-quran .page b { color: #0f766e; font-weight: 600; }
.scr-quran .page i { display: block; height: 6px; border-radius: 3px; background: #e7dfcb; margin: 5px 6px; }
.scr-quran .page i:nth-child(odd) { margin-inline: 14px; }
.scr-game { background: radial-gradient(80% 60% at 50% 45%, #f97316 0%, #9a3412 55%, #2a0e05 100%); color: #fff; padding: 28px 10px 10px; }
.scr-game .hud { display: flex; justify-content: space-between; font-weight: 800; font-size: 10.5px; font-family: var(--f-head); }
.scr-game .hud span { background: rgba(0,0,0,.35); padding: 3px 7px; border-radius: 8px; }
.scr-game .arena { position: relative; flex: 1; margin: 12px 0; border-radius: 50%; border: 3px solid rgba(255,255,255,.55); background: radial-gradient(circle, #fb923c 0%, #c2410c 70%); box-shadow: inset 0 0 0 10px rgba(0,0,0,.15); }
.car { position: absolute; width: 18%; height: 11%; border-radius: 5px; background: #fde047; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.car::after { content: ""; position: absolute; inset: 22% 18%; border-radius: 3px; background: rgba(0,0,0,.35); }
.car.c1 { left: 40%; top: 46%; animation: drive 4s ease-in-out infinite; }
.car.c2 { left: 18%; top: 22%; background: #38bdf8; transform: rotate(35deg); animation: drive2 5s ease-in-out infinite; }
.car.c3 { left: 64%; top: 70%; background: #a3e635; transform: rotate(-25deg); }
@keyframes drive { 50% { transform: translate(30%, -60%) rotate(-30deg); } }
@keyframes drive2 { 50% { transform: translate(60%, 50%) rotate(60deg); } }
.scr-game .ctrl { display: flex; justify-content: space-between; align-items: center; }
.scr-game .ctrl i { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.22); border: 1.5px solid rgba(255,255,255,.5); }
.scr-game .ctrl b { font-family: var(--f-head); font-size: 10px; background: #fde047; color: #451a03; padding: 6px 10px; border-radius: 9px; }
.scr-store { background: #f5f3ff; color: #1e1b4b; padding: 28px 10px 10px; gap: 7px; }
.scr-store .search { height: 24px; border-radius: 8px; background: #fff; border: 1px solid #ddd6fe; display: flex; align-items: center; padding: 0 8px; color: #a78bfa; font-size: 9.5px; flex: none; }
.scr-store .chips { display: flex; gap: 4px; }
.scr-store .chips span { padding: 3px 7px; border-radius: 99px; background: #ede9fe; font-size: 8.5px; font-weight: 600; }
.scr-store .chips span:first-child { background: #7c3aed; color: #fff; }
.scr-store .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 1; }
.scr-store .grid div { border-radius: 9px; background: #fff; padding: 5px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 4px 10px -6px rgba(76,29,149,.35); }
.scr-store .grid div i { flex: 1; border-radius: 6px; min-height: 26px; }
.scr-store .grid div b { font-size: 8.5px; } .scr-store .grid div small { font-size: 8px; color: #7c3aed; font-weight: 700; }
.scr-store .buy { height: 26px; border-radius: 9px; background: #7c3aed; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 9.5px; flex: none; }

/* Tech strip */
.tech { padding-block: 40px 0; overflow: hidden; }
.tech-label { text-align: center; color: var(--muted); margin-bottom: 20px; }
.tech-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tech-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.tech-row:hover .tech-track { animation-play-state: paused; }
.tech-run { display: flex; align-items: center; gap: 14px; padding-inline-end: 14px; }
.tech-run span { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px; border-radius: 14px 14px 14px 3px; border: 1px solid var(--line); background: var(--surface); font-family: var(--f-head); font-weight: 700; font-size: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.tech-run span i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--brand); border-radius: 2px; }
@keyframes slide { to { transform: translateX(-50%); } }
[dir="rtl"] .tech-track { animation-name: slide-rtl; }
@keyframes slide-rtl { to { transform: translateX(50%); } }

/* About */
.about { display: grid; gap: 50px; align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: 1fr 1fr; gap: 80px; } }
.about p { color: var(--ink-2); font-size: 17px; margin: 22px 0 0; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks li svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 1px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 26px; }
.stat { padding: 28px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat:nth-child(2), .stat:nth-child(4) { transform: translateY(26px); }
.stat b { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(38px, 4.4vw, 54px); line-height: 1; color: var(--logo-navy); }
.stat b em { font-style: normal; color: var(--brand); }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14.5px; }
@media (max-width: 520px) { .stat:nth-child(2), .stat:nth-child(4) { transform: none; } .stat { padding: 20px 16px; } .stat-grid { padding-bottom: 0; } }

/* Mission band */
.mission { padding-block: clamp(90px, 11vw, 140px); text-align: center; }
.mission p { margin: 22px auto 0; max-width: 46ch; font-size: clamp(17px, 1.8vw, 21px); color: var(--on-dark); font-weight: 500; }
.mission p .g { color: #4ade80; } .mission p .b { color: #38bdf8; }
.mission .phone { position: absolute; width: clamp(110px, 12vw, 160px); }
.mission .ph-l { left: 3%; top: 12%; transform: rotate(-22deg); }
.mission .ph-l2 { left: 12%; top: 48%; transform: rotate(-8deg); width: clamp(100px, 10vw, 140px); }
.mission .ph-r { right: 3%; top: 14%; transform: rotate(20deg); }
.mission .ph-r2 { right: 12%; top: 50%; transform: rotate(8deg); width: clamp(100px, 10vw, 140px); }
@media (max-width: 1100px) { .mission .ph-l2, .mission .ph-r2 { display: none; } }
@media (max-width: 860px) { .mission .phone { display: none; } }
.mission-cta { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 280px; padding: 28px 26px 26px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--c1); }
.svc-card h3 { margin: 0; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: 21px; color: var(--c1); }
[lang="ar"] .svc-card h3 { text-transform: none; }
.svc-card p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 34ch; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.svc-tags span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--tint); color: var(--ink-2); }
.svc-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; }
.svc-link { font-family: var(--f-head); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); position: relative; z-index: 1; }
[lang="ar"] .svc-link { letter-spacing: 0; font-size: 14px; text-transform: none; }
.svc-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
[dir="rtl"] .svc-link svg { transform: scaleX(-1); }
.svc-card:hover .svc-link { color: var(--c1); }
.svc-ico3d { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: 0 18px 30px -14px var(--c1), inset 0 -6px 12px rgba(0,0,0,.18), inset 0 6px 12px rgba(255,255,255,.3); transform: rotate(-8deg); transition: transform .5s var(--ease); }
.svc-ico3d svg { width: 34px; height: 34px; }
.svc-card:hover .svc-ico3d { transform: rotate(0) scale(1.06); }
.svc-art { position: relative; border-radius: 20px; overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; justify-content: center; }
.svc-art .phone { width: 130px; transform: rotate(10deg); margin-bottom: -60px; }
.svc-art-txt { position: absolute; top: 24px; inset-inline: 24px; color: #fff; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: 20px; line-height: 1.2; z-index: 2; }
.svc-art-txt span { color: #38bdf8; }
[lang="ar"] .svc-art-txt { text-transform: none; }

/* Work */
.tabs { position: relative; display: inline-flex; padding: 4px; border-radius: 14px; background: var(--tint); border: 1px solid var(--line); }
.tabs button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 0; background: none; border-radius: 10px; cursor: pointer;
  font-family: var(--f-head); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); transition: color .3s; }
[lang="ar"] .tabs button { letter-spacing: 0; text-transform: none; font-size: 15px; }
.tabs button[aria-pressed="true"] { color: #fff; }
.tabs button sup { font-family: var(--f-mono); font-size: 10.5px; opacity: .75; top: 0; }
.tabs-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 10px 10px 10px 2px; background: var(--logo-navy); transition: transform .45s var(--ease), width .45s var(--ease); }
:root[data-zbd="dark"] .tabs-ind { background: var(--brand); }
:root[data-zbd="dark"] .tabs button[aria-pressed="true"] { color: #04121f; }
.work-bar { margin-bottom: 26px; }
.wl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--muted); }
.wl-line { flex: 1; height: 1px; background: var(--line); }
.fc-list { display: grid; gap: 20px; }
.fc { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .45s var(--ease), transform .45s var(--ease), border-color .3s; }
.fc[hidden], .pr[hidden] { display: none; }
.fc:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--line-2); }
.card-cover { position: absolute; inset: 0; z-index: 1; }
.fc-text { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3.4vw, 44px); pointer-events: none; }
.fc-text a { pointer-events: auto; }
.fc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--muted); }
.fc-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--tint); color: var(--ink); }
.fc-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.fc-status.s-live i { background: var(--good); } .fc-status.s-soon i { background: #f59e0b; } .fc-status.s-prog i { background: var(--brand-3); }
.fc h3 { margin: 4px 0 0; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; }
[lang="ar"] .fc h3 { text-transform: none; line-height: 1.3; }
.fc h3 span[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; text-transform: none; font-weight: 500; font-size: .55em; color: var(--muted); vertical-align: middle; }
.fc p { margin: 0; color: var(--ink-2); font-size: 16.5px; max-width: 42ch; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.card-meta span { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); }
.prog { max-width: 340px; }
.prog-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.prog-bar { height: 6px; border-radius: 99px; background: var(--tint-2); overflow: hidden; margin-top: 6px; }
.prog-bar i { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--brand), var(--brand-3)); border-radius: 99px; }
.fc-foot { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.fc-go { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-head); font-weight: 700; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; }
[lang="ar"] .fc-go { letter-spacing: 0; text-transform: none; font-size: 15px; }
.fc-arrow { width: 40px; height: 40px; border-radius: 12px 12px 12px 2px; display: grid; place-items: center; background: var(--ink); color: var(--bg); transition: transform .4s var(--ease), background .3s; }
.fc-arrow svg { width: 17px; height: 17px; }
[dir="rtl"] .fc-arrow svg { transform: scaleX(-1); }
.fc:hover .fc-arrow { background: var(--brand); color: #fff; transform: translateX(5px); }
[dir="rtl"] .fc:hover .fc-arrow { transform: translateX(-5px); }
.fc-store { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; text-decoration: none; padding: 8px 13px; border-radius: 10px; border: 1px solid var(--line-2); }
.fc-store:hover { border-color: var(--ink); }
.fc-store svg { width: 13px; height: 13px; }
.fc-art { position: relative; min-height: 360px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; isolation: isolate; background: var(--dark); }
.fc-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 65%, color-mix(in srgb, var(--c1) 70%, transparent), transparent 70%), radial-gradient(50% 50% at 90% 10%, color-mix(in srgb, var(--c2) 60%, transparent), transparent 70%), linear-gradient(160deg, #0a1024, #121a40); }
.fc-art::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; background-image: radial-gradient(#fff 1px, transparent 1.2px); background-size: 22px 22px; }
.fc-art .phone { width: 190px; margin-bottom: -80px; transform: rotate(-6deg); }
.fc:hover .fc-art .phone { transform: rotate(0) translateY(-10px); }
@media (max-width: 860px) { .fc { grid-template-columns: 1fr; } .fc-art { order: -1; min-height: 250px; } .fc-art .phone { width: 150px; } }
.past { margin-top: clamp(50px, 7vw, 80px); }
.past-head { display: grid; gap: 14px 50px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.past-head .mono { color: var(--muted); }
.past-head h3 { margin: 8px 0 0; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; }
[lang="ar"] .past-head h3 { text-transform: none; line-height: 1.4; }
.past-head p { margin: 0; color: var(--muted); max-width: 56ch; font-size: 15px; }
@media (min-width: 900px) { .past-head { grid-template-columns: 1fr 1.1fr; align-items: end; } }
.pr-list { list-style: none; margin: 0; padding: 0; }
.pr { display: grid; grid-template-columns: 52px 220px minmax(0, 1fr) 100px 330px; gap: 20px; align-items: center; padding: 18px 10px; border-bottom: 1px solid var(--line); transition: background .3s; }
.pr:hover { background: var(--tint); }
.pr-ico { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: var(--c1); display: grid; place-items: center; color: #fff; }
.pr-ico img { width: 100%; height: 100%; object-fit: cover; }
.pr-name { display: grid; gap: 3px; }
.pr-name b { font-family: var(--f-head); font-weight: 700; font-size: 17px; line-height: 1.25; }
.pr-name .mono, .pr-plat { color: var(--muted); font-size: 11px; }
.pr-desc { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.pr-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pr-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; text-decoration: none; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-2); white-space: nowrap; transition: all .2s; }
.pr-links a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pr-links svg { width: 12px; height: 12px; }
[dir="rtl"] .pr-links svg, [dir="rtl"] .fc-store svg { transform: scaleX(-1); }
@media (max-width: 1140px) { .pr { grid-template-columns: 52px 1fr; gap: 8px 16px; align-items: start; } .pr-desc, .pr-plat, .pr-links { grid-column: 2; } .pr-links { justify-content: flex-start; } }

/* Why us */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }
.why-card { padding: 26px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.why-card i { width: 48px; height: 48px; border-radius: 14px 14px 14px 3px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); margin-bottom: 18px; }
.why-card i svg { width: 24px; height: 24px; }
.why-card h3 { margin: 0 0 6px; font-family: var(--f-head); font-weight: 700; font-size: 18px; text-transform: uppercase; }
[lang="ar"] .why-card h3 { text-transform: none; }
.why-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.step-n { font-family: var(--f-head); font-weight: 800; font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); position: absolute; top: 14px; inset-inline-end: 18px; }
.step-dot { width: 44px; height: 44px; border-radius: 12px 12px 12px 3px; display: grid; place-items: center; background: var(--logo-navy); color: #fff; margin-bottom: 20px; }
.step-dot svg { width: 22px; height: 22px; }
:root[data-zbd="dark"] .step-dot { background: var(--brand); color: #04121f; }
.step h3 { margin: 0 0 6px; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: 20px; }
[lang="ar"] .step h3 { text-transform: none; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Blog cards */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-thumb { position: relative; aspect-ratio: 16 / 8; overflow: hidden; display: flex; align-items: flex-end; padding: 18px 20px; isolation: isolate; background: var(--dark); }
.post-thumb::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 25% 30%, color-mix(in srgb, var(--c1) 80%, transparent), transparent 70%), radial-gradient(50% 80% at 90% 90%, rgba(99,102,241,.55), transparent 70%), #0a1024; }
.post-thumb::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; background-image: radial-gradient(#fff 1px, transparent 1.2px); background-size: 20px 20px; }
.post-thumb span { font-family: var(--f-head); font-weight: 800; font-size: 22px; text-transform: uppercase; color: #fff; line-height: 1.1; }
.post-thumb svg { position: absolute; top: 18px; inset-inline-end: 18px; width: 40px; height: 40px; color: rgba(255,255,255,.85); }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.post-top { display: flex; justify-content: space-between; color: var(--muted); }
.post-tag { color: var(--brand); }
.post h3 { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 19px; line-height: 1.3; }
.post p { margin: 0; color: var(--muted); font-size: 14.5px; }
.post-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 2px solid var(--brand); align-self: flex-start; padding-bottom: 2px; }
[lang="ar"] .post-more { letter-spacing: 0; text-transform: none; font-size: 14px; }
.post-more svg { width: 14px; height: 14px; }
[dir="rtl"] .post-more svg { transform: scaleX(-1); }

/* FAQ */
.faq { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq { grid-template-columns: 1fr 1.5fr; gap: 70px; } .faq .head { position: sticky; top: 110px; align-self: start; margin: 0; } }
.qa { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 12px; transition: border-color .3s; }
.qa[open] { border-color: var(--brand); }
.qa summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 22px; cursor: pointer; font-family: var(--f-head); font-weight: 700; font-size: 17px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--tint); position: relative; transition: transform .35s var(--ease), background .3s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] summary i { transform: rotate(45deg); background: var(--brand); color: #fff; }
.qa p { margin: 0; padding: 0 22px 22px; color: var(--ink-2); max-width: 64ch; }

/* Contact */
.contact-band { padding-block: clamp(70px, 9vw, 120px); }
.contact { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .contact { grid-template-columns: 1fr 1.2fr; gap: 60px; } }
.contact-side p { color: var(--on-dark-2); font-size: 17px; max-width: 42ch; margin: 22px 0 0; }
.mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-family: var(--f-head); font-weight: 700; font-size: clamp(18px, 2vw, 24px); text-decoration: none; color: #fff; border-bottom: 2px solid #38bdf8; padding-bottom: 3px; }
.mail svg { width: 18px; height: 18px; }
.mail:hover { color: #38bdf8; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; color: var(--on-dark-2); font-size: 15px; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list svg { width: 18px; height: 18px; color: #4ade80; flex: none; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(22px, 3.4vw, 36px); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.f { display: grid; gap: 6px; }
.f.full { grid-column: 1 / -1; }
.f label, .f legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 0; }
.f input, .f select, .f textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.f textarea { min-height: 120px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.f.err input, .f.err select, .f.err textarea { border-color: #ef4444; }
fieldset.f { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; }
.f .chip input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line-2); cursor: pointer; font-size: 14px; font-weight: 500; transition: all .2s; }
.chip input:checked + span { background: var(--logo-navy); border-color: var(--logo-navy); color: #fff; }
:root[data-zbd="dark"] .chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #04121f; }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 4px; }
.form-foot small { color: var(--muted); font-size: 13px; }
.f-status { grid-column: 1 / -1; margin: 0; font-size: 14.5px; min-height: 1.3em; }
.f-status.ok { color: var(--good); } .f-status.bad { color: #dc2626; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.ftr { background: #12141c; color: #c8cede; }
.ftr-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 30px; padding: 44px 0 34px; border-bottom: 1px solid rgba(255,255,255,.08); list-style: none; margin: 0; }
.ftr-links a { font-family: var(--f-head); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: #fff; }
[lang="ar"] .ftr-links a { letter-spacing: 0; font-size: 15px; }
.ftr-links a:hover { color: #38bdf8; }
.ftr-mid { display: grid; gap: 24px; padding-block: 30px; align-items: center; }
@media (min-width: 860px) { .ftr-mid { grid-template-columns: 1fr auto; } }
.ftr .brand-word { color: #fff; } .ftr .brand-word span { color: #38bdf8; }
.ftr .brand-mark { --logo-cyan: #38bdf8; --logo-ring: #a5a8f8; }
.ftr-mid p { margin: 12px 0 0; color: #8f97ad; max-width: 52ch; font-size: 14.5px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 12px 12px 12px 3px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); color: #fff; transition: all .2s; }
.socials a:hover { background: #38bdf8; border-color: #38bdf8; color: #04121f; }
.socials svg { width: 18px; height: 18px; }
.ftr-bot { background: #0c0d13; }
.ftr-bot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; padding-block: 16px; font-size: 13.5px; color: #8f97ad; }
.ftr-bot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.ftr-bot a { text-decoration: none; color: #c8cede; } .ftr-bot a:hover { color: #38bdf8; }

/* Inner pages */
.page-hero { background: var(--tint); padding-block: clamp(40px, 6vw, 76px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--brand); }
.page-hero h1 { margin: 10px 0 0; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.08; max-width: 24ch; }
.page-hero h1 .accent { color: var(--brand); }
[lang="ar"] .page-hero h1 { text-transform: none; line-height: 1.35; }
.page-hero.article h1 { text-transform: none; font-size: clamp(28px, 4vw, 46px); line-height: 1.15; }
.lede { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-2); max-width: 58ch; margin: 18px 0 0; }
.cs-banner { position: relative; border-radius: 24px; min-height: clamp(260px, 32vw, 400px); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; gap: 30px; isolation: isolate; background: var(--dark); }
.cs-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 50% 70%, color-mix(in srgb, var(--c1) 70%, transparent), transparent 70%), radial-gradient(40% 60% at 90% 10%, color-mix(in srgb, var(--c2) 60%, transparent), transparent 70%), linear-gradient(160deg, #0a1024, #121a40); }
.cs-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; background-image: radial-gradient(#fff 1px, transparent 1.2px); background-size: 24px 24px; }
.cs-banner .phone { width: clamp(150px, 16vw, 210px); margin-bottom: -90px; transform: rotate(-5deg); }
.cs-banner .pill { position: absolute; top: 20px; inset-inline-start: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); font-size: 12.5px; font-weight: 700; }
.cs-banner .pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cs-wrap { margin-top: clamp(28px, 4vw, 44px); }
.cs-grid { display: grid; gap: 44px; padding-block: 50px 20px; }
@media (min-width: 960px) { .cs-grid { grid-template-columns: 290px 1fr; gap: 70px; } .facts { position: sticky; top: 100px; align-self: start; } }
.facts { display: grid; padding: 22px; border-radius: 18px; background: var(--tint); border: 1px solid var(--line); }
.fact { padding: 12px 0; border-bottom: 1px solid var(--line-2); display: grid; gap: 2px; }
.fact .mono { color: var(--muted); font-size: 11px; }
.fact b { font-weight: 600; font-size: 15.5px; }
.facts .btn { margin-top: 16px; }
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; margin: 46px 0 14px; }
[lang="ar"] .prose h2, .art-body .prose h2 { text-transform: none; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 17px; color: var(--ink-2); line-height: 1.8; }
.prose ul { padding-inline-start: 0; list-style: none; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-inline-start: 26px; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .72em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--brand); border-radius: 2px; }
.prose ol { padding-inline-start: 22px; }
.prose ol li::marker { font-weight: 700; color: var(--brand); }
.prose blockquote { margin: 28px 0; padding: 18px 22px; border-radius: 14px; background: var(--tint); border-inline-start: 4px solid var(--brand); font-family: var(--f-head); font-size: 19px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.feat { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.feat b { display: block; font-family: var(--f-head); font-size: 16.5px; margin-bottom: 4px; }
.feat span { color: var(--muted); font-size: 14.5px; line-height: 1.55; display: block; }
@media (max-width: 620px) { .feat-grid { grid-template-columns: 1fr; } }
.next { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 30px 0 70px; margin-top: 30px; border-top: 1px solid var(--line); }
.next a.big { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2.6vw, 30px); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
[lang="ar"] .next a.big { text-transform: none; }
.next a.big:hover { color: var(--brand); }
.next a.big svg { width: .9em; height: .9em; }
[dir="rtl"] .next a.big svg { transform: scaleX(-1); }
.art-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted); }
.art-body { padding-block: 50px 10px; }
.art-body .prose { margin-inline: auto; max-width: 740px; }
.note { padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; margin-top: 16px; display: inline-block; }
.legal { padding-block: 50px 80px; }

/* Reveal */
.rv { transition: opacity .7s var(--ease), transform .8s var(--ease); }
.rv.pre { opacity: 0; transform: translateY(22px); }
.rv.pre.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* ===================== v3.1 motion & polish ===================== */
/* Page load */

/* Scroll progress + header behaviour */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--logo-cyan), var(--brand), var(--logo-ring)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
[dir="rtl"] .progress { transform-origin: 100% 50%; }
.hdr { transition: transform .45s var(--ease), border-color .3s, box-shadow .3s; }
.hdr.hide { transform: translateY(-100%); }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: 50% 50%; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.nav a.on { color: var(--brand); }
@media (max-width: 960px) {
  .nav a::after { display: none; }
  .nav li { opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .35s var(--ease); }
  .nav[data-open="true"] li { opacity: 1; transform: none; }
  .nav[data-open="true"] li:nth-child(2) { transition-delay: .04s; } .nav[data-open="true"] li:nth-child(3) { transition-delay: .08s; }
  .nav[data-open="true"] li:nth-child(4) { transition-delay: .12s; } .nav[data-open="true"] li:nth-child(5) { transition-delay: .16s; }
}
.menu-btn svg path { transition: d .3s; }

/* Buttons: shine sweep */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-brand::before, .btn-ink::before, .btn-light::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); }
.btn-brand:hover::before, .btn-ink:hover::before, .btn-light:hover::before { left: 130%; }
.btn:active { transform: translateY(0) scale(.98); }

/* Hero entrance */
.hero .w { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(2deg); animation: word-up .8s var(--ease) forwards; animation-delay: calc(.12s + var(--i) * .06s); }
@keyframes word-up { to { opacity: 1; transform: none; } }
.hero-box .eyebrow, .hero-lede, .hero-cta, .hero-badges { opacity: 0; animation: fade-up .8s var(--ease) forwards; }
.hero-box .eyebrow { animation-delay: .05s; } .hero-lede { animation-delay: .45s; } .hero-cta { animation-delay: .6s; } .hero-badges { animation-delay: .75s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-box::before { animation: grid-pan 30s linear infinite; }
@keyframes grid-pan { to { background-position: 48px 48px; } }
.hero-box::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(circle, color-mix(in srgb, var(--brand) 18%, transparent), transparent 65%); animation: glow 8s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow { from { opacity: .6; transform: translateX(-50%) scale(.9); } to { opacity: 1; transform: translateX(-50%) scale(1.1); } }

/* Showcase: phones rise then float, chips bob */
.showcase.rv.pre { transform: translateY(40px); }
.show-panel .phone { animation: rise 1.1s var(--ease) backwards; }
.show-panel .phone:nth-child(2) { animation-delay: .55s; } .show-panel .phone:nth-child(3) { animation-delay: .4s; } .show-panel .phone:nth-child(4) { animation-delay: .7s; }
@keyframes rise { from { opacity: 0; translate: 0 120px; } to { opacity: 1; translate: 0 0; } }
.show-panel .phone .scr, .mission .phone .scr { animation: bob 6s ease-in-out infinite; }
.show-panel .phone:nth-child(2) .scr, .mission .ph-r .scr { animation-delay: -2s; }
.show-panel .phone:nth-child(4) .scr, .mission .ph-l2 .scr { animation-delay: -4s; }
.show-panel .phone, .mission .phone { will-change: transform; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.show-panel .phone { transition: rotate .6s var(--ease), translate .6s var(--ease); }
.show-panel .phone:nth-child(3) { translate: var(--px, 0) var(--py, 0); }
.show-panel .phone:nth-child(2) { translate: calc(var(--px, 0) * -.6) calc(var(--py, 0) * -.6); }
.show-panel .phone:nth-child(4) { translate: calc(var(--px, 0) * -.6) calc(var(--py, 0) * -.6); }
.float-chip { animation: chip-in .8s var(--ease) both, chip-bob 5s ease-in-out infinite 1.6s; }
.fc-1 { animation-delay: 1s, 1.8s; } .fc-2 { animation-delay: 1.2s, 2.6s; }
@keyframes chip-in { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes chip-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.mission .phone { animation: mission-float 9s ease-in-out infinite; }
.mission .ph-r, .mission .ph-l2 { animation-delay: -4s; }
@keyframes mission-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* Screen micro-animations */
.scr-game .hud span:first-child { animation: tick 1.6s steps(1) infinite; }
@keyframes tick { 50% { color: #fde047; } }
.scr-store .buy { animation: press 3s ease-in-out infinite; }
@keyframes press { 0%, 80%, 100% { transform: scale(1); } 88% { transform: scale(.94); } }
.scr-quran .page b { background: linear-gradient(90deg, #0f766e 0 50%, #1f2937 50%) 100% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; animation: read 5s ease-in-out infinite; }
@keyframes read { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }

/* Reveal: staggered */
.rv { transition-delay: calc(var(--i, 0) * 80ms); }
.pre .orn b, .pre .orn::before { transform: scaleX(0); } .orn b, .orn::before { transition: transform 1s var(--ease) .25s; }
.pre .orn i { opacity: 0; transform: scale(.4); } .orn i { transition: opacity .5s, transform .6s var(--ease) .15s; }
.pre.in .orn b, .pre.in .orn::before { transform: scaleX(1); }
.pre.in .orn i { opacity: 1; transform: none; }
.orn b { transform-origin: 0 50%; } [dir="rtl"] .orn b { transform-origin: 100% 50%; } .center .orn::before { transform-origin: 100% 50%; }
.prog-bar i { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease) .3s; }
[dir="rtl"] .prog-bar i { transform-origin: 100% 50%; }
.prog-bar.in i { transform: scaleX(1); }

/* Cards: spotlight + lift */
.svc-card, .why-card, .step, .post, .fc, .stat { --mx: 50%; --my: 50%; }
.svc-card::after, .why-card::after, .step::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--c1, var(--brand)) 12%, transparent), transparent 60%); }
.svc-card:hover::after, .why-card:hover::after, .step:hover::after { opacity: 1; }
.why-card, .step { position: relative; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.why-card:hover, .step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.why-card i { transition: transform .5s var(--ease), background .3s, color .3s; }
.why-card:hover i { transform: rotate(-8deg) scale(1.08); background: var(--brand); color: #fff; }
.step-dot { transition: transform .5s var(--ease); }
.step:hover .step-dot { transform: rotate(-8deg) scale(1.08); }
.step-n { transition: -webkit-text-stroke-color .4s, transform .5s var(--ease); }
.step:hover .step-n { -webkit-text-stroke-color: var(--brand); transform: translateY(-4px); }
.stat { transition: transform .5s var(--ease), box-shadow .5s; }
.stat:hover { box-shadow: 0 30px 60px -30px rgba(11,20,48,.45); }
.stat b { font-variant-numeric: tabular-nums; }
.post-thumb::before { transition: transform .8s var(--ease); }
.post:hover .post-thumb::before { transform: scale(1.15); }
.post-thumb svg { transition: transform .6s var(--ease); }
.post:hover .post-thumb svg { transform: rotate(-10deg) scale(1.1); }
.post-more svg, .svc-link svg { transition: transform .3s var(--ease); }
.post:hover .post-more svg { transform: translateX(4px); }
.tech-run span { transition: transform .3s var(--ease), border-color .3s, color .3s; }
.tech-run span:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand); }
.pr { position: relative; }
.pr::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); transform: scaleY(0); transition: transform .35s var(--ease); }
.pr:hover::before { transform: scaleY(1); }
.pr-ico { transition: transform .4s var(--ease); }
.pr:hover .pr-ico { transform: scale(1.08) rotate(-4deg); }
.fc::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 25%; z-index: 2; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent); transform: skewX(-18deg); transition: left 1s var(--ease); }
.fc:hover::after { left: 120%; }
.tabs button:not([aria-pressed="true"]):hover { color: var(--brand); }

/* FAQ open animation */
.qa p { animation: none; }
.qa[open] p { animation: fade-up .45s var(--ease); }
.qa summary { transition: color .2s; }
.qa summary:hover { color: var(--brand); }

/* Form polish */
.f input, .f select, .f textarea { transition: border-color .2s, box-shadow .2s, background .2s; }
.f input:hover, .f select:hover, .f textarea:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line-2)); }
.chip span:hover { border-color: var(--brand); }
.f.err { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.f-status.ok::before { content: "✓ "; font-weight: 700; }
#f-submit[disabled] { opacity: .7; cursor: progress; }

/* Back to top */
.to-top { position: fixed; z-index: 40; bottom: 22px; inset-inline-end: 22px; width: 46px; height: 46px; border-radius: 14px 14px 14px 3px; display: grid; place-items: center; border: 0; cursor: pointer;
  background: var(--logo-navy); color: #fff; box-shadow: 0 16px 30px -14px rgba(11,20,48,.6); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .35s, transform .45s var(--ease), background .25s; }
:root[data-zbd="dark"] .to-top { background: var(--brand); color: #04121f; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand); }
.to-top svg { width: 20px; height: 20px; }
.to-top circle { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 2; }

/* Small polish fixes */
.ftr-mid p a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.ftr-mid p a:hover { color: #38bdf8; border-color: #38bdf8; }
.socials a { transition: transform .3s var(--ease), background .2s, border-color .2s, color .2s; }
.socials a:hover { transform: translateY(-3px); }
@media (max-width: 560px) { .hero-cta .btn { width: 100%; } .hero-badges { flex-direction: column; align-items: center; gap: 8px; } }
.pr-links { gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  body, .hero .w, .hero-box .eyebrow, .hero-lede, .hero-cta, .hero-badges, .show-panel .phone, .float-chip { animation: none !important; opacity: 1 !important; transform: none; }
  .orn b, .orn::before, .orn i, .prog-bar i { transform: none !important; opacity: 1 !important; }
  .hdr.hide { transform: none; }
}

/* ===================== v3.2 ===================== */
[hidden] { display: none !important; }
.hero h1 { animation: fade-up .9s var(--ease) .1s both; }
.fc-status em, .pill em { font-style: normal; }
.pill.s-live i, .fc-status.s-live i { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.pill.s-soon i { background: #fbbf24; }
/* Garage screen (Car Arena) */
.scr-garage { background: linear-gradient(180deg, #1e1b4b, #0f0a2e); color: #fff; padding: 28px 10px 10px; gap: 8px; }
.scr-garage .hud { display: flex; justify-content: space-between; font-family: var(--f-head); font-weight: 800; font-size: 10px; letter-spacing: .06em; }
.scr-garage .hud span { background: rgba(255,255,255,.12); padding: 3px 7px; border-radius: 8px; }
.g-stage { position: relative; flex: 1; min-height: 70px; display: grid; place-items: center; }
.g-glow { position: absolute; bottom: 12%; width: 80%; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(249,115,22,.7), transparent); }
.g-car { position: relative; z-index: 1; width: 62%; height: 34%; border-radius: 12px 12px 6px 6px; background: linear-gradient(180deg, #fb923c, #ea580c); box-shadow: 0 6px 0 #7c2d12; animation: g-spin 3s ease-in-out infinite; }
.g-car::before, .g-car::after { content: ""; position: absolute; bottom: -7px; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #111827; border: 2px solid #9ca3af; }
.g-car::before { left: 12%; } .g-car::after { right: 12%; }
.g-car i { position: absolute; left: 22%; right: 22%; top: -38%; height: 50%; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #7dd3fc, #0284c7); }
@keyframes g-spin { 50% { transform: translateY(-4px) scale(1.04); } }
.g-stats { display: grid; gap: 5px; font-family: var(--f-head); font-weight: 700; font-size: 8px; letter-spacing: .06em; }
.g-stats span { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 6px; }
.g-stats b { height: 5px; border-radius: 3px; background: rgba(255,255,255,.15); position: relative; overflow: hidden; }
.g-stats b::after { content: ""; position: absolute; inset: 0; width: var(--v); border-radius: 3px; background: linear-gradient(90deg, #fbbf24, #f97316); }
.g-paints { display: flex; gap: 6px; justify-content: center; }
.g-paints i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); }
.g-paints i:first-child { border-color: #fff; box-shadow: 0 0 0 2px #f97316; }
.g-btn { height: 26px; border-radius: 9px; background: linear-gradient(180deg, #fde047, #f59e0b); color: #451a03; display: grid; place-items: center; font-family: var(--f-head); font-weight: 800; font-size: 11px; letter-spacing: .1em; box-shadow: 0 3px 0 #b45309; }
.cs-banner.two { gap: clamp(20px, 4vw, 60px); }
.cs-banner.two .phone:nth-of-type(2) { transform: rotate(6deg); }
/* Blog covers */
.post-thumb { padding: 0; aspect-ratio: 40 / 21; }
.post-thumb::before, .post-thumb::after { display: none; }
.post-thumb .cover { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease); }
.post:hover .post-thumb .cover { transform: scale(1.06); }
.post-chip { position: absolute; top: 14px; inset-inline-start: 14px; padding: 5px 11px; border-radius: 99px; background: rgba(255,255,255,.92); color: #0b1430; font-family: var(--f-head); font-weight: 700; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
[lang="ar"] .post-chip { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.art-cover { margin: 40px auto 0; max-width: 980px; border-radius: 22px; overflow: hidden; aspect-ratio: 40 / 21; box-shadow: var(--shadow); }
.art-cover .cover { width: 100%; height: 100%; display: block; }
.post-thumb .post-chip { color: #0b1430; font-size: 11.5px; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; padding: 6px 11px; }
[lang="ar"] .post-thumb .post-chip { text-transform: none; letter-spacing: 0; font-size: 12.5px; }

/* ===================== v3.4 work groups ===================== */
.wgroup + .wgroup { margin-top: clamp(56px, 7vw, 90px); }
.wg-head { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: flex-end; justify-content: space-between; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 2px solid var(--ink); }
.wg-head .mono { color: var(--muted); }
.wg-head h3 { margin: 8px 0 0; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; }
[lang="ar"] .wg-head h3 { text-transform: none; line-height: 1.4; }
.wg-head .tabs svg { width: 17px; height: 17px; }
.wg-note { margin: -6px 0 14px; color: var(--muted); max-width: 70ch; font-size: 15px; }
.wg-foot { margin-top: 26px; display: flex; justify-content: center; }
.wgroup.past { margin-top: clamp(56px, 7vw, 90px); }
.xlink { margin-top: 50px; padding: 22px 24px; border-radius: 16px; background: var(--tint); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; font-weight: 600; }
.wgroup.solo { margin-top: 0; }
.wgroup.solo .wg-head { border-bottom: 0; padding-bottom: 0; justify-content: flex-start; }
.wgroup.solo .wg-head > div:not(.tabs), .wgroup.solo .wg-note { display: none; }

/* ===================== v3.5 header ===================== */
.hdr { background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding-top: 0; transition: transform .45s var(--ease), padding .35s var(--ease); }
.hdr-bar { transition: background .35s, box-shadow .35s, border-color .35s; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid transparent; }
.hdr.scrolled { padding-top: 10px; box-shadow: none; border: 0; }
.hdr.scrolled .hdr-bar { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr.scrolled .hdr-in { background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px -24px rgba(11,20,48,.35); height: 64px; max-width: calc(var(--wrap) - 2 * var(--gutter) + 32px); padding-inline: 16px; }
.hdr-in { transition: height .35s var(--ease), background .35s, border-radius .35s, box-shadow .35s, padding .35s; border: 1px solid transparent; }
.nav-wrap { margin-inline-start: 18px; }
.nav { margin: 0; }
.nav > li { position: relative; }
.nav > li > a { gap: 6px; }
.nav .chev { width: 14px; height: 14px; transition: transform .3s var(--ease); opacity: .7; }
.has-dd:hover > a .chev, .has-dd:focus-within > a .chev { transform: rotate(180deg); }
.nav > li > a::after { left: 12px; right: 12px; }
.dd { position: absolute; top: calc(100% + 10px); inset-inline-start: -14px; z-index: 5; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -24px rgba(11,20,48,.4); opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: top left; transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.dd::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-dd:hover > .dd, .has-dd:focus-within > .dd { opacity: 1; visibility: visible; transform: none; }
.dd-wide { width: 620px; }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dd-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; transition: background .2s; }
.dd-item:hover { background: var(--tint); }
.dd-item b { display: block; font-family: var(--f-head); font-size: 14.5px; font-weight: 700; color: var(--ink); }
.dd-item small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.dd-ico { width: 40px; height: 40px; flex: none; border-radius: 12px 12px 12px 3px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: 0 10px 18px -10px var(--c1); transition: transform .3s var(--ease); }
.dd-ico svg { width: 20px; height: 20px; }
.dd-item:hover .dd-ico { transform: rotate(-8deg) scale(1.06); }
.dd-work { width: 560px; }
.dd-cols { display: grid; grid-template-columns: 1fr 210px; gap: 8px; }
.dd-list { display: grid; align-content: start; gap: 4px; }
.dd-feature { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; text-decoration: none; color: #fff; min-height: 150px;
  background: radial-gradient(80% 80% at 80% 20%, rgba(249,115,22,.75), transparent 70%), linear-gradient(160deg, #0a1024, #1e1b4b); }
.dd-feature b { font-family: var(--f-head); font-size: 15px; margin-top: auto; }
.dd-feature small { font-size: 12px; color: #c7d2fe; }
.dd-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.16); }
.dd-tag i { width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; }
.dd-car { position: absolute; top: 22px; inset-inline-end: 16px; width: 64px; height: 26px; border-radius: 9px 9px 5px 5px; background: linear-gradient(180deg, #fb923c, #ea580c); box-shadow: 0 4px 0 #7c2d12; transition: transform .5s var(--ease); }
.dd-car i { position: absolute; left: 20%; right: 20%; top: -11px; height: 13px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #7dd3fc, #0284c7); }
.dd-feature:hover .dd-car { transform: translateX(-8px) rotate(-4deg); }
.lang-seg { display: inline-flex; align-items: center; padding: 3px; border-radius: 11px; border: 1.5px solid var(--line); height: 40px; }
.lang-seg span, .lang-seg a { min-width: 32px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-size: 12.5px; font-weight: 700; text-decoration: none; color: var(--muted); padding: 0 6px; transition: background .2s, color .2s; }
.lang-seg a[lang="ar"], .lang-seg span:last-child { font-family: "IBM Plex Sans Arabic", var(--f-body); font-size: 15px; }
.lang-seg .on { background: var(--logo-navy); color: #fff; }
:root[data-zbd="dark"] .lang-seg .on { background: var(--brand); color: #04121f; }
.lang-seg a:hover { color: var(--brand); }
.burger { position: relative; width: 18px; height: 14px; display: block; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 6px; } .burger i:nth-child(3) { top: 12px; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.nav-m { display: none; }
@media (max-width: 1060px) { .dd-wide { width: 520px; } .nav > li > a { padding: 0 9px; } }
@media (max-width: 960px) {
  .nav-wrap { margin: 0; }
  .hdr.scrolled .hdr-in { height: 60px; }
  .nav { top: 74px; padding-bottom: 26px; max-height: calc(100vh - 74px); overflow-y: auto; }
  .hdr.scrolled .nav { top: 76px; inset-inline: 10px; border-radius: 18px; border: 1px solid var(--line); }
  .dd, .nav .chev { display: none; }
  .nav-m { display: grid; gap: 14px; padding-top: 18px; }
  .nav-m .btn { width: 100%; height: 52px; }
  .nav-m .btn::after, .nav-m a::after { display: none; }
  .nav .nav-m a.nav-mail { height: auto; border: 0; justify-content: center; font-size: 14px; color: var(--muted); font-family: var(--f-body); text-transform: none; letter-spacing: 0; }
  .lang-seg { height: 40px; }
}
@media (max-width: 420px) { .lang-seg span, .lang-seg a { min-width: 26px; } .hdr-act { gap: 6px; } }

/* ===================== v3.5 showcase ===================== */
.show-panel { min-height: clamp(340px, 42vw, 520px); padding: 0; display: block; perspective: 1000px; }
.show-fx { position: absolute; inset: 0; overflow: hidden; border-radius: 24px; pointer-events: none; }
.show-floor { position: absolute; left: -30%; right: -30%; bottom: -10%; height: 70%; transform: rotateX(68deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(56,189,248,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.35) 1px, transparent 1px); background-size: 60px 60px;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%); animation: floor 6s linear infinite; }
@keyframes floor { to { background-position: 0 60px; } }
.show-orbit { position: absolute; left: 50%; top: 54%; border-radius: 50%; border: 1px dashed rgba(165,168,248,.35); transform: translate(-50%, -50%) rotateX(70deg); }
.show-orbit b { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 14px #38bdf8; }
.show-orbit.o1 { width: 60%; aspect-ratio: 1; animation: orbit 16s linear infinite; }
.show-orbit.o2 { width: 86%; aspect-ratio: 1; border-color: rgba(56,189,248,.18); animation: orbit 26s linear infinite reverse; }
.show-orbit.o2 b { background: #a5a8f8; box-shadow: 0 0 14px #a5a8f8; }
@keyframes orbit { to { transform: translate(-50%, -50%) rotateX(70deg) rotate(360deg); } }
.show-spot { position: absolute; left: 50%; bottom: -10%; width: 60%; height: 70%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(99,102,241,.55), transparent); filter: blur(10px); animation: glow 6s ease-in-out infinite alternate; }
.show-particles i { position: absolute; left: var(--x); bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #7dd3fc; opacity: 0; box-shadow: 0 0 8px #38bdf8; animation: rise-p var(--t) linear var(--d) infinite; }
@keyframes rise-p { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-460px); opacity: 0; } }
.show-phones { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 3.4vw, 48px); overflow: hidden; border-radius: 24px; padding-top: 30px; }
.sp { transition: translate .7s var(--ease); }
.sp .phone { margin: 0; }
.sp-l { translate: calc(var(--px, 0px) * -.6) calc(var(--py, 0px) * -.6); }
.sp-r { translate: calc(var(--px, 0px) * -.6) calc(var(--py, 0px) * -.6); }
.sp-c { translate: var(--px, 0px) var(--py, 0px); }
.sp-l .phone { width: clamp(140px, 15vw, 190px); transform: rotate(-9deg) translateY(110px); animation-delay: .55s; }
.sp-r .phone { width: clamp(140px, 15vw, 190px); transform: rotate(9deg) translateY(110px); animation-delay: .7s; }
.sp-c .phone { width: clamp(170px, 19vw, 236px); transform: translateY(70px); animation-delay: .4s; box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1.5px rgba(255,255,255,.14), 0 0 60px -10px rgba(99,102,241,.6); }
.xchip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: rgba(255,255,255,.96); color: #0b1430;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); max-width: 240px; animation: chip-in .8s var(--ease) both, chip-bob 6s ease-in-out infinite; }
:root[data-zbd="dark"] .xchip { background: rgba(15,23,51,.9); color: #eef2ff; border: 1px solid rgba(255,255,255,.1); }
.xchip b { display: block; font-family: var(--f-head); font-size: 14px; line-height: 1.2; }
.xchip small { display: block; font-size: 12px; color: #64708c; line-height: 1.3; }
:root[data-zbd="dark"] .xchip small { color: #94a0c4; }
.xc-ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.xc-ico svg { width: 20px; height: 20px; }
.xc-ico.ok { background: #dcfce7; color: #16a34a; }
.xc-bar { display: block; width: 110px; height: 5px; border-radius: 99px; background: #e2e8f0; margin-top: 6px; overflow: hidden; }
.xc-bar i { display: block; height: 100%; width: 78%; border-radius: 99px; background: linear-gradient(90deg, #f97316, #e11d48); animation: bar 3.5s var(--ease) infinite; }
@keyframes bar { 0% { width: 8%; } 60%, 100% { width: 78%; } }
.xc-pill { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: #fef3c7; color: #92400e; align-self: flex-start; }
.xc-tags { display: flex; gap: 5px; margin-top: 5px; }
.xc-tags span { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: #eef2ff; color: #3730a3; }
:root[data-zbd="dark"] .xc-tags span { background: rgba(99,102,241,.2); color: #c7d2fe; }
.xchip:has(.xc-tags) { flex-direction: column; align-items: flex-start; gap: 0; }
.xc-1 { top: 26px; inset-inline-start: 26px; animation-delay: .9s, 1.7s; }
.xc-4 { top: 26px; inset-inline-end: 26px; animation-delay: 1.1s, 2.4s; }
.xc-2 { top: 50%; inset-inline-end: 26px; animation-delay: 1.3s, 3.1s; }
.xc-3 { bottom: 30px; inset-inline-start: 26px; animation: toast 8s var(--ease) 2s infinite both; }
@keyframes toast { 0% { opacity: 0; transform: translateY(16px) scale(.95); } 6%, 46% { opacity: 1; transform: none; } 52%, 100% { opacity: 0; transform: translateY(-8px) scale(.98); } }
@media (max-width: 1100px) { .xc-2 { display: none; } }
@media (max-width: 720px) {
  .sp-l, .sp-r, .xc-4 { display: none; }
  .xchip { padding: 9px 11px; gap: 9px; max-width: 200px; } .xc-ico { width: 32px; height: 32px; } .xchip b { font-size: 12.5px; } .xchip small { font-size: 11px; }
  .xc-1 { top: 14px; inset-inline-start: 12px; } .xc-3 { bottom: 16px; inset-inline-start: 12px; } .xc-bar { width: 80px; }
}

/* ===================== v3.5 footer ===================== */
.ftr { position: relative; overflow: hidden; background: #0b0f1e; color: #c8cede; isolation: isolate; }
.ftr-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 50% at 15% 0%, rgba(14,165,233,.18), transparent 70%), radial-gradient(40% 60% at 90% 10%, rgba(99,102,241,.2), transparent 70%); }
.ftr::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #0ea5e9, #6366f1, transparent); }
.ftr-mark { position: absolute; z-index: -1; width: 420px; height: 420px; inset-inline-end: -90px; bottom: -110px; opacity: .06; --logo-cyan: #fff; --logo-ring: #fff; }
.ftr-cta { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding: 54px 0 46px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ftr-cta h2 { margin: 12px 0 0; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; color: #fff; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; }
[lang="ar"] .ftr-cta h2 { text-transform: none; line-height: 1.4; }
.ftr-cta-act { display: flex; flex-wrap: wrap; gap: 12px; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #86efac; }
.status-dot i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding: 50px 0 46px; }
.ftr-brand p { margin: 16px 0 0; color: #8f97ad; font-size: 14.5px; max-width: 40ch; }
.ftr-contact { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.ftr-contact li { display: flex; align-items: center; gap: 10px; }
.ftr-contact svg { width: 18px; height: 18px; color: #38bdf8; flex: none; }
.ftr-contact a { color: #fff; text-decoration: none; } .ftr-contact a:hover { color: #38bdf8; }
.ftr-brand .socials { margin-top: 20px; }
.ftr h4 { margin: 4px 0 18px; font-family: var(--f-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
[lang="ar"] .ftr h4 { letter-spacing: 0; font-size: 15px; }
.ftr ul:not(.ftr-contact) { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ftr ul:not(.ftr-contact) a { color: #a3abc2; text-decoration: none; font-size: 14.5px; position: relative; transition: color .2s, padding .3s var(--ease); }
.ftr ul:not(.ftr-contact) a:hover { color: #fff; padding-inline-start: 6px; }
.ftr .soon { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: rgba(251,191,36,.15); color: #fcd34d; margin-inline-start: 6px; vertical-align: 1px; }
.ftr-bot .wrap { padding-inline-end: calc(var(--gutter) + 64px); }
[dir="rtl"] .ftr-bot .wrap { padding-inline-end: calc(var(--gutter) + 64px); }
@media (max-width: 960px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; } .ftr-cta-act .btn { flex: 1; } .ftr-mark { width: 260px; height: 260px; } }
.to-top { bottom: 18px; }
.nav .dd a { height: auto; padding: 10px 12px; text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-weight: 400; color: inherit; border: 0; }
.nav .dd a.dd-feature { padding: 16px; color: #fff; }
.nav .dd a::after { display: none; }
.nav .dd a:hover { color: inherit; }
/* v3.5 fixes */
.xc-2 { top: auto; bottom: 30px; }
.nav .dd a.dd-feature { text-align: start; align-items: flex-start; }
.ftr-mark { opacity: .035; width: 480px; height: 480px; inset-inline-end: -140px; bottom: -170px; }
main:has(#contact) + .ftr .ftr-cta { display: none; }
@media (max-width: 960px) {
  .nav > li { width: 100%; }
  .nav > li > a { width: 100%; justify-content: space-between; font-size: 19px; height: 58px; }
  .nav > li:not(.nav-m) > a::before { content: ""; order: 2; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .4; }
  [dir="rtl"] .nav > li:not(.nav-m) > a::before { transform: rotate(-135deg); }
  .nav .nav-m .btn { color: #fff; justify-content: center; font-size: 15px; }
  .nav .nav-m .btn svg { color: #fff; }
}
/* Legal pages */
.legal-back { margin-bottom: 26px; }
.legal-back .btn svg { transform: scaleX(-1); }
.legal-back .btn:hover svg { transform: scaleX(-1) translateX(3px); }
.legal-prose { max-width: 780px; }
.legal-prose h2 { text-transform: none; font-size: clamp(20px, 2.2vw, 26px); margin-top: 38px; }
.legal-box { margin: 22px 0; padding: 18px 20px; border-radius: 14px; background: var(--tint); border-inline-start: 4px solid var(--brand); color: var(--ink-2); line-height: 1.7; }
.legal-table { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.legal-table th, .legal-table td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.legal-table th { background: var(--tint); font-family: var(--f-head); font-weight: 700; color: var(--ink); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-prose code { font-family: var(--f-mono); font-size: 13px; padding: 2px 6px; border-radius: 6px; background: var(--tint); }

/* ===================== v3.6 responsive & polish ===================== */
/* readable small text */
.tabs button sup { font-size: 12px; }
.mono { font-size: 12px; }
.xchip small { font-size: 12px; } .xc-pill { font-size: 12px; }
.pr-name .mono, .pr-plat, .fact .mono, .card-body .mono { font-size: 12px; }
.post-thumb .post-chip { font-size: 12px; }
.dd-tag { font-size: 12px; }
.ftr .soon { font-size: 11.5px; }
/* comfortable tap targets on touch screens */
@media (max-width: 960px) {
  .lang-seg { height: 42px; }
  .lang-seg span, .lang-seg a { min-width: 36px; height: 34px; }
  .svc-link { padding-block: 10px; margin-block: -10px; }
  .mail { padding-block: 8px 6px; }
  .ftr ul:not(.ftr-contact) { gap: 2px; }
  .ftr ul:not(.ftr-contact) a { display: inline-block; padding-block: 9px; }
  .ftr-contact a { display: inline-block; padding-block: 8px; }
  .ftr-bot nav a { display: inline-block; padding-block: 9px; }
  .crumbs a { display: inline-block; padding-block: 8px; }
  .post-more { padding-block: 8px 4px; }
  .pr-links a { padding: 10px 13px; }
  .fc-store { padding: 10px 14px; }
  .qa summary { padding-block: 22px; }
}
/* very small phones (320–400px) */
@media (max-width: 400px) {
  :root { --gutter: 14px; }
  .hdr-in { gap: 10px; }
  .brand { gap: 7px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-word { font-size: 19px; }
  .hdr-act { gap: 6px; }
  .ibtn { width: 38px; height: 38px; }
  .lang-seg span, .lang-seg a { min-width: 30px; }
  .hdr.scrolled .hdr-in { padding-inline: 10px; }
  .hero-box { border-radius: 20px; padding-inline: 16px; }
  .hero h1 { font-size: 29px; }
  .hero-lede { font-size: 15.5px; }
  .h2 { font-size: 26px; }
  .show-panel, .show-phones, .show-fx { border-radius: 18px; }
  .fc-text { padding: 20px; }
  .fc h3 { font-size: 24px; }
  .svc-card { padding: 22px 20px; min-height: 0; }
  .form { padding: 18px; border-radius: 18px; }
  .chip span { padding: 0 12px; font-size: 13.5px; }
  .contact-band { padding-block: 60px; }
  .ftr-grid { grid-template-columns: 1fr; }
  .ftr-cta h2 { font-size: 22px; }
  .page-hero h1 { font-size: 28px; }
  .tech-run span { height: 46px; padding: 0 16px; font-size: 14px; }
}
/* tablets */
@media (min-width: 600px) and (max-width: 960px) {
  .hero h1 { font-size: clamp(40px, 6.4vw, 52px); }
  .about { gap: 40px; }
  .stat-grid { max-width: 620px; }
  .contact { gap: 30px; }
  .why, .steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 961px) and (max-width: 1100px) {
  .nav > li > a { padding: 0 8px; font-size: 12.5px; }
  .hdr-cta { padding: 0 14px; }
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* large and ultra-wide screens */
@media (min-width: 1700px) {
  :root { --wrap: 1360px; }
  body { font-size: 17px; }
  .hero h1 { font-size: 74px; }
  .h2 { font-size: 50px; }
  .showcase { max-width: 1200px; }
  .show-panel { min-height: 560px; }
  .sp-c .phone { width: 260px; } .sp-l .phone, .sp-r .phone { width: 210px; }
}
@media (min-width: 2200px) {
  :root { --wrap: 1520px; }
  html { font-size: 112.5%; }
  body { font-size: 18px; }
  .hero h1 { font-size: 84px; }
  .h2 { font-size: 56px; }
  .showcase { max-width: 1320px; }
  .show-panel { min-height: 620px; }
  .sp-c .phone { width: 290px; } .sp-l .phone, .sp-r .phone { width: 232px; }
}
/* landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .nav { max-height: calc(100vh - 74px); }
  .hero-box { padding-bottom: 130px; }
}
/* safe areas (notched phones) */
@supports (padding: max(0px)) {
  .wrap { padding-inline: max(var(--gutter), env(safe-area-inset-left)); }
  .to-top { bottom: max(18px, env(safe-area-inset-bottom)); }
}
/* nicer text wrapping */
h1, h2, h3, .h { text-wrap: balance; }
p, li { text-wrap: pretty; }
img { height: auto; }
@media (max-width: 960px) { .lang-seg { height: 44px; } .lang-seg span, .lang-seg a { height: 36px; } .brand { padding-block: 5px; } }
@media (max-width: 400px) { .lang-seg span, .lang-seg a { min-width: 36px; } .ibtn { width: 36px; height: 36px; } .brand-word { font-size: 18px; } .brand-mark { width: 29px; height: 29px; } .hdr-act { gap: 5px; } }
/* tablet layout refinements */
@media (min-width: 600px) and (max-width: 960px) {
  .show-panel { min-height: 440px; }
  .xc-4 { display: none; }
  .xchip { padding: 10px 12px; }
  .xc-3 { bottom: 22px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); max-width: none; padding-bottom: 0; }
  .stat:nth-child(2), .stat:nth-child(4) { transform: none; }
  .stat { padding: 22px 18px; }
  .posts { grid-template-columns: 1fr; }
  .post { flex-direction: row; }
  .post-thumb { width: 42%; flex: none; aspect-ratio: auto; min-height: 220px; }
  .ftr-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 961px) and (max-width: 1100px) { .xc-4 { display: none; } }

/* case banner on phones */
@media (max-width: 600px) {
  .cs-banner { min-height: 250px; gap: 14px; }
  .cs-banner .phone { width: 128px; margin-bottom: -70px; }
  .cs-banner .pill { top: 14px; inset-inline-start: 14px; z-index: 3; }
}
/* policy tables become cards on phones */
@media (max-width: 640px) {
  .legal-table { border: 0; overflow: visible; }
  .legal-table table { min-width: 0; }
  .legal-table thead, .legal-table tr:first-child:has(th) { display: none; }
  .legal-table table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr { border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin-bottom: 12px; background: var(--surface); }
  .legal-table td { border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .legal-table td:last-child { border-bottom: 0; }
  .legal-table td[data-label]::before { content: attr(data-label); display: block; font-family: var(--f-head); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
}
.next a.big { padding-block: 8px; }
/* phone screens for apps added from the admin panel */
.scr-shot { padding: 0; background: #0b1430; }
.scr-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scr-auto { align-items: center; justify-content: center; gap: 8px; padding: 30px 14px 14px; color: #fff; text-align: center;
  background: radial-gradient(90% 70% at 50% 30%, var(--c1), transparent 75%), linear-gradient(180deg, var(--c2), #0a1024); }
.scr-auto .sa-ico { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); font-size: 30px; font-weight: 700; }
.scr-auto .sa-ico img { width: 100%; height: 100%; object-fit: cover; }
.scr-auto .sa-ico svg { width: 32px; height: 32px; }
.scr-auto b { font-family: var(--f-head); font-size: 13px; margin-top: 6px; }
.scr-auto small { font-size: 9.5px; opacity: .8; }
.scr-auto i { display: block; width: 80%; height: 7px; border-radius: 4px; background: rgba(255,255,255,.15); }
.scr-auto i:first-of-type { margin-top: 14px; }
.scr-auto i:nth-of-type(2) { width: 60%; }
.facts b span[data-pkg] em, .facts b em { font-style: normal; }
@media (max-width: 960px) { .form-foot small a { display: inline-block; padding-block: 10px; margin-block: -10px; } }

/* ===================== Hero ZBD badge ===================== */
.zbd-badge { display: inline-flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border-radius: 999px; border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(90deg, var(--logo-cyan), var(--brand), var(--logo-ring), var(--logo-cyan)) border-box;
  background-size: 100% 100%, 300% 100%; box-shadow: 0 14px 34px -16px color-mix(in srgb, var(--brand) 60%, transparent);
  animation: fade-up .8s var(--ease) both, zb-border 6s linear infinite; animation-delay: .05s, 0s; position: relative; }
@keyframes zb-border { to { background-position: 0 0, 300% 0; } }
.zb-ico { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #16a34a; background: #dcfce7; }
.zb-ico svg { width: 20px; height: 20px; }
.zb-ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(22,163,74,.45); animation: zb-ping 2.4s ease-out 1.6s infinite; }
@keyframes zb-ping { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(22,163,74,0); } }
.zb-name { display: inline-flex; gap: .45em; font-family: var(--f-head); font-weight: 700; font-size: clamp(15px, 1.5vw, 18px); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); line-height: 1; }
.zb-w { display: inline-flex; align-items: baseline; }
.zb-w b { font-weight: 800; font-size: 1.3em; color: var(--brand); text-shadow: 0 0 18px color-mix(in srgb, var(--brand) 35%, transparent); animation: zb-pop .5s var(--ease) both; }
.zb-w:nth-child(1) b { animation-delay: .25s; } .zb-w:nth-child(2) b { animation-delay: .38s; } .zb-w:nth-child(3) b { animation-delay: .51s; }
@keyframes zb-pop { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 70% { transform: translateY(-2px) scale(1.12); } 100% { opacity: 1; transform: none; } }
.zb-r { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; vertical-align: bottom; animation: zb-open .8s var(--ease) forwards; }
.zb-w:nth-child(1) .zb-r { animation-delay: 1.1s; } .zb-w:nth-child(2) .zb-r { animation-delay: 1.3s; } .zb-w:nth-child(3) .zb-r { animation-delay: 1.5s; }
@keyframes zb-open { to { max-width: 9em; opacity: 1; } }
.zb-tr { font-family: "IBM Plex Sans Arabic", var(--f-body); font-weight: 600; font-size: 14px; color: var(--muted); padding-inline-start: 12px; border-inline-start: 1px solid var(--line-2); white-space: nowrap; }
.zbd-badge:hover .zb-w b { animation: zb-pop .5s var(--ease) both; }
.hero-box .zbd-badge + h1 { margin-top: 22px; }
@media (max-width: 480px) {
  .zbd-badge { gap: 9px; padding: 6px 13px 6px 6px; }
  .zb-ico { width: 30px; height: 30px; } .zb-ico svg { width: 17px; height: 17px; }
  .zb-name { font-size: 13px; letter-spacing: .03em; gap: .35em; }
  .zb-tr { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .zb-r { max-width: none; opacity: 1; animation: none; } .zb-w b { animation: none; opacity: 1; }
}
