/* V4G System landing page.
   Everything takes its colour from the product's own gold trim - the header
   #998961 and brand #817455 - with the sidebar slate for ink. Two themes:
   LIGHT is the default (:root), DARK is html[data-theme="dark"]; the choice is
   made before first paint by the script in <head> and toggled in the top bar.
   Every colour that differs between them is a token below, so a rule written
   later should use a token rather than a literal. */

:root {
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Space Grotesk', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --slate: #2f4b57;
  --slate-2: #406472;
  --gold-deep: #998961;
  --bronze: #817455;
  --champagne: #f4e6bc;
  --on-gold: #1c170b;
  /* fills that sit UNDER dark text (icon tiles, ticks): the same in both themes */
  --fill-a: #e0c57c; --fill-b: #a9c4cb; --fill-c: #c99a58; --fill-d: #cdb77f; --fill-e: #f0dc9a;
  /* brushed metal: light, gold, the application's own gold, light again */
  --grad: linear-gradient(100deg, #f4e6bc 0%, #e0c57c 30%, #a8925c 62%, #e8d08e 100%);
  /* the moving version: champagne to the application's gold and bronze and
     back, starting and ending on the same colour so a slide by exactly one
     tile width loops with no seam. Every stop stays inside the gold trim. */
  --grad-loop: linear-gradient(100deg, #f4e6bc, #e0c57c, #998961, #817455, #c8a95a, #f4e6bc);

  /* ---- LIGHT, the default: ivory paper, slate ink, the gold deepened so it
     reads as text (every accent below clears 4.5:1 on --ink) ---- */
  --ink: #faf7ef;
  --ink-2: #ffffff;
  --ink-3: #f2ead7;
  --cream: #efe7d3;
  --text: #1b2629;
  --muted: #56666b;
  --gold: #87702f;
  --gold-2: #a8893f;
  --green: #87702f;
  --teal: #2f5a68;
  --violet: #7a6430;
  --coral: #93602a;
  --sun: #7f6a2c;
  --line: rgba(129, 116, 85, .18);
  --trim: rgba(129, 116, 85, .34);
  --soft: rgba(47, 75, 87, .04);
  --soft-2: rgba(47, 75, 87, .08);
  --soft-3: rgba(47, 75, 87, .22);
  --glass: rgba(255, 252, 244, .72);
  --nav-solid: rgba(253, 250, 242, .97);
  --chat-solid: #fffdf7;
  --chip-bg: rgba(255, 253, 247, .96);
  --shot-bg: #e9eef0;
  --sh: rgba(40, 34, 18, .28);
  --sh-img: 0 30px 60px -24px rgba(40, 34, 18, .35), 0 0 0 1px rgba(47, 75, 87, .1);
  --card-grad: linear-gradient(180deg, #ffffff, #fbf7ec);
  --band: radial-gradient(1000px 500px at 10% 20%, rgba(224, 197, 124, .22), transparent 70%), var(--ink);
  --ai-tile: linear-gradient(135deg, #f6efdd, #ffffff);
  --ai-bg: radial-gradient(900px 500px at 50% 30%, #f3ead2, var(--ink));
  --ai-glow-op: .18;
  --chat-bg: rgba(255, 255, 255, .9);
  --spot: rgba(224, 197, 124, .18);
  --grain-op: .045;
  --blend: multiply;
  --blob-op: .8;
  --blob-1: #ecdcae; --blob-2: #cfe0e5; --blob-3: #f0e4c2; --blob-4: #d9e5e9;
  --grad-text: linear-gradient(100deg, #8a7338, #b39247, #6f5f36, #a8893f, #8a7338);
  --flow-mid: #c8a95a;
}
html[data-theme="dark"] {
  --ink: #0a1113;
  --ink-2: #0f191c;
  --ink-3: #152326;
  --cream: #f6f1e4;
  --text: #edf0ec;
  --muted: #a4b1b0;
  /* the gold trim: header #998961 and brand #817455 from the application,
     lifted for a dark page */
  --gold: #e0c57c;
  --gold-2: #c8a95a;
  /* the old accent names resolve inside the same family, so nothing on the
     page can drift back into rainbow colours */
  --green: #e0c57c;
  --teal: #a9c4cb;
  --violet: #cdb77f;
  --coral: #c99a58;
  --sun: #f0dc9a;
  --line: rgba(224, 197, 124, .14);
  --trim: rgba(224, 197, 124, .28);
  --soft: rgba(255, 255, 255, .04);
  --soft-2: rgba(255, 255, 255, .08);
  --soft-3: rgba(255, 255, 255, .2);
  --glass: rgba(10, 20, 24, .55);
  --nav-solid: rgba(14, 24, 28, .96);
  --chat-solid: #101c20;
  --chip-bg: rgba(14, 26, 30, .94);
  --shot-bg: #1c2b31;
  --sh: rgba(0, 0, 0, .85);
  --sh-img: 0 30px 60px -20px #000, 0 0 0 1px rgba(255, 255, 255, .08);
  --card-grad: linear-gradient(180deg, #162327, #0d171a);
  --band: radial-gradient(1000px 500px at 10% 20%, rgba(47, 75, 87, .55), transparent 70%), var(--ink);
  --ai-tile: linear-gradient(135deg, #1a2a2e, var(--ink-2));
  --ai-bg: radial-gradient(900px 500px at 50% 30%, #13262c, var(--ink));
  --ai-glow-op: .22;
  --chat-bg: rgba(14, 24, 28, .86);
  --spot: rgba(255, 255, 255, .12);
  --grain-op: .07;
  --blend: screen;
  --blob-op: .6;
  --blob-1: #7a6632; --blob-2: #2f5663; --blob-3: #5e5230; --blob-4: #406472;
  --grad-text: var(--grad-loop);
  --flow-mid: #f4e6bc;
}
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
/* a theme switch eases over rather than snapping; only while switching, so
   ordinary hovers keep their own timing */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease !important;
}
@keyframes shimmer { to { background-position: -200% 0; } }
html[lang="ar"] { --font: 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html.lang-pending body { opacity: 0; }
body { transition: opacity .35s ease; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
html { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
button, a, .btn { -webkit-user-select: none; user-select: none; }
::selection { background: var(--fill-a); color: var(--on-gold); }

.i { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
[dir="rtl"] .i.flip { transform: scaleX(-1); }

/* ---------- film grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: var(--grain-op);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.grad-text {
  background-image: var(--grad-text); background-size: 200% 100%; background-repeat: repeat-x;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* ~20 updates a second rather than 60: at this speed the difference is invisible,
     and each update repaints the text */
  animation: shimmer 9s steps(180) infinite;
}

/* ---------- nav ---------- */
.nav {
  position: absolute; top: 14px; inset-inline: 14px; z-index: 80;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 12px 10px 18px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background .3s, transform .4s var(--ease);
}
[dir="rtl"] .nav { padding: 10px 18px 10px 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; white-space: nowrap; }
.brand img { flex: none; width: 44px; height: auto; filter: drop-shadow(0 4px 14px rgba(224, 197, 124, .45)); }
.brand b { color: var(--gold); }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: .92rem; color: var(--muted); white-space: nowrap; transition: color .2s, background .2s; }
.nav .btn { white-space: nowrap; }
/* The menu button: up to 1320px the links fold into a panel it opens. */
.menu-toggle { display: none; position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%;
  border: 1px solid var(--line); background: var(--soft-2); color: var(--gold); }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 14px; } .menu-toggle span:nth-child(2) { top: 20px; } .menu-toggle span:nth-child(3) { top: 26px; }
.nav.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1320px) {
  .menu-toggle { display: block; }
  .nav-end { margin-inline-start: auto; }
  .nav-links { display: none; position: absolute; top: calc(100% + 8px); inset-inline: 0; margin: 0;
    flex-direction: column; gap: 2px; padding: 10px; border-radius: 22px; max-height: 70vh; overflow-y: auto;
    background: var(--nav-solid); border: 1px solid var(--line); box-shadow: 0 24px 50px -20px var(--sh); }
  .nav.menu-open .nav-links { display: flex; animation: menu-in .25s var(--ease); }
  .nav-links a { padding: 13px 16px; border-radius: 14px; font-size: 1rem; color: var(--text); }
  .nav-links a:hover, .nav-links a:active { background: var(--soft-2); color: var(--gold); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.nav-links .menu-theme { display: none; }
@media (max-width: 480px) {
  .nav-end > .theme-toggle { display: none; }
  .nav .nav-links .menu-theme { display: flex; align-items: center; gap: 12px; width: auto; height: auto; padding: 13px 16px;
    margin-top: 6px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; background: none;
    font-size: 1rem; color: var(--text); text-align: start; overflow: visible; }
  .nav .nav-links .menu-theme svg { position: static; width: 20px; height: 20px; transform: none; opacity: 1; color: var(--gold); }
  .menu-theme .sun, html[data-theme="dark"] .menu-theme .moon { display: none; }
  html[data-theme="dark"] .menu-theme .sun { display: block; }
}
.nav-links a:hover { color: var(--text); background: var(--soft-2); }
.nav-end { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  position: relative; display: flex; padding: 4px; border-radius: 999px;
  background: var(--soft-2); border: 1px solid var(--line); direction: ltr;
}
.lang-switch button {
  position: relative; z-index: 1; width: 44px; height: 32px; border: 0; background: none;
  border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--muted); transition: color .3s;
}
.lang-switch button[data-lang="ar"] { font-family: 'Cairo', sans-serif; font-size: 1.05rem; }
.lang-switch button.on { color: var(--on-gold); }
.lang-thumb {
  position: absolute; top: 4px; left: 4px; width: 44px; height: 32px; border-radius: 999px;
  background: var(--grad); transition: transform .45s var(--ease);
  box-shadow: 0 4px 18px rgba(224, 197, 124, .4);
}
html[lang="ar"] .lang-thumb { transform: translateX(44px); }

.theme-toggle { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--soft-2); color: var(--gold); display: grid; place-items: center; overflow: hidden; transition: background .3s, border-color .3s; }
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle svg { position: absolute; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease), opacity .35s; }
/* the button shows the theme it switches TO: a moon on the light page, a sun on the dark one */
.theme-toggle .sun { transform: translateY(120%) rotate(-90deg); opacity: 0; }
html[data-theme="dark"] .theme-toggle .sun { transform: none; opacity: 1; }
html[data-theme="dark"] .theme-toggle .moon { transform: translateY(-120%) rotate(90deg); opacity: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .3s, background .3s;
  will-change: transform;
}
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-xl { padding: 20px 38px; font-size: 1.15rem; }
.btn-glow {
  position: relative; overflow: hidden; color: var(--on-gold); background-image: var(--grad-loop); background-size: 200% 100%; background-repeat: repeat-x;
  animation: shimmer 8s steps(160) infinite;
  border-color: rgba(255, 240, 200, .55);
  box-shadow: 0 10px 34px -12px rgba(224, 197, 124, .55), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(90, 70, 30, .35);
}
/* one pass of light across the metal on hover, and only then */
.btn-glow::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); pointer-events: none; }
.btn-glow:hover::after { left: 130%; transition: left .8s var(--ease); }
.btn-glow:hover { box-shadow: 0 14px 40px -10px rgba(224, 197, 124, .7), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(90, 70, 30, .35); }
.btn-ghost { border-color: var(--trim); color: var(--gold); background: rgba(224, 197, 124, .04); }
.btn-ghost:hover { background: rgba(224, 197, 124, .1); border-color: var(--gold); }

/* ---------- off-screen sections rest ----------
   site.js marks a section .idle while it is scrolled out of view. Many effects here
   (the gold shimmer, the ribbons) are background-position animations, which run on
   the main thread every frame whether or not anything can see them. */
.idle, .idle *, .idle *::before, .idle *::after { animation-play-state: paused !important; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(34px) scale(.98);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center; gap: 40px; padding: 140px 6vw 90px; overflow: hidden; isolation: isolate;
}
.aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* Soft colour fields. They used to be flat discs under filter: blur(100px) with a
   blend mode - the heaviest thing on the page on a phone. A radial gradient that
   fades to nothing draws the same soft glow with no filter at all, and the drift
   is a transform, which the GPU moves without repainting anything. */
.blob { position: absolute; border-radius: 50%; opacity: var(--blob-op); will-change: transform;
  background: radial-gradient(closest-side, var(--bc) 0%, color-mix(in srgb, var(--bc) 55%, transparent) 45%, transparent 100%); }
.b1 { width: 55vw; height: 55vw; --bc: var(--blob-1); top: -20%; left: -12%; animation: drift1 40s ease-in-out infinite alternate; }
.b2 { width: 45vw; height: 45vw; --bc: var(--blob-2); top: 30%; right: -15%; animation: drift2 46s ease-in-out infinite alternate; }
.b3 { width: 38vw; height: 38vw; --bc: var(--blob-3); bottom: -25%; left: 25%; animation: drift3 38s ease-in-out infinite alternate; }
.b4 { width: 30vw; height: 30vw; --bc: var(--blob-4); top: 5%; right: 20%; opacity: calc(var(--blob-op) * .7); animation: drift1 52s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(18vw, 12vh) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-20vw, -10vh) scale(.85); } }
@keyframes drift3 { to { transform: translate(-12vw, -18vh) scale(1.15); } }
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; padding: 7px 16px; border-radius: 999px;
  font-size: .85rem; letter-spacing: .02em; color: var(--gold);
  background: rgba(232, 198, 106, .08); border: 1px solid rgba(232, 198, 106, .25);
}
.eyebrows { display: flex; flex-wrap: wrap; gap: 10px; }
/* Live indicators: a solid core with a glow, a filled wave and a ring, both
   radiating out. The only blue and green on the page, by request, and solid
   enough to read on the light theme as well as the dark one. */
.pulse-dot { --dot: #1f9d46; position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--dot);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--dot) 22%, transparent), 0 0 8px color-mix(in srgb, var(--dot) 70%, transparent); }
.dot-green { --dot: #1f9d46; }
.dot-blue { --dot: #1f6fd6; }
html[data-theme="dark"] .dot-green { --dot: #39d06a; }
html[data-theme="dark"] .dot-blue { --dot: #4a9cf5; }
.pulse-dot::before, .pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.pulse-dot::before { background: var(--dot); animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
.pulse-dot::after { border: 1.5px solid var(--dot); animation: ping-ring 1.6s cubic-bezier(0, 0, .2, 1) infinite .5s; }
/* the two beat out of step, so they read as two live signals rather than one */
.dot-blue::before { animation-delay: .8s; }
.dot-blue::after { animation-delay: 1.3s; }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes ping-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
.hero-title { font-size: clamp(2.8rem, 6.4vw, 6.2rem); font-weight: 700; margin: 22px 0 22px; }
html[lang="ar"] .hero-title { font-weight: 900; font-size: clamp(2.6rem, 5.8vw, 5.4rem); }
.hero-sub { font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--muted); max-width: 36em; }

.rotator { display: flex; gap: .4em; align-items: baseline; margin-top: 20px; font-size: 1.15rem; color: var(--text); }
.rot-words { position: relative; display: inline-block; height: 1.6em; overflow: hidden; flex: 1; }
.rot-words b {
  position: absolute; inset-inline-start: 0; top: 0; white-space: nowrap; color: var(--teal);
  opacity: 0; transform: translateY(100%); animation: rot 12.5s infinite;
}
.rot-words b:nth-child(2) { animation-delay: 2.5s; color: var(--gold); }
.rot-words b:nth-child(3) { animation-delay: 5s; color: var(--green); }
.rot-words b:nth-child(4) { animation-delay: 7.5s; color: var(--coral); }
.rot-words b:nth-child(5) { animation-delay: 10s; color: var(--violet); }
@keyframes rot {
  0% { opacity: 0; transform: translateY(100%); } 4%, 18% { opacity: 1; transform: none; }
  22%, 100% { opacity: 0; transform: translateY(-100%); }
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; margin: 48px 0 0; justify-content: start; }
.stats div { border-inline-start: 2px solid var(--soft-3); padding-inline-start: 14px; }
.stats dt { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; line-height: 1; }
.stats div:nth-child(1) dt { color: var(--green); } .stats div:nth-child(2) dt { color: var(--teal); }
.stats div:nth-child(3) dt { color: var(--gold); } .stats div:nth-child(4) dt { color: var(--coral); }
.stats dd { margin: 6px 0 0; font-size: .82rem; color: var(--muted); max-width: 11em; line-height: 1.35; }

/* the 3D screen stack */
.hero-stage { perspective: 1800px; }
.stack { position: relative; aspect-ratio: 16 / 11.5; transform-style: preserve-3d;
  transform: rotateY(calc(-14deg + var(--mx, 0) * 8deg)) rotateX(calc(8deg - var(--my, 0) * 6deg));
  transition: transform .6s var(--ease); animation: stackin 1.4s var(--ease) both .2s; }
[dir="rtl"] .stack { transform: rotateY(calc(14deg + var(--mx, 0) * 8deg)) rotateX(calc(8deg - var(--my, 0) * 6deg)); }
@keyframes stackin { from { opacity: 0; transform: rotateY(-40deg) rotateX(20deg) translateY(60px); } }
.shot { margin: 0; border-radius: 14px; overflow: hidden; background: var(--shot-bg);
  box-shadow: 0 40px 80px -30px var(--sh), 0 0 0 1px var(--trim); }
.shot img { width: 100%; height: auto; }
.stack .shot { position: absolute; }
.s-front { width: 82%; left: 9%; top: 12%; transform: translateZ(90px); animation: float 7s ease-in-out infinite; }
.s-back-l { width: 64%; left: -6%; top: 0; transform: translateZ(-60px) rotate(-5deg); opacity: .85; animation: float 9s ease-in-out infinite reverse; }
.s-back-r { width: 60%; right: -8%; bottom: 0; transform: translateZ(-20px) rotate(5deg); opacity: .9; animation: float 8s ease-in-out infinite 1s; }
@keyframes float { 50% { translate: 0 -14px; } }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px;
  font-size: .88rem; font-weight: 600; white-space: nowrap;
  background: var(--chip-bg); border: 1px solid var(--trim);
  box-shadow: 0 18px 40px -12px var(--sh); transform: translateZ(160px);
}
.float-chip .i { color: var(--gold-2); }
.float-chip b { color: var(--gold); font-size: 1.1rem; }
.c1 { top: 4%; right: 2%; animation: bob 5s ease-in-out infinite; }
.c2 { bottom: 10%; left: -2%; animation: bob 6s ease-in-out infinite .8s; }
.c3 { bottom: -2%; right: 18%; animation: bob 5.5s ease-in-out infinite 1.6s; }
@keyframes bob { 50% { translate: 0 -10px; } }
.qr-ico { width: 18px; height: 18px; border-radius: 3px;
  background: conic-gradient(var(--teal) 25%, transparent 0 50%, var(--teal) 0 75%, transparent 0) 0 0 / 6px 6px; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid var(--soft-3); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--gold); animation: cue 1.8s infinite; }
@keyframes cue { 80%, 100% { transform: translateY(16px); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { padding: 50px 0; overflow: hidden; position: relative; z-index: 2; }
.mq-row { background-image: var(--grad-loop); background-size: 200% 100%; animation: shimmer 16s linear infinite;
  transform: rotate(-2deg) scale(1.04); padding: 14px 0; direction: ltr; }
.mq-row.alt { background: var(--ink-3); transform: rotate(1.4deg) scale(1.04); margin-top: 22px; border-block: 1px solid var(--line); }
.mq-track { display: flex; gap: 28px; width: max-content; align-items: center; animation: mq 60s linear infinite;
  font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 700; white-space: nowrap; color: var(--on-gold); }
.mq-row.alt .mq-track { color: var(--gold); }
.mq-track i { font-style: normal; opacity: .6; }
.mq-track.rev { animation-direction: reverse; animation-duration: 70s; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { position: relative; padding: 120px 6vw; }
.sec-head { max-width: 880px; margin: 0 auto 64px; text-align: center; }
.kicker { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: .95rem; }
.k-green { color: var(--green); } .k-gold { color: var(--gold); } .k-teal { color: var(--teal); }
.k-coral { color: var(--coral); } .k-violet { color: var(--violet); }
.sec h2 { font-size: clamp(2.1rem, 4.4vw, 4rem); font-weight: 700; }
html[lang="ar"] .sec h2 { font-weight: 800; }
.lede { margin-top: 20px; font-size: 1.12rem; color: var(--muted); }
.sec-head .lede { max-width: 42em; margin-inline: auto; }

/* flow */
.flow { position: relative; max-width: 1200px; margin: 0 auto; padding-top: 88px; }
.flow-line { position: absolute; top: 0; left: 0; width: 100%; height: 72px; pointer-events: none; overflow: visible; }
.flow-line circle { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--ease) calc(.4s + var(--i) * .45s); }
.flow.in .flow-line circle { transform: scale(1); }
[dir="rtl"] .flow-line { transform: scaleX(-1); }
.flow-line stop:nth-child(2) { stop-color: var(--flow-mid); }
.flow-line path { fill: none; stroke: url(#fl); stroke-width: 3; stroke-dasharray: 1400; stroke-dashoffset: 1400;
  transition: stroke-dashoffset 2.4s var(--ease); filter: drop-shadow(0 0 8px rgba(224, 197, 124, .6)); }
.flow.in .flow-line path { stroke-dashoffset: 0; }
.flow-steps { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.flow-steps li { z-index: 1; padding: 90px 22px 26px; border-radius: var(--radius); background: var(--card-grad);
  border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.flow-steps li:hover { transform: translateY(-8px); border-color: rgba(224, 197, 124, .5); }
.step-n { position: absolute; top: 20px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px;
  font-weight: 700; color: var(--on-gold); background: var(--grad); border: 1px solid rgba(255, 240, 200, .55); box-shadow: 0 10px 30px -12px rgba(224, 197, 124, .6); }
.flow-steps li { position: relative; }
.flow-steps h3 { font-size: 1.5rem; margin-bottom: 8px; }
.flow-steps p { color: var(--muted); font-size: .95rem; }

/* bento */
.bento { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(210px, auto); gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line);
  background: var(--ink-2); transition: transform .45s var(--ease), border-color .3s; isolation: isolate; }
.tile:hover { transform: translateY(-6px) rotate(-.4deg); border-color: var(--trim); }
.tile h3 { font-size: 1.5rem; margin: 18px 0 8px; }
.tile p { color: var(--muted); max-width: 30em; position: relative; z-index: 1; }
.t-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--c); color: var(--on-gold); box-shadow: 0 12px 30px -10px var(--c); }
.t-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(600px circle at 100% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%); }
.tile img { position: relative; width: 86%; margin: 26px 0 -90px auto; border-radius: 12px; transform: rotate(-4deg); transform-origin: 100% 0;
  box-shadow: var(--sh-img); transition: transform .6s var(--ease); }
[dir="rtl"] .tile img { margin: 26px auto -90px 0; transform: rotate(4deg); transform-origin: 0 0; }
.tile:hover img { transform: rotate(-1deg) translateY(-12px); }
[dir="rtl"] .tile:hover img { transform: rotate(1deg) translateY(-12px); }
.t-zatca { --c: var(--fill-a); grid-column: span 4; grid-row: span 2; }
.t-docs { --c: var(--fill-d); grid-column: span 2; }
.t-acc { --c: var(--fill-b); grid-column: span 2; }
.t-ops { --c: var(--fill-c); grid-column: span 3; grid-row: span 2; }
.t-plat { --c: var(--fill-b); grid-column: span 3; }
.t-ai { --c: var(--fill-e); grid-column: span 3; background: var(--ai-tile); }

/* spotlight that follows the pointer */
.spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), var(--spot), transparent 45%); }
.spot:hover::after { opacity: 1; }

/* feature rows */
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 70px; align-items: center; max-width: 1400px; margin: 0 auto; }
.feature.flip-side .feat-copy { order: 2; }
.dark-band { max-width: none; background: var(--band); }
.feature.dark-band { padding-inline: max(6vw, calc((100vw - 1400px) / 2)); }
.feature:not(.dark-band) { background: linear-gradient(180deg, var(--ink-2), var(--ink)); max-width: none; padding-inline: max(6vw, calc((100vw - 1400px) / 2)); }
.feat-copy .kicker { font-size: 4.5rem; line-height: 1; letter-spacing: -.04em; opacity: .9;
  -webkit-text-stroke: 1.5px currentColor; color: transparent !important; margin-bottom: 8px; }
.k-green.kicker { -webkit-text-stroke-color: var(--green); } .k-gold.kicker { -webkit-text-stroke-color: var(--gold); }
.k-teal.kicker { -webkit-text-stroke-color: var(--teal); } .k-coral.kicker { -webkit-text-stroke-color: var(--coral); }
.sec-head .kicker, .orbit-copy .kicker { -webkit-text-stroke: 0; font-size: .82rem; letter-spacing: .16em; }
html[lang="ar"] .sec-head .kicker, html[lang="ar"] .orbit-copy .kicker { letter-spacing: 0; font-size: .95rem; }
.sec-head .k-gold, .sec-head .k-violet, .sec-head .k-teal, .sec-head .k-green { color: inherit; }
.sec-head .kicker.k-gold { color: var(--gold) !important; } .sec-head .kicker.k-violet { color: var(--violet) !important; }
.sec-head .kicker.k-green { color: var(--green) !important; } .orbit-copy .kicker.k-teal { color: var(--teal) !important; }
.feat-copy h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); }

.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 36px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 22px; height: 22px; border-radius: 7px;
  background: var(--fill-a) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c170b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 14px no-repeat; }
#pos .ticks li::before { background-color: var(--fill-c); }

.feat-art { position: relative; perspective: 1400px; min-height: 420px; }
.feat-art .shot.tilt { --ty: -10deg; transition: transform .8s var(--ease), opacity .9s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s); }
.flip-side .feat-art .shot.tilt, [dir="rtl"] .feat-art .shot.tilt { --ty: 10deg; }
[dir="rtl"] .flip-side .feat-art .shot.tilt { --ty: -10deg; }
.feat-art .shot.tilt, .js .feat-art .shot.tilt.in { transform: rotateY(var(--ty)) rotateX(4deg); }
.feat-art .shot.tilt:hover, .js .feat-art .shot.tilt.in:hover { transform: none; }
.feat-art .shot.mini { position: absolute; width: 52%; bottom: -12%; inset-inline-start: -8%; z-index: 2;
  box-shadow: 0 40px 80px -20px var(--sh), 0 0 0 1px var(--trim), 0 0 60px -20px rgba(224, 197, 124, .3); }
.flip-side .feat-art .shot.mini { inset-inline-start: auto; inset-inline-end: -8%; }

.badge-bubble { position: absolute; top: -26px; inset-inline-end: -14px; z-index: 3; width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; background-image: var(--grad-loop); background-size: 200% 100%; color: var(--on-gold); border: 1px solid rgba(255, 240, 200, .6);
  box-shadow: 0 20px 50px -14px rgba(224, 197, 124, .6); animation: shimmer 8s linear infinite, spin-soft 12s ease-in-out infinite; }
.badge-bubble b { font-size: 1.5rem; line-height: 1; } .badge-bubble span { font-size: .8rem; font-weight: 600; }
@keyframes spin-soft { 50% { rotate: 12deg; scale: 1.06; } }

.pill-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill-cloud span { padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; border: 1px solid rgba(232, 198, 106, .35);
  background: rgba(232, 198, 106, .07); color: var(--gold); transition: transform .3s var(--ease), background .3s, color .3s; }
.pill-cloud span:nth-child(3n+2) { border-color: rgba(224, 197, 124, .35); background: rgba(224, 197, 124, .07); color: var(--teal); }
.pill-cloud span:nth-child(3n) { border-color: rgba(201, 154, 88, .35); background: rgba(201, 154, 88, .07); color: var(--coral); }
.pill-cloud span:hover { transform: translateY(-4px) rotate(-3deg); background: var(--fill-a); color: var(--on-gold); }
.note { margin-top: 24px; padding: 16px 20px; border-radius: 14px; background: var(--soft); border-inline-start: 3px solid var(--gold); color: var(--muted); }

.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.mini-grid div { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(224, 197, 124, .05); transition: transform .3s var(--ease), background .3s; }
.mini-grid div:hover { transform: translateY(-4px); background: rgba(224, 197, 124, .12); }
.mini-grid b { display: block; color: var(--teal); font-size: 1.05rem; }
.mini-grid span { font-size: .9rem; color: var(--muted); }

.fan { min-height: 520px; }
.fan .shot { position: absolute; width: 72%; transition: transform .7s var(--ease), opacity .9s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s); }
.fan-1 { top: 0; inset-inline-start: 0; --r: -8deg; z-index: 1; }
.fan-2 { top: 12%; inset-inline-start: 16%; --r: 2deg; z-index: 2; }
.fan-3 { top: 26%; inset-inline-start: 30%; --r: 9deg; z-index: 3; }
.fan .shot, .js .fan .shot.in { transform: rotate(var(--r)) translate(var(--tx, 0), var(--tyy, 0)); }
.fan:hover .fan-1 { --r: -14deg; --tx: -8%; --tyy: -4%; }
.fan:hover .fan-3 { --r: 14deg; --tx: 8%; --tyy: 6%; }
.fan .shot:hover { z-index: 5; transform: rotate(0) scale(1.06) !important; }

.beep { position: absolute; top: -30px; inset-inline-end: 6%; width: 80px; height: 80px; z-index: 3; }
.beep i { position: absolute; inset: 0; border: 3px solid var(--coral); border-radius: 50%; animation: ripple 2.4s infinite; opacity: 0; }
.beep i:nth-child(2) { animation-delay: .8s; } .beep i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ripple { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* ai */
.ai-sec { background: var(--ai-bg); overflow: hidden; }
.ai-glow { position: absolute; width: 900px; height: 900px; left: 50%; top: 40%; translate: -50% -50%; border-radius: 50%;
  background: conic-gradient(from 0deg, #2f4b57, #998961, #406472, #817455, #2f4b57); filter: blur(140px); opacity: var(--ai-glow-op); animation: turn 60s linear infinite; }
@keyframes turn { to { rotate: 360deg; } }
.chat { position: relative; max-width: 640px; margin: 0 auto; border-radius: 24px; overflow: hidden;
  background: var(--chat-bg); border: 1px solid rgba(224, 197, 124, .3);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 50px 100px -30px var(--sh), 0 0 80px -20px rgba(224, 197, 124, .5); }
.chat-top { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--soft-2); }
.chat-top .dot { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.chat-top .dot:nth-child(2) { background: #febc2e; } .chat-top .dot:nth-child(3) { background: #28c840; }
.chat-top b { margin-inline-start: auto; color: var(--violet); }
.chat-body { padding: 26px; display: flex; flex-direction: column; gap: 14px; min-height: 250px; }
.bubble { max-width: 82%; padding: 13px 18px; border-radius: 18px; font-size: 1rem; }
.bubble.me { align-self: flex-end; background: var(--grad); color: var(--on-gold); font-weight: 600; border-end-end-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--soft-2); border-end-start-radius: 4px; }
.bubble.bot b { color: var(--gold); }
.typing { display: flex; gap: 6px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: dots 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 30% { transform: translateY(-6px); opacity: 1; } 0%, 60%, 100% { opacity: .4; } }
.js .chat .bubble { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .chat.play .bubble.me { opacity: 1; transform: none; transition-delay: .3s; }
.js .chat.play .bubble.typing { animation: typingshow 2.2s forwards .9s; }
@keyframes typingshow { 0% { opacity: 0; transform: translateY(12px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; height: 0; padding: 0; margin: -14px 0 0; } }
.js .chat.play .bubble.answer { opacity: 1; transform: none; transition-delay: 3.1s; }
.chat-input { display: flex; justify-content: space-between; margin: 0 18px 18px; padding: 14px 18px; border-radius: 14px;
  background: var(--soft); color: var(--muted); border: 1px solid var(--soft-2); }
.chat-input b { color: var(--violet); }
[dir="rtl"] .chat-input b { transform: scaleX(-1); }
.ai-points { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1100px; margin: 60px auto 0; }
.ai-points div { padding: 22px; border-radius: 18px; background: var(--soft); border: 1px solid rgba(224, 197, 124, .2); }
.ai-points b { display: block; color: var(--violet); margin-bottom: 4px; }
.ai-points span { color: var(--muted); font-size: .95rem; }

/* platform */
.platform-sec { background: var(--cream); color: #1b2629; }
.platform-sec .lede, .platform-sec p { color: #56666b; }
.platform-sec .kicker { color: var(--gold-deep) !important; }
.platform-sec .grad-text { background-image: linear-gradient(100deg, #8a7338, #b39247, #6f5f36); }
.compare { position: relative; max-width: 1180px; margin: 0 auto; border-radius: 20px; overflow: hidden; user-select: none;
  box-shadow: 0 50px 90px -40px rgba(20, 40, 45, .6), 0 0 0 1px rgba(0, 0, 0, .06); direction: ltr; }
.compare > img { width: 100%; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare-top img { width: 100%; height: 100%; object-fit: cover; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; pointer-events: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, .3); }
.compare-handle svg { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; translate: -50% -50%; padding: 12px; border-radius: 50%;
  background: var(--grad); border: 1px solid #fff4d6; fill: none; stroke: var(--on-gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.compare-tag { position: absolute; top: 16px; padding: 6px 14px; border-radius: 999px; background: rgba(8, 16, 19, .75); color: #fff; font-weight: 700; font-size: .85rem; pointer-events: none; }
.compare-tag.l { left: 16px; } .compare-tag.r { right: 16px; font-family: 'Cairo', sans-serif; }
.plat-cards { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 20px; max-width: 1300px; margin: 70px auto 0; }
/* the phone stands on its own, two rows tall; help runs wide beneath the other two */
.plat-cards .phone-card { grid-column: 3; grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: center; }
.plat-cards .pcard:nth-child(3) { grid-column: 1 / span 2; grid-row: 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 0 24px; align-items: center; }
.plat-cards .pcard:nth-child(3) img { grid-row: span 2; aspect-ratio: 16 / 9; }
.plat-cards .pcard:nth-child(3) h3 { align-self: end; }
.plat-cards .pcard:nth-child(3) p { align-self: start; }
.pcard { position: relative; overflow: hidden; border-radius: 22px; padding: 18px 18px 24px; background: #fff; box-shadow: 0 20px 50px -30px rgba(20, 40, 45, .45);
  transition: transform .45s var(--ease), box-shadow .3s; }
.pcard:hover { transform: translateY(-8px) rotate(.6deg); box-shadow: 0 30px 60px -28px rgba(20, 40, 45, .6); }
.pcard img { border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.pcard h3 { font-size: 1.2rem; margin: 18px 0 6px; color: #1b2629; }
.pcard p { font-size: .92rem; }
.pcard.spot::after { background: radial-gradient(300px circle at var(--sx, 50%) var(--sy, 50%), rgba(232, 198, 106, .22), transparent 50%); }
.phone-card { background: linear-gradient(160deg, #2f4b57, #13232a); border: 1px solid var(--trim); }
.phone-card h3 { color: #fff; } .phone-card p { color: #a9c0c5; }
.phone { position: relative; width: 72%; margin: 0 auto; aspect-ratio: 390 / 844; border-radius: 26px; padding: 8px; background: #05090b;
  box-shadow: 0 0 0 2px #36505a, 0 20px 40px -10px #000; overflow: hidden; animation: float 6s ease-in-out infinite; }
/* A real phone-width capture per language (tools/capture_phone.py): the app's
   top bar pinned, and the page beneath it scrolling slowly down and back up.
   The scroll is object-position on an image taller than its box, so it is pure
   CSS and needs no measuring: 0% is the top of the page, 100% the bottom. */
.phone-screen { height: 100%; border-radius: 19px; overflow: hidden; display: flex; flex-direction: column; background: #ecf0f5; }
.phone-screen img { width: 100%; aspect-ratio: auto; border-radius: 0; }
.ph-hdr { flex: none; height: auto; position: relative; z-index: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.ph-body { flex: 1 1 0; min-height: 0; height: 100%; object-fit: cover; object-position: 50% 0%;
  animation: phone-scroll 26s ease-in-out .5s infinite; }
/* With scripts on, the loop waits at the top until the phone is on screen
   (site.js adds .playing), so a visitor arriving at it sees it start to move
   rather than landing on a long pause, and it rests again while scrolled away.
   On arrival it holds the top for about a second and a half (a 0.5s delay
   before the first run, then the loop's own 1s stop), so the title can be read; later
   loops keep the short stops. */
.js .ph-body { animation-play-state: paused; }
.js .phone.playing .ph-body { animation-play-state: running; }
/* about a second at each end (4% of 26s): the first one lets the page title be
   read before anything moves; each run eases in and out rather than lurching */
@keyframes phone-scroll {
  0%, 4% { object-position: 50% 0%; }
  48%, 52% { object-position: 50% 100%; }
  96%, 100% { object-position: 50% 0%; }
}
/* Pause to read, but only under a real mouse: on a touch screen :hover sticks after
   the finger that was scrolling the page lands on the phone, and the loop froze. */
@media (hover: hover) and (pointer: fine) {
  .phone-card:hover .phone .ph-body { animation-play-state: paused; }
}
.phone .ph-ar, html[lang="ar"] .phone .ph-en { display: none; }
html[lang="ar"] .phone .ph-ar { display: flex; }
.phone-notch { position: absolute; top: 12px; left: 50%; width: 36%; height: 14px; translate: -50% 0; border-radius: 10px; background: #05090b; z-index: 1; }

/* orbit */
.orbit-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1300px; margin: 0 auto; }
.orbit { position: relative; width: min(520px, 90vw); aspect-ratio: 1; margin: 0 auto; }
.orbit-core { position: absolute; inset: 32%; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 197, 124, .25), transparent 70%); }
.orbit-core img { width: 88%; filter: drop-shadow(0 10px 30px rgba(224, 197, 124, .6)); animation: float 5s ease-in-out infinite; }
.ring { position: absolute; border-radius: 50%; border: 1px dashed var(--soft-3); }
.r1 { inset: 8%; animation: turn 60s linear infinite; } .r2 { inset: 22%; border-style: solid; border-color: rgba(224, 197, 124, .2); }
.orbit-spin { position: absolute; inset: 0; animation: turn 36s linear infinite; }
.orbiter { position: absolute; inset: 0; transform: rotate(var(--a)); pointer-events: none; }
.orbiter span { position: absolute; top: 4%; left: 50%; translate: -50% 0; transform: rotate(calc(var(--a) * -1));
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; white-space: nowrap;
  background: var(--ink-3); border: 1px solid rgba(232, 198, 106, .45); color: var(--gold); box-shadow: 0 10px 30px -10px var(--sh);
  animation: turn 36s linear infinite reverse; pointer-events: auto; }
.orbiter:nth-child(odd) span { border-color: rgba(224, 197, 124, .45); color: var(--teal); }

/* gallery */
.gallery-sec { padding-inline: 0; background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.gallery-sec .sec-head { padding-inline: 6vw; }
.film { display: flex; gap: 26px; overflow-x: auto; padding: 30px 6vw 50px; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.film::-webkit-scrollbar { display: none; }
.film.drag { cursor: grabbing; scroll-snap-type: none; }
.film-card { flex: 0 0 min(560px, 80vw); scroll-snap-align: center; border: 0; padding: 0; background: none; text-align: start; transition: transform .5s var(--ease); }
.film-card:nth-child(odd) { transform: rotate(-1.6deg); } .film-card:nth-child(even) { transform: rotate(1.6deg) translateY(18px); }
.film-card:hover { transform: rotate(0) scale(1.03); }
.film-card img { border-radius: 14px; aspect-ratio: 16 / 10.5; object-fit: cover; object-position: top; width: 100%;
  box-shadow: var(--sh-img); pointer-events: none; }
.film-card span { display: inline-block; margin-top: 14px; padding: 6px 14px; border-radius: 999px; background: var(--soft-2); font-weight: 600; font-size: .92rem; }
.film-nav { display: flex; gap: 12px; justify-content: center; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--soft-3); background: var(--soft); display: grid; place-items: center; transition: background .3s, transform .3s; }
.round:hover { background: var(--fill-a); color: var(--on-gold); transform: scale(1.08); }

/* own */
.own-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1200px; margin: 0 auto; }
.own { position: relative; overflow: hidden; padding: 30px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); transition: transform .4s var(--ease); }
.own:hover { transform: translateY(-6px); }
.own-n { position: absolute; top: 8px; inset-inline-end: 18px; font-size: 4.2rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--soft-3); }
.own b { display: block; font-size: 1.2rem; margin-bottom: 8px; }
.own span:not(.own-n) { color: var(--muted); }
.own:nth-child(1) b { color: var(--green); } .own:nth-child(2) b { color: var(--gold); } .own:nth-child(3) b { color: var(--teal); }
.own:nth-child(4) b { color: var(--coral); } .own:nth-child(5) b { color: var(--violet); } .own:nth-child(6) b { color: var(--sun); }

/* IFRS line in the accounting section */
.ifrs { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--trim); background: var(--soft); color: var(--gold); font-weight: 600; font-size: .95rem; }
.ifrs .i { width: 20px; height: 20px; flex: none; }

/* contact */
.contact-sec { background: var(--band); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: start; max-width: 1200px; margin: 0 auto; }
.contact-copy h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.contact-direct { display: grid; gap: 14px; margin-top: 30px; }
.direct { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--ink-2); transition: transform .3s var(--ease), border-color .3s; }
.direct:hover { transform: translateY(-3px); border-color: var(--gold); }
.direct small { display: block; color: var(--muted); font-size: .82rem; }
.direct b { font-size: 1.1rem; color: var(--text); unicode-bidi: isolate; }
.d-ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--fill-a); color: var(--on-gold); }
.d-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-form { display: grid; gap: 16px; padding: 30px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px var(--sh); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; font-weight: 400; color: var(--text); padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--soft-3); background: var(--ink); transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224, 197, 124, .25); }
.contact-form input[aria-invalid="true"] { border-color: #c0392b; }
.contact-form .btn { justify-self: start; }
.f-error { color: #c0392b; font-size: .9rem; font-weight: 600; }
html[data-theme="dark"] .f-error, html[data-theme="dark"] .contact-form input[aria-invalid="true"] { color: #ff8a7a; border-color: #ff8a7a; }
.f-note { color: var(--muted); font-size: .85rem; }
.f-done { padding: 14px 16px; border-radius: 12px; font-weight: 600; color: var(--text);
  background: color-mix(in srgb, #1f9d46 12%, transparent); border: 1px solid color-mix(in srgb, #1f9d46 45%, transparent); }
.f-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form.sending .btn { opacity: .6; pointer-events: none; }

/* cta */
.cta-sec { position: relative; overflow: hidden; isolation: isolate; padding: 150px 6vw; text-align: center; }
.cta-inner { max-width: 900px; margin: 0 auto; }
.cta-logo { width: 110px; margin: 0 auto 26px; filter: drop-shadow(0 12px 40px rgba(224, 197, 124, .7)); animation: float 5s ease-in-out infinite; }
.cta-sec h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.cta-sec .lede { max-width: 34em; margin: 22px auto 40px; }
.cta-note { margin-top: 26px; color: var(--muted); font-size: .95rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta-note a, .foot-copy a { color: var(--gold); border-bottom: 1px solid var(--trim); }
.cta-note a:hover, .foot-copy a:hover { border-bottom-color: var(--gold); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--muted); transition: color .2s; white-space: nowrap; unicode-bidi: isolate; }
.foot-links a:hover { color: var(--gold); }

.foot { padding: 56px 6vw 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 34px 28px; max-width: 1300px; margin: 0 auto; }
.foot-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-col h4 { margin: 0 0 4px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .foot-col h4 { letter-spacing: 0; font-size: .9rem; }
.foot-col a { color: var(--muted); transition: color .2s; unicode-bidi: isolate; }
.foot-col a:hover { color: var(--gold); }
.foot-about p { max-width: 22em; }
.foot-social { display: flex; gap: 10px; margin-top: 6px; }
.foot-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); }
.foot-social a:hover { border-color: var(--gold); }
.foot-social svg { width: 18px; height: 18px; fill: currentColor; }
.foot-copy { max-width: 1300px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.foot-brand img { width: 36px; }
.foot-brand b { color: var(--gold); }

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 8, 10, .82); backdrop-filter: blur(8px); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 14px; box-shadow: 0 40px 100px #000; }
.lightbox[open] img { animation: lbin .45s var(--ease); }
@keyframes lbin { from { opacity: 0; transform: scale(.9); } }
.lb-close { position: absolute; top: -18px; inset-inline-end: -18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fill-a); color: var(--on-gold); font-weight: 700; z-index: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-stage { max-width: 720px; width: 100%; margin: 20px auto 0; }
  .feature, .orbit-sec { grid-template-columns: 1fr; gap: 50px; }
  .feature.flip-side .feat-copy { order: 0; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .flow-line { display: none; }
  .flow { padding-top: 0; }
  .plat-cards { grid-template-columns: repeat(2, 1fr); }
  .plat-cards .phone-card, .plat-cards .pcard:nth-child(3) { grid-column: auto; grid-row: auto; }
  .plat-cards .pcard:nth-child(3) { display: block; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-about { grid-column: 1 / -1; }
  .t-zatca, .t-ops { grid-column: span 2; grid-row: auto; }
  .t-docs, .t-acc, .t-plat, .t-ai { grid-column: span 1; }
}
@media (max-width: 680px) {
  .nav { top: 8px; inset-inline: 8px; gap: 10px; }
  .brand-name { display: none; }
  .btn-sm { padding: 8px 14px; font-size: .82rem; }
  .sec { padding: 90px 5vw; }
  .stats { grid-template-columns: repeat(2, auto); gap: 22px; }
  .flow-steps, .own-grid, .ai-points, .plat-cards, .mini-grid { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 22px; }
  .bento { grid-template-columns: 1fr; }
  .t-zatca, .t-ops, .t-docs, .t-acc, .t-plat, .t-ai { grid-column: auto; }
  .fan { min-height: 340px; }
  .feat-art { min-height: 0; }
  .float-chip { font-size: .72rem; padding: 7px 10px; }
  .badge-bubble { width: 96px; height: 96px; top: -40px; }
  .badge-bubble b { font-size: 1.1rem; }
  .rotator { font-size: 1rem; flex-wrap: wrap; }
  .orbiter span { font-size: .75rem; padding: 6px 10px; }
}

/* Phones and tablets: no frosted glass (it re-blurs whatever moves underneath it,
   every frame) and no 140px-blurred glow behind the AI section; solid surfaces in
   the same colours stand in, and the section keeps its own radial background. */
@media (max-width: 1100px), (pointer: coarse) {
  .nav, .chat { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav { background: var(--nav-solid); }
  .chat { background: var(--chat-solid); }
  .ai-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .rot-words b:first-child { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}
