:root {
  --bg: #0a1120;
  --bg-alt: #0e1729;
  --surface: #121d33;
  --surface-2: #17243e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2f8;
  --muted: #9aa6bc;
  --cyan: #19d3f5;
  --blue: #1e7bff;
  --accent: #3fb6ff;
  --wa: #25d366;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1160px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
  --header-bg: rgba(10, 17, 32, 0.82);
  --btn-hover: #ffffff;
  --contact-end: #0c1830;
  --panel-bg: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  --hover: rgba(255, 255, 255, .035);
  --shadow: rgba(0, 0, 0, .65);
  --glow: rgba(30, 123, 255, 0.16);
  color-scheme: dark;
}

/* Light theme */
html[data-theme="light"] {
  --bg: #f6f8fb;
  --bg-alt: #edf2f8;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --line: rgba(11, 19, 36, 0.08);
  --line-strong: rgba(11, 19, 36, 0.16);
  --text: #0b1324;
  --muted: #56627a;
  --accent: #0a6fd8;
  --header-bg: rgba(246, 248, 251, 0.85);
  --btn-hover: #1d2b45;
  --contact-end: #e7eff9;
  --panel-bg: #ffffff;
  --hover: rgba(11, 19, 36, .03);
  --shadow: rgba(20, 40, 80, .14);
  --glow: rgba(30, 123, 255, 0.10);
  color-scheme: light;
}
/* Devices on the page stay dark in both themes */
html[data-theme="light"] :is(.phone, .site-logo) {
  --bg: #0a1120; --surface: #121d33; --text: #eef2f8; --muted: #9aa6bc; --accent: #3fb6ff;
  --line: rgba(255, 255, 255, 0.08); --line-strong: rgba(255, 255, 255, 0.16);
  color: var(--text);
}
.logo-on-light { display: none; }
html[data-theme="light"] .logo-on-dark { display: none; }
html[data-theme="light"] .logo-on-light { display: block; }
.footer-logo img { height: 24px; width: auto; }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, fill .4s ease !important;
}
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  background: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
  transition: border-color .2s ease;
}
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .i-moon { fill: currentColor; display: none; }
html[data-theme="light"] .theme-toggle .i-sun { display: none; }
html[data-theme="light"] .theme-toggle .i-moon { display: block; }
.theme-toggle svg { animation: spin-in .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes spin-in { from { transform: rotate(-90deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
/* Hide the page scrollbar; scrolling still works */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.4; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--bg); position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60%; left: -80%;
  background: linear-gradient(100deg, transparent, rgba(25, 211, 245, .35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { height: 40px; padding: 0 16px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; gap: 32px; font-size: 15px; color: var(--muted); }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .2s ease;
}
.lang:hover { border-color: var(--text); }
.lang svg { width: 16px; height: 16px; fill: currentColor; opacity: .8; }
#langLabel { font-family: var(--font-ar); }
html[lang="ar"] #langLabel { font-family: var(--font); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .25s ease, top .25s ease; }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 22px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 80px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 360px at 85% 20%, var(--glow), transparent 70%);
}
html[dir="rtl"] .hero::before { background: radial-gradient(600px 360px at 15% 20%, var(--glow), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; }
.lead { margin-top: 24px; font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.facts { display: flex; flex-wrap: wrap; gap: 40px; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.facts dd { margin: 0; font-size: 14px; color: var(--muted); }


/* Page load: header and hero text come in one after another */
.site-header { animation: drop-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > * { animation: fade-up .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(1) { animation-delay: .10s; }
.hero-copy > :nth-child(2) { animation-delay: .20s; }
.hero-copy > :nth-child(3) { animation-delay: .32s; }
.hero-copy > :nth-child(4) { animation-delay: .44s; }
.hero-copy > :nth-child(5) { animation-delay: .56s; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Slowly drifting glow behind the hero */
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  top: -120px; inset-inline-end: -80px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(25, 211, 245, .10), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-90px, 70px); } }

/* Scroll progress */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0); transform-origin: left center;
}
html[dir="rtl"] .progress { transform-origin: right center; }

/* Hero canvas + animated gradient text */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.grad {
  background: linear-gradient(90deg, var(--cyan), var(--blue), #7fdcff, var(--cyan));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }

/* Moving strip */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-alt);
  padding: 22px 0; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
html[dir="rtl"] .marquee-track { animation-direction: reverse; }
.marquee-half { display: flex; flex: none; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px;
  font-size: 20px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.marquee-item::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, var(--cyan), var(--blue)); transform: rotate(45deg); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Mouse-follow light on cards */
.app, .site-card, .service { position: relative; }
.app::before, .site-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(63, 182, 255, .12), transparent 70%);
  transition: opacity .3s ease;
}
.app:hover::before, .site-card:hover::before { opacity: 1; }
.app { transition: border-color .2s ease, transform .25s ease-out, background-color .2s ease, opacity .8s cubic-bezier(.2, .7, .2, 1); }

/* Section eyebrow: a small line that draws in */
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.section-head .eyebrow::before { content: ""; height: 2px; width: 0; background: linear-gradient(90deg, var(--cyan), var(--blue)); border-radius: 2px; transition: width .8s cubic-bezier(.2, .7, .2, 1) .3s; }
.section-head.in .eyebrow::before { width: 28px; }

/* Hero monitor */
.hero-visual { display: flex; flex-direction: column; align-items: center; }
.monitor {
  width: 100%; max-width: 560px; padding: 12px; border-radius: 20px;
  background: linear-gradient(160deg, #26324a, #141c2e);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  animation: fade-up 1s cubic-bezier(.2, .7, .2, 1) .25s both;
}
.monitor-stand { position: relative; width: 120px; height: 46px; background: linear-gradient(180deg, #1b2539, #121a2b); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); animation: fade-up 1s cubic-bezier(.2, .7, .2, 1) .35s both; }
.monitor-stand::after { content: ""; position: absolute; left: -40px; right: -40px; bottom: -6px; height: 6px; border-radius: 6px; background: #1b2539; }
.screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px;
  container-type: inline-size; direction: ltr;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(30, 123, 255, .35), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(25, 211, 245, .22), transparent 60%),
    #0b1324;
}
.os-bar {
  display: flex; justify-content: space-between; align-items: center;
  height: 7.5cqw; max-height: 30px; min-height: 20px; padding: 0 3cqw;
  font-size: max(10px, 2.3cqw); font-weight: 600; color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-family: var(--font);
}
.os-brand { display: inline-flex; align-items: center; gap: 6px; }
.os-right { display: inline-flex; align-items: center; gap: 10px; }
.sound-btn {
  display: grid; place-items: center; width: max(22px, 5cqw); height: max(22px, 5cqw); padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: rgba(255, 255, 255, .85); cursor: pointer;
  transition: background-color .2s ease;
}
.sound-btn:hover { background: rgba(255, 255, 255, .1); }
.sound-btn svg { width: max(13px, 2.8cqw); height: max(13px, 2.8cqw); fill: currentColor; }
.sound-btn .snd-off, .sound-btn.muted .snd-on { display: none; }
.sound-btn.muted .snd-off { display: block; }
.os-brand img { width: max(11px, 2.6cqw); height: auto; }
.desktop {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 3cqw 1cqw;
  padding: 5cqw 4cqw; align-content: center; height: calc(100% - 7.5cqw);
}
.d-icon {
  display: flex; flex-direction: column; align-items: center; gap: 1.2cqw;
  animation: fade-up .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms) both;
}
.d-icon img {
  width: 11.5cqw; height: 11.5cqw; border-radius: 26%;
  box-shadow: 0 1.4cqw 3cqw -1cqw rgba(0, 0, 0, .7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.d-label {
  font-size: max(8px, 2cqw); color: rgba(255, 255, 255, .85); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  font-family: var(--font-ar);
}
.d-icon:hover img, .d-icon.hover img { transform: scale(1.1); box-shadow: 0 0 0 2px rgba(63, 182, 255, .8), 0 2cqw 4cqw -1cqw rgba(30, 123, 255, .6); }

.app-window {
  position: absolute; left: 8%; right: 8%; top: 15%; bottom: 8%;
  border-radius: 1.8cqw; overflow: hidden;
  background: rgba(18, 29, 51, .97); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 3cqw 8cqw -2cqw rgba(0, 0, 0, .8);
  opacity: 0; transform: scale(.06); pointer-events: none;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
  font-family: var(--font);
}
html[lang="ar"] .app-window { font-family: var(--font-ar); }
.app-window.open { opacity: 1; transform: none; }
.win-bar {
  display: flex; align-items: center; gap: 2cqw; height: 7cqw; padding: 0 2.4cqw; direction: ltr;
  background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.win-dots { display: inline-flex; gap: 1.1cqw; }
.win-dots i { width: 1.9cqw; height: 1.9cqw; border-radius: 50%; background: #3a4762; }
.win-dots i.win-close { background: #ff5f57; }
.win-dots i:nth-child(2) { background: #febc2e; }
.win-dots i:nth-child(3) { background: #28c840; }
.win-title { font-size: max(9px, 2.1cqw); color: var(--muted); font-weight: 600; }
.win-body { display: flex; align-items: center; gap: 4cqw; padding: 4cqw 5cqw; height: calc(100% - 7cqw); }
.win-icon { width: 22cqw; height: 22cqw; border-radius: 24%; flex: none; box-shadow: 0 2cqw 5cqw -1.5cqw rgba(0, 0, 0, .7); }
.app-window.open .win-icon { animation: pop .6s cubic-bezier(.2, .8, .2, 1) .15s both; }
.win-info { display: flex; flex-direction: column; align-items: flex-start; gap: .9cqw; min-width: 0; }
.win-info .tag { font-size: max(8px, 1.9cqw); padding: .5cqw 1.6cqw; }
.win-name { font-size: max(13px, 4.2cqw); line-height: 1.15; }
.win-alt { font-size: max(9px, 2.2cqw); color: var(--muted); }
.win-desc { font-size: max(9px, 2.3cqw); color: var(--muted); line-height: 1.5; }
.win-btn {
  display: inline-flex; align-items: center; gap: 1cqw; margin-top: 1cqw;
  padding: 1.1cqw 2.6cqw; border-radius: 999px; background: var(--text); color: var(--bg);
  font-size: max(9px, 2.1cqw); font-weight: 700;
}
.win-btn svg { width: max(9px, 2.2cqw); height: max(9px, 2.2cqw); fill: currentColor; }
.app-window.open .win-info > * { animation: fade-up .5s cubic-bezier(.2, .7, .2, 1) both; }
.app-window.open .win-info > :nth-child(2) { animation-delay: .1s; }
.app-window.open .win-info > :nth-child(3) { animation-delay: .15s; }
.app-window.open .win-info > :nth-child(4) { animation-delay: .2s; }
.app-window.open .win-info > :nth-child(5) { animation-delay: .25s; }
@keyframes pop { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }

.cursor {
  position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 22px; width: max(18px, 4.4cqw); height: max(18px, 4.4cqw);
  pointer-events: none; will-change: transform;
  transform: translate(80%, 80%);
}
.cursor svg { width: 100%; height: 100%; fill: #fff; stroke: #0a1120; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); transform-origin: 20% 10%; transition: transform .12s ease; margin: -10% 0 0 -20%; }
.cursor.down svg { transform: scale(.82); }
.ripple { position: absolute; z-index: 4; width: 10cqw; height: 10cqw; margin: -5cqw 0 0 -5cqw; border-radius: 50%; border: 2px solid rgba(63, 182, 255, .9); opacity: 0; pointer-events: none; }
.ripple.go { animation: ripple .5s ease-out; }
@keyframes ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(1); opacity: 0; } }

/* Light mode: bring the brand colours forward */
html[data-theme="light"] {
  --bg: #f5f8fd;
  --bg-alt: #eaf2fd;
  --line: rgba(30, 90, 180, 0.10);
  --line-strong: rgba(30, 90, 180, 0.20);
  --accent: #0b6fe0;
  --brand-grad: linear-gradient(120deg, #06b6d4 0%, #1e7bff 55%, #3b5bff 100%);
}
html[data-theme="light"] body {
  background:
    radial-gradient(900px 600px at 100% 0%, rgba(30, 123, 255, .10), transparent 60%),
    radial-gradient(800px 600px at 0% 30%, rgba(6, 182, 212, .08), transparent 60%),
    var(--bg);
}
/* Hero: visible colour wash */
html[data-theme="light"] .hero::before {
  background:
    radial-gradient(620px 420px at 85% 15%, rgba(30, 123, 255, .20), transparent 70%),
    radial-gradient(520px 380px at 10% 90%, rgba(6, 182, 212, .16), transparent 70%);
}
html[data-theme="light"][dir="rtl"] .hero::before {
  background:
    radial-gradient(620px 420px at 15% 15%, rgba(30, 123, 255, .20), transparent 70%),
    radial-gradient(520px 380px at 90% 90%, rgba(6, 182, 212, .16), transparent 70%);
}
html[data-theme="light"] .hero::after { background: radial-gradient(circle, rgba(6, 182, 212, .18), transparent 65%); }
html[data-theme="light"] .grad { background-image: linear-gradient(90deg, #06b6d4, #1e6bff, #4f46e5, #06b6d4); background-size: 300% 100%; }
html[data-theme="light"] .facts dt { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .eyebrow { color: var(--accent); }

/* Buttons: brand gradient with white text */
html[data-theme="light"] .btn-primary {
  background: var(--brand-grad); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(30, 110, 240, .6);
}
html[data-theme="light"] .btn-primary:hover { background: var(--brand-grad); box-shadow: 0 14px 30px -10px rgba(30, 110, 240, .75); }
html[data-theme="light"] .btn-primary::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); }
html[data-theme="light"] .btn-ghost { border-color: rgba(30, 110, 240, .35); color: #0b4fb3; background: rgba(255, 255, 255, .6); }
html[data-theme="light"] .btn-ghost:hover { border-color: #1e7bff; background: #fff; }
html[data-theme="light"] :is(.lang, .theme-toggle, .menu-toggle) { background: rgba(255, 255, 255, .7); }

/* Cards: white on a tinted page, blue on hover */
html[data-theme="light"] :is(.app, .partner, .site-card, .project-form, .contact-panel) {
  box-shadow: 0 1px 2px rgba(20, 40, 80, .04), 0 12px 30px -18px rgba(20, 60, 140, .25);
}
html[data-theme="light"] .app:hover, html[data-theme="light"] .site-card:hover { border-color: rgba(30, 123, 255, .45); background: #fff; }
html[data-theme="light"] .tag { background: rgba(30, 123, 255, .10); color: #0b5ed7; }

/* Services: coloured number badges */
html[data-theme="light"] .service-num {
  width: fit-content; padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--brand-grad);
}
html[data-theme="light"] .service-num::after { display: none; }
html[data-theme="light"] .service { transition: background-color .3s ease; }
html[data-theme="light"] .service:hover { background: linear-gradient(180deg, rgba(30, 123, 255, .06), transparent); }

/* Moving strip */
html[data-theme="light"] .marquee { background: linear-gradient(90deg, rgba(6, 182, 212, .08), rgba(30, 123, 255, .10)); }
html[data-theme="light"] .marquee-item { color: #22324f; }

/* Steps, form and contact */
html[data-theme="light"] .steps li { border-top-color: rgba(30, 123, 255, .18); }
html[data-theme="light"] .steps li::before { color: #0b5ed7; }
html[data-theme="light"] .chip input:checked + span { background: var(--brand-grad); border-color: transparent; color: #fff; }
html[data-theme="light"] .project-form.sent .btn-submit { background: var(--wa); }
html[data-theme="light"] .contact { background: linear-gradient(180deg, transparent 0%, #e3eefc 100%); }
html[data-theme="light"] .c-icon.ph { --c: #1e7bff; }
html[data-theme="light"] .c-icon.fb { --c: #1877f2; }
html[data-theme="light"] .c-icon.em { --c: #7c3aed; }
html[data-theme="light"] .c-icon.wa { --c: #16a34a; }
html[data-theme="light"] .site-footer { background: #eaf2fd; }

/* Monitor in light mode: silver frame, bright desktop, light windows */
html[data-theme="light"] .monitor {
  background: linear-gradient(160deg, #f4f6fa, #d9dfe8);
  box-shadow: 0 40px 80px -34px rgba(20, 40, 80, .28), 0 0 0 1px rgba(11, 19, 36, .08), inset 0 1px 0 #fff;
}
html[data-theme="light"] .monitor-stand { background: linear-gradient(180deg, #dfe4ec, #c9d1dc); }
html[data-theme="light"] .monitor-stand::after { background: #cfd6e0; }
html[data-theme="light"] .screen {
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(30, 123, 255, .16), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(25, 211, 245, .16), transparent 60%),
    #f7f9fd;
  box-shadow: inset 0 0 0 1px rgba(11, 19, 36, .06);
}
html[data-theme="light"] .os-bar { background: rgba(255, 255, 255, .7); border-bottom-color: rgba(11, 19, 36, .07); color: #1d2a42; }
html[data-theme="light"] .sound-btn { color: #1d2a42; }
html[data-theme="light"] .sound-btn:hover { background: rgba(11, 19, 36, .07); }
html[data-theme="light"] .d-label { color: #1d2a42; }
html[data-theme="light"] .d-icon img { box-shadow: 0 1.2cqw 2.6cqw -1cqw rgba(20, 40, 80, .35), 0 0 0 1px rgba(11, 19, 36, .06); }
html[data-theme="light"] .app-window {
  background: rgba(255, 255, 255, .97); border-color: rgba(11, 19, 36, .1);
  box-shadow: 0 3cqw 8cqw -2cqw rgba(20, 40, 80, .35);
}
html[data-theme="light"] .win-bar { background: #f1f4f9; border-bottom-color: rgba(11, 19, 36, .07); }
html[data-theme="light"] .win-icon { box-shadow: 0 2cqw 5cqw -1.5cqw rgba(20, 40, 80, .4); }

/* Sections */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 56px; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-lead { margin-top: 18px; font-size: 17px; color: var(--muted); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { padding: 36px 32px 40px 0; border-bottom: 1px solid var(--line); }
html[dir="rtl"] .service { padding: 36px 0 40px 32px; }
.service:not(:nth-child(3n)) { border-inline-end: 1px solid var(--line); }
.service:not(:nth-child(3n+1)) { padding-inline-start: 32px; }
.service-num { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 20px; font-family: var(--font); }
.service-num::after { content: ""; height: 1px; width: 16px; background: currentColor; opacity: .5; transition: width .4s ease, opacity .4s ease; }
.service:hover .service-num::after { width: 48px; opacity: 1; }
.service h3 { transition: color .3s ease; }
.service:hover h3 { color: var(--text); }
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.app:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-2px); }
.app-top { display: flex; align-items: center; gap: 14px; }
.app-top img { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 0 0 1px var(--line); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.app:hover .app-top img { transform: scale(1.08) rotate(-4deg); }
.app-name { font-size: 18px; font-weight: 700; }
.app-alt { font-size: 14px; color: var(--muted); }
.app p { color: var(--muted); font-size: 15px; flex: 1; }
.app-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(63, 182, 255, .1); color: var(--accent); }
.store { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); opacity: .75; transition: opacity .2s ease; }
.app:hover .store { opacity: 1; }
.store svg { width: 14px; height: 14px; fill: currentColor; }

.sub-head { font-size: 22px; margin: 72px 0 20px; }
.site-card {
  display: grid; grid-template-columns: 320px 1fr; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s ease;
}
.site-card:hover { border-color: var(--line-strong); }
.site-logo { display: grid; place-items: center; padding: 40px; background: linear-gradient(135deg, #12223f, #0b1426); border-inline-end: 1px solid var(--line); }
.site-logo img { width: 200px; height: auto; }
.site-body { padding: 32px 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-body h4 { font-size: 22px; }
.site-body p { color: var(--muted); max-width: 560px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; font-size: 15px; }
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s ease; }
html[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
.site-card:hover .link-arrow svg { transform: translate(2px, -2px); }
html[dir="rtl"] .site-card:hover .link-arrow svg { transform: scaleX(-1) translate(2px, -2px); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 24px; border-top: 2px solid var(--line-strong); position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 14px; font-family: var(--font);
}
.steps li::after {
  content: ""; position: absolute; top: -2px; inset-inline-start: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 1s cubic-bezier(.2, .7, .2, 1) .25s;
}
html[dir="rtl"] .steps li::after { background: linear-gradient(-90deg, var(--cyan), var(--blue)); }
.steps li.in::after { width: 100%; }
.steps h3 { font-size: 20px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Start a project */
.start-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.start-intro { position: sticky; top: 110px; }
.start-intro .section-head { margin-bottom: 36px; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.next-steps li { display: flex; gap: 14px; align-items: flex-start; }
.next-steps span {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; font-family: var(--font); color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}
.next-steps p { color: var(--muted); padding-top: 3px; }

.project-form {
  display: grid; gap: 20px; padding: 36px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.field legend { margin-bottom: 8px; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 13px 14px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder { color: #5d6a82; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(63, 182, 255, .15);
}
html[dir="rtl"] #f-phone { text-align: right; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; top: 50%; inset-inline-end: 16px; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--line-strong); color: var(--muted);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.chip:hover span { border-color: var(--text); color: var(--text); }
.chip input:checked + span { background: rgba(63, 182, 255, .14); border-color: var(--accent); color: var(--text); transform: scale(1.03); }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }
.error { display: none; font-size: 13px; color: #ff7a85; }
.invalid .error { display: block; animation: fade-up .3s ease both; }
.invalid input, .invalid textarea { border-color: #ff7a85; }
.invalid .chip span { border-color: rgba(255, 122, 133, .6); }
.btn-submit { justify-content: center; height: 54px; font-size: 16px; margin-top: 4px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: -6px; }
.project-form.shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.project-form.sent .btn-submit { background: var(--wa); color: #fff; }

/* Partners' success */
.success-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.success-info .section-head { margin-bottom: 32px; }
.partner { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.partner img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.partner-name { font-size: 18px; }
.partner p { color: var(--muted); font-size: 15px; }
.partner-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.partner-links svg { width: 16px; height: 16px; fill: currentColor; }
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.phone {
  position: relative; aspect-ratio: 9 / 16; border-radius: 34px; padding: 10px;
  background: linear-gradient(160deg, #26324a, #111827);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 26px; background: #000; display: block; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--bg) 0%, var(--contact-end) 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact-panel {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -36px var(--shadow);
}
.c-row {
  display: flex; align-items: center; gap: 18px; padding: 22px 26px;
  transition: background-color .25s ease;
}
.c-row + .c-row { border-top: 1px solid var(--line); }
.c-row:hover { background: var(--hover); }
.c-icon {
  width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent);
  transition: background-color .25s ease, transform .25s ease;
}
.c-icon svg { width: 21px; height: 21px; fill: var(--c); transition: fill .25s ease; }
.c-icon.wa { --c: #25d366; }
.c-icon.ph { --c: #3fb6ff; }
.c-icon.fb { --c: #4a90ff; }
.c-icon.em { --c: #a78bfa; }
.c-row:hover .c-icon { background: var(--c); transform: scale(1.04); }
.c-row:hover .c-icon svg { fill: #fff; }
.c-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.c-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .c-label { letter-spacing: 0; font-size: 13px; text-transform: none; }
.c-value { font-size: 20px; font-weight: 600; letter-spacing: .01em; font-family: var(--font); color: var(--text); }
html[dir="rtl"] .c-value[dir="ltr"] { text-align: right; }
.c-action {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: color .25s ease;
}
.c-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
html[dir="rtl"] .c-arrow { transform: scaleX(-1); }
.c-row:hover .c-action { color: var(--text); }
.c-row:hover .c-arrow { transform: translateX(4px); }
html[dir="rtl"] .c-row:hover .c-arrow { transform: scaleX(-1) translateX(4px); }

/* Footer */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row img { height: 24px; width: auto; }
.to-top:hover { color: var(--text); }
.footer-links { display: flex; align-items: center; gap: 18px; }
.social {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--text); transition: background-color .2s ease, border-color .2s ease;
}
.social:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }


/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
main, .site-footer { transition: opacity .18s ease; }
.app.done { transition: border-color .2s ease, transform .25s ease-out, background-color .2s ease; }
.service.done, .site-card.done { transition: border-color .2s ease; }
.switching main, .switching .site-footer { opacity: 0; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .services, .apps { grid-template-columns: repeat(2, 1fr); }
  .service, html[dir="rtl"] .service { padding: 32px 24px 36px; }
  .service:not(:nth-child(3n)), .service:not(:nth-child(3n+1)) { border-inline-end: 0; padding-inline-start: 24px; }
  .service:nth-child(odd) { border-inline-end: 1px solid var(--line); }
  .services .service:nth-child(odd) { padding-inline-start: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .success-grid { grid-template-columns: 1fr; gap: 48px; }
  .videos { max-width: 560px; }
  .start-grid { grid-template-columns: 1fr; gap: 40px; }
  .start-intro { position: static; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .menu-toggle { display: block; }
  .hide-sm { display: none; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    font-size: 17px; color: var(--text);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero { padding: 48px 0 72px; }
  .lead { font-size: 17px; }
  .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .facts dt { font-size: 28px; }
  .facts dd { font-size: 13px; line-height: 1.4; }
  .hero-grid { gap: 48px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .services, .apps, .steps { grid-template-columns: 1fr; }
  .service, html[dir="rtl"] .service, .services .service:nth-child(odd) { padding: 28px 0; border-inline-end: 0; }
  .site-card { grid-template-columns: 1fr; }
  .videos {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none;
  }
  .videos::-webkit-scrollbar { display: none; }
  .phone { flex: 0 0 78%; scroll-snap-align: center; border-radius: 28px; padding: 8px; }
  .phone iframe { border-radius: 22px; }
  .project-form { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .site-logo { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 32px; }
  .site-body { padding: 24px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .c-row { padding: 18px; gap: 14px; }
  .c-value { font-size: 18px; }
  .c-icon { width: 42px; height: 42px; }
}

/* Reduced motion: keep the page lively but drop the big continuous moves */
@media (max-width: 420px) {
  .header-actions { gap: 8px; }
  .lang { padding: 0 12px; }
  .lang svg { display: none; }
  .brand img { height: 28px; }
  .c-action > span { display: none; }
  .c-row { gap: 12px; padding: 16px 14px; }
  .c-value { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::after { animation: none; }
}
