/* =========================================================
   Webcraft — light corporate theme (brand kit v1.0)
   ========================================================= */
:root {
  --navy: #0B1A36;
  --navy-2: #13264a;
  --blue: #2E86F0;
  --blue-d: #0A40B2;
  --sky: #6EC3FD;
  --orange: #FF7A2A;
  --bg: #ffffff;
  --soft: #F3F5F9;
  --text: #0B1A36;
  --body: #4B5567;
  --muted: #7A8496;
  --line: #E3E8F0;
  --card: #ffffff;
  --header-bg: rgba(255, 255, 255, .92);
  --hero-top: #ffffff;
  --hero-bottom: #F7F9FC;
  --chrome: #ECF0F6;
  --err-bg: #fff5f5;
  --footer-bg: #0B1A36;
  --grad: linear-gradient(120deg, #6EC3FD 0%, #2E86F0 45%, #0A40B2 100%);
  --radius: 20px;
  --shadow-sm: 0 4px 14px rgba(11, 26, 54, .06);
  --shadow: 0 18px 50px -18px rgba(11, 26, 54, .22);
  --shadow-lg: 0 40px 80px -30px rgba(11, 26, 54, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[lang="ar"] { font-family: var(--font-ar); }
::selection { background: rgba(46, 134, 240, .2); }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

h1, h2, h3, h4, h5 { color: var(--text); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }

/* the orange triangle from the logo, used as a brand marker */
.tri { display: inline-block; width: 12px; height: 10px; background: linear-gradient(180deg, #FF8A3D, #F45E17); clip-path: polygon(0 0, 100% 0, 50% 100%); }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.kicker.light { color: var(--sky); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 12px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.btn .ic { font-size: 18px; transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(46, 134, 240, .8); }
.btn-primary:hover { background: #1f74dc; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(46, 134, 240, .9); }
.btn-outline { border: 1.5px solid var(--line); color: var(--text); background: var(--card); }
.btn-outline:hover { border-color: var(--text); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--blue-d); transform: translateY(-2px); }
.btn.done { background: #16a34a; box-shadow: none; }

.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--blue); }
.more .ic { transition: transform .3s var(--ease); }
.more:hover .ic { transform: translateX(5px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #c9d3e6; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.tb-info { display: flex; gap: 28px; }
.tb-info a, .tb-info span { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.tb-info a:hover { color: #fff; }
.tb-info .ic { color: var(--sky); font-size: 14px; }
.tb-lang { display: flex; gap: 10px; align-items: center; }
.tb-lang a { opacity: .7; transition: opacity .2s; }
.tb-lang a.on, .tb-lang a:hover { opacity: 1; color: #fff; font-weight: 600; }
.tb-lang span { opacity: .3; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -12px rgba(11, 26, 54, .15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; transition: height .3s var(--ease); }
.header.scrolled .header-inner { height: 72px; }
.logo img { height: 54px; width: auto; margin-left: -12px; }
.nav { display: flex; gap: 6px; }
.nav a { position: relative; padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--text); transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.active { color: var(--blue); }
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.header.open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.header.open .burger span:nth-child(2) { opacity: 0; }
.header.open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { opacity: 0; transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.reveal-img.in { opacity: 1; }
.reveal-img img { transition: transform 1.8s var(--ease) var(--d, 0s); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 110px; overflow: hidden; background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%); }
.hero-shapes i { position: absolute; display: block; border-radius: 28px; transform: skewX(-30deg); }
.hero-shapes i:nth-child(1) { width: 260px; height: 720px; right: 30%; top: -160px; background: linear-gradient(180deg, rgba(110, 195, 253, .14), rgba(110, 195, 253, 0)); animation: drift 14s ease-in-out infinite; }
.hero-shapes i:nth-child(2) { width: 140px; height: 520px; right: 6%; top: -120px; background: linear-gradient(180deg, rgba(46, 134, 240, .08), rgba(46, 134, 240, 0)); animation: drift 18s ease-in-out infinite reverse; }
.hero-shapes i:nth-child(3) { width: 90px; height: 380px; left: -40px; bottom: -120px; background: linear-gradient(0deg, rgba(110, 195, 253, .16), rgba(110, 195, 253, 0)); animation: drift 16s ease-in-out infinite; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 30px; } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.3vw, 3.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; margin-bottom: 22px; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; list-style: none; font-size: 14.5px; font-weight: 600; color: var(--text); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(46, 134, 240, .12); color: var(--blue); stroke-width: 3; }

/* slanted photo frames — echo the strokes of the Webcraft "W" */
.hero-media { position: relative; height: 560px; }
.slant { position: absolute; overflow: hidden; border-radius: 26px; transform: skewX(-9deg); box-shadow: var(--shadow-lg); }
.slant img { position: absolute; top: 0; left: -14%; width: 128%; height: 100%; max-width: none; object-fit: cover; transform: skewX(9deg) scale(1.02); }
.slant.reveal-img { transform: skewX(-9deg) translateY(40px); }
.slant.reveal-img.in { transform: skewX(-9deg); }
.slant.reveal-img img { transform: skewX(9deg) scale(1.18); }
.slant.reveal-img.in img { transform: skewX(9deg) scale(1.02); }
.hm-main { top: 0; right: 30px; width: 74%; height: 84%; }
.hm-sub { left: 20px; bottom: 0; width: 44%; height: 44%; border: 7px solid var(--card); }
.hm-tri { position: absolute; top: 18px; left: 16%; width: 58px; height: 50px; background: linear-gradient(180deg, #FF8A3D, #F45E17); clip-path: polygon(0 0, 100% 0, 50% 100%); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
.hm-card { position: absolute; right: 0; bottom: 34px; display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.hm-card b { display: block; color: var(--text); font-size: 18px; font-weight: 800; }
.hm-card small { color: var(--muted); font-size: 13px; }
.hm-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--grad); color: #fff; font-size: 22px; }
.hm-ic .ic { stroke-width: 3; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section.soft { background: var(--soft); }
.head { max-width: 640px; margin-bottom: 60px; }
.head.center { text-align: center; margin-inline: auto; }
.head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.head h2, .about-copy h2, .contact-info h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 800; letter-spacing: -.025em; }
.head p { margin-top: 16px; font-size: 17px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.svc { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .9s var(--ease) var(--d, 0s); }
.svc.in:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.svc-img { position: relative; height: 190px; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc:hover .svc-img img { transform: scale(1.07); }
.svc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 26, 54, .45)); }
.svc-no { position: absolute; z-index: 1; right: 16px; bottom: 12px; font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.svc-body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 0 24px 26px; }
.svc-ic { position: relative; z-index: 2; display: grid; place-items: center; width: 56px; height: 56px; margin-top: -28px; margin-bottom: 18px; border-radius: 16px; font-size: 24px; color: #fff; background: var(--grad); box-shadow: 0 10px 22px -8px rgba(46, 134, 240, .7); transition: transform .45s var(--ease); }
.svc:hover .svc-ic { transform: rotate(-6deg) scale(1.05); }
.svc h3 { font-size: 20px; margin-bottom: 10px; }
.svc p { font-size: 14.5px; line-height: 1.65; }
.svc ul { list-style: none; margin: 16px 0 22px; display: flex; flex-direction: column; gap: 8px; }
.svc li { position: relative; padding-left: 20px; font-size: 14px; font-weight: 600; color: var(--text); }
.svc li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 8px; background: var(--orange); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.svc .more { margin-top: auto; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-media { position: relative; height: 560px; }
.slant-l { position: absolute; inset: 0 40px 40px 30px; overflow: hidden; border-radius: 26px; transform: skewX(-7deg); box-shadow: var(--shadow-lg); }
.slant-l img { position: absolute; top: 0; left: -12%; width: 124%; height: 100%; max-width: none; object-fit: cover; transform: skewX(7deg) scale(1.02); }
.about-media.reveal-img { transform: translateY(40px); }
.about-media.reveal-img.in { transform: none; }
.about-media.reveal-img img { transform: skewX(7deg) scale(1.18); }
.about-media.reveal-img.in img { transform: skewX(7deg) scale(1.02); }
.exp-card { position: absolute; right: 0; bottom: 0; width: 220px; padding: 26px 28px; border-radius: 20px; background: var(--navy); color: #c9d3e6; box-shadow: var(--shadow); overflow: hidden; }
.exp-card::before { content: ""; position: absolute; right: 20px; top: 22px; width: 22px; height: 18px; background: var(--orange); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.exp-card b { display: block; font-size: 52px; font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.03em; margin-bottom: 8px; }
.exp-card > span { font-size: 14px; font-weight: 500; line-height: 1.45; }
.about-copy > p { font-size: 17px; margin-top: 18px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; margin: 36px 0 40px; }
.feat { display: flex; gap: 14px; }
.feat > span { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; font-size: 21px; color: var(--blue); background: rgba(46, 134, 240, .1); }
.feat h4 { font-size: 16px; margin-bottom: 2px; }
.feat p { font-size: 14px; line-height: 1.55; }

/* ---------- Stats ---------- */
.stats { position: relative; overflow: hidden; background: radial-gradient(90% 140% at 100% 0%, #173a78 0%, var(--navy) 55%); padding: 80px 0; }
.stats-shapes i { position: absolute; display: block; border-radius: 24px; transform: skewX(-30deg); }
.stats-shapes i:nth-child(1) { width: 180px; height: 400px; left: 8%; top: -120px; background: linear-gradient(180deg, rgba(110, 195, 253, .12), transparent); }
.stats-shapes i:nth-child(2) { width: 100px; height: 300px; right: 12%; bottom: -140px; background: linear-gradient(0deg, rgba(46, 134, 240, .25), transparent); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 10px 20px; border-right: 1px solid rgba(255, 255, 255, .1); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; line-height: 1.1; color: #fff; letter-spacing: -.03em; }
.stat > span { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--sky); }

/* ---------- Process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps-line { position: absolute; top: 30px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line); }
.steps-line i { position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease) .3s; }
.steps.in .steps-line i { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step-no { position: relative; display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 24px; border-radius: 50%; font-size: 22px; font-weight: 800; color: var(--blue); background: var(--card); border: 2px solid var(--line); transition: background .5s, color .5s, border-color .5s, box-shadow .5s; }
.step.in .step-no { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 0 0 8px rgba(46, 134, 240, .12); transition-delay: calc(var(--d, 0s) + .5s); }
.step h4 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 15px; max-width: 250px; margin-inline: auto; }

/* ---------- Contact ---------- */
.contact { padding-top: 40px; padding-bottom: 0; }
.contact-box { display: grid; grid-template-columns: .9fr 1.1fr; border-radius: 28px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.contact-info { position: relative; overflow: hidden; padding: 56px 48px; background: radial-gradient(120% 90% at 0% 0%, #173a78, var(--navy) 60%); color: #c9d3e6; }
.contact-info > * { position: relative; }
.contact-info > .ci-shapes { position: absolute; inset: 0; }
.ci-shapes i { position: absolute; display: block; border-radius: 22px; transform: skewX(-30deg); }
.ci-shapes i:nth-child(1) { width: 120px; height: 360px; right: -20px; bottom: -120px; background: linear-gradient(0deg, rgba(46, 134, 240, .35), transparent); }
.ci-shapes i:nth-child(2) { width: 60px; height: 240px; right: 110px; bottom: -100px; background: linear-gradient(0deg, rgba(110, 195, 253, .2), transparent); }
.contact-info h2 { color: #fff; }
.contact-info > p { margin-top: 16px; font-size: 16px; }
.contact-info ul { list-style: none; margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.contact-info li { display: flex; align-items: center; gap: 16px; }
.contact-info li > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: var(--sky); font-size: 20px; flex-shrink: 0; }
.contact-info small { display: block; font-size: 12.5px; color: #8fa0bf; }
.contact-info b { color: #fff; font-size: 15.5px; font-weight: 600; }
.form { padding: 52px 48px; display: flex; flex-direction: column; gap: 18px; }
.form h3 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; }
.form label > span { font-size: 13.5px; font-weight: 600; color: var(--text); }
.form input, .form select, .form textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--soft); font-size: 15px; color: var(--text); outline: none; transition: border-color .2s, background .2s, box-shadow .2s; resize: vertical; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8496' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.form input::placeholder, .form textarea::placeholder { color: #9aa3b2; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); background: var(--card); box-shadow: 0 0 0 4px rgba(46, 134, 240, .12); }
.form .err { border-color: #e5484d; background: var(--err-bg); }
.f-msg { min-height: 1.4em; font-size: 14px; font-weight: 600; color: #16a34a; text-align: center; }
.f-msg.bad { color: #e5484d; }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: #9fb0cc; margin-top: 120px; }
.f-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr; gap: 40px; padding: 72px 0 56px; }
.f-logo { height: 58px; width: auto; margin: -8px 0 0 -14px; }
.f-brand p { margin-top: 14px; max-width: 330px; font-size: 14.5px; }
.f-col { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.f-col h5 { color: #fff; font-size: 15px; margin-bottom: 6px; }
.f-col a { transition: color .2s; width: fit-content; }
.f-col a:hover { color: #fff; }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0 30px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--blue); color: #fff; font-size: 20px; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue-d); }

/* ---------- Responsive ---------- */
@media (max-width: 1150px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 10px; font-size: 14.5px; }
  .nav a::after { left: 10px; right: 10px; }
}
@media (max-width: 980px) {
  .tb-info span { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px 24px 20px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(11, 26, 54, .25); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .3s var(--ease); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .header.open .nav { opacity: 1; visibility: visible; transform: none; }
  .burger { display: block; }
  .hero-inner, .about { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 56px; }
  .hero-media { height: 480px; width: 100%; max-width: 640px; }
  .about-media { height: 460px; width: 100%; max-width: 640px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps-line { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .stat:nth-child(2) { border-right: 0; }
  .contact-box { grid-template-columns: 1fr; }
  .f-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .topbar { display: none; }
  .header-inner { height: 70px; }
  .header.scrolled .header-inner { height: 64px; }
  .logo img { height: 44px; }
  .header-cta .btn { display: none; }
  .section { padding: 84px 0; }
  .hero { padding: 40px 0 80px; }
  .lead { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .hero-media { height: 360px; }
  .hm-main { right: 12px; width: 80%; }
  .hm-sub { left: 8px; width: 48%; border-width: 5px; }
  .hm-card { padding: 12px 16px 12px 12px; bottom: 16px; }
  .hm-card b { font-size: 15px; }
  .hm-ic { width: 38px; height: 38px; font-size: 18px; }
  .hm-tri { width: 40px; height: 34px; }
  .services { grid-template-columns: 1fr; }
  .about-media { height: 380px; }
  .slant-l { inset: 0 20px 36px 16px; }
  .exp-card { width: 190px; padding: 20px 22px; }
  .exp-card b { font-size: 40px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .head.split { flex-direction: column; align-items: flex-start; }
  .contact-info, .form { padding: 36px 24px; }
  .f-row { grid-template-columns: 1fr; }
  .f-top { grid-template-columns: 1fr; gap: 32px; }
  .f-bottom { flex-direction: column; }
  .stat { border-right: 0; }
  .footer { margin-top: 84px; }
}

/* =========================================================
   Multi-page additions
   ========================================================= */
.ic-fill { fill: currentColor; stroke: none; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .8); }
.btn-wa:hover { background: #1ebe5b; transform: translateY(-2px); }
.btn-wa .ic { font-size: 20px; }
.btn-wa:hover .ic { transform: none; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--soft); transform: translateY(-2px); }
.exp-card b { font-size: 44px; }
.f-brand .btn { margin-top: 22px; }

/* inner page hero */
.page-hero, .case-hero { position: relative; overflow: hidden; padding: 70px 0 80px; background: linear-gradient(180deg, var(--hero-top) 0%, var(--soft) 100%); border-bottom: 1px solid var(--line); }
.page-hero .container, .case-hero .container { position: relative; }
.page-hero h1, .case-hero h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; max-width: 820px; margin-bottom: 18px; }
.page-hero .lead { max-width: 640px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs b { color: var(--text); font-weight: 600; }
.crumbs span { opacity: .5; }

/* case cards */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.case { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .9s var(--ease) var(--d, 0s); }
.case.in:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.case-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.case:hover .case-img img { transform: scale(1.04); }
.case-body { flex: 1; display: flex; flex-direction: column; padding: 28px 30px 30px; }
.case-tags, .case-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.case-tags span, .case-chips span { padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--blue); background: rgba(46, 134, 240, .1); }
.case h3 { font-size: 22px; margin-bottom: 10px; }
.case h3 small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.case-body > p { font-size: 15px; }
.case-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 22px; }
.case-res { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); flex: 1; }
.case-res b { font-size: 34px; font-weight: 800; line-height: 1; color: var(--blue); }
.case-res span { font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--text); max-width: 190px; }
.case .more { white-space: nowrap; }

.stats-title { text-align: center; margin-bottom: 40px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.stat > small { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .08); }
.slant-l.dark { background: var(--navy); }

/* services detail */
.svc-detail { padding: 100px 0; }
.svc-detail:nth-child(even) { background: var(--soft); }
.svc-detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.svc-detail.flip .sd-media { order: 2; }
.sd-media { position: relative; height: 460px; }
.sd-media .slant-l { inset: 0 20px 0 20px; background: var(--navy); }
.sd-media.reveal-img img { transform: skewX(7deg) scale(1.15); }
.sd-media.reveal-img.in img { transform: skewX(7deg) scale(1.02); }
.sd-no { position: absolute; left: 0; bottom: -18px; font-size: 96px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(46, 134, 240, .35); }
.svc-detail.flip .sd-no { left: auto; right: 0; }
.svc-ic.static { margin: 0 0 22px; }
.sd-copy h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 16px; }
.sd-copy > p { font-size: 16.5px; }
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 26px 0 32px; }
.checks li { display: flex; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.5; }
.checks .ic { width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; background: rgba(46, 134, 240, .12); color: var(--blue); stroke-width: 3; }
.sd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.related { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.related:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.related img { width: 64px; height: 40px; object-fit: cover; object-position: left; border-radius: 8px; }
.related small { display: block; font-size: 11px; color: var(--muted); }
.related b { color: var(--text); font-size: 14px; }
.related .ic { color: var(--blue); }

.incl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.inc { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .9s var(--ease) var(--d, 0s); }
.inc.in:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.inc > span { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; font-size: 22px; color: #fff; background: var(--grad); }
.inc h4 { font-size: 18px; margin-bottom: 6px; }
.inc p { font-size: 14.5px; }

/* CTA band */
.cta-sec { padding: 0 0 120px; }
.section.soft + .cta-sec, .stats + .cta-sec { padding-top: 120px; }
.cta-band { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 56px 60px; border-radius: 28px; color: #c9d3e6; background: radial-gradient(120% 140% at 0% 0%, #173a78, var(--navy) 60%); box-shadow: var(--shadow-lg); }
.cta-band > div:not(.ci-shapes) { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; max-width: 600px; }
.cta-band p { margin-top: 12px; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; flex-shrink: 0; }

.next-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 28px; padding: 40px 44px; border-radius: 24px; border: 2px dashed rgba(46, 134, 240, .35); background: rgba(46, 134, 240, .04); }
.next-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.next-card p { max-width: 620px; }

/* case study page */
.case-hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: end; margin-bottom: 48px; }
.case-chips { margin: 24px 0 0; }
.case-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 18px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.case-meta div { padding: 18px 20px; background: var(--card); }
.case-meta small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.case-meta b { color: var(--text); font-size: 14.5px; line-height: 1.4; }
.case-cover { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy); aspect-ratio: 16 / 9; transform: translateY(40px); }
.case-cover.in { transform: none; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.case-cover.in img { transform: none; }
.zoomable { cursor: zoom-in; }
.zoom-hint { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--navy); background: rgba(255, 255, 255, .92); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.zoomable:hover .zoom-hint { opacity: 1; transform: none; }
.cs-rows .head { margin-bottom: 70px; }
.cs-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
.cs-row + .cs-row { margin-top: 90px; }
.cs-row.flip .cs-img { order: 2; }
.cs-img { position: relative; border-radius: 22px; overflow: hidden; background: var(--navy); aspect-ratio: 16 / 9; box-shadow: var(--shadow); transform: translateY(40px); }
.cs-img.in { transform: none; }
.cs-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.cs-img.in img { transform: none; }
.cs-copy { position: relative; }
.cs-no { display: block; font-size: 64px; font-weight: 800; line-height: 1; margin-bottom: 14px; color: transparent; -webkit-text-stroke: 2px rgba(46, 134, 240, .35); }
.cs-copy h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 800; margin-bottom: 12px; }
.cs-copy .checks { grid-template-columns: 1fr; margin: 22px 0 0; }
.results { padding: 100px 0; }
.results .head h2 { color: #fff; }
.results .head { margin-bottom: 48px; }
.res-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.res { padding: 28px 24px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.res b { display: block; font-size: 44px; font-weight: 800; line-height: 1; color: var(--sky); margin-bottom: 14px; }
.res h4 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.res p { font-size: 14px; color: #9fb0cc; }
.next-case { display: flex; align-items: center; gap: 28px; padding: 18px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm); transition: box-shadow .4s var(--ease), transform .4s var(--ease), opacity .9s var(--ease); }
.next-case.in:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.next-case img { width: 260px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; flex-shrink: 0; }
.next-case > div { flex: 1; }
.next-case small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.next-case h3 { font-size: 24px; font-weight: 800; margin: 4px 0 6px; }
.nc-arrow { display: grid; place-items: center; width: 56px; height: 56px; margin-right: 12px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 22px; flex-shrink: 0; transition: transform .35s var(--ease); }
.next-case:hover .nc-arrow { transform: translateX(6px); }

/* about */
.about-copy > p + p { margin-top: 14px; }
.about-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }

/* contact page */
.contact-page { padding-top: 80px; }
.contact-info a:hover { color: var(--sky); }
.ci-wa { margin-top: 36px; }
.f-sub { font-size: 14px; margin-top: -10px; }
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap .head { margin: 0; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .3s, opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; color: var(--text); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { font-size: 20px; color: var(--blue); transition: transform .3s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; font-size: 15px; }

/* Industry pages + links */
.ind-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 44px; }
.ind-strip > span { font-weight: 700; color: var(--text); margin-inline-end: 4px; }
.ind-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--text); background: var(--card); border: 1px solid var(--line); transition: border-color .25s, color .25s, box-shadow .25s; }
.ind-chip:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-sm); }
.ind-chip .ic { color: var(--blue); font-size: 17px; }
.ind-chip .ic:last-child { font-size: 14px; }
.probs .inc h4 { font-size: 17px; }
.ind-note { margin-top: 56px; text-align: center; font-size: 15.5px; }
.ind-markets { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 20px 24px; border-radius: 18px; background: rgba(46, 134, 240, .06); border: 1px solid rgba(46, 134, 240, .18); }
.ind-markets > .ic { flex-shrink: 0; font-size: 26px; color: var(--blue); }
.ind-markets p { font-size: 15px; color: var(--text); }
.ind-markets .more { margin-inline-start: 6px; }
@media (max-width: 980px) { .f-brand { grid-column: 1 / -1; } }

/* Markets: Saudi Arabia · UAE · Egypt */
.mkts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.mkt { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .9s var(--ease) var(--d, 0s); }
.mkt.in:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mkt header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.mkt-code { display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; font-size: 16px; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--grad); }
.mkt h3 { font-size: 20px; }
.mkt dl { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.mkt dl > div { padding-top: 14px; border-top: 1px solid var(--line); }
.mkt dt { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.mkt dd { margin: 4px 0 0; font-size: 15px; color: var(--text); }
.mkt-note { margin-top: 28px; text-align: center; font-size: 15px; }

/* Testimonials (shown only once the client approved the quote) */
.tms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.tm { position: relative; display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 52px 30px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .9s var(--ease) var(--d, 0s); }
.tm.in:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tm-mark { position: absolute; inset-inline-end: 26px; top: 6px; font-size: 76px; font-weight: 800; line-height: 1; color: var(--orange); opacity: .35; }
.tm blockquote { margin: 0; flex: 1; }
.tm blockquote p { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.tm figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.tm figcaption b { font-size: 15px; color: var(--text); }
.tm figcaption .more { font-size: 14px; }
@media (max-width: 640px) { .tms { grid-template-columns: 1fr; } .tm { padding: 48px 22px 24px; } }

/* floating WhatsApp + lightbox */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 95; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; font-size: 30px; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); transition: transform .3s var(--ease); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.to-top { bottom: 94px; right: 28px; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 40px; background: rgba(5, 12, 26, .88); backdrop-filter: blur(6px); animation: lbIn .3s var(--ease); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; border-radius: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.lb-close { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; }
.lb-close:hover { background: rgba(255, 255, 255, .22); }
@keyframes lbIn { from { opacity: 0; } }

@media (max-width: 980px) {
  .cases, .svc-detail-inner, .cs-row, .case-hero-grid, .faq-wrap { grid-template-columns: 1fr; }
  .svc-detail-inner, .cs-row { gap: 40px; }
  .svc-detail.flip .sd-media, .cs-row.flip .cs-img { order: 0; }
  .sd-media { height: 380px; max-width: 620px; width: 100%; }
  .incl { grid-template-columns: 1fr 1fr; }
  .res-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 44px 36px; }
  .next-card { flex-direction: column; align-items: flex-start; }
  .cs-row + .cs-row { margin-top: 64px; }
}
@media (max-width: 640px) {
  .page-hero, .case-hero { padding: 44px 0 56px; }
  .svc-detail { padding: 72px 0; }
  .sd-media { height: 280px; }
  .sd-no { font-size: 64px; }
  .checks { grid-template-columns: 1fr; }
  .incl, .res-grid, .case-meta { grid-template-columns: 1fr; }
  .case-body { padding: 22px 22px 24px; }
  .case-foot { flex-direction: column; align-items: flex-start; }
  .cta-sec { padding-bottom: 84px; }
  .section.soft + .cta-sec, .stats + .cta-sec { padding-top: 84px; }
  .cta-band { padding: 36px 24px; border-radius: 22px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .next-card { padding: 28px 22px; }
  .next-case { flex-direction: column; align-items: stretch; gap: 16px; }
  .next-case img { width: 100%; }
  .nc-arrow { display: none; }
  .cs-no { font-size: 48px; }
  .results { padding: 72px 0; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .to-top { right: 18px; bottom: 82px; }
  .lightbox { padding: 12px; }
}

/* ---------- Real app screenshots in a browser frame (Bahry) ---------- */
.cs-img.shot { aspect-ratio: auto; background: var(--card); border: 1px solid var(--line); }
.cs-img.shot img { height: auto; object-fit: contain; }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; background: var(--chrome); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.shot-bar i:nth-child(2) { background: #febc2e; }
.shot-bar i:nth-child(3) { background: #28c840; }
html[dir="rtl"] .shot-bar { direction: ltr; }
.cases { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
@media (max-width: 640px) { .cases { grid-template-columns: 1fr; } }

/* ---------- Live website preview (desktop + phone auto-scroll) ---------- */
.showcase { position: relative; padding: 0 70px 36px 0; }
html[dir="rtl"] .showcase { padding: 0 0 36px 70px; }
.sc-desktop { border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.sc-screen { overflow: hidden; }
.sc-screen img { display: block; width: 100%; height: auto; max-width: none; }
.sc-desktop .sc-screen { aspect-ratio: 1440 / 900; }
.sc-desktop img { animation: scDesk 24s ease-in-out infinite; }
.sc-phone { position: absolute; bottom: 0; right: 0; width: 27%; padding: 7px; border-radius: 30px; background: #0f121a; box-shadow: 0 30px 60px -20px rgba(11, 26, 54, .55); }
html[dir="rtl"] .sc-phone { right: auto; left: 0; }
.sc-phone .sc-screen { aspect-ratio: 390 / 844; border-radius: 24px; }
.sc-phone img { animation: scPhone 28s ease-in-out -4s infinite; }
.showcase:hover img { animation-play-state: paused; }
@keyframes scDesk { 0%, 8% { transform: translateY(0); } 46%, 54% { transform: translateY(-77.9%); } 92%, 100% { transform: translateY(0); } }
@keyframes scPhone { 0%, 8% { transform: translateY(0); } 46%, 54% { transform: translateY(-82.4%); } 92%, 100% { transform: translateY(0); } }
.sd-media.sd-show { height: auto; }

.site-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: center; }
.site-parts h3 { font-size: 20px; margin-bottom: 18px; }
.site-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-list li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--text); }
.site-list b { font-family: var(--font); font-size: 13px; font-weight: 800; color: var(--blue); min-width: 22px; }
.site-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.site-fig { position: relative; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.site-fig img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.site-fig figcaption { padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--text); border-top: 1px solid var(--line); }
@media (max-width: 980px) {
  .site-grid, .site-extra { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .showcase { padding: 0 44px 24px 0; }
  html[dir="rtl"] .showcase { padding: 0 0 24px 44px; }
  .sc-phone { width: 30%; padding: 5px; border-radius: 20px; }
  .sc-phone .sc-screen { border-radius: 16px; }
}

/* ---------- Social links ---------- */
.tb-right { display: flex; align-items: center; gap: 18px; }
.tb-soc, .soc { display: flex; align-items: center; gap: 8px; }
.tb-soc a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: #c9d3e6; transition: color .2s, background .2s; }
.tb-soc a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.tb-soc .ic { font-size: 15px; }
.f-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.f-brand .f-social .btn { margin-top: 0; }
.soc a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); transition: background .25s, transform .25s var(--ease); }
.soc a:hover { background: var(--blue); transform: translateY(-2px); }
.soc .ic { font-size: 19px; }

/* ---------- Preloader (first visit of a session) ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: radial-gradient(90% 90% at 70% 10%, #173a78 0%, var(--navy) 62%); transition: transform 1s cubic-bezier(.76, 0, .24, 1), border-radius 1s cubic-bezier(.76, 0, .24, 1); }
html.pl-skip .preloader { display: none; }
html.pl-lock body { overflow: hidden; }
.preloader.done { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 14% 14%; }
.pl-inner { text-align: center; transition: opacity .4s ease, transform .6s var(--ease); }
.preloader.done .pl-inner { opacity: 0; transform: translateY(-50px); }
.pl-logo { display: block; width: 150px; height: auto; margin: 0 auto 26px; overflow: visible; }
.pl-a, .pl-b, .pl-c, .pl-d { opacity: 0; transform-box: fill-box; transform-origin: center; animation: plPiece .8s var(--ease) forwards; }
.pl-a { animation-delay: .1s; }
.pl-b { animation-delay: .22s; }
.pl-c { animation-delay: .34s; }
.pl-d { animation-delay: .46s; }
.pl-t { opacity: 0; transform-box: fill-box; transform-origin: center; animation: plDrop .9s cubic-bezier(.34, 1.56, .64, 1) .8s forwards; }
@keyframes plPiece { from { opacity: 0; transform: translateY(46px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes plDrop { from { opacity: 0; transform: translateY(-140px) rotate(-30deg); } 50% { opacity: 1; } to { opacity: 1; transform: none; } }
.pl-word { font-family: var(--font); font-size: 34px; font-weight: 600; line-height: 1.2; letter-spacing: .32em; margin-right: -.32em; color: #fff; opacity: 0; animation: plFade .8s var(--ease) 1s forwards; }
.pl-word span { color: var(--blue); }
.pl-tag { margin-top: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--sky); opacity: 0; animation: plFade .8s var(--ease) 1.15s forwards; }
html[dir="rtl"] .pl-tag { font-family: var(--font-ar); font-size: 15px; letter-spacing: 0; }
.pl-bar { width: 180px; height: 3px; margin: 28px auto 0; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; opacity: 0; animation: plFade .5s ease 1.1s forwards; }
.pl-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--grad); box-shadow: 0 0 12px rgba(110, 195, 253, .7); animation: plBar 1.6s cubic-bezier(.4, 0, .2, 1) .2s forwards; }
.preloader.done .pl-bar i { animation: none; width: 100%; }
@keyframes plBar { to { width: 85%; } }
@keyframes plFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .pl-logo { width: 116px; }
  .pl-word { font-size: 26px; }
}

/* =========================================================
   Dark theme  (html[data-theme="dark"], set before first paint)
   ========================================================= */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A1428;
  --soft: #0D1A33;
  --card: #122241;
  --text: #EEF2FA;
  --body: #A9B5CB;
  --muted: #7F8CA6;
  --line: rgba(255, 255, 255, .09);
  --header-bg: rgba(10, 20, 40, .88);
  --hero-top: #0A1428;
  --hero-bottom: #0D1A33;
  --chrome: #1B2B4C;
  --err-bg: rgba(229, 72, 77, .12);
  --footer-bg: #060D1C;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .25);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .75);
}
html[data-theme="dark"] .topbar { background: #060D1C; border-bottom: 1px solid var(--line); }
html[data-theme="dark"] ::selection { background: rgba(46, 134, 240, .45); }
html[data-theme="dark"] .hl { background: linear-gradient(120deg, #9AD6FF 0%, #6EC3FD 40%, #2E86F0 100%); -webkit-background-clip: text; background-clip: text; }
html[data-theme="dark"] .kicker, html[data-theme="dark"] .more, html[data-theme="dark"] .nav a:hover, html[data-theme="dark"] .nav a.active { color: var(--sky); }
html[data-theme="dark"] .nav a::after { background: var(--sky); }
html[data-theme="dark"] .btn-outline:hover { border-color: var(--sky); color: var(--sky); }
html[data-theme="dark"] .btn-dark { background: var(--blue); }
html[data-theme="dark"] .btn-dark:hover { background: #1f74dc; }
html[data-theme="dark"] .hero-shapes i { opacity: .55; }
html[data-theme="dark"] .svc-img::after { background: linear-gradient(180deg, transparent 40%, rgba(5, 12, 26, .65)); }
html[data-theme="dark"] .feat > span, html[data-theme="dark"] .checks .ic, html[data-theme="dark"] .hero-points .ic { background: rgba(110, 195, 253, .12); color: var(--sky); }
html[data-theme="dark"] .tag, html[data-theme="dark"] .case-tags span, html[data-theme="dark"] .case-chips span { color: var(--sky); background: rgba(110, 195, 253, .1); }
html[data-theme="dark"] .case-res b, html[data-theme="dark"] .site-list b { color: var(--sky); }
html[data-theme="dark"] .step-no { color: var(--sky); }
html[data-theme="dark"] .step.in .step-no { color: #fff; }
html[data-theme="dark"] .stats, html[data-theme="dark"] .cta-band, html[data-theme="dark"] .contact-info { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
html[data-theme="dark"] .form input::placeholder, html[data-theme="dark"] .form textarea::placeholder { color: #6E7B95; }
html[data-theme="dark"] .form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9B5CB' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .burger { border-color: var(--line); }
html[data-theme="dark"] .next-card { background: rgba(46, 134, 240, .06); }
html[data-theme="dark"] .sc-phone { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }

/* logo swap + theme toggle */
.logo .logo-dark { display: none; }
html[data-theme="dark"] .logo .logo-light { display: none; }
html[data-theme="dark"] .logo .logo-dark { display: block; }
.theme-toggle { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); color: var(--text); font-size: 20px; overflow: hidden; transition: border-color .25s, color .25s, background .25s; }
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
html[data-theme="dark"] .theme-toggle:hover { border-color: var(--sky); color: var(--sky); }
.theme-toggle .ic { position: absolute; transition: transform .5s var(--ease), opacity .3s; }
.theme-toggle .i-sun { transform: translateY(30px) rotate(-90deg); opacity: 0; }
html[data-theme="dark"] .theme-toggle .i-sun { transform: none; opacity: 1; }
html[data-theme="dark"] .theme-toggle .i-moon { transform: translateY(-30px) rotate(90deg); opacity: 0; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .4s ease, border-color .4s ease, color .4s ease !important; }

/* =========================================================
   Arabic / RTL
   ========================================================= */
html[dir="rtl"] body, html[dir="rtl"] button, html[dir="rtl"] input, html[dir="rtl"] select, html[dir="rtl"] textarea { font-family: var(--font-ar); }
html[dir="rtl"] body { line-height: 1.85; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5 { letter-spacing: 0; line-height: 1.4; font-weight: 700; }
html[dir="rtl"] .hero h1 { line-height: 1.35; }
html[dir="rtl"] .kicker, html[dir="rtl"] .stats-title, html[dir="rtl"] .case h3 small, html[dir="rtl"] .next-case small, html[dir="rtl"] .mkt dt { letter-spacing: 0; text-transform: none; font-size: 14px; }
html[dir="rtl"] .logo img { margin: 0 -12px 0 0; }
html[dir="rtl"] .f-logo { margin: -8px -14px 0 0; }
html[dir="rtl"] .svc li { padding: 0 20px 0 0; }
html[dir="rtl"] .svc li::before { left: auto; right: 0; }
html[dir="rtl"] .related { padding: 6px 6px 6px 16px; }
html[dir="rtl"] .form select { background-position: left 14px center; padding: 14px 16px 14px 42px; }
html[dir="rtl"] .nc-arrow { margin: 0 0 0 12px; }
html[dir="rtl"] .btn:hover .ic, html[dir="rtl"] .more:hover .ic { transform: translateX(-4px); }
html[dir="rtl"] .next-case:hover .nc-arrow { transform: translateX(-6px); }
html[dir="rtl"] .btn-wa:hover .ic { transform: none; }
html[dir="rtl"] .exp-card::before { right: auto; left: 20px; }
html[dir="rtl"] .tb-lang a[lang="en"], html[dir="ltr"] .tb-lang a[lang="ar"] { font-family: inherit; }
html[dir="rtl"] .stat b, html[dir="rtl"] .res b, html[dir="rtl"] .case-res b, html[dir="rtl"] .cs-no, html[dir="rtl"] .sd-no, html[dir="rtl"] .svc-no, html[dir="rtl"] .step-no, html[dir="rtl"] .exp-card b { font-family: var(--font); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
