:root {
  --bg: #0B0807;
  --bg-2: #15100D;
  --ink: #FFF3E8;
  --ink-2: rgba(255, 243, 232, 0.68);
  --ink-3: rgba(255, 243, 232, 0.42);
  --orange: #E2622A;
  --orange-light: #FF8A4C;
  --orange-deep: #9E3412;
  --gold: #FFD3A8;
  --line: rgba(255, 243, 232, 0.10);
  --glass: rgba(255, 243, 232, 0.05);
  --glass-hi: rgba(255, 243, 232, 0.14);
  --radius: 22px;
  --gutter: 16px;
  --max: 1120px;
  --font-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Alexandria", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.5; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: -0.025em; line-height: 1.2; }
p { margin: 0; }

/* ---------- ambient glow ---------- */
.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow span:nth-child(1) { width: 520px; height: 520px; background: var(--orange-deep); top: -180px; inset-inline-end: -160px; }
.glow span:nth-child(2) { width: 380px; height: 380px; background: var(--orange); top: 40vh; inset-inline-start: -220px; opacity: .25; animation-duration: 24s; }
.glow span:nth-child(3) { width: 300px; height: 300px; background: #5a1d08; bottom: -120px; inset-inline-end: 10%; opacity: .4; animation-duration: 21s; }
@keyframes drift { to { transform: translate3d(40px, 60px, 0) scale(1.12); } }

/* ---------- glass ---------- */
.glass {
  background: linear-gradient(160deg, var(--glass-hi), var(--glass) 45%);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 50px -30px rgba(0, 0, 0, .8);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter);
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(11, 8, 7, .62);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--orange); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font: 700 15px var(--font-display); }
.brand-handle { font-size: 12px; color: var(--ink-3); direction: ltr; text-align: start; }
.nav-links { display: none; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.lang {
  font: 600 13px var(--font-display); color: var(--ink);
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; min-width: 64px; min-height: 40px;
}
.lang:hover { border-color: var(--orange); }

/* ---------- layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.head { margin-bottom: 40px; max-width: 660px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange-light); font: 600 13px var(--font-display); letter-spacing: .02em; margin-bottom: 12px;
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
h2 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; }
.tag {
  display: inline-block; vertical-align: middle; margin-inline-start: 6px; padding: 2px 10px; border-radius: 8px;
  font: 700 14px var(--font-display); letter-spacing: .04em; color: var(--ink);
  background: linear-gradient(120deg, #5b6cff, #a35bff); line-height: 1.6;
}
.sub { color: var(--ink-2); margin-top: 16px; line-height: 2; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 700 15px var(--font-display); white-space: nowrap; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(140deg, var(--orange-light), var(--orange) 55%, var(--orange-deep));
  color: #fff;
  box-shadow: 0 12px 34px -10px rgba(226, 98, 42, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { box-shadow: 0 16px 44px -10px rgba(226, 98, 42, 1), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { border: 1px solid var(--line); background: var(--glass); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 16px; max-width: 100%; }
.i { width: 22px; height: 22px; flex: none; }

/* ---------- hero ---------- */
.hero {
  display: grid; gap: 40px; align-items: center;
  padding: 36px 0 56px; min-height: calc(100svh - 64px);
}
h1 { font-size: clamp(34px, 9.4vw, 64px); font-weight: 800; line-height: 1.45; }
html[lang="en"] h1 { line-height: 1.12; }
h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold), var(--orange-light) 40%, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--ink-2); font-size: 17px; line-height: 2; margin-top: 24px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-actions .btn-primary { flex: 1 1 100%; }
.hero-actions .btn-ghost { flex: 1 1 100%; }

.hero-phone { position: relative; justify-self: center; width: min(270px, 72vw); }
.phone {
  position: relative; aspect-ratio: 9 / 19; border-radius: 42px; padding: 10px;
  background: linear-gradient(160deg, #3a2a22, #120c0a 40%, #2a1c16);
  box-shadow: 0 40px 90px -30px rgba(226, 98, 42, .55), inset 0 0 0 1px rgba(255, 255, 255, .12);
  transform: rotate(-4deg);
}
html[dir="ltr"] .phone { transform: rotate(4deg); }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: #000; }
.phone-screen > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-sound {
  position: absolute; bottom: 7%; left: 50%; translate: -50% 0; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  font: 600 14px var(--font-display); color: #fff; white-space: nowrap; cursor: pointer;
  background: rgba(11, 8, 7, .55); border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.phone-sound:hover { background: var(--orange); border-color: transparent; }
.phone-sound svg { width: 14px; height: 14px; }
.phone-sound[hidden] { display: none; }
.phone-notch { position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 84px; height: 24px; background: #000; border-radius: 999px; }

/* ---------- clients ---------- */
.clients { padding: 8px 0 24px; }
.clients-title { text-align: center; color: var(--ink-3); font: 600 14px var(--font-display); margin-bottom: 22px; }
.marquee {
  overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-set { display: flex; align-items: center; gap: 56px; padding-inline-end: 56px; }
.logo { height: 52px; width: auto; opacity: .7; }
.logo.wide { height: 34px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- why ---------- */
.why-grid { display: grid; gap: 12px; }
.card { border-radius: var(--radius); padding: 24px; }
.card .num { font: 700 13px var(--font-display); color: var(--orange-light); }
.card h3 { font-size: 20px; margin: 10px 0 12px; }
.card p { color: var(--ink-2); font-size: 15px; line-height: 1.95; }

/* ---------- grids ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid-motion { grid-template-columns: 1fr; }
.tile {
  position: relative; border-radius: 18px; overflow: hidden; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); aspect-ratio: 9 / 16;
  padding: 0; color: inherit; font: inherit; text-align: start;
}
.tile.wide { aspect-ratio: 16 / 9; grid-column: 1 / -1; }
.tile.square { aspect-ratio: 1; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile.contain img, .tile.contain video { position: relative; z-index: 1; object-fit: contain; }
.tile-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(22px) brightness(.55); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent 45%); pointer-events: none; }
.tile-play {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11, 8, 7, .45); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tile-play svg { width: 16px; height: 16px; }
.tile:hover .tile-play { background: var(--orange); border-color: transparent; }
.tile-title { position: absolute; bottom: 12px; inset-inline: 12px; z-index: 2; font: 600 13px var(--font-display); line-height: 1.6; }
.tile.empty { display: grid; place-items: center; cursor: default; background: repeating-linear-gradient(135deg, var(--bg-2) 0 14px, #1a1310 14px 28px); }
.tile.empty::after { display: none; }
.tile.empty span { color: var(--ink-3); font: 600 13px var(--font-display); }

.tile.is-more { display: none; }
.more-btn { display: flex; margin: 24px auto 0; }
.more-btn[hidden] { display: none; }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { display: flex; gap: 16px; align-items: flex-start; border-radius: var(--radius); padding: 22px; }
.step-n {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font: 800 18px var(--font-display);
  background: linear-gradient(145deg, var(--orange-light), var(--orange-deep));
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; line-height: 1.95; }

/* ---------- about ---------- */
.about { display: grid; gap: 24px; align-items: center; }
.about-img { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; justify-self: center; box-shadow: 0 30px 70px -30px rgba(226, 98, 42, .6); }
.about-copy p { color: var(--ink-2); margin-top: 18px; font-size: 16.5px; line-height: 2; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass); font-size: 14px; direction: ltr;
}
.socials a:hover { border-color: var(--orange); }
.socials svg { width: 18px; height: 18px; }

/* ---------- final ---------- */
.final {
  text-align: center; border-radius: 32px; padding: 56px 16px; margin: 24px 0 40px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(226, 98, 42, .35), transparent 60%), var(--bg-2);
  border: 1px solid var(--line);
}
.final p { color: var(--ink-2); margin: 16px auto 32px; max-width: 420px; line-height: 2; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 100px;
  display: flex; justify-content: space-between; color: var(--ink-3); font-size: 13px; direction: ltr;
}

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); inset-inline-end: 18px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .25s, opacity .3s; transform: scale(0); opacity: 0;
}
.wa-float.show { transform: scale(1); opacity: 1; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(5, 4, 3, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 60px var(--gutter) 24px;
}
.lightbox[hidden] { display: none; }
.lb-body { width: min(400px, 100%); max-height: 68svh; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: #000; position: relative; }
.lb-body.wide { width: min(960px, 100%); aspect-ratio: 16 / 9; }
.lb-body.square { aspect-ratio: 1; }
.lb-body > * { width: 100%; height: 100%; object-fit: contain; border: 0; }
.lb-body > .lb-note { position: absolute; inset: auto 0 0; height: auto; padding: 14px; text-align: center; font-size: 13px; background: linear-gradient(to top, rgba(0,0,0,.85), transparent); }
.lb-title { font: 600 15px var(--font-display); color: var(--ink-2); text-align: center; }
.lb-ext { display: inline-block; margin-top: 6px; font: 500 13px var(--font-body); color: var(--orange-light); text-decoration: underline; text-underline-offset: 3px; }
.lb-cta { min-height: 48px; }
.lb-close {
  position: absolute; top: max(14px, env(safe-area-inset-top)); inset-inline-end: 14px;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass);
  color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: .6s; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { flex: 0 0 auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-motion { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid-motion .tile.wide { grid-column: auto; }
  .grid-motion .tile.featured { grid-column: 1 / -1; }
  .grid-ai { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .grid-prod { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
@media (min-width: 900px) {
  .nav { padding-inline: max(24px, calc((100vw - var(--max)) / 2 + 24px)); }
  .nav-links { display: flex; }
  .hero { grid-template-columns: 1.2fr 1fr; padding-top: 24px; }
  .hero-phone { width: 300px; }
  .section { padding: 110px 0; }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; padding: 28px; }
  .about { grid-template-columns: 360px 1fr; gap: 64px; }
  .final { padding: 88px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
