/* ============================================================
   Jodfy — جودفاي  |  Design System
   Inspired by the Lusion aesthetic, adapted for a tech brand
   Brand: purple gradient + silver, light lavender canvas
   ============================================================ */

/* ---------- Fonts ---------- */
/* Loaded via <link> in base.html (Rubik + Space Grotesk) */

/* ---------- Design Tokens ---------- */
:root {
  /* canvas */
  --bg: #ECEBF7;
  --bg-2: #F5F4FB;
  --surface: #FFFFFF;
  --surface-dark: #0E0B18;

  /* ink */
  --ink: #14101F;
  --ink-soft: #4A4458;
  --ink-faint: #63607A;
  --line: #DAD7EC;

  /* brand purple */
  --p-900: #2E0A5E;
  --p-800: #3B0A78;
  --p-700: #5B16C4;
  --p-600: #6D28D9;
  --p-500: #8B5CF6;
  --p-400: #A78BFA;
  --p-300: #C4B5FD;

  /* silver */
  --silver-1: #7D8199;
  --silver-2: #EEF1FA;

  --grad-purple: linear-gradient(160deg, #A855F7 0%, #6D28D9 45%, #3B0A78 100%);
  --grad-purple-soft: linear-gradient(160deg, #8B5CF6 0%, #5B16C4 100%);
  --grad-silver: linear-gradient(135deg, #9EA2B8, #EEF1FA 50%, #7D8199);

  /* radii & spacing */
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  --shadow-sm: 0 4px 20px rgba(46, 10, 94, 0.06);
  --shadow: 0 24px 60px rgba(46, 10, 94, 0.12);
  --shadow-lg: 0 40px 90px rgba(46, 10, 94, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: "Cairo", "Cairo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body[dir="ltr"] { font-family: "Cairo", "Cairo", system-ui, sans-serif; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
input { font: inherit; }
::selection { background: var(--p-500); color: #fff; }

/* numbers & latin display use Space Grotesk */
.font-display, .stat-num, .sec-index { font-family: "Cairo", "Cairo", sans-serif; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(72px, 11vw, 160px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--p-700);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad-purple);
}
.display {
  font-weight: 600; line-height: 1.02; letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 8vw, 6.6rem);
}
.h-xl { font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; font-size: clamp(2rem, 5.2vw, 4rem); }
.h-lg { font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.h-md { font-weight: 600; line-height: 1.2; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.22rem); color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); }
.grad-text { background: var(--grad-purple); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head .lead { margin-top: 22px; }

.sec-index {
  position: absolute; inset-inline-end: var(--gutter); top: clamp(40px, 6vw, 72px);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; color: var(--ink-faint);
}

/* ---------- Buttons / Pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px; border-radius: 100px; font-weight: 600; font-size: 0.98rem;
  transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-3px); will-change: transform; }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .9; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--p-700); box-shadow: 0 16px 40px rgba(91,22,196,.35); }
.btn--light { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { box-shadow: var(--shadow); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--p-500); color: var(--p-700); }
.btn--grad { background: var(--grad-purple-soft); color: #fff; }
.btn--grad:hover { box-shadow: 0 18px 44px rgba(109,40,217,.4); }

.icon-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.icon-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Registration + marks ---------- */
.marks { position: absolute; inset-inline: var(--gutter); display: flex; justify-content: space-between; pointer-events: none; color: var(--ink-faint); opacity: .5; }
.marks span { font-size: 18px; line-height: 1; }
.marks--top { top: 18px; }
.marks--bottom { bottom: 18px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px var(--gutter);
  transition: transform .5s var(--ease), background-color .4s, backdrop-filter .4s, box-shadow .4s, padding .4s;
}
.header.is-scrolled {
  background: rgba(236, 235, 247, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(46,10,94,.06);
  padding-block: 12px;
}
.header.is-hidden { transform: translateY(-120%); }

.brand { display: inline-flex; align-items: center; gap: 12px; z-index: 2; }
.brand img { width: 34px; height: auto; }
.brand .brand-name { font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand .brand-name span { color: var(--p-700); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; padding: 10px 16px; border-radius: 100px; font-weight: 500; font-size: 0.96rem;
  color: var(--ink); transition: color .3s, background-color .3s;
}
.nav a::after {
  content: ""; position: absolute; inset-inline: 16px; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--grad-purple); transform: scaleX(0); transform-origin: center; transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--p-700); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  min-width: 46px; height: 46px; padding: 0 14px; border-radius: 100px;
  background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 700; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 6px; transition: transform .3s, box-shadow .3s;
}
.lang-toggle:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px auto; border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* mobile nav sheet */
.mobile-nav {
  position: fixed; inset: 0; z-index: 95; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 90px var(--gutter) 40px; transform: translateY(-100%); transition: transform .55s var(--ease);
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; }
.mobile-nav a { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .m-actions { display: flex; gap: 12px; margin-top: 28px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(40px, 7vw, 90px); padding-top: 140px; }
.hero .wrap { width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 56px); align-items: center; }

.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-logo { display: inline-flex; align-items: center; }
.hero-logo img { height: clamp(50px, 6.5vw, 78px); width: auto; filter: drop-shadow(0 10px 30px rgba(124,77,255,.5)); }
.hero-title { font-weight: 600; line-height: 0.98; letter-spacing: -0.03em; font-size: clamp(3rem, 9vw, 7rem); }
.hero-title .word { display: block; }
/* clear breathing space between the stacked hero words */
.hero-title .word + .word { margin-block-start: clamp(6px, .8vw, 18px); }
/* the last word is gradient-clipped text; give its deep descender (ق) room so
   -webkit-background-clip:text doesn't slice it flat against the padding box */
.hero-title .grad-text { padding-block-end: .16em; }
.hero-sub { margin-top: 28px; max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* hero visual (dark canvas card with animated pixels) */
.hero-visual {
  position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(120% 120% at 70% 10%, #23134d 0%, #0E0B18 55%, #060410 100%);
  box-shadow: var(--shadow-lg);
}
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual .glyph {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.hero-visual .glyph svg { width: 46%; filter: drop-shadow(0 20px 50px rgba(139,92,246,.5)); }
.hero-visual .badge {
  position: absolute; inset-block-end: 20px; inset-inline-start: 20px; z-index: 3;
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12);
  color: #fff; padding: 10px 16px; border-radius: 100px; font-size: .82rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-visual .badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(74,222,128,.5)} 70%{box-shadow:0 0 0 10px rgba(74,222,128,0)} 100%{box-shadow:0 0 0 0 rgba(74,222,128,0)} }

.scroll-hint { position: absolute; inset-inline: 0; bottom: 22px; display: flex; justify-content: center; }
.scroll-hint span { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 10px; }
.scroll-hint .arr { width: 1px; height: 26px; background: linear-gradient(var(--ink-faint), transparent); position: relative; overflow: hidden; }
.scroll-hint .arr::after { content:""; position:absolute; inset-inline:0; top:-100%; height:100%; background: var(--p-600); animation: scrollLine 1.8s var(--ease) infinite; }
@keyframes scrollLine { 0%{top:-100%} 60%,100%{top:100%} }

/* ============================================================
   Reusable cards & grids
   ============================================================ */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 34px);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(139,92,246,.35), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .5s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }

.card-ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(160deg, rgba(139,92,246,.16), rgba(109,40,217,.08)); color: var(--p-700);
}
.card-ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--line); padding: 5px 10px; border-radius: 100px; }

.card-arrow { position: absolute; inset-block-start: clamp(24px,2.6vw,34px); inset-inline-end: clamp(24px,2.6vw,34px); color: var(--p-600); opacity: 0; transform: translate(8px,-8px); transition: opacity .4s, transform .4s; }
body[dir="rtl"] .card-arrow { transform: translate(-8px,-8px) scaleX(-1); }
.card:hover .card-arrow { opacity: 1; transform: translate(0,0); }
body[dir="rtl"] .card:hover .card-arrow { transform: translate(0,0) scaleX(-1); }

/* Services — larger feature cards */
.service-card { min-height: 240px; display: flex; flex-direction: column; }
.service-card p { flex: 1; }

/* Sectors */
.sector-card { display: flex; align-items: center; gap: 16px; padding: 22px 24px; }
.sector-card .card-ico { margin-bottom: 0; width: 48px; height: 48px; border-radius: 14px; }
.sector-card h3 { margin: 0; font-size: 1.05rem; }
.sector-card p { font-size: .86rem; }

/* ============================================================
   WHY JODFY — process steps
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2vw,22px); counter-reset: step; }
.step {
  position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 30px;
  box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step .num { counter-increment: step; font-family: "Cairo", sans-serif; font-size: 3.4rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--p-300); }
.step .num::before { content: "0" counter(step); }
.step h3 { font-size: 1.15rem; font-weight: 600; margin: 18px 0 8px; }
.step p { color: var(--ink-soft); font-size: .94rem; }
.step .step-ico { position: absolute; inset-block-start: 26px; inset-inline-end: 26px; color: var(--p-500); opacity: .9; }
.step .step-ico svg { width: 26px; height: 26px; }

/* ============================================================
   LIVE LABS
   ============================================================ */
.labs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px,2vw,26px); }
.lab {
  position: relative; isolation: isolate; border-radius: var(--r-xl); overflow: hidden; min-height: 320px; padding: 32px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background: radial-gradient(120% 120% at 80% 0%, #2a1660, #0E0B18 70%);
  box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s;
}
.lab:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* bottom scrim keeps the heading + paragraph readable over the live demo */
.lab::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, #0E0B18 2%, rgba(14,11,24,.62) 26%, rgba(14,11,24,0) 56%); }
.lab .lab-live { z-index: 2; position: absolute; inset-block-start: 24px; inset-inline-start: 24px; display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 6px 12px; border-radius: 100px; }
.lab .lab-live .pulse { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }
.lab canvas { position:absolute; inset:0; z-index: 0; width:100%; height:100%; opacity:.95; }
.lab h3 { z-index: 2; font-size: 1.5rem; font-weight: 600; position: relative; }
.lab p { z-index: 2; color: rgba(255,255,255,.72); font-size: .95rem; position: relative; margin-top: 8px; }
.lab .lab-cta { position: relative; margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }

/* ============================================================
   TEAM / CERTIFICATIONS
   ============================================================ */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert { background: var(--surface); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm); text-align: center; transition: transform .4s var(--ease); }
.cert:hover { transform: translateY(-5px); }
.cert .cert-badge { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(139,92,246,.16), rgba(109,40,217,.06)); color: var(--p-700); }
.cert h4 { font-size: 1rem; font-weight: 600; }
.cert p { font-size: .82rem; color: var(--ink-faint); margin-top: 4px; }

.team-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 24px; }
.team-fact { background: linear-gradient(160deg, #1a1030, #0E0B18); color:#fff; border-radius: var(--r); padding: 26px; }
.team-fact .k { font-family:"Cairo",sans-serif; font-size: 2.4rem; font-weight: 700; }
.team-fact .v { color: rgba(255,255,255,.7); font-size:.9rem; margin-top:4px; }

/* ============================================================
   PARTNERS marquee
   ============================================================ */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 700; color: var(--ink-faint); opacity: .7; white-space: nowrap; transition: color .3s, opacity .3s; }
.marquee-item:hover { color: var(--p-700); opacity: 1; }
.marquee-item svg { width: 26px; height: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }
body[dir="rtl"] .marquee-track { animation-name: marqueeRtl; }
@keyframes marqueeRtl { to { transform: translateX(50%); } }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(16px,2vw,28px); }
.stat { position: relative; padding: 34px 6px; text-align: center; }
.stat + .stat::before { content:""; position:absolute; inset-inline-start:0; top:20%; height:60%; width:1px; background: var(--line); }
body[dir="rtl"] .stat + .stat::before { inset-inline-start:auto; inset-inline-end:0; }
.stat-num { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.stat-num .suffix { -webkit-text-fill-color: var(--p-500); }
.stat .stat-label { margin-top: 12px; color: var(--ink-soft); font-size: .96rem; }

.stats-band { background: linear-gradient(160deg, #17102e, #0E0B18); border-radius: var(--r-xl); color:#fff; padding: clamp(28px,4vw,54px); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.stats-band .stat-num { color:#fff; }
.stats-band .stat .stat-label { color: rgba(255,255,255,.66); }
.stats-band .stat + .stat::before { background: rgba(255,255,255,.14); }
.stats-band::before { content:""; position:absolute; inset:0; background: radial-gradient(80% 120% at 100% 0%, rgba(139,92,246,.4), transparent 60%); pointer-events:none; }

/* ============================================================
   SECURITY LAYERS
   ============================================================ */
.security { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,64px); align-items: center; }
.layers { display: grid; gap: 12px; }
.layer {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 24px;
  background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s;
  border-inline-start: 3px solid var(--p-500);
}
.layer:hover { transform: translateX(-6px); box-shadow: var(--shadow); }
body[dir="ltr"] .layer:hover { transform: translateX(6px); }
.layer .layer-n { font-family:"Cairo",sans-serif; font-weight:700; color: var(--p-400); font-size: 1.1rem; min-width: 34px; }
.layer .layer-ico { width: 44px; height: 44px; border-radius: 12px; display:grid; place-items:center; background: linear-gradient(160deg, rgba(139,92,246,.16), rgba(109,40,217,.06)); color: var(--p-700); flex: none; }
.layer h4 { font-size: 1.02rem; font-weight: 600; }
.layer p { font-size: .86rem; color: var(--ink-soft); }
.security-visual { position: relative; aspect-ratio: 1; border-radius: var(--r-xl); background: radial-gradient(circle at 50% 45%, #23134d, #0E0B18 70%); overflow: hidden; box-shadow: var(--shadow-lg); display:grid; place-items:center; }
.shield-rings { position:absolute; inset:0; display:grid; place-items:center; }
.shield-rings i { position:absolute; border:1px solid rgba(139,92,246,.28); border-radius:50%; animation: ringPulse 4s var(--ease) infinite; }
.shield-rings i:nth-child(1){ width:40%; height:40%; } .shield-rings i:nth-child(2){ width:62%; height:62%; animation-delay:.6s;} .shield-rings i:nth-child(3){ width:84%; height:84%; animation-delay:1.2s;}
@keyframes ringPulse { 0%,100%{opacity:.3; transform:scale(.98)} 50%{opacity:.8; transform:scale(1.02)} }
.security-visual svg.shield { width: 34%; color: #fff; filter: drop-shadow(0 10px 30px rgba(139,92,246,.6)); position:relative; z-index:2; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px,4vw,64px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; text-align: start; font-weight: 600; font-size: 1.05rem; }
.faq-q .plus { position: relative; width: 20px; height: 20px; flex: none; }
.faq-q .plus::before, .faq-q .plus::after { content:""; position:absolute; inset-inline:0; top:50%; height:2px; background: var(--p-700); border-radius:2px; transition: transform .35s var(--ease); }
.faq-q .plus::after { transform: rotate(90deg); }
.faq-item.is-open .faq-q .plus::after { transform: rotate(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a .faq-a-inner { padding: 0 26px 24px; color: var(--ink-soft); }

/* ============================================================
   CTA (playful)
   ============================================================ */
.cta { position: relative; }
.cta-card {
  position: relative; border-radius: var(--r-xl); overflow: hidden; text-align: center;
  padding: clamp(50px,8vw,110px) var(--gutter);
  background: radial-gradient(120% 140% at 50% 0%, #2a1660 0%, #0E0B18 60%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta-card canvas { position:absolute; inset:0; width:100%; height:100%; }
.cta-card .eyebrow { color: var(--p-300); position: relative; }
.cta-card .eyebrow::before { background: var(--p-300); }
.cta-title { position: relative; font-weight: 600; line-height: 1.02; letter-spacing: -.02em; font-size: clamp(2.4rem, 7vw, 5.5rem); margin: 22px 0 34px; }
.cta-card .hero-cta { position: relative; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--surface); padding-block: clamp(56px,7vw,96px) 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px,3vw,48px); }
.footer .brand { margin-bottom: 20px; }
.footer-col h5 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.footer-col a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--ink-soft); transition: color .3s, transform .3s; }
.footer-col a:hover { color: var(--p-700); }
body[dir="rtl"] .footer-col a:hover { transform: translateX(-4px); }
body[dir="ltr"] .footer-col a:hover { transform: translateX(4px); }
.newsletter { margin-top: 14px; }
.newsletter .field { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 100px; padding: 6px 6px 6px 20px; margin-top: 12px; }
body[dir="rtl"] .newsletter .field { padding: 6px 20px 6px 6px; }
.newsletter input { flex: 1; background: none; border: none; outline: none; color: var(--ink); padding: 10px 0; }
.newsletter button { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color:#fff; display:grid; place-items:center; transition: background .3s, transform .3s; flex:none; }
body[dir="ltr"] .newsletter button svg { transform: scaleX(-1); }
.newsletter button:hover { background: var(--p-700); transform: scale(1.05); }
.footer-socials { display: flex; gap: 10px; margin-top: 22px; }

/* contact column: icon + text lines */
.footer-col .contact-line { gap: 10px; }
.footer-col .contact-line svg { width: 17px; height: 17px; flex: 0 0 auto; opacity: .75; }
.footer-col .contact-line span { direction: ltr; }
body[dir="rtl"] .footer-col .contact-line { justify-content: flex-start; }

/* official license badges */
.footer-licenses { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px; margin-top: clamp(32px,4vw,52px); padding-top: 30px; border-top: 1px solid var(--line); }
.footer-licenses .lic-caption { font-weight: 700; color: var(--ink); font-size: clamp(1rem, 1.5vw, 1.15rem); letter-spacing: normal; }
.lic-badges { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.license-badge { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 17px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.license-badge:hover { transform: translateY(-3px); border-color: var(--p-300); box-shadow: var(--shadow); }
.license-logo { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.license-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.32; }
.license-text b { font-size: .84rem; font-weight: 700; color: var(--ink); max-width: 30ch; }
.license-no { font-size: .77rem; color: var(--ink-faint); }
.license-no bdi { font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
@media (max-width: 680px) { .footer-licenses { justify-content: center; text-align: center; } .lic-badges { justify-content: center; } .license-text b { max-width: none; } }

/* made-with logo lockup */
.footer-bottom .made-by { display: inline-flex; align-items: center; gap: 8px; }
.made-by-logo { width: 19px; height: auto; flex: 0 0 auto; }

/* accepted payment methods strip */
.footer-pay { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px; margin-top: clamp(40px,5vw,64px); padding-top: 30px; border-top: 1px solid var(--line); }
.footer-pay .pay-caption { font-weight: 700; color: var(--ink); font-size: clamp(1rem, 1.5vw, 1.2rem); letter-spacing: normal; }
.pay-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; direction: ltr; list-style: none; margin: 0; padding: 0; }
body[dir="rtl"] .pay-badges { justify-content: flex-start; }
.pay-badge { height: 46px; min-width: 62px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.pay-badge:hover { transform: translateY(-3px); border-color: var(--p-300); box-shadow: var(--shadow); }
.pay-badge svg { height: 22px; width: auto; display: block; }
@media (max-width: 640px) { .footer-pay { justify-content: center; text-align: center; } .pay-badges { justify-content: center; } body[dir="rtl"] .pay-badges { justify-content: center; } }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: clamp(40px,5vw,64px); padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: .88rem; }
.footer-bottom .policies { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom .policies a:hover { color: var(--p-700); }

.to-top { position: fixed; inset-block-end: 26px; inset-inline-end: 26px; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color:#fff; display:grid; place-items:center; z-index: 80; opacity: 0; transform: translateY(20px) scale(.8); transition: opacity .4s, transform .4s, background .3s; }
.to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--p-700); }

/* ============================================================
   Flowing ribbon divider
   ============================================================ */
.ribbon { position: absolute; inset-inline: 0; height: 200px; pointer-events: none; z-index: 0; overflow: visible; }
.ribbon path { fill: none; stroke-width: 26px; stroke-linecap: round; }
.ribbon .rb-purple { stroke: url(#rbPurple); opacity: .9; }
.ribbon .rb-cyan { stroke: url(#rbCyan); opacity: .55; }

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; mix-blend-mode: normal; }
.cursor-dot { width: 7px; height: 7px; background: var(--p-700); transform: translate(-50%,-50%); }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid var(--p-500); transform: translate(-50%,-50%); transition: width .3s var(--ease), height .3s var(--ease), background-color .3s, border-color .3s, opacity .3s; }
.cursor-ring.is-hover { width: 60px; height: 60px; background: rgba(139,92,246,.12); border-color: transparent; }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ============================================================
   Reveal animations (gated by .js-ready to avoid FOUC)
   ============================================================ */
.js-ready .reveal { opacity: 0; transform: translateY(42px); }
.js-ready .reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js-ready .reveal-stagger > * { opacity: 0; transform: translateY(36px); }
.js-ready .reveal-stagger.in > * { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js-ready .reveal-stagger.in > *:nth-child(2){ transition-delay:.07s; }
.js-ready .reveal-stagger.in > *:nth-child(3){ transition-delay:.14s; }
.js-ready .reveal-stagger.in > *:nth-child(4){ transition-delay:.21s; }
.js-ready .reveal-stagger.in > *:nth-child(5){ transition-delay:.28s; }
.js-ready .reveal-stagger.in > *:nth-child(6){ transition-delay:.35s; }
.js-ready .reveal-stagger.in > *:nth-child(7){ transition-delay:.42s; }
.js-ready .reveal-stagger.in > *:nth-child(8){ transition-delay:.49s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .js-ready .reveal, .js-ready .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader { position: fixed; inset: 0; z-index: 9998; background: var(--surface-dark); display: grid; place-items: center; transition: opacity .8s var(--ease), visibility .8s; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader .pl-count { position: absolute; inset-block-end: 6vw; inset-inline-start: 6vw; font-family:"Cairo",sans-serif; font-size: clamp(4rem,14vw,12rem); font-weight: 700; color: #fff; line-height: .8; }
.preloader .pl-bar { width: min(320px, 60vw); height: 4px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; }
.preloader .pl-bar i { display:block; height:100%; width:0; background: var(--grad-purple); }
.preloader .pl-logo { position:absolute; top: 6vw; inset-inline-start: 6vw; display:flex; align-items:center; gap:10px; color:#fff; font-weight:700; font-size:1.2rem; opacity:.9;}
.preloader .pl-logo img{ width:28px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .certs { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero { align-items: flex-start; padding-top: clamp(104px, 20vw, 130px); min-height: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav, .header-actions .desktop-only { display: none; }
  .burger { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .labs-grid, .security, .faq-wrap { grid-template-columns: 1fr; }
  .team-strip { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .stats { gap: 24px 12px; }
  .sec-index { display: none; }
}
@media (max-width: 560px) {
  .grid-4, .certs, .stats, .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   ENHANCEMENTS — a11y, Lusion motion, polish (v2)
   ============================================================ */

/* Focus visibility (keyboard only) */
:focus-visible { outline: 3px solid var(--p-600); outline-offset: 3px; border-radius: 8px; }
.lab :focus-visible, .cta-card :focus-visible, .stats-band :focus-visible,
.lab:focus-visible, .layer:focus-visible { outline-color: #fff; }
.newsletter .field:focus-within { box-shadow: 0 0 0 2px var(--p-500); }
.newsletter input:focus-visible { outline: none; }

/* Scroll lock while preloader / mobile nav open */
html.is-loading, body.is-loading, body.nav-open { overflow: hidden; }

/* Header offset for anchor targets (native scroll path) */
section[id] { scroll-margin-top: 96px; }

/* Ribbon dividers */
.section { position: relative; overflow: visible; }
.section > .wrap { position: relative; z-index: 2; }
.section-head, .steps, .grid, .labs-grid, .security, .faq-wrap, .stats-band, .marquee { position: relative; z-index: 2; }
.ribbon { top: -110px; height: 230px; z-index: 0; opacity: .85; }

/* Hero title word entrance (i18n-safe: animates .word spans) */
.hero-title .word { display: block; transform: translateY(70px); opacity: 0; transition: transform 1s var(--ease-out), opacity 1s var(--ease-out); }
.hero-title.in .word { transform: none; opacity: 1; }
.hero-title.in .word:nth-child(2) { transition-delay: .09s; }
.hero-title.in .word:nth-child(3) { transition-delay: .18s; }

/* Word-mask reveal for headings */
.rw { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.08; padding-bottom: .06em; }
.rw > i { display: inline-block; font-style: normal; transform: translateY(115%); transition: transform .95s var(--ease-out); }
.rw-split.in .rw > i { transform: none; }

/* Lab CTA arrow (mirrors in RTL) */
.lab-cta-arrow { display: inline-block; margin-inline-start: 4px; transition: transform .3s var(--ease); }
body[dir="rtl"] .lab-cta-arrow { transform: scaleX(-1); }
.lab:hover .lab-cta-arrow { transform: translateX(4px); }
body[dir="rtl"] .lab:hover .lab-cta-arrow { transform: scaleX(-1) translateX(4px); }

/* Clickable cards */
[data-link] { cursor: pointer; }

/* Clip-path reveal (premium wipe) */
.js-ready .clip-reveal { clip-path: inset(0 0 100% 0 round 36px); }
.js-ready .clip-reveal.in { clip-path: inset(0 0 0 0 round 36px); transition: clip-path 1.15s var(--ease-out); }

/* Magnetic controls */
.magnetic { transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); }
.magnetic:hover { transition-duration: .18s; }

/* Page-wide fluid cursor overlay (screen-blended) */
#fluidCanvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 60; pointer-events: none; mix-blend-mode: screen; }

/* ============================================================
   SHOWREEL (PLAY REEL)
   ============================================================ */
.showreel-sec { padding-block: clamp(30px, 5vw, 80px); }
.showreel { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 8; background: radial-gradient(120% 150% at 50% -10%, #2a1660 0%, #0E0B18 60%, #060310 100%); box-shadow: var(--shadow-lg); display: grid; place-items: center; cursor: pointer; }
.showreel .reel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.reel-overlay { position: relative; z-index: 2; display: flex; align-items: center; gap: clamp(16px, 4vw, 60px); color: #fff; }
.reel-word { font-size: clamp(2.4rem, 9vw, 7rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.reel-play { width: clamp(56px, 7vw, 100px); height: clamp(56px, 7vw, 100px); border-radius: 50%; background: #fff; color: #0E0B18; display: grid; place-items: center; transition: transform .45s var(--ease); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.reel-play svg { width: 40%; margin-inline-start: 8%; }
.showreel:hover .reel-play { transform: scale(1.1); }
.reel-eyebrow { position: absolute; top: clamp(18px,3vw,30px); inset-inline-start: clamp(18px,3vw,30px); z-index: 3; color: var(--p-300); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.showreel .marks { color: rgba(255,255,255,.35); opacity: 1; inset-inline: clamp(18px,3vw,30px); }
.showreel .marks--top { top: 14px; } .showreel .marks--bottom { bottom: 14px; }

/* ============================================================
   ROLLING PRELOADER DIGITS
   ============================================================ */
.pl-count { display: flex; gap: .02em; line-height: 1; direction: ltr; }
.pl-digit { height: 1em; overflow: hidden; }
.pl-reel { display: flex; flex-direction: column; transition: transform .35s var(--ease); will-change: transform; }
.pl-reel > span { height: 1em; line-height: 1; display: flex; align-items: center; }

/* ============================================================
   CURSOR LABEL
   ============================================================ */
.cursor-label { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; transform: translate(-50%,-50%); color: #fff; font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transition: opacity .3s var(--ease); }
.cursor-label.show { opacity: 1; }
.cursor-ring.is-label { width: 90px; height: 90px; background: var(--p-600); border-color: transparent; }
@media (hover: none) { .cursor-label { display: none; } }

/* Section rhythm — differentiate Sectors from adjacent white-card sections */
.sector-card { background: var(--bg-2); border: 1px solid var(--line); box-shadow: none; }
.sector-card:hover { box-shadow: var(--shadow-sm); border-color: transparent; }

/* Stat suffix color fallback */
.stat-num .suffix { color: var(--p-500); -webkit-text-fill-color: var(--p-500); }
.stats-band .stat-num .suffix { color: var(--p-300); -webkit-text-fill-color: var(--p-300); }

/* Extend stagger delays */
.js-ready .reveal-stagger.in > *:nth-child(9) { transition-delay: .56s; }
.js-ready .reveal-stagger.in > *:nth-child(10) { transition-delay: .63s; }

/* Bigger, more cinematic reveal */
.js-ready .reveal { opacity: 0; transform: translateY(56px); }

/* sec-index kept on mobile (in-flow) */
@media (max-width: 860px) {
  .sec-index { position: static; display: block; margin: 0 0 16px; font-size: .8rem; }
  .section > .sec-index { padding-inline: 0; }
}

/* Hero visual footprint on phones */
@media (max-width: 640px) {
  .hero-visual { max-width: 100%; aspect-ratio: 4 / 3.6; max-height: 58svh; }
  .hero { padding-top: 100px; }
  .hero-title { font-size: clamp(2.7rem, 13vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .word, .hero-title .sep, .rw > i { transform: none !important; opacity: 1 !important; }
  .ribbon path { stroke-dashoffset: 0 !important; }
}

/* ============================================================
   LUSION-GRADE COMPOSITION PASS
   ============================================================ */
.header {
  align-items: flex-start;
}

.header-line {
  flex: 1;
  justify-content: center;
  max-width: min(52vw, 690px);
  padding: 9px 18px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
}

.header-line::after {
  display: none;
}

.header-actions {
  align-items: flex-start;
}

.sound-pill,
.talk-pill,
.burger {
  min-height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.sound-pill {
  width: 46px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
}

.sound-wave {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.sound-wave::before,
.sound-wave::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: .45;
}

.sound-wave::before {
  top: -6px;
  transform: scaleX(.62);
  transform-origin: left center;
}

.sound-wave::after {
  top: 6px;
  transform: scaleX(.8);
  transform-origin: right center;
}

.talk-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
}

.talk-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.talk-pill:hover {
  background: var(--p-700);
  box-shadow: 0 16px 40px rgba(91,22,196,.32);
}

.burger {
  display: inline-flex;
  width: auto;
  padding: 0 18px;
  align-items: center;
  gap: 10px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease);
}

.burger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.burger .burger-label {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  background: transparent;
  border-radius: 0;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.burger .burger-dots {
  display: inline-grid;
  grid-template-columns: repeat(2, 5px);
  gap: 4px;
  width: auto;
  height: auto;
  margin: 0;
  background: transparent;
  transition: transform .32s var(--ease);
}

.burger .burger-dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.burger.is-open .burger-dots {
  transform: rotate(90deg);
}

.burger.is-open .burger-label,
.burger.is-open span:nth-child(1),
.burger.is-open span:nth-child(2),
.burger.is-open span:nth-child(3) {
  transform: none;
  opacity: 1;
}

.mobile-nav {
  inset-block-start: 82px;
  inset-block-end: auto;
  inset-inline-start: var(--gutter);
  inset-inline-end: auto;
  width: min(390px, calc(100vw - (var(--gutter) * 2)));
  height: auto;
  min-height: 0;
  display: grid;
  justify-content: stretch;
  gap: 8px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(20, 16, 31, .08);
  box-shadow: 0 28px 90px rgba(20, 16, 31, .18);
  backdrop-filter: blur(22px);
  transform: translateY(-14px) scale(.96);
  transform-origin: top left;
  opacity: 0;
}

body[dir="ltr"] .mobile-nav {
  inset-inline-start: auto;
  inset-inline-end: var(--gutter);
  transform-origin: top right;
}

.mobile-nav.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(236, 235, 247, .78);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.mobile-nav a:hover {
  background: var(--ink);
  color: #fff;
}

.mobile-nav .m-actions {
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.hero {
  min-height: 100svh;
  align-items: flex-start;
  padding-top: clamp(104px, 9vw, 132px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero-grid {
  grid-template-columns: 1fr;
  gap: clamp(26px, 3.2vw, 46px);
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .48fr);
  align-items: end;
  gap: clamp(22px, 4vw, 70px);
}

.hero-copy .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -4px;
}

.hero-title {
  max-width: 9ch;
  font-size: 7.6rem;
}

.hero-sub {
  margin-top: 0;
  max-width: 39ch;
  font-size: clamp(1rem, 1.35vw, 1.24rem);
}

.hero-cta {
  grid-column: 2;
  margin-top: -20px;
}

.hero-visual {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 7;
  min-height: min(56svh, 560px);
  border-radius: clamp(26px, 3vw, 40px);
  background:
    radial-gradient(60% 95% at 54% 28%, rgba(56,214,232,.18), transparent 58%),
    radial-gradient(90% 140% at 45% -10%, #2a1660 0%, #0E0B18 58%, #030207 100%);
}

.hero-visual .badge {
  inset-block-end: clamp(18px, 2.4vw, 32px);
  inset-inline-start: clamp(18px, 2.4vw, 32px);
}

.intro-lusion {
  overflow: hidden;
  padding-block: clamp(86px, 12vw, 180px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .42fr);
  gap: clamp(28px, 5vw, 86px);
  align-items: end;
}

.intro-title,
.intro-copy,
.intro-media {
  position: relative;
  z-index: 2;
}

.intro-heading {
  margin-top: 22px;
  max-width: 10ch;
  font-weight: 600;
  line-height: .94;
  letter-spacing: -.03em;
  font-size: 8rem;
}

.intro-copy {
  display: grid;
  gap: 26px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
}

.intro-media {
  grid-column: 1 / 2;
  width: min(520px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: radial-gradient(120% 120% at 75% 0%, #1534e8 0%, #1c1162 45%, #060410 100%);
  box-shadow: var(--shadow-lg);
}

.intro-media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-chip {
  position: absolute;
  inset-block-end: 20px;
  inset-inline-start: 20px;
  z-index: 2;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  font-weight: 700;
  font-size: .82rem;
}

.intro-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.intro-arc .flow-line {
  fill: none;
  stroke: url(#flowGrad);
  stroke-width: 13;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 9px rgba(90, 100, 255, .55));
}

.intro-arc .flow-pix rect {
  fill: url(#flowGrad);
  transform-box: fill-box;
  transform-origin: center;
  animation: pixTwinkle 2.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes pixTwinkle { 0%, 100% { opacity: .22; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .intro-arc .flow-pix rect { animation: none; } }

.showreel-sec .wrap {
  max-width: none;
}

.showreel {
  aspect-ratio: 16 / 7.2;
  border-radius: clamp(26px, 3vw, 42px);
}

.reel-canvas {
  opacity: .95;
}

.reel-overlay {
  direction: ltr;
}

@media (max-width: 1080px) {
  .header-line {
    max-width: 44vw;
  }
  .hero-title {
    font-size: 5.8rem;
  }
  .intro-heading {
    font-size: 6rem;
  }
  .hero-copy {
    grid-template-columns: 1fr;
  }
  .hero-title {
    max-width: 10ch;
  }
  .hero-cta {
    grid-column: 1;
    margin-top: 6px;
  }
  .hero-visual {
    aspect-ratio: 4 / 3;
    min-height: 420px;
  }
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .intro-media {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .header-line,
  .header-actions .desktop-only {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .hero {
    padding-top: 102px;
  }
  .hero-title,
  .intro-heading {
    font-size: 4.5rem;
  }
}

@media (max-width: 700px) {
  .mobile-nav {
    inset: 0;
    width: auto;
    height: auto;
    min-height: 100svh;
    border-radius: 0;
    display: flex;
    justify-content: center;
    padding: 96px var(--gutter) 38px;
    transform: translateY(-100%);
    transform-origin: top center;
    opacity: 1;
  }
  body[dir="ltr"] .mobile-nav {
    inset-inline: 0;
    transform-origin: top center;
  }
  .mobile-nav.is-open {
    transform: translateY(0);
  }
  .mobile-nav a {
    min-height: 58px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    font-size: clamp(1.55rem, 7vw, 2.4rem);
  }
  .hero-visual {
    aspect-ratio: 4 / 3.7;
    min-height: 0;
  }
  .intro-media {
    aspect-ratio: 1 / .82;
  }
  .showreel {
    aspect-ratio: 4 / 4.5;
  }
  .hero-title,
  .intro-heading {
    font-size: 3.5rem;
  }
  .reel-overlay {
    flex-direction: column;
    gap: 18px;
  }
}

/* ============================================================
   EDITORIAL LIST (Services) — Lusion "Featured Work" style
   ============================================================ */
.edito { border-top: 1px solid var(--line); }
.edito-row {
  position: relative; display: grid; grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: clamp(14px, 3vw, 44px);
  padding: clamp(20px, 3.2vw, 42px) clamp(8px, 1.5vw, 20px);
  border-bottom: 1px solid var(--line); color: var(--ink); overflow: hidden;
  transition: color .45s var(--ease);
}
.edito-row::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--g1, #8b5cf6), var(--g2, #5b16c4)); transform: translateY(101%); transition: transform .6s var(--ease); z-index: 0; }
.edito-row > * { position: relative; z-index: 1; }
.edito-row:hover { color: #fff; }
.edito-row:hover::before { transform: translateY(0); }
.edito-num { font-size: 1rem; font-weight: 700; color: var(--ink-faint); transition: color .45s; }
.edito-row:hover .edito-num { color: rgba(255,255,255,.85); }
.edito-title { font-size: clamp(1.5rem, 4.4vw, 3.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.04; }
.edito-tags { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; transition: color .45s; }
.edito-row:hover .edito-tags { color: rgba(255,255,255,.9); }
.edito-arrow { opacity: 0; transform: translateX(-10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
body[dir="rtl"] .edito-arrow svg { transform: scaleX(-1); }
.edito-row:hover .edito-arrow { opacity: 1; transform: translateX(0); }
@media (max-width: 720px) {
  .edito-row { grid-template-columns: auto 1fr auto; }
  .edito-tags { display: none; }
}

/* Floating hover preview (follows cursor) */
.hover-preview { position: fixed; top: 0; left: 0; z-index: 9998; width: clamp(180px, 18vw, 260px); aspect-ratio: 4 / 3; border-radius: 18px; pointer-events: none; transform: translate(-50%,-50%) scale(.55); opacity: 0; transition: opacity .35s var(--ease), transform .45s var(--ease); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.hover-preview.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.hover-preview svg { width: 32%; height: auto; }
@media (hover: none) { .hover-preview { display: none; } }

/* ============================================================
   SECTORS — giant marquee (Lusion big-type motion)
   ============================================================ */
.sector-marquee { display: grid; gap: clamp(2px, 0.6vw, 10px); }
.sm-viewport { overflow: hidden; direction: ltr; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sm-track { display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); width: max-content; will-change: transform; direction: ltr; }
.sm-item span { unicode-bidi: plaintext; }
.sm-track[data-dir="1"] { animation: smMove 42s linear infinite; }
.sm-track[data-dir="-1"] { animation: smMoveRev 48s linear infinite; }
.sector-marquee:hover .sm-track { animation-play-state: paused; }
@keyframes smMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes smMoveRev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.sm-item { display: inline-flex; align-items: center; gap: clamp(24px, 4vw, 64px); font-size: clamp(2rem, 6.4vw, 5.2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); white-space: nowrap; transition: color .35s var(--ease); }
.sm-item b { color: var(--p-400); font-weight: 400; font-size: .48em; }
.sm-item:hover { color: transparent; -webkit-text-stroke: 1.5px var(--p-600); }
@media (prefers-reduced-motion: reduce) { .sm-track { animation: none !important; } .sm-viewport { overflow-x: auto; } }

/* ============================================================
   PLAYFUL CTA STICKERS (Lusion "Let's work together" vibe)
   ============================================================ */
.cta-card > .eyebrow, .cta-card > .cta-title, .cta-card > .hero-cta { position: relative; z-index: 3; }
.cta-stickers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cta-stickers span { position: absolute; left: var(--x); top: var(--y); font-size: calc(clamp(1.1rem, 2.4vw, 2rem) * var(--s, 1)); color: var(--c, var(--p-300)); opacity: .5; line-height: 1; transform: translate(-50%, -50%); animation: floatSticker 6s ease-in-out infinite; animation-delay: var(--d, 0s); text-shadow: 0 0 16px rgba(124, 77, 255, .5); }
@keyframes floatSticker {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(-7deg); }
  50% { transform: translate(-50%, -50%) translateY(-16px) rotate(7deg); }
}
@media (prefers-reduced-motion: reduce) { .cta-stickers span { animation: none; } }
@media (max-width: 640px) { .cta-stickers span:nth-child(even) { display: none; } }

/* ============================================================
   FULL-BLEED HERO — 3D scene as full-width background
   ============================================================ */
.hero--full { position: relative; min-height: 100svh; background: #0a0616; overflow: hidden; display: flex; align-items: center; padding: 150px 0 96px; }
.hero--full .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero--full .hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform: translateX(-24%); }
body[dir="ltr"] .hero--full .hero-bg canvas { transform: translateX(24%); }
@media (max-width: 900px) { .hero--full .hero-bg canvas, body[dir="ltr"] .hero--full .hero-bg canvas { transform: none; } }
/* readability scrim on the text (inline-start) side */
.hero--full .hero-bg::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(130% 120% at 100% 45%, rgba(10,6,22,.82) 0%, rgba(10,6,22,.35) 42%, transparent 62%); }
body[dir="ltr"] .hero--full .hero-bg::after { background: radial-gradient(130% 120% at 0% 45%, rgba(10,6,22,.82) 0%, rgba(10,6,22,.35) 42%, transparent 62%); }

.hero--full .hero-inner { position: relative; z-index: 2; width: 100%; }
.hero--full .hero-copy { max-width: 680px; color: #fff; }
.hero--full .hero-title { color: #fff; font-size: clamp(3rem, 8vw, 7rem); }
.hero--full .hero-sub { color: rgba(255,255,255,.74); }
.hero--full .eyebrow { color: var(--p-300); }
.hero--full .eyebrow::before { background: var(--p-300); }
.hero--full .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.hero--full .btn--ghost:hover { border-color: var(--p-300); color: var(--p-300); }

.hero--full .hero-badge { position: absolute; inset-block-end: 26px; inset-inline-start: var(--gutter); z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; font-size: .82rem; font-weight: 500; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.hero--full .hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite; }
.hero--full .scroll-hint span { color: rgba(255,255,255,.6); }
.hero--full .scroll-hint .arr { background: linear-gradient(rgba(255,255,255,.5), transparent); }
.hero--full .scroll-hint .arr::after { background: var(--p-300); }
.hero--full .marks { color: rgba(255,255,255,.35); opacity: 1; }

@media (max-width: 640px) {
  .hero--full { padding: 120px 0 80px; min-height: 92svh; }
  .hero--full .hero-copy { max-width: 100%; }
}

/* Pin hero copy firmly to the inline-start (text side) + unified alignment */
.hero--full .hero-inner { display: flex; justify-content: flex-start; }
.hero--full .hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(18px, 2.4vw, 30px); width: min(600px, 92%); max-width: none; margin: 0; text-align: start; }
body[dir="ltr"] .hero--full .hero-copy { align-items: flex-start; }
.hero--full .hero-copy > * { opacity: 1 !important; transform: none !important; width: auto !important; max-width: 100% !important; margin: 0 !important; align-self: stretch; }

/* Mobile hero: stack — content on top, 3D scene below (no overlap) */
@media (max-width: 860px) {
  .hero--full { display: flex; flex-direction: column; justify-content: flex-start; min-height: auto; padding: 104px 0 56px; }
  .hero--full .hero-inner { order: 1; display: block; }
  .hero--full .hero-copy { width: 100%; align-items: center; text-align: center; }
  .hero--full .hero-copy > * { align-self: center; }
  .hero--full .hero-cta { justify-content: center !important; }
  .hero--full .hero-bg { order: 2; position: relative; inset: auto; width: 100%; height: min(56vh, 440px); margin-top: 30px; }
  .hero--full .hero-bg::after { display: none; }
  .hero--full .hero-bg canvas,
  body[dir="ltr"] .hero--full .hero-bg canvas { transform: none; }
  .hero--full .hero-badge { order: 3; position: static; margin: 22px auto 0; }
  .hero--full .scroll-hint, .hero--full .marks { display: none; }
}
.hero--full .hero-copy .hero-title { display: block; }
.hero--full .hero-title .word, .hero--full .hero-title .sep { opacity: 1 !important; transform: none !important; }
.hero--full .hero-cta { display: flex; justify-content: flex-start !important; flex-wrap: wrap; }
/* stronger readability scrim on the text side */
.hero--full .hero-bg::after { background: radial-gradient(140% 130% at 100% 45%, rgba(10,6,22,.92) 0%, rgba(10,6,22,.5) 40%, transparent 66%); }
body[dir="ltr"] .hero--full .hero-bg::after { background: radial-gradient(140% 130% at 0% 45%, rgba(10,6,22,.92) 0%, rgba(10,6,22,.5) 40%, transparent 66%); }
@media (max-width: 900px) {
  .hero--full .hero-inner { justify-content: center; }
  .hero--full .hero-copy { width: 100%; text-align: center; }
  .hero--full .hero-cta { justify-content: center; }
  .hero--full .hero-bg::after { background: linear-gradient(to top, rgba(10,6,22,.85) 0%, rgba(10,6,22,.4) 45%, transparent 75%); }
}

/* ============================================================
   FULL-SCREEN MENU OVERLAY (elegant, desktop + mobile)
   ============================================================ */
.mobile-nav {
  position: fixed !important; inset: 0 !important; inset-inline: 0 !important; inset-block: 0 !important;
  width: 100vw !important; height: 100vh; height: 100dvh; max-width: none !important;
  z-index: 110; display: flex !important; flex-direction: column;
  background: none !important; border: none !important; border-radius: 0 !important;
  box-shadow: none !important; backdrop-filter: none !important; padding: 0 !important;
  visibility: hidden; opacity: 0; pointer-events: none; transform: none !important;
  transition: opacity .45s var(--ease), visibility .45s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.mobile-nav a:not(.btn) { background: transparent !important; border-radius: 0 !important; min-height: 0; }

.mobile-nav .menu-bg {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(120% 120% at 12% 6%, #2a1554 0%, #140a2e 45%, #0a0616 100%);
  clip-path: circle(0% at 12% 6%);
  transition: clip-path .8s var(--ease);
}
.mobile-nav.is-open .menu-bg { clip-path: circle(160% at 12% 6%); }
body[dir="ltr"] .mobile-nav .menu-bg { clip-path: circle(0% at 88% 6%); }
body[dir="ltr"] .mobile-nav.is-open .menu-bg { clip-path: circle(160% at 88% 6%); }

.menu-top {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter); flex: none;
}
.menu-top .brand-name { color: #fff; font-weight: 700; font-size: 1.35rem; }
.menu-top .brand-name span { color: var(--p-300); }
.menu-top .brand img { width: 32px; }
.menu-close { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); position: relative; transition: background-color .3s, transform .3s; }
.menu-close:hover { background: rgba(255,255,255,.1); transform: rotate(90deg); }
.menu-close span { position: absolute; inset-inline: 15px; top: calc(50% - 1px); height: 2px; background: #fff; border-radius: 2px; }
.menu-close span:first-child { transform: rotate(45deg); }
.menu-close span:last-child { transform: rotate(-45deg); }

.menu-inner {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(10px, 3vh, 40px) var(--gutter) clamp(28px, 5vh, 56px);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 4vh, 46px);
  flex: 1 0 auto; color: #fff;
}
.menu-eyebrow { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--p-300); opacity: 0; transition: opacity .5s .2s; }
.mobile-nav.is-open .menu-eyebrow { opacity: 1; }

.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  position: relative; display: flex; align-items: center; gap: clamp(14px, 2vw, 26px);
  padding: clamp(10px, 1.7vh, 20px) 4px; border-bottom: 1px solid rgba(255,255,255,.1);
  color: #fff; font-weight: 600; letter-spacing: -.02em; line-height: 1.05;
  font-size: clamp(1.9rem, 5.6vw, 4rem);
  opacity: 0; transform: translateY(34px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), color .3s;
}
.mobile-nav.is-open .menu-links a { opacity: 1; transform: none; }
.mobile-nav.is-open .menu-links a:nth-child(1) { transition-delay: .14s; }
.mobile-nav.is-open .menu-links a:nth-child(2) { transition-delay: .2s; }
.mobile-nav.is-open .menu-links a:nth-child(3) { transition-delay: .26s; }
.mobile-nav.is-open .menu-links a:nth-child(4) { transition-delay: .32s; }
.mobile-nav.is-open .menu-links a:nth-child(5) { transition-delay: .38s; }
.menu-links a .menu-i { font-size: .32em; font-weight: 700; color: var(--p-400); min-width: 2.2em; }
.menu-links a .menu-t { transition: transform .35s var(--ease); }
.menu-links a .menu-ar { margin-inline-start: auto; font-size: .5em; opacity: 0; transform: translateX(12px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
body[dir="rtl"] .menu-links a .menu-ar { transform: translateX(-12px) scaleX(-1); }
.menu-links a:hover { color: var(--p-300); }
.menu-links a:hover .menu-t { transform: translateX(-10px); }
body[dir="rtl"] .menu-links a:hover .menu-t { transform: translateX(10px); }
.menu-links a:hover .menu-ar { opacity: 1; transform: none; }
body[dir="rtl"] .menu-links a:hover .menu-ar { transform: scaleX(-1); }

.menu-foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: clamp(20px, 4vw, 56px);
  padding-top: clamp(18px, 3vh, 32px); border-top: 1px solid rgba(255,255,255,.1);
  opacity: 0; transform: translateY(16px); transition: opacity .5s .42s, transform .5s .42s;
}
.mobile-nav.is-open .menu-foot { opacity: 1; transform: none; }
.menu-col .menu-label { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 10px; }
.menu-col > a { color: #fff; font-size: 1.05rem; transition: color .3s; }
.menu-col > a:hover { color: var(--p-300); }
.menu-social { display: flex; flex-direction: column; gap: 6px; }
.menu-social a { color: rgba(255,255,255,.78); font-size: .95rem; transition: color .3s; }
.menu-social a:hover { color: #fff; }
.menu-actions { display: flex; align-items: center; gap: 12px; }
.menu-actions .lang-toggle { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
.menu-actions .lang-toggle:hover { background: rgba(255,255,255,.18); }

@media (max-width: 640px) {
  .menu-inner { justify-content: flex-start; padding-top: clamp(16px, 4vh, 40px); }
  .menu-foot { flex-direction: column; align-items: stretch; gap: 22px; }
  .menu-actions { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav .menu-bg { transition: none; clip-path: none; }
  .mobile-nav .menu-links a, .mobile-nav .menu-foot, .mobile-nav .menu-eyebrow { transition: none; opacity: 1; transform: none; }
}

/* ============================================================
   BLUEPRINT GRID BG + GRADIENT SECTION DIVIDERS + FAINT SECTION NUMBERS
   ============================================================ */
/* Faint blueprint squares behind everything (shows on all light sections) */
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(91, 22, 196, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 22, 196, .05) 1px, transparent 1px);
  background-size: 62px 62px;
}
/* keep the grid visible on the white footer too */
.footer {
  position: relative;
  background-image:
    linear-gradient(rgba(91, 22, 196, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 22, 196, .05) 1px, transparent 1px);
  background-size: 62px 62px;
}

/* Gradient divider between every section (and before the footer) */
.section + .section::before,
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, .7) 22%, rgba(56, 214, 232, .9) 50%, rgba(139, 92, 246, .7) 78%, transparent 100%);
}

/* Big faint numbering per section (right for odd, left for even) */
.section[data-num]::after {
  content: attr(data-num);
  position: absolute;
  top: 50%;
  inset-inline-end: 3vw;
  transform: translateY(-50%);
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  font-size: clamp(120px, 20vw, 300px);
  color: var(--p-700);
  opacity: .05;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.section[data-num="02"]::after,
.section[data-num="04"]::after,
.section[data-num="06"]::after,
.section[data-num="08"]::after {
  inset-inline-end: auto;
  inset-inline-start: 3vw;
}
/* dark-surface sections: lighten the faint number so it stays visible */
#stats[data-num]::after, #security[data-num]::after { color: #fff; opacity: .04; }
@media (max-width: 640px) {
  .section[data-num]::after { font-size: 42vw; opacity: .045; inset-inline-end: 0; inset-inline-start: auto; }
  body, .footer { background-size: 48px 48px; }
}

/* ============================================================
   SHOWREEL VIDEO PLAYBACK
   ============================================================ */
.showreel .reel-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #0E0B18;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease);
  z-index: 1;
}
.showreel.is-playing .reel-video { opacity: 1; visibility: visible; }
.showreel .reel-canvas,
.showreel .reel-overlay,
.showreel .reel-eyebrow,
.showreel .marks { transition: opacity .35s var(--ease); }
.showreel.is-playing .reel-canvas,
.showreel.is-playing .reel-overlay,
.showreel.is-playing .reel-eyebrow,
.showreel.is-playing .marks { opacity: 0; visibility: hidden; pointer-events: none; }
/* small pause hint while playing */
.showreel .reel-pause { position: absolute; z-index: 3; inset-block-end: 18px; inset-inline-end: 18px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2); color: #fff; display: none; place-items: center; }
.showreel.is-playing .reel-pause { display: grid; }
.showreel .reel-pause svg { width: 16px; height: 16px; }

/* ============================================================
   INTERNAL PAGES (services / sectors / detail / contact)
   Same visual identity as the homepage.
   ============================================================ */
.page-hero { padding-top: clamp(120px, 16vh, 200px); }
.back-link { display:inline-flex; align-items:center; gap:8px; color:var(--ink-soft); font-weight:600; margin-bottom:22px; transition:color .3s var(--ease); }
.back-link:hover { color:var(--p-600); }

/* card grid (service/sector listings) */
.card-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px,1fr)); gap:clamp(16px,2.2vw,28px); }
.card-grid--compact { grid-template-columns:repeat(auto-fill, minmax(220px,1fr)); }
.pcard { position:relative; display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease); }
.pcard:hover { transform:translateY(-6px); box-shadow:var(--shadow); border-color:var(--p-300); }
.pcard-media { position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--bg-2); }
.pcard-media img { width:100%; height:100%; object-fit:cover; transition:transform .8s var(--ease); }
.pcard:hover .pcard-media img { transform:scale(1.06); }
.pcard-media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 55%, rgba(20,16,31,.28)); opacity:0; transition:opacity .5s var(--ease); }
.pcard:hover .pcard-media::after { opacity:1; }
.pcard-emoji { position:absolute; inset-inline-start:12px; inset-block-start:12px; font-size:1.5rem; filter:drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.pcard-body { padding:20px 22px 24px; display:flex; flex-direction:column; gap:10px; flex:1; }
.pcard-num { color:var(--p-400); font-size:.85rem; letter-spacing:.05em; }
.pcard-body h3 { font-size:1.18rem; line-height:1.35; color:var(--ink); }
.pcard-body p { color:var(--ink-soft); font-size:.95rem; line-height:1.7; margin:0; }
.pcard-cta { margin-top:auto; padding-top:6px; color:var(--p-600); font-weight:700; display:inline-flex; gap:4px; }

/* detail hero */
.detail-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(24px,4vw,56px); align-items:center; }
.detail-copy { min-width: 0; }
/* neutralize the stale homepage-grid .hero-cta rule (grid-column:2; margin-top:-20px) that
   otherwise pulls the buttons up into the paragraph on detail-page heroes */
.page-hero .hero-cta { grid-column: auto; margin-top: clamp(28px, 3.4vw, 44px); }
.page-hero .detail-copy .lead { margin-top: 18px; }
.detail-media { border-radius:var(--r-xl); overflow:hidden; box-shadow:var(--shadow); border:1px solid var(--line); aspect-ratio:4/3; }
.detail-media img { width:100%; height:100%; object-fit:cover; }
@media (max-width:860px){ .detail-grid { grid-template-columns:1fr; } .detail-media { order:-1; aspect-ratio:16/10; } }

/* feature / includes grid */
.feature-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); gap:14px; }
.feature-item { display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:16px 18px; box-shadow:var(--shadow-sm); transition:transform .4s var(--ease), border-color .4s var(--ease); color:var(--ink); font-weight:500; }
.feature-item:hover { transform:translateY(-3px); border-color:var(--p-300); }
.fi-check { flex:0 0 auto; width:26px; height:26px; display:grid; place-items:center; border-radius:50%; background:var(--grad-purple-soft); color:#fff; font-size:.8rem; font-weight:700; }

/* contact form */
.contact-grid { display:grid; grid-template-columns:1.4fr .8fr; gap:clamp(24px,3vw,44px); align-items:start; }
@media (max-width:860px){ .contact-grid { grid-template-columns:1fr; } }
.lead-form { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); padding:clamp(22px,3vw,40px); box-shadow:var(--shadow); display:flex; flex-direction:column; gap:16px; }
.lf-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:560px){ .lf-row { grid-template-columns:1fr; } }
.lf-field { display:flex; flex-direction:column; gap:7px; }
.lf-field > span { font-size:.9rem; font-weight:600; color:var(--ink-soft); }
.lf-field input, .lf-field select, .lf-field textarea { font:inherit; color:var(--ink); background:var(--bg-2); border:1px solid var(--line); border-radius:var(--r-sm); padding:13px 15px; outline:none; transition:border-color .3s var(--ease), box-shadow .3s var(--ease); }
.lf-field input:focus, .lf-field select:focus, .lf-field textarea:focus { border-color:var(--p-500); box-shadow:0 0 0 3px rgba(139,92,246,.18); }
.lead-form .btn { align-self:flex-start; margin-top:6px; }
.form-note { border-radius:var(--r-sm); padding:12px 16px; font-weight:600; font-size:.95rem; }
.form-note--success { background:rgba(52,211,153,.14); color:#0f7a53; border:1px solid rgba(52,211,153,.4); }
.form-note--error { background:rgba(239,68,68,.12); color:#b42318; border:1px solid rgba(239,68,68,.35); }
.contact-aside { background:var(--grad-purple); color:#fff; border-radius:var(--r-xl); padding:clamp(22px,3vw,36px); box-shadow:var(--shadow); }
.contact-aside h3 { color:#fff; margin-bottom:18px; }
.ca-item { display:flex; flex-direction:column; gap:2px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.16); }
.ca-item span { font-size:.82rem; opacity:.8; }
.ca-item b { font-size:1.02rem; }
.ca-socials { display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:16px; }
.ca-socials a { color:#fff; opacity:.85; font-size:.9rem; font-weight:600; }
.ca-socials a:hover { opacity:1; text-decoration:underline; }

/* newsletter feedback note */
.nl-note { margin-top: 8px; font-size: .85rem; font-weight: 600; }
.nl-note.is-ok { color: #34D399; }
.nl-note.is-err { color: #fca5a5; }

/* ============================================================
   LEARN / ARTICLES (تعلم معنا)
   ============================================================ */
.wrap--narrow { max-width: 820px; }
.learn-filter { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:30px; }
.chip { display:inline-flex; align-items:center; padding:8px 16px; border-radius:999px; background:var(--surface); border:1px solid var(--line); color:var(--ink-soft); font-weight:600; font-size:.9rem; transition:all .3s var(--ease); }
.chip:hover { border-color:var(--p-300); color:var(--p-600); }
.chip.is-on { background:var(--grad-purple-soft); border-color:transparent; color:#fff; }
.pcard-chip { position:absolute; inset-block-start:12px; inset-inline-start:12px; z-index:2; padding:5px 12px; border-radius:999px; background:rgba(14,11,24,.55); backdrop-filter:blur(6px); color:#fff; font-size:.78rem; font-weight:600; }
.pcard-chip--static { position:static; display:inline-flex; margin-bottom:16px; background:var(--grad-purple-soft); }
.article-meta { display:flex; flex-wrap:wrap; gap:6px; color:var(--ink-faint); font-size:.85rem; font-weight:500; }
.pcard-body .article-meta { margin-bottom:2px; }

.article-head { text-align:center; margin-bottom:28px; }
.article-head .article-meta { justify-content:center; margin-top:14px; }
.article-cover { border-radius:var(--r-xl); overflow:hidden; box-shadow:var(--shadow); border:1px solid var(--line); aspect-ratio:16/8; margin-bottom:36px; }
.article-cover img { width:100%; height:100%; object-fit:cover; }
.article-body { font-size:1.12rem; line-height:2; color:var(--ink-soft); }
.article-body p { margin:0 0 1.3em; }
.article-cta { margin-top:44px; padding:28px 32px; border-radius:var(--r-lg); background:var(--bg-2); border:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.article-cta h3 { color:var(--ink); margin-bottom:4px; }

/* ============================================================
   CHATBOT — مساعد جودفاي
   ============================================================ */
.jbot { position: fixed; inset-block-end: 26px; inset-inline-start: 26px; z-index: 85; }
.jbot-fab { position: relative; width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad-purple); color: #fff; box-shadow: 0 14px 34px rgba(91,22,196,.45), 0 2px 8px rgba(0,0,0,.18);
  display: grid; place-items: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.jbot-fab:hover { transform: translateY(-3px) scale(1.04); }
.jbot-fab .jic { position: absolute; width: 26px; height: 26px; transition: opacity .3s var(--ease), transform .35s var(--ease); }
.jic-x { opacity: 0; transform: rotate(-45deg) scale(.5); }
.jbot.is-open .jic-chat { opacity: 0; transform: rotate(45deg) scale(.5); }
.jbot.is-open .jic-x { opacity: 1; transform: rotate(0) scale(1); }
.jbot-ping { position: absolute; inset-block-start: -3px; inset-inline-end: -3px; width: 14px; height: 14px; border-radius: 50%; background: #34D399; border: 2px solid #fff; }
.jbot-ping::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #34D399; animation: jping 1.8s var(--ease) infinite; }
@keyframes jping { 0% { transform: scale(.6); opacity: .9 } 100% { transform: scale(1.9); opacity: 0 } }

.jbot-win { position: absolute; inset-block-end: 78px; inset-inline-start: 0;
  width: min(384px, calc(100vw - 32px)); height: min(600px, 76vh); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(46,10,94,.28), 0 6px 20px rgba(46,10,94,.14);
  transform: translateY(18px) scale(.96); transform-origin: bottom var(--_o, left); opacity: 0; pointer-events: none;
  transition: opacity .32s var(--ease), transform .32s var(--ease); }
html[dir="rtl"] .jbot-win { transform-origin: bottom right; }
html[dir="ltr"] .jbot-win { transform-origin: bottom left; }
.jbot-win.is-open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }

.jbot-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--grad-purple); color: #fff; }
.jbot-ava { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: 0 0 auto; }
.jbot-ava img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.jbot-id { display: flex; flex-direction: column; line-height: 1.35; flex: 1; }
.jbot-id b { font-size: 1rem; }
.jbot-live { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; opacity: .9; font-style: normal; }
.jbot-live em { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: jdot 1.6s infinite; }
@keyframes jdot { 0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,.5) } 50% { box-shadow: 0 0 0 5px rgba(52,211,153,0) } }
.jbot-x { margin-inline-start: auto; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .3s var(--ease); }
.jbot-x:hover { background: rgba(255,255,255,.28); }
.jbot-x svg { width: 16px; height: 16px; }

.jbot-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, var(--bg-2), var(--surface)); scroll-behavior: smooth; }
.jmsg { max-width: 82%; padding: 11px 15px; font-size: .95rem; line-height: 1.6; border-radius: 18px; white-space: pre-line; animation: jrise .35s var(--ease) both; }
@keyframes jrise { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.jmsg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-start-start-radius: 6px; box-shadow: var(--shadow-sm); }
.jmsg--me { align-self: flex-end; background: var(--grad-purple-soft); color: #fff; border-start-end-radius: 6px; }
.jtyping { display: inline-flex; gap: 4px; align-items: center; }
.jtyping i { width: 7px; height: 7px; border-radius: 50%; background: var(--p-400); animation: jtb 1s infinite; }
.jtyping i:nth-child(2) { animation-delay: .15s } .jtyping i:nth-child(3) { animation-delay: .3s }
@keyframes jtb { 0%,60%,100% { transform: translateY(0); opacity: .5 } 30% { transform: translateY(-4px); opacity: 1 } }

.jbot-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height .3s var(--ease), padding .3s var(--ease); }
.jbot-chips.has { max-height: 220px; padding: 4px 16px 12px; }
.jchip { border: 1px solid var(--p-300); background: var(--surface); color: var(--p-700); font: inherit; font-weight: 600; font-size: .88rem; padding: 9px 14px; border-radius: 999px; cursor: pointer; transition: all .25s var(--ease); }
.jchip:hover { background: var(--grad-purple-soft); border-color: transparent; color: #fff; transform: translateY(-2px); }
.jchip--ghost { border-style: dashed; border-color: var(--line); color: var(--ink-faint); }

.jbot-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.jbot-bar input { flex: 1; font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; outline: none; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.jbot-bar input:focus { border-color: var(--p-500); box-shadow: 0 0 0 3px rgba(139,92,246,.18); }
.jbot-bar input:disabled { opacity: .55; }
.jbot-bar button { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; background: var(--grad-purple); color: #fff; display: grid; place-items: center; transition: transform .3s var(--ease), opacity .3s; }
.jbot-bar button:hover:not(:disabled) { transform: scale(1.08); }
.jbot-bar button:disabled { opacity: .4; cursor: default; }
.jbot-bar button svg { width: 18px; height: 18px; }
html[dir="rtl"] .jbot-bar button svg { transform: scaleX(-1); }

@media (max-width: 520px) {
  .jbot { inset-block-end: 18px; inset-inline-start: 16px; }
  .jbot-win { inset-block-end: 74px; width: calc(100vw - 32px); height: min(74vh, 560px); }
}
@media (prefers-reduced-motion: reduce) { .jbot-ping::after, .jbot-live em, .jtyping i { animation: none; } }

/* ============================================================
   CHATBOT — embedded variant (homepage "live lab" box)
   ============================================================ */
/* wide landscape card: full-width, split into a brand aside + the chat */
.intro-media.has-chat { grid-column: 1 / -1; width: 100%; aspect-ratio: auto; height: clamp(370px, 46vh, 452px); }
.jbot--embed { position: absolute; inset: 0; z-index: 2; display: flex; }
.jbot--embed .jbot-aside { flex: 0 0 40%; max-width: 392px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 14px; border-inline-end: 1px solid rgba(255,255,255,.12); }
.jbot-aside-logo { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.jbot-aside-logo img { width: 27px; height: 27px; filter: brightness(0) invert(1); }
.jbot-aside-title { color: #fff; font-size: 1.4rem; }
.jbot-aside-sub { color: rgba(255,255,255,.72); font-size: .97rem; line-height: 1.8; max-width: 34ch; margin: 0; }
.jbot-aside-live { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.82); font-size: .82rem; font-weight: 600; }
.jbot-aside-live em { width: 8px; height: 8px; border-radius: 50%; background: #34D399; animation: jdot 1.6s infinite; }
.jbot--embed .jbot-win {
  position: static; inset: auto; flex: 1; width: auto; height: 100%;
  border: none; border-radius: 0; box-shadow: none; background: transparent;
  opacity: 1; transform: none; pointer-events: auto; transition: none;
}
.jbot--embed .jbot-head { display: none; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.jbot--embed .jbot-ava { background: rgba(255,255,255,.14); }
.jbot--embed .jbot-log { background: transparent; }
.jbot--embed .jmsg--bot { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.16); color: #EAF2FF; box-shadow: none; }
.jbot--embed .jtyping i { background: var(--p-300); }
.jbot--embed .jchip { background: rgba(255,255,255,.10); border-color: rgba(196,181,253,.45); color: #EAF2FF; }
.jbot--embed .jchip:hover { background: var(--grad-purple-soft); border-color: transparent; color: #fff; }
.jbot--embed .jchip--ghost { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.6); }
.jbot--embed .jbot-bar { background: rgba(255,255,255,.05); border-top-color: rgba(255,255,255,.12); }
.jbot--embed .jbot-bar input { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); color: #fff; }
.jbot--embed .jbot-bar input::placeholder { color: rgba(255,255,255,.5); }
.jbot--embed .jbot-log::-webkit-scrollbar { width: 6px; }
.jbot--embed .jbot-log::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
@media (max-width: 860px) {
  .intro-media.has-chat { grid-column: auto; width: 100%; height: clamp(460px, 72vh, 560px); }
  .jbot--embed { flex-direction: column; }
  .jbot--embed .jbot-aside { display: none; }
  .jbot--embed .jbot-head { display: flex; }
}

/* ============================================================
   LEGAL / POLICY PAGES
   ============================================================ */
.legal-body { color: var(--ink-soft); line-height: 1.95; font-size: 1.02rem; }
.legal-body h3 { color: var(--ink); font-size: 1.22rem; margin: 1.9em 0 .55em; }
.legal-body p { margin: 0 0 1.05em; }
.legal-body ul { margin: 0 0 1.2em; padding-inline-start: 1.4em; display: grid; gap: .45em; }
.legal-body li { list-style: disc; }
.legal-body a { color: var(--p-600); font-weight: 600; }
.legal-body a:hover { text-decoration: underline; }
/* CSS-based bilingual swap for rich (HTML) blocks — driven by <html lang> */
html[lang="en"] [data-only="ar"] { display: none; }
html:not([lang="en"]) [data-only="en"] { display: none; }

/* ============================================================
   FLOATING WHATSAPP + footer socials
   ============================================================ */
.wa-fab { position: fixed; inset-block-end: 26px; inset-inline-end: 26px; z-index: 82;
  width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.42), 0 2px 8px rgba(0,0,0,.15);
  transition: transform .35s var(--ease); }
.wa-fab:hover { transform: translateY(-3px) scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: waping 2.2s var(--ease) infinite; }
@keyframes waping { 0% { transform: scale(1); opacity: .6 } 100% { transform: scale(1.55); opacity: 0 } }
/* stack back-to-top above the WhatsApp button */
.to-top { inset-block-end: 92px; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .wa-ping { animation: none; } }
@media (max-width: 520px) { .wa-fab { width: 50px; height: 50px; inset-inline-end: 16px; } .to-top { inset-block-end: 84px; inset-inline-end: 16px; } }

/* ============================================================
   AUTH + CLIENT DASHBOARD
   ============================================================ */
.auth-card { max-width: 460px; margin-inline: auto; }
.auth-alt { text-align: center; font-size: .92rem; color: var(--ink-soft); margin: 4px 0 0; }
.auth-alt a { color: var(--p-600); font-weight: 700; }
.auth-alt a:hover { text-decoration: underline; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.dash-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.dash-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), border-color .4s var(--ease); }
.dash-item:hover { transform: translateY(-3px); border-color: var(--p-300); }
.dash-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dash-top b { color: var(--ink); font-size: 1.05rem; }
.dash-date { color: var(--ink-faint); font-size: .82rem; white-space: nowrap; }
.dash-item p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 12px; font-size: .95rem; }
.dash-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .82rem; color: var(--ink-soft); }
.dash-src { margin-inline-start: auto; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-weight: 600; }
.dash-empty { padding: 30px 0; }

/* WhatsApp CTA button (in hero + final CTA groups) */
.btn--wa { display: inline-flex; align-items: center; gap: 9px; background: #25D366; color: #fff; border: none; }
.btn--wa:hover { background: #1eb858; transform: translateY(-2px); }
.btn--wa svg { width: 19px; height: 19px; flex: 0 0 auto; }


/* ============================================================
   TYPOGRAPHY SPACING FIX (Arabic-friendly line-heights;
   remove negative letter-spacing that breaks Arabic joining)
   ============================================================ */
.hero-title { line-height: 1.14; }
.h-xl { line-height: 1.22; }
.h-lg { line-height: 1.3; }
.h-md { line-height: 1.35; }
.cta-title { line-height: 1.16; }
.intro-heading { line-height: 1.1; }
.lead { line-height: 1.85; }
.intro-copy p, .step p, .lab p, .cert p, .faq-a-inner, .sm-item, .layer p { line-height: 1.9; }
[dir="rtl"] .hero-title, [dir="rtl"] .h-xl, [dir="rtl"] .h-lg, [dir="rtl"] .h-md,
[dir="rtl"] .cta-title, [dir="rtl"] .intro-heading { letter-spacing: normal; }
.section-head > * + * { margin-top: 14px; }
.step h3, .lab h3, .cert h4, .layer h4 { line-height: 1.35; margin-bottom: 6px; }

/* ============================================================
   CERTIFICATION LOGOS (real badges)
   ============================================================ */
.cert-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.cert-logo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); height: 120px; display: grid; place-items: center; padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.cert-logo:hover { transform: translateY(-4px); border-color: var(--p-300); box-shadow: var(--shadow); }
.cert-logo img { max-width: 100%; max-height: 78px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 520px) { .cert-logos { grid-template-columns: repeat(2, 1fr); } }


/* ============================================================
   HAIFAA-style bold geometric type (Cairo, heavy headings)
   ============================================================ */
.hero-title, .h-xl, .h-lg, .h-md, .cta-title, .intro-heading,
.font-display, .sec-index, .stat-num, .stat-num .count, .team-fact .k, .brand-name {
  font-weight: 800;
}
.hero-title, .cta-title, .intro-heading { font-weight: 900; letter-spacing: normal; }
