/* =========================================================
   Sayl Media — visual system
   Spacing, type, radius and motion follow landing-page-design.
   ========================================================= */

:root {
  /* Spacing tokens (B2) */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px;
  --s-300: 24px; --s-400: 32px; --s-500: 40px; --s-600: 48px;
  --s-700: 64px; --s-800: 80px; --s-900: 96px;

  /* Radius (Tailwind steps) */
  --r-sm: 2px; --r: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 12px;
  --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;

  /* Motion (B7) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 500ms;
  --dur-fast: 300ms;

  --font: "Cairo", system-ui, sans-serif;

  /* Light theme (صباحي) */
  --bg: #FFFFFF;
  --surface: #F3F7F7;
  --surface-2: #E6EEEE;
  --text: #0A0F14;
  --muted: #5A6470;
  --border: #E1E7ED;
  /* Brand: navy and teal sampled from the Sayl logo */
  --brand-navy: #12414F;
  --brand-teal: #3BC2A9;
  --accent: #12414F;
  --accent-hover: #0C2F3A;
  --accent-ink: #FFFFFF;
  --accent-text: #11806E;
  --accent-soft: #E2F5F1;
  --danger: #C8322B;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --menu-bg: rgba(255, 255, 255, 0.94);
  --grad-from: #000000;
  --grad-to: #666666;
  --muted-word: rgba(10, 15, 20, 0.28);
  --focus: 0 0 0 3px rgba(59, 194, 169, 0.45);
  color-scheme: light;
}

/* Dark theme (مسائي): backgrounds only from the approved list */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #181818; --surface-2: #272727;
    --text: #FFFFFF; --muted: #9B9B9B; --border: #313131;
    --accent: #3BC2A9; --accent-hover: #62D4BE; --accent-ink: #000000; --accent-text: #3BC2A9;
    --accent-soft: #1F1F1F; --danger: #FF6B62;
    --nav-bg: rgba(24, 24, 24, 0.72); --menu-bg: rgba(0, 0, 0, 0.94);
    --grad-from: #FFFFFF; --grad-to: #9B9B9B;
    --muted-word: rgba(255, 255, 255, 0.28);
    --focus: 0 0 0 3px rgba(59, 194, 169, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #181818; --surface-2: #272727;
  --text: #FFFFFF; --muted: #9B9B9B; --border: #313131;
  --accent: #3BC2A9; --accent-hover: #62D4BE; --accent-ink: #000000; --accent-text: #3BC2A9;
  --accent-soft: #1F1F1F; --danger: #FF6B62;
  --nav-bg: rgba(24, 24, 24, 0.72); --menu-bg: rgba(0, 0, 0, 0.94);
  --grad-from: #FFFFFF; --grad-to: #9B9B9B;
  --muted-word: rgba(255, 255, 255, 0.28);
  --focus: 0 0 0 3px rgba(59, 194, 169, 0.5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--s-900); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem; line-height: 1.5rem; font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
h1, h2, h3, .tagline-text { text-wrap: balance; }
p, blockquote, dd, li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
i.ph, i.ph-fill { line-height: 1; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-md); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--s-200); }
@media (min-width: 768px) { .container { padding-inline: var(--s-300); } }

/* ---------- Text styles (B1) ---------- */
.heading-1 { font-size: 3.75rem; line-height: 1; font-weight: 600; }
.heading-2 { font-size: 3rem; line-height: 1; font-weight: 600; }
.heading-3 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; }
.heading-4 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; }
.heading-5 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.heading-6 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.title-1 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.title-2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.title-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.title-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.title-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.body-1 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.body-2 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.body-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.body-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.body-5 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.body-6 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.button-lg { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.button-md { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.button-sm { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.caption-1 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.caption-2 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.caption-3 { font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.caption-4 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.caption-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 400; }

/* Arabic script needs room for marks above and below the line.
   Headings with a line height of 1 would collide, so Arabic headings
   use the next step's line height (36px → 40px, 48px → 60px, 60px → 72px). */
:lang(ar) .heading-2 { line-height: 3.75rem; }
:lang(ar) .heading-1, :lang(ar) .hero-title { line-height: 4.5rem; }

/* Mobile steps down to keep 390px screens readable */
@media (max-width: 767px) {
  .heading-2 { font-size: 1.875rem; line-height: 2.25rem; }
  :lang(ar) .heading-2 { line-height: 2.5rem; }
  .heading-3 { font-size: 1.5rem; line-height: 2rem; }
}

.gradient-text {
  background: linear-gradient(to right, var(--grad-from), var(--grad-to));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
[dir="rtl"] .gradient-text { background-image: linear-gradient(to left, var(--grad-from), var(--grad-to)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.btn-lg { padding: var(--s-100) var(--s-300); border-radius: var(--r-xl); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r-full);
  border: 1px solid var(--border); background: transparent; cursor: pointer;
  font-size: 1.125rem;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(0.98); }

/* Theme icon: show moon in light mode, sun in dark mode */
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: inline; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: inline; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}

.skip-link {
  position: fixed; inset-inline-start: var(--s-200); top: var(--s-200); z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg);
  transform: translateY(-200%); transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Nav (B7) ---------- */
.nav-wrap { position: fixed; top: var(--s-200); inset-inline: 0; z-index: 50; display: flex; justify-content: center; padding-inline: var(--s-200); pointer-events: none; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75); padding-inline-start: var(--s-200);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--border); border-radius: var(--r-full);
  width: max-content; max-width: 100%;
}
.brand { display: flex; align-items: center; gap: var(--s-75); }
.nav-links { display: flex; gap: var(--s-50); }
.nav-links a {
  display: block; padding: var(--s-75) var(--s-100); border-radius: var(--r-full); color: var(--muted);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="true"] { color: var(--text); background: var(--surface-2); }
.nav-tools { display: flex; align-items: center; gap: var(--s-75); }
.nav-cta { border-radius: var(--r-full); padding-inline: var(--s-200); }
.menu-btn { display: none; }
.bars { position: relative; width: 16px; height: 12px; display: block; }
.bars span {
  position: absolute; inset-inline: 0; height: 2px; border-radius: var(--r-full); background: currentColor;
  transition: transform var(--dur) var(--ease);
}
.bars span:first-child { top: 2px; }
.bars span:last-child { top: 8px; }
.menu-btn[aria-expanded="true"] .bars span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .nav { gap: var(--s-200); }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  padding: var(--s-900) var(--s-300) var(--s-400);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.mobile-menu.open { opacity: 1; }
.mobile-menu ul { display: flex; flex-direction: column; gap: var(--s-300); }
.mobile-menu li { opacity: 0; transform: translateY(var(--s-300)); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.mobile-menu.open li { opacity: 1; transform: none; }
.mobile-menu li:nth-child(1) { transition-delay: 60ms; }
.mobile-menu li:nth-child(2) { transition-delay: 120ms; }
.mobile-menu li:nth-child(3) { transition-delay: 180ms; }
.mobile-menu li:nth-child(4) { transition-delay: 240ms; }
.mobile-menu li:nth-child(5) { transition-delay: 300ms; margin-top: var(--s-200); }
.mobile-menu .btn { width: 100%; padding-block: var(--s-100); }

/* ---------- Hero ---------- */
.hero {
  display: grid; gap: var(--s-600); align-items: center;
  padding-top: calc(var(--s-900) + var(--s-400)); padding-bottom: var(--s-700);
}
@media (min-width: 1024px) { .hero { grid-template-columns: minmax(0, 680px) 1fr; padding-top: calc(var(--s-900) + var(--s-700)); } }
.hero-copy { display: flex; flex-direction: column; gap: var(--s-300); align-items: flex-start; }
.badge {
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-50) var(--s-100); border-radius: var(--r-full);
  background: var(--accent-soft); color: var(--accent-text);
}
.hero-title { max-width: 680px; font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; }
:lang(ar) .hero-title { line-height: 2.5rem; }
@media (min-width: 420px) { .hero-title { font-size: 2.25rem; line-height: 2.5rem; } :lang(ar) .hero-title { line-height: 3rem; } }
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; line-height: 1; } :lang(ar) .hero-title { line-height: 4.5rem; } }
.hero-sub { max-width: 680px; color: var(--muted); }
@media (min-width: 768px) { .hero-sub { font-size: 1.125rem; line-height: 1.75rem; } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-200); }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--s-400); padding-top: var(--s-200); }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: var(--s-25); }

.hero-visual { position: relative; min-height: 420px; }
.browser {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl);
  overflow: hidden;
}
.hero-visual .browser { position: absolute; inset-inline-start: 0; top: var(--s-400); width: 82%; }
.browser-bar { display: flex; align-items: center; gap: var(--s-50); padding: var(--s-100) var(--s-200); border-bottom: 1px solid var(--border); }
.browser-bar span { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--surface-2); }
.browser-bar p { margin-inline-start: var(--s-100); color: var(--muted); direction: ltr; }
.browser-body { padding: var(--s-300); display: flex; flex-direction: column; gap: var(--s-100); min-height: 260px; }
.mock-line { height: 12px; border-radius: var(--r-full); background: var(--surface-2); }
.mock-line.w60 { width: 60%; height: 16px; }
.mock-line.w40 { width: 40%; }
.mock-btn { width: 96px; height: 24px; border-radius: var(--r-md); background: var(--accent); margin-top: var(--s-75); }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-100); margin-top: var(--s-200); }
.mock-grid.four { grid-template-columns: repeat(4, 1fr); }
.mock-grid div { aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: var(--surface-2); }
.mock-hero { height: 80px; border-radius: var(--r-lg); background: var(--accent-soft); }
.mock-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-200); align-items: center; }
.mock-split > div:first-child { aspect-ratio: 1; border-radius: var(--r-lg); background: var(--surface-2); }
.mock-split > div:last-child { display: flex; flex-direction: column; gap: var(--s-100); }
.mock-split .mock-line.w60 { width: 90%; }
.mock-split .mock-line.w40 { width: 60%; }

.phone {
  position: absolute; inset-inline-end: 0; top: 0;
  width: 200px; padding: var(--s-75);
  background: var(--text); border-radius: var(--r-3xl);
}
.phone-screen {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-2xl); /* 24 − 8 = 16 */
  overflow: hidden; color: #FFFFFF; background: #000000;
}
.play {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.45); color: #FFFFFF; font-size: 1.25rem;
  transition: transform var(--dur) var(--ease);
}
@media (max-width: 767px) {
  .hero-visual { min-height: 340px; }
  .phone { width: 150px; }
  .hero-visual .browser { width: 88%; }
}

/* ---------- Hero motion ---------- */
.hero { position: relative; isolation: isolate; }
.flow {
  position: absolute; z-index: -1; bottom: 0; left: 50%; margin-left: -50vw;
  width: 100vw; height: 60%; pointer-events: none;
}
.hero-copy > * { animation: rise 800ms var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 80ms; }
.hero-copy > *:nth-child(3) { animation-delay: 160ms; }
.hero-copy > *:nth-child(4) { animation-delay: 240ms; }
.hero-copy > *:nth-child(5) { animation-delay: 320ms; }
.hero-visual { animation: rise 1000ms var(--ease) 300ms backwards; transform-style: preserve-3d; will-change: transform; }
@keyframes rise { from { opacity: 0; transform: translateY(var(--s-400)); } }

/* Phone: auto playing reel stories */
.slide {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 700ms var(--ease), transform 1200ms var(--ease);
}
.slide.active { opacity: 1; transform: none; }
.slide-icon { font-size: 4.5rem; opacity: 0.35; }
.slide.active .slide-icon { animation: drift 3600ms var(--ease) both; }
@keyframes drift { from { transform: scale(0.9) translateY(var(--s-75)); } to { transform: scale(1.12) translateY(calc(var(--s-75) * -1)); } }
.hook {
  position: absolute; inset-inline: var(--s-100); top: var(--s-500);
  padding: var(--s-50) var(--s-100); border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.94); color: #0A0F14; text-align: center;
  opacity: 0; transform: translateY(var(--s-100));
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.slide.active .hook { opacity: 1; transform: none; transition-delay: 350ms; }
.slide-meta { position: absolute; bottom: var(--s-200); inset-inline-start: var(--s-100); opacity: 0.9; direction: ltr; }
.story-bars { position: absolute; z-index: 2; top: var(--s-75); inset-inline: var(--s-75); display: flex; gap: var(--s-50); }
.story-bars span { flex: 1; height: 2px; border-radius: var(--r-full); background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.story-bars i { display: block; height: 100%; background: #FFFFFF; transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .story-bars i { transform-origin: right center; }
.story-bars span.done i { transform: scaleX(1); }
.story-bars span.on i { animation: story 3400ms cubic-bezier(0.3, 0.1, 0.7, 0.9) forwards; }
@keyframes story { to { transform: scaleX(1); } }
.eq { position: absolute; z-index: 2; bottom: var(--s-200); inset-inline-end: var(--s-100); display: flex; align-items: flex-end; gap: var(--s-25); height: 12px; }
.eq i { width: 3px; height: 12px; border-radius: var(--r-sm); background: #FFFFFF; transform-origin: bottom center; animation: eq 900ms var(--ease) infinite alternate; }
.eq i:nth-child(2) { animation-delay: 200ms; }
.eq i:nth-child(3) { animation-delay: 450ms; }
.eq i:nth-child(4) { animation-delay: 100ms; }
@keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }

/* Browser: a website that builds itself, gets clicked, books a client */
.mock-nav { display: flex; gap: var(--s-75); justify-content: flex-end; }
.mock-nav span { width: 32px; height: 8px; border-radius: var(--r-full); background: var(--surface-2); }
.build .b { opacity: 0; transform: translateY(var(--s-100)); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.build.built .b { opacity: 1; transform: none; }
.build.built .b:nth-child(1) { transition-delay: 100ms; }
.build.built .b:nth-child(2) { transition-delay: 250ms; }
.build.built .b:nth-child(3) { transition-delay: 400ms; }
.build.built .b:nth-child(4) { transition-delay: 550ms; }
.build.built .b:nth-child(5) { transition-delay: 700ms; }
.build .browser-body { position: relative; }
.cursor {
  position: absolute; top: 120px; inset-inline-start: 72px; z-index: 2;
  font-size: 1.25rem; color: var(--text); opacity: 0;
}
.build.built .cursor { animation: cursor 2400ms var(--ease) 900ms forwards; }
@keyframes cursor {
  0% { opacity: 0; transform: translate(var(--s-900), var(--s-800)); }
  15% { opacity: 1; }
  70% { opacity: 1; transform: translate(0, 0); }
  80% { opacity: 1; transform: translate(0, 0) scale(0.8); }
  100% { opacity: 1; transform: none; }
}
.build.built .mock-btn { animation: press 400ms var(--ease) 2800ms; }
@keyframes press { 50% { transform: scale(0.92); } }
.toast {
  position: absolute; bottom: var(--s-200); inset-inline-end: var(--s-200);
  display: flex; align-items: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100); border-radius: var(--r-full);
  background: var(--bg); border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0; transform: translateY(var(--s-100)) scale(0.96);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.toast i { color: #1FA855; font-size: 1rem; }
.build.built .toast { opacity: 1; transform: none; transition-delay: 3100ms; }

/* Floating proof chips */
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: var(--s-50);
  padding: var(--s-75) var(--s-100); border-radius: var(--r-full);
  background: var(--bg); border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  animation: float 6s var(--ease) infinite alternate;
}
.float-chip i { color: var(--accent-text); font-size: 1rem; }
.chip-a { top: 300px; inset-inline-end: 168px; }
.chip-b { top: 0; inset-inline-start: var(--s-400); animation-delay: 1500ms; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(calc(var(--s-100) * -1)); } }
@media (max-width: 767px) {
  .chip-a { top: 240px; inset-inline-end: 120px; }
  .chip-b { inset-inline-start: var(--s-75); }
  .hook { top: var(--s-400); }
}

/* Logo marquee (continuous loop runs at constant speed) */
.marquee {
  width: 100%; overflow: hidden;
  -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 .logo-row { flex-wrap: nowrap; width: max-content; justify-content: flex-start; gap: 0; animation: marquee 36s linear infinite; }
.marquee .logo-row li { margin-inline-end: var(--s-700); white-space: nowrap; }
.marquee:hover .logo-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee .logo-row { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* Reel cards: hover feels like the reel starts playing */
.reel-icon { transition: transform 1200ms var(--ease); }
.reel:hover .reel-icon { transform: scale(1.18); }
.reel .play { transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease); }
.reel:hover .play { opacity: 0; transform: scale(0.8); }
.reel-progress { position: absolute; top: var(--s-75); inset-inline: var(--s-75); height: 2px; border-radius: var(--r-full); background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.reel-progress i { display: block; height: 100%; background: #FFFFFF; transform: scaleX(0); transform-origin: left center; transition: transform 300ms var(--ease); }
[dir="rtl"] .reel-progress i { transform-origin: right center; }
.reel:hover .reel-progress i { transform: scaleX(1); transition: transform 4000ms cubic-bezier(0.3, 0.1, 0.7, 0.9); }
.reel .eq { top: var(--s-300); bottom: auto; inset-inline-end: var(--s-200); opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
.reel .eq i { animation-play-state: paused; }
.reel:hover .eq { opacity: 1; }
.reel:hover .eq i { animation-play-state: running; }

/* Website cards: hover scrolls the page inside the browser frame */
.site-card .browser-body { height: 180px; min-height: 0; overflow: hidden; padding: 0; }
.scroller { display: flex; flex-direction: column; gap: var(--s-100); padding: var(--s-200); transition: transform 2400ms var(--ease); }
.site-card:hover .scroller { transform: translateY(-50%); }

/* Sticky register bar on phones */
.sticky-cta {
  position: fixed; z-index: 30; bottom: var(--s-200); inset-inline: var(--s-200);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-200);
  padding: var(--s-75); padding-inline-start: var(--s-200);
  background: var(--nav-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: var(--r-full);
  opacity: 0; transform: translateY(calc(100% + var(--s-200))); pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.sticky-cta.show { opacity: 1; transform: none; pointer-events: auto; }
.sticky-cta .btn { border-radius: var(--r-full); padding-inline: var(--s-200); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* Flat reel colors (no gradients) */
.reel-bg-1 { background: #6B4A34; }
.reel-bg-2 { background: #2F6B4F; }
.reel-bg-3 { background: #2C5D8A; }
.reel-bg-4 { background: #8A6A3B; }
.reel-bg-5 { background: #5B3A6B; }
.reel-bg-6 { background: #A0483A; }

/* ---------- Logos ---------- */
.logos { padding-bottom: var(--s-700); display: flex; flex-direction: column; gap: var(--s-300); align-items: center; text-align: center; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-300) var(--s-500); color: var(--muted); }
.logo-row li { display: flex; align-items: center; gap: var(--s-75); }
.logo-row i { font-size: 1.25rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-800); display: flex; flex-direction: column; gap: var(--s-600); }
@media (min-width: 768px) { .section { padding-block: var(--s-900); } }
.section-head { display: flex; flex-direction: column; gap: var(--s-200); max-width: 680px; }
.eyebrow { color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.06em; }
:lang(ar) .eyebrow { letter-spacing: 0; }

/* Reels row */
.reel-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
  gap: var(--s-200); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--s-75); margin-inline: calc(var(--s-200) * -1); padding-inline: var(--s-200);
  scrollbar-width: thin;
}
@media (min-width: 1024px) { .reel-row { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; } }
.reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-2xl); overflow: hidden;
  display: grid; place-items: center; color: #FFFFFF; scroll-snap-align: start; cursor: pointer;
  transition: transform var(--dur) var(--ease);
}
.reel:hover { transform: translateY(-4px); }
.reel:hover .play { transform: scale(1.08); }
.reel-icon { font-size: 4rem; opacity: 0.3; }
.reel-meta {
  position: absolute; inset-inline: var(--s-75); bottom: var(--s-75);
  padding: var(--s-100); border-radius: var(--r-lg); /* 16 − 8 = 8 */
  background: rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; gap: var(--s-50);
}
.reel-meta .caption-5 { display: flex; align-items: center; gap: var(--s-50); opacity: 0.85; }

/* Features */
.feature-grid { display: grid; gap: var(--s-300); grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature { display: flex; flex-direction: column; gap: var(--s-75); }
.feature i { font-size: 1.5rem; color: var(--accent-text); margin-bottom: var(--s-50); }

/* Websites */
.site-grid { display: grid; gap: var(--s-300); grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-grid { grid-template-columns: repeat(3, 1fr); } }
.site-card {
  display: flex; flex-direction: column; gap: var(--s-200);
  padding: var(--s-75); border-radius: var(--r-3xl); border: 1px solid var(--border); background: var(--bg);
  transition: transform var(--dur) var(--ease);
}
.site-card:hover { transform: translateY(-4px); }
.site-card .browser { border-radius: var(--r-2xl); } /* 24 − 8 = 16 */
.browser.small .browser-body { min-height: 180px; padding: var(--s-200); }
.site-info { padding: 0 var(--s-100) var(--s-100); display: flex; flex-direction: column; gap: var(--s-50); }
.result { display: flex; align-items: center; gap: var(--s-75); color: var(--accent-text); margin-top: var(--s-75); }

/* Tagline reveal (B11) */
.tagline { padding-block: var(--s-900); display: flex; justify-content: center; text-align: center; }
.tagline-text { max-width: 680px; font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; }
:lang(ar) .tagline-text { line-height: 3.75rem; }
@media (min-width: 768px) { .tagline-text { font-size: 3.75rem; line-height: 1; } :lang(ar) .tagline-text { line-height: 4.5rem; } }
.tagline-text .w { color: var(--muted-word); transition: color 600ms var(--ease); }
.tagline-text .w.on { color: var(--text); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: var(--s-300); }
.sol-grid { display: grid; gap: var(--s-200); grid-template-columns: 1fr; }
@media (min-width: 640px) { .sol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sol-grid { grid-template-columns: repeat(4, 1fr); } }
.sol-grid .card { display: flex; flex-direction: column; gap: var(--s-75); transition: transform var(--dur) var(--ease), background-color var(--dur-fast) var(--ease); }
.sol-grid .card:hover { transform: translateY(-4px); background: var(--surface-2); }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-xl); background: var(--accent-soft); color: var(--accent-text); font-size: 1.5rem; margin-bottom: var(--s-100); }

/* Steps */
.steps { display: grid; gap: var(--s-300); grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; flex-direction: column; gap: var(--s-75); padding-top: var(--s-300); border-top: 1px solid var(--border); }
.step-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-full); background: var(--accent); color: var(--accent-ink); margin-bottom: var(--s-100); }

/* Quotes */
.quote-grid { display: grid; gap: var(--s-200); grid-template-columns: 1fr; }
@media (min-width: 768px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }
.quote { display: flex; flex-direction: column; gap: var(--s-200); }
.quote blockquote { flex: 1; }
.stars { display: flex; gap: var(--s-25); color: #E9A23B; }
.who { display: flex; align-items: center; gap: var(--s-100); }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent-text); }

/* Offer */
.offer { display: grid; gap: var(--s-500); padding: var(--s-400); border-radius: var(--r-3xl); }
@media (min-width: 900px) { .offer { grid-template-columns: 1.3fr 1fr; padding: var(--s-600); align-items: center; } }
.offer > div:first-child { display: flex; flex-direction: column; gap: var(--s-200); }
.checks { display: flex; flex-direction: column; gap: var(--s-100); margin-top: var(--s-75); }
.checks li { display: flex; align-items: center; gap: var(--s-75); }
.checks i { color: var(--accent-text); font-size: 1.25rem; }
.seats { display: flex; flex-direction: column; gap: var(--s-200); padding: var(--s-300); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-2xl); }
.meter { height: 8px; border-radius: var(--r-full); background: var(--surface-2); overflow: hidden; }
.meter span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left center; transform: scaleX(0.3); transition: transform 800ms var(--ease); border-radius: var(--r-full); }
[dir="rtl"] .meter span { transform-origin: right center; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: var(--s-100); max-width: 840px; }
.faq-list details { border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); transition: background-color var(--dur-fast) var(--ease); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-200);
  padding: var(--s-200) var(--s-300); border-radius: var(--r-2xl);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { transition: transform var(--dur) var(--ease); flex-shrink: 0; color: var(--muted); }
.faq-list details[open] summary i { transform: rotate(45deg); }
.faq-list details:hover { background: var(--surface-2); }
.faq-list details p { padding: 0 var(--s-300) var(--s-300); }

/* Register */
.register { display: grid; gap: var(--s-500); padding: var(--s-300); border-radius: var(--r-3xl); }
@media (min-width: 900px) { .register { grid-template-columns: 0.9fr 1.1fr; padding: var(--s-600); } }
.reg-copy { display: flex; flex-direction: column; gap: var(--s-200); }
.reg-copy .caption-2 { display: flex; align-items: center; gap: var(--s-75); }
.reg-form { display: flex; flex-direction: column; gap: var(--s-200); }
.field { display: flex; flex-direction: column; gap: var(--s-75); }
.field-row { display: grid; gap: var(--s-200); grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field input, .field select, .field textarea {
  width: 100%; padding: var(--s-100) var(--s-200);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-xl);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.7; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: var(--focus); }
.field textarea { resize: vertical; min-height: 96px; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.err { color: var(--danger); min-height: 0; }
.err:empty { display: none; }
legend { margin-bottom: var(--s-75); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: block; padding: var(--s-75) var(--s-200); border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--bg);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}
.chip:hover span { border-color: var(--muted); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent-text); color: var(--accent-ink); }
.chip input:focus-visible + span { box-shadow: var(--focus); }
.chip:active span { transform: scale(0.98); }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.submit { margin-top: var(--s-75); width: 100%; }
.submit .loading { display: none; }
.submit.is-loading .label { display: none; }
.submit.is-loading .loading { display: inline; animation: pulse 1200ms var(--ease) infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: 0.5; } }
.form-error { color: var(--danger); padding: var(--s-100) var(--s-200); border: 1px solid var(--danger); border-radius: var(--r-xl); }
.reg-done { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--s-200); }
.reg-done:focus { outline: none; box-shadow: none; }
.done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-full); background: var(--accent); color: var(--accent-ink); font-size: 1.5rem; }

/* Footer */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-200);
  padding-block: var(--s-400) var(--s-500); border-top: 1px solid var(--border);
}
.foot-brand { display: flex; align-items: center; gap: var(--s-75); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s-300); }
.foot-links a { color: var(--muted); transition: color var(--dur-fast) var(--ease); }
.foot-links a:hover { color: var(--text); }
.foot-links a[aria-current="page"] { color: var(--text); }

/* Legal and 404 pages */
.page { padding-top: calc(var(--s-900) + var(--s-400)); padding-bottom: var(--s-800); max-width: 760px; display: flex; flex-direction: column; gap: var(--s-300); }
.page h2 { margin-top: var(--s-200); }
.page ul { padding-inline-start: var(--s-300); display: flex; flex-direction: column; gap: var(--s-75); }
.back { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--accent-text); }
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--s-300); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(var(--s-400)); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-property: opacity, color, background-color !important; animation: none !important; }
  .js .reveal { transform: none; }
  .mobile-menu li { transform: none; }
  .tagline-text .w { color: var(--text); }
  .btn:hover, .reel:hover, .site-card:hover, .sol-grid .card:hover { transform: none; }
  .marquee .logo-row { width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .build .b, .slide, .hook { transform: none; }
  .site-card:hover .scroller, .reel:hover .reel-icon { transform: none; }
}

/* =========================================================
   Real media: showreel, reels gallery, design work, lightbox
   ========================================================= */
.phone-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-handle { position: absolute; top: var(--s-100); inset-inline-start: var(--s-100); color: #FFFFFF; opacity: 0.9; }
.sound-btn {
  position: absolute; bottom: var(--s-100); inset-inline: var(--s-100);
  display: flex; align-items: center; justify-content: center; gap: var(--s-50);
  padding: var(--s-75) var(--s-100); border: 0; border-radius: var(--r-lg); /* 16 − 8 = 8 */
  background: rgba(0, 0, 0, 0.5); color: #FFFFFF; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}
.sound-btn:hover { background: rgba(0, 0, 0, 0.7); }
.sound-btn:active { transform: scale(0.98); }

.reel { background: #000000; }
.reel-btn { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; color: #FFFFFF; border-radius: inherit; }
.reel-btn video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-btn:focus-visible { box-shadow: inset var(--focus); }
.reel-dur { position: absolute; bottom: var(--s-100); inset-inline-end: var(--s-100); padding: var(--s-25) var(--s-75); border-radius: var(--r-md); background: rgba(0, 0, 0, 0.55); }
.reel.more { display: none; }
.reel-row.show-all .reel.more { display: grid; }
@media (min-width: 1024px) {
  .reel-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1023px) {
  .reel-row .reel.more { display: grid; }
  .more-btn { display: none; }
}
.more-btn { align-self: center; background: var(--surface); border-color: var(--border); color: var(--text); border-radius: var(--r-full); padding-inline: var(--s-300); }
.more-btn:hover { background: var(--surface-2); }

.sector-grid { display: grid; gap: var(--s-200); grid-template-columns: 1fr; }
@media (min-width: 768px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
.sector {
  display: flex; gap: var(--s-200); align-items: flex-start;
  padding: var(--s-300); border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--bg);
  transition: transform var(--dur) var(--ease), background-color var(--dur-fast) var(--ease);
}
.sector:hover { transform: translateY(-4px); background: var(--surface); }
.sector .card-icon { flex-shrink: 0; margin: 0; }
.sector > div { display: flex; flex-direction: column; gap: var(--s-75); }

.work { display: flex; flex-direction: column; gap: var(--s-300); padding-top: var(--s-300); }
.work-grid { display: grid; gap: var(--s-200); grid-template-columns: 1fr; }
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-grid li { overflow: hidden; border-radius: var(--r-2xl); border: 1px solid var(--border); background: var(--surface); aspect-ratio: 16 / 9; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.work-grid li:hover img { transform: scale(1.05); }

.wa-link { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--accent-text); align-self: flex-start; padding: var(--s-75) 0; }
.wa-link i { font-size: 1.25rem; }
.wa-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.socials { display: flex; gap: var(--s-75); }
.socials .icon-btn { font-size: 1.125rem; color: var(--muted); }
.socials .icon-btn:hover { color: var(--text); }
.sticky-actions { display: flex; align-items: center; gap: var(--s-75); }
.sticky-cta .wa { width: 36px; height: 36px; color: #1FA855; background: var(--bg); }

.lightbox {
  padding: 0; border: 0; background: transparent; max-width: none; max-height: none;
  width: min(420px, calc(100vw - var(--s-400))); overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[open] { animation: lb-in 500ms var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(var(--s-400)) scale(0.96); } }
.lightbox video { display: block; width: 100%; max-height: calc(100vh - var(--s-900)); aspect-ratio: 9 / 16; border-radius: var(--r-2xl); background: #000000; }
.lb-close { position: absolute; top: calc(var(--s-600) * -1); inset-inline-end: 0; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.3); }
.lb-close:hover { background: rgba(255, 255, 255, 0.12); }

/* =========================================================
   Hologram layer: wave field, HUD frame, scan line, sheen
   ========================================================= */
.flow { height: 100%; top: 0; bottom: auto; }
.hero { overflow: visible; }

.hud { position: absolute; inset: calc(var(--s-300) * -1); pointer-events: none; z-index: 4; }
.hud i { position: absolute; width: 24px; height: 24px; border-color: var(--brand-teal); border-style: solid; border-width: 0; opacity: 0.8; }
.hud i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: var(--r-md); }
.hud i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: var(--r-md); }
.hud i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: var(--r-md); }
.hud i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: var(--r-md); }
.hud .scan {
  position: absolute; inset-inline: var(--s-200); top: 0; height: 2px; border-radius: var(--r-full);
  background: var(--brand-teal); opacity: 0.55;
  box-shadow: 0 0 12px var(--brand-teal), 0 0 32px var(--brand-teal);
  animation: scan 4.8s var(--ease) infinite;
}
@keyframes scan {
  0% { transform: translateY(var(--s-300)); opacity: 0; }
  10% { opacity: 0.55; }
  90% { opacity: 0.55; }
  100% { transform: translateY(440px); opacity: 0; }
}
.hud-label { position: absolute; bottom: calc(var(--s-300) * -1); inset-inline-start: var(--s-400); font-style: normal; letter-spacing: 0.2em; color: var(--accent-text); display: flex; align-items: center; gap: var(--s-75); }
.hud-label::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-full); background: #FF4D4D; animation: blink 1.6s var(--ease) infinite alternate; }
@keyframes blink { from { opacity: 1; } to { opacity: 0.2; } }

/* Phone glows like a projection */
.phone { box-shadow: 0 0 0 1px rgba(59, 194, 169, 0.35), 0 24px 64px rgba(18, 65, 79, 0.35); }
:root[data-theme="dark"] .phone { box-shadow: 0 0 0 1px rgba(59, 194, 169, 0.5), 0 0 48px rgba(59, 194, 169, 0.28); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone { box-shadow: 0 0 0 1px rgba(59, 194, 169, 0.5), 0 0 48px rgba(59, 194, 169, 0.28); } }
.holo-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.12; mix-blend-mode: screen;
  background-image: repeating-linear-gradient(to bottom, rgba(59, 194, 169, 0.9) 0 1px, transparent 1px 4px);
}

/* Tagline over its own wave field */
.tagline { position: relative; isolation: isolate; overflow: hidden; min-height: 420px; align-items: center; }
.tagline-wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Holographic sheen sweeps across cards on hover */
.reel, .sector, .work-grid li, .sol-grid .card, .site-card, .seats { position: relative; overflow: hidden; }
.reel::after, .sector::after, .work-grid li::after, .sol-grid .card::after, .site-card::after, .seats::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(105deg, transparent 35%, rgba(59, 194, 169, 0.22) 47%, rgba(255, 255, 255, 0.28) 50%, rgba(155, 120, 255, 0.16) 53%, transparent 65%);
  transform: translateX(-110%);
  transition: transform 1100ms var(--ease);
}
.reel:hover::after, .sector:hover::after, .work-grid li:hover::after, .sol-grid .card:hover::after, .site-card:hover::after { transform: translateX(110%); }
.seats::after { animation: sheen 5s var(--ease) infinite; }
@keyframes sheen { 0%, 60% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
.sector:hover, .sol-grid .card:hover { border-color: rgba(59, 194, 169, 0.6); }

@media (prefers-reduced-motion: reduce) {
  .hud .scan, .seats::after, .hud-label::before { animation: none; opacity: 0; }
  .hud-label::before { opacity: 1; }
}
@media (max-width: 767px) {
  .hud { inset: calc(var(--s-100) * -1); }
  .hud-label { inset-inline-end: var(--s-200); }
}
.tagline { padding-inline: var(--s-200); }
@media (min-width: 768px) {
  .tagline-text { font-size: 3rem; line-height: 1; max-width: 680px; }
  :lang(ar) .tagline-text { line-height: 3.75rem; }
}

/* One hologram sea behind the whole site */
.bg-wave { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
main, .footer { position: relative; }
/* Running text gets a soft backing so it stays readable over the waves */
.section-head, .hero-copy, .tagline-text, .faq-list, .feature-grid { position: relative; }
.section-head::before, .hero-copy::before {
  content: ""; position: absolute; inset: calc(var(--s-300) * -1); z-index: -1; border-radius: var(--r-3xl);
  background: var(--bg); opacity: 0.55; filter: blur(24px); pointer-events: none;
}
.feature-grid .feature, .step { background: color-mix(in srgb, var(--bg) 70%, transparent); border-radius: var(--r-2xl); padding: var(--s-200); }

/* Real client logos in the marquee */
.logo-row img {
  width: 72px; height: 72px; border-radius: var(--r-full); object-fit: cover;
  border: 1px solid var(--border); background: #FFFFFF;
  transition: transform var(--dur) var(--ease);
}
.logo-row li:hover img { transform: scale(1.08); }
.marquee .logo-row li { margin-inline-end: var(--s-500); }
@media (max-width: 767px) { .logo-row img { width: 56px; height: 56px; } .marquee .logo-row li { margin-inline-end: var(--s-300); } }

/* Logo per theme: navy and teal mark by day, white mark by night */
.logo-night { display: none; }
:root[data-theme="dark"] .logo-day { display: none; }
:root[data-theme="dark"] .logo-night { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-day { display: none; }
  :root:not([data-theme="light"]) .logo-night { display: block; }
}

/* =========================================================
   Inner pages
   ========================================================= */
.page-hero { grid-template-columns: 1fr !important; padding-bottom: var(--s-300); }
@media (min-width: 1024px) { .page-hero { padding-top: calc(var(--s-900) + var(--s-500)); } }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-75); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: var(--s-75); opacity: 0.5; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.btn-ghost { background: var(--bg); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn-ghost i { color: #1FA855; font-size: 1.25rem; }

.prose-section { padding-block: var(--s-500); }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: var(--s-200); position: relative; }
.prose p { font-size: 1.125rem; line-height: 1.75rem; }
:lang(ar) .prose p { line-height: 2rem; }

.link-cards .card { position: relative; }
.link-cards .stretched::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
.link-cards .stretched:focus-visible { box-shadow: none; }
.link-cards .card:has(.stretched:focus-visible) { box-shadow: var(--focus); }
.card-more { display: inline-flex; align-items: center; gap: var(--s-50); color: var(--accent-text); margin-top: auto; padding-top: var(--s-100); }
.card-more i { transition: transform var(--dur) var(--ease); }
[dir="ltr"] .card-more i { transform: scaleX(-1); }
.link-cards .card:hover .card-more i { transform: translateX(calc(var(--s-50) * -1)); }

.reel-row-page { grid-auto-flow: column; }
@media (min-width: 1024px) { .reel-row-page { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); } }

.about-stats { justify-content: flex-start; gap: var(--s-700); }
.team-grid { display: grid; gap: var(--s-200); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card { position: relative; overflow: hidden; border-radius: var(--r-2xl); border: 1px solid var(--border); background: var(--surface); }
.team-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 1200ms var(--ease); }
.team-card:hover img { transform: scale(1.05); }
.team-card > div { padding: var(--s-100) var(--s-200) var(--s-200); display: flex; flex-direction: column; gap: var(--s-25); }

.contact-grid { display: grid; gap: var(--s-200); grid-template-columns: 1fr; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-grid .card { position: relative; display: flex; flex-direction: column; gap: var(--s-75); }
.contact-grid .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Site footer with link columns */
.site-footer { flex-direction: column; align-items: stretch; gap: var(--s-500); padding-top: var(--s-700); }
.foot-top { display: grid; gap: var(--s-500); grid-template-columns: 1fr; }
@media (min-width: 640px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .foot-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-about { display: flex; flex-direction: column; gap: var(--s-200); align-items: flex-start; }
.foot-col { display: flex; flex-direction: column; gap: var(--s-200); }
.foot-col ul { display: flex; flex-direction: column; gap: var(--s-100); }
.foot-col a { color: var(--muted); transition: color var(--dur-fast) var(--ease); }
.foot-col a:hover { color: var(--text); }
.foot-copy { padding-top: var(--s-300); border-top: 1px solid var(--border); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
@media (min-width: 768px) {
  .page-hero .hero-title { font-size: 3rem; line-height: 1; }
  :lang(ar) .page-hero .hero-title { line-height: 3.75rem; }
}
