/* ===== ADAB Team — Styles ===== */
:root {
  --bg: #0b0a1a;
  --bg-alt: #12112a;
  --surface: #1a1938;
  --text: #eef0ff;
  --muted: #9a9bc4;
  --primary: #4a5cf5;
  --primary-2: #6d7dff;
  --accent: #22c55e;
  --grad: linear-gradient(120deg, #4a5cf5, #6d7dff);
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --max: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Poppins', sans-serif; line-height: 1.15; }

a { color: inherit; text-decoration: none; }

.container { width: min(var(--max), 92%); margin-inline: auto; }

.grad {
  background: linear-gradient(90deg, var(--primary-2), var(--accent), var(--primary-2));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 5s linear infinite;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
  font-size: 0.95rem;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(124, 92, 255, 0.45); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(255, 92, 168, 0.5); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-3px); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-nav { padding: 0.55rem 1.2rem; background: var(--grad); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(13, 11, 31, 0.85);
  backdrop-filter: blur(12px);
  padding: 0.7rem 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; text-transform: lowercase; }
.logo span { font-style: italic; color: var(--primary); }

/* Left menu (desktop) */
.hdr-nav { display: flex; align-items: center; gap: 1.6rem; justify-self: start; }
.hdr-nav a { font-weight: 500; color: var(--muted); transition: color 0.2s; }
.hdr-nav a:hover, .hdr-nav a.active { color: var(--text); }

/* Center logo (image mark + wordmark) */
.hdr-logo { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
/* CSS wordmark (recreated "adab team" logo, no background) */
.logo-cssmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo .lm-adab {
  position: relative;
  font-weight: 900; font-size: 1.9rem; letter-spacing: -1.5px;
  font-style: normal; text-transform: lowercase; color: #fff;
  padding-bottom: 0.55em;
}
.logo .lm-tag { font-style: normal; color: #fff; }
.lm-team {
  position: absolute; left: 42%; top: 0.62em;
  font-style: italic; font-weight: 900; color: var(--primary);
  letter-spacing: -1px;
}
.lm-tag {
  margin-top: 0.15rem;
  font-size: 0.42rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: #fff;
}
.lm-tag b { color: var(--primary); font-weight: 800; }

/* Right actions (desktop) */
.hdr-actions { justify-self: end; display: flex; align-items: center; gap: 1rem; }

/* Mobile slide-out menu (hidden on desktop, shown via media query) */
.nav-links { list-style: none; display: none; align-items: center; gap: 1.4rem; }
.nav-links a { font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.btn-nav { color: #fff; }

.menu-head { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--text); border-radius: 3px; transition: 0.3s; }

/* ===== Hero big headline (full-screen landing) ===== */
.hero-headline {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  text-align: center; margin: 0 auto; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 1rem;
  font-family: 'Poppins', sans-serif; text-transform: uppercase;
  --n: 14; /* letter count, overwritten by JS */
}
/* Light-bloom that swells behind the wordmark as it assembles */
.hero-headline::before {
  content: ""; position: absolute; left: 50%; top: 44%;
  width: min(92vw, 900px); height: min(58vh, 520px);
  transform: translate(-50%, -50%) scale(0.6);
  background: radial-gradient(closest-side, rgba(109,125,255,0.38), rgba(74,92,245,0.12) 46%, transparent 72%);
  filter: blur(34px); opacity: 0; z-index: 0; pointer-events: none;
  animation: hl-bloom 3.4s cubic-bezier(0.2,0.7,0.2,1) both; animation-delay: 0.1s;
}
@keyframes hl-bloom {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(0.5) rotate(-6deg); }
  55%  { opacity: 1; }
  100% { opacity: 0.9; transform: translate(-50%,-50%) scale(1.05) rotate(0deg); }
}
/* Scroll-down hint — fades in once the wordmark is assembled, then bounces forever */
.scroll-hint {
  margin-top: 2.4rem; width: 30px; height: 30px; opacity: 0; z-index: 1;
  color: var(--primary-2);
}
.hero-headline.go .scroll-hint {
  animation: hintBounce 1.8s ease-in-out infinite, hl-hintin 0.9s ease both;
  animation-delay: 0s, 0.55s;
}
@keyframes hintBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes hl-hintin { from { opacity: 0; } to { opacity: 0.7; } }

/* ===== Center letter-flash: each letter of the wordmark pops in the middle, one by one ===== */
.hl-flash {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  font-family: 'Poppins', sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: clamp(4.5rem, 22vw, 15rem); line-height: 1; color: var(--text);
  z-index: 4; pointer-events: none; opacity: 0;
  text-shadow: 0 0 40px rgba(109,125,255,0.7);
  will-change: transform, opacity, filter;
}
.hl-flash.pop { animation: hl-flashpop 0.34s cubic-bezier(0.2,0.8,0.3,1); }
@keyframes hl-flashpop {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(1.7); filter: blur(14px) brightness(2.2); }
  45%  { opacity: 1; filter: blur(0) brightness(1.2); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); filter: none; }
}
.hl-flash.out { opacity: 0; transition: opacity 0.35s ease, transform 0.35s ease; transform: translate(-50%,-50%) scale(0.6); }

/* Scattered social-media icons filling the loading backdrop */
.hl-bg-icons {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  transition: opacity 0.8s ease;
}
.hl-bg-icons.out { opacity: 0; }
.hl-bg-ico {
  position: absolute; color: var(--primary-2);
  opacity: 0; /* faded in by JS-set custom prop via animation */
  animation: hl-ico-in 0.6s ease forwards, hl-ico-float var(--dur, 7s) ease-in-out infinite;
  will-change: transform, opacity;
}
.hl-bg-ico svg { width: 100%; height: 100%; display: block; }
@keyframes hl-ico-in { to { opacity: var(--op, 0.12); } }
@keyframes hl-ico-float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-14px) rotate(calc(var(--rot, 0deg) + 6deg)); }
}
@media (prefers-reduced-motion: reduce) { .hl-bg-icons { display: none; } }

.hl-brand {
  position: relative; z-index: 1;
  font-size: clamp(2.4rem, 8.5vw, 6.5rem); font-weight: 800;
  letter-spacing: -1.5px; line-height: 0.92;
}
/* Hide the raw wordmark until JS splits it (kept visible with no-JS / reduced motion) */
html.js-hero .hl-brand { opacity: 0; }
html.js-hero .hl-brand.lit { opacity: 1; }
/* Whole wordmark gently breathes once assembled */
.hl-brand.lit { animation: hl-breathe 6s ease-in-out infinite; animation-delay: 1.6s; }
@keyframes hl-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.012); } }
/* A light beam sweeps across the word right after it assembles */
.hl-brand.lit::after {
  content: ""; position: absolute; top: -12%; bottom: -12%; left: -35%; width: 26%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-16deg); filter: blur(7px); mix-blend-mode: screen;
  opacity: 0; pointer-events: none; z-index: 3;
  animation: hl-beam 1.8s cubic-bezier(0.3,0.5,0.2,1) both;
  animation-delay: 0.7s;
}
@keyframes hl-beam {
  0%   { left: -35%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 125%; opacity: 0; }
}
.hl-word { display: inline-block; position: relative; white-space: nowrap; }
/* Letters are hidden until the brand "assembles" after the flash sequence */
.hl-ch {
  display: inline-block; opacity: 0; transform-origin: 50% 100%;
  will-change: transform, filter, opacity; backface-visibility: hidden;
}
.hl-brand.assemble .hl-ch {
  animation:
    hl-assemble 0.55s cubic-bezier(0.16,0.85,0.3,1) both,
    hl-shine 6.5s ease-in-out infinite;
  animation-delay: calc(var(--ci) * 0.04s), calc(1.3s + var(--ci) * 0.05s);
}
/* Assemble: each letter drops into place out of a soft blur (quick, staggered) */
@keyframes hl-assemble {
  0%   { opacity: 0; transform: translateY(0.45em) scale(0.7); filter: blur(9px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
/* Ambient shimmer that keeps sweeping across the letters after they land */
@keyframes hl-shine {
  0%, 13%, 100% { filter: none; }
  6%  { filter: brightness(1.95) drop-shadow(0 0 18px var(--primary-2)); }
}
/* GLOBAL letters share one continuous gradient (seam-aligned in JS) */
.hl-ch--grad {
  background-image: var(--grad); background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hl-pillars {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.4rem 0.9rem; font-size: clamp(0.85rem, 2.1vw, 1.55rem);
  font-weight: 700; letter-spacing: 0.5px; opacity: 0;
}
.hero-headline.go .hl-pillars {
  animation: hl-rise 1s cubic-bezier(0.2,0.7,0.2,1) both; animation-delay: 0.35s;
}
@keyframes hl-rise { from { opacity: 0; transform: translateY(26px); letter-spacing: 4px; } to { opacity: 1; transform: none; letter-spacing: 0.5px; } }
.hl-pillars > span { color: var(--text); }
.hl-pillars > i { color: var(--primary); font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  html.js-hero .hl-brand { opacity: 1; }
  .hero-headline::before, .scroll-hint, .hl-ch, .hl-pillars, .hl-brand.lit {
    animation: none; opacity: 1;
  }
  .hl-brand.lit::after { display: none; }
  .hl-flash { display: none; }
  .scroll-hint { opacity: 0.7; }
}

/* ===== Full-screen intro: charge the wordmark alone, then reveal the page ===== */
html.intro-active, html.intro-active body { overflow: hidden !important; }
/* Curtain everything behind the wordmark while the intro plays */
.site-header, .contact-fab {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.7,0.2,1);
}
html.intro-active .site-header {
  opacity: 0; transform: translateY(-110%); pointer-events: none;
}
html.intro-active .contact-fab {
  opacity: 0; transform: translateY(40px) scale(0.6); pointer-events: none;
}
/* Keep the hero as a clean, edge-to-edge stage during the intro */
html.intro-active .hero-video { opacity: 0; }
.hero-video { transition: opacity 0.9s ease 0.15s; }

/* ===== Hero video — cinematic full-screen "ambient mode" theater ===== */
.hero-video {
  position: relative; padding: 0;
  width: 100vw; max-width: 100vw;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); margin-bottom: 1.5rem;
}

/* The theater box: full viewport, crops the ambient light + holds the clip.
   Themed indigo glow (not pure black) so it reads as part of the page. */
.cine {
  position: relative; display: grid; place-items: center;
  width: 100%; height: 100vh; height: 100svh;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 90% 70% at 50% 46%, #1b1840 0%, var(--bg) 70%);
}

/* Oversized, blurred, saturated copy of the clip = ambient glow.
   Pulled toward the brand hue so its colour matches the theme. */
.cine-ambient {
  position: absolute; z-index: 0; top: 50%; left: 50%;
  width: 135%; height: 135%; object-fit: cover;
  transform: translate(-50%, -50%);
  filter: blur(70px) saturate(1.5) brightness(0.62) hue-rotate(-12deg);
  opacity: 0.8; animation: ambientDrift 22s ease-in-out infinite alternate;
}
/* Brand-tinted wash over the ambient so the whole theater sits in the palette */
.cine-ambient + .cine-vignette::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(74,92,245,0.22), transparent 62%);
  mix-blend-mode: screen;
}
/* Vignette + a dégradé on every edge that melts the theater into the page —
   top, bottom and both sides fade fully into --bg so the section has no borders. */
.cine-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(11,10,26,0.6) 82%),
    linear-gradient(var(--bg), transparent 26%, transparent 74%, var(--bg)),
    linear-gradient(90deg, var(--bg), transparent 18%, transparent 82%, var(--bg));
}

/* Giant proof-word marquee drifting behind the clip */
.cine-marquee {
  position: absolute; z-index: 1; top: 50%; left: 0; transform: translateY(-50%);
  display: flex; white-space: nowrap; pointer-events: none;
  font-family: 'Poppins', sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(3rem, 11vw, 9rem); letter-spacing: -2px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.09);
  animation: marquee 30s linear infinite;
}
.cine-marquee span { padding-right: 0.3em; }

/* Crisp centre clip — no spinning ring; a soft themed glow blends it into the page */
.cine-frame {
  position: relative; z-index: 2; cursor: pointer;
  height: min(84vh, 780px); aspect-ratio: 9 / 16;
  padding: 0; border-radius: 1.6rem;
  animation: cineFloat 7s ease-in-out infinite;
}
/* diffuse brand-coloured halo so the clip melts into the ambient background */
.cine-frame::after {
  content: ""; position: absolute; inset: -30px; z-index: -2; border-radius: 2.4rem;
  background: radial-gradient(ellipse at center, rgba(74,92,245,0.35), transparent 68%);
  filter: blur(30px); opacity: 0.7;
}
.cine-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 1.45rem; overflow: hidden; background: transparent;
}
/* Barber-fade: feather the clip's edges so they dissolve into the ambient
   background instead of ending on a hard border. */
.cine-screen video {
  -webkit-mask: radial-gradient(ellipse 82% 82% at 50% 50%, #000 46%, transparent 88%);
          mask: radial-gradient(ellipse 82% 82% at 50% 50%, #000 46%, transparent 88%);
}
.cine-screen video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Mute / unmute indicator */
.phone-sound {
  position: absolute; z-index: 3; bottom: 0.9rem; right: 0.9rem;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  font-size: 1.1rem; border-radius: 50%;
  background: rgba(5,4,14,0.6); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.16);
  transition: transform 0.2s ease, background 0.2s ease;
}
.cine-frame:hover .phone-sound { transform: scale(1.1); }
.cine-frame.is-unmuted .phone-sound { background: var(--grad); border-color: transparent; }

@keyframes ambientDrift {
  0%   { transform: translate(-50%, -50%) scale(1)    rotate(0deg); }
  100% { transform: translate(-50%, -50%) scale(1.15) rotate(4deg); }
}
@keyframes marquee {
  0%   { transform: translate(0, -50%); }
  100% { transform: translate(-50%, -50%); }
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes cineFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .cine-ambient, .cine-marquee, .cine-frame, .cine-frame::before,
  .cine-frame::after { animation: none; }
}

@media (max-width: 720px) {
  .cine { height: 100vh; height: 100svh; }
  .cine-frame { height: min(78vh, 620px); }
  /* Tighten the landing wordmark so it isn't marooned in empty space */
  .hero-headline { min-height: 70svh; gap: 0.6rem; }
  .scroll-hint { margin-top: 1.4rem; }
  /* Hide the green aurora glow that reads as a separator band between the
     hero video and the next section on narrow/stacked mobile layouts. */
  .hero::after { display: none; }
}

/* ===== Hero ===== */
.hero { padding: 0 0 2rem; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -20%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,0.35), transparent 70%);
  filter: blur(20px); z-index: -1;
  animation: aurora-a 14s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; bottom: -25%; left: -12%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.22), transparent 70%);
  filter: blur(26px); z-index: -1;
  animation: aurora-b 16s ease-in-out infinite alternate;
}
@keyframes aurora-a {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-60px,50px) scale(1.15); }
}
@keyframes aurora-b {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(70px,-40px) scale(1.1); }
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero-text h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 1.2rem; }
.hero-text p { color: var(--muted); font-size: 1.1rem; max-width: 500px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: 'Poppins'; font-size: 2rem; font-weight: 700; }
.hero-stats span { color: var(--muted); font-size: 0.85rem; }

.hero-visual { position: relative; height: 420px; display: grid; place-items: center; }

/* ===== Animated ADAB logo badge ===== */
.hero-badge {
  position: relative; width: min(340px, 78vw); aspect-ratio: 1;
  display: grid; place-items: center;
  transition: transform 0.3s ease;
}
.badge-glow {
  position: absolute; inset: -8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(109,125,255,0.55), rgba(74,92,245,0.15) 45%, transparent 70%);
  filter: blur(18px); animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%,100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 1; }
}
.badge-ring {
  position: absolute; border-radius: 50%; inset: 0;
  border: 2px solid transparent;
}
.badge-ring.ring-1 {
  background: conic-gradient(from 0deg, transparent, var(--primary-2), transparent 40%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 9s linear infinite;
}
.badge-ring.ring-2 {
  inset: 11%;
  background: conic-gradient(from 180deg, transparent, var(--accent), transparent 35%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 7s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.badge-orbit { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.orbit-dot {
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; margin: -22px; display: grid; place-items: center;
  font-size: 1.25rem; border-radius: 50%; font-style: normal;
  background: rgba(28,24,64,0.92); border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow); animation: spin 18s linear infinite reverse;
}
/* corners of the orbit — the ring spins them around, counter-spin keeps them upright */
.orbit-dot.dot-1 { left: 50%; top: 2%; margin: 0 0 0 -22px; }
.orbit-dot.dot-2 { right: 2%; top: 50%; left: auto; margin: -22px 0 0 0; }
.orbit-dot.dot-3 { left: 50%; bottom: 2%; top: auto; margin: 0 0 0 -22px; }
.orbit-dot.dot-4 { left: 2%; top: 50%; margin: -22px 0 0 0; }

.badge-core {
  position: relative; z-index: 3; width: 62%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center; gap: 0.3rem;
  background: radial-gradient(circle at 30% 25%, #211f4d, #12112a 75%);
  border: 1px solid rgba(255,255,255,0.1); box-shadow: inset 0 0 40px rgba(109,125,255,0.25), var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.badge-logo {
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1; letter-spacing: -0.5px;
  background: linear-gradient(90deg, #fff, var(--primary-2), #fff); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}
.badge-logo span { font-style: italic; }
.badge-sub {
  display: block; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); max-width: 80%; margin: 0.4rem auto 0;
}
@keyframes shine { to { background-position: 200% center; } }

.floating-card {
  position: absolute; background: rgba(28,24,64,0.9); backdrop-filter: blur(8px);
  padding: 0.8rem 1.2rem; border-radius: 14px; font-weight: 600; font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.1); box-shadow: var(--shadow); z-index: 4;
}
.card-1 { top: 2%; left: -4%; animation: float 4s ease-in-out infinite; }
.card-2 { top: 42%; right: -8%; animation: float 5s ease-in-out infinite; }
.card-3 { bottom: 2%; left: 4%; animation: float 4.5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ===== Sections ===== */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.8rem; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Service cards ===== */
.service-card {
  background: var(--surface); padding: 2rem; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06); transition: transform 0.3s, border-color 0.3s;
}
.service-card {
  position: relative; overflow: hidden;
}
.service-card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 0%), rgba(109,125,255,0.18), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: var(--shadow); }
.service-card:hover::after { opacity: 1; }
.service-card .icon {
  font-size: 2.2rem; margin-bottom: 1rem; display: inline-block;
  transition: transform 0.3s;
}
.service-card:hover .icon { animation: wobble 0.8s ease; }
@keyframes wobble {
  0%,100% { transform: rotate(0) scale(1); }
  30% { transform: rotate(-10deg) scale(1.15); }
  60% { transform: rotate(8deg) scale(1.1); }
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.95rem; }
.proof-link {
  margin-top: 1rem; padding: 0; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 0.35rem; transition: gap 0.2s, opacity 0.2s;
}
.proof-link:hover { gap: 0.6rem; opacity: 0.85; }

/* ===== Proof modal ===== */
.proof-modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 1.5rem;
  background: rgba(6,5,15,0.94); backdrop-filter: blur(6px);
}
.proof-modal.open { display: flex; }
.proof-box {
  position: relative; width: 100%; max-width: 480px;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center;
}
.proof-close {
  position: absolute; top: 0.8rem; right: 0.9rem; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06);
  color: var(--text); font-size: 1.3rem; cursor: pointer; line-height: 1; transition: background 0.2s;
}
.proof-close:hover { background: var(--primary); }
.proof-title { font-size: 1.15rem; margin: 0 2rem 1rem; text-align: center; }
.proof-tabs {
  display: inline-flex; gap: 0.4rem; padding: 0.3rem; margin-bottom: 1.2rem;
  background: var(--bg); border-radius: 999px; border: 1px solid rgba(255,255,255,0.08);
}
.proof-tab {
  padding: 0.45rem 1.4rem; border: none; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--muted);
  background: none; transition: color 0.2s, background 0.2s;
}
.proof-tab.active { color: #fff; background: var(--grad); }
.proof-stage {
  position: relative; width: 100%; display: flex; align-items: center; justify-content: center;
}
.proof-img-wrap {
  display: flex; align-items: center; justify-content: center;
  max-height: 62vh; width: 100%;
}
.proof-img-wrap img { max-width: 100%; max-height: 62vh; border-radius: 12px; }
.proof-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.proof-nav:hover { background: var(--primary); }
.proof-nav[hidden] { display: none; }
.proof-prev { left: -8px; } .proof-next { right: -8px; }
.proof-counter { margin-top: 0.9rem; color: var(--muted); font-size: 0.85rem; min-height: 1rem; }

/* ===== About ===== */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.about-text p { color: var(--muted); margin-bottom: 1.5rem; }
.check-list { list-style: none; margin-bottom: 2rem; }
.check-list li { padding-left: 1.8rem; position: relative; margin-bottom: 0.7rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.about-visual { display: flex; justify-content: center; }
.stat-badge {
  background: var(--grad); padding: 3rem; border-radius: 30px; text-align: center;
  box-shadow: var(--shadow); transform: rotate(-3deg); transition: transform 0.3s;
}
.stat-badge:hover { transform: rotate(0); }
.stat-badge strong { display: block; font-family: 'Poppins'; font-size: 3.5rem; font-weight: 800; }
.stat-badge span { font-weight: 500; }

/* ===== CTA ===== */
.cta { padding: 5rem 0; background: var(--bg-alt); text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.8rem; }
.cta p { color: var(--muted); margin-bottom: 2rem; }

/* ===== Page hero (subpages) ===== */
.page-hero { padding: 10rem 0 3rem; text-align: center; position: relative; }
.page-hero::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 500px; height: 400px;
  background: radial-gradient(circle, rgba(74,92,245,0.28), transparent 70%);
  filter: blur(20px); z-index: -1;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.page-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 1.1rem; }

/* ===== Case gallery (success stories) ===== */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.case-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06); transition: transform 0.3s, border-color 0.3s;
  cursor: pointer; display: flex; flex-direction: column; text-align: left;
  padding: 0; color: inherit; font: inherit;
}
.case-card:hover { transform: translateY(-6px); border-color: var(--primary); }
.case-cover { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.case-card:hover .case-cover img { transform: scale(1.05); }
.case-count {
  position: absolute; bottom: 0.8rem; right: 0.8rem; background: rgba(11,10,26,0.8);
  backdrop-filter: blur(6px); padding: 0.35rem 0.8rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem;
}
.case-tag {
  position: absolute; top: 0.8rem; left: 0.8rem; background: var(--grad); color: #fff;
  padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
}
.case-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.case-body h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.case-body .handle { color: var(--primary-2); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.6rem; }
.case-body p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.9rem; }
.case-view { margin-top: auto; color: var(--text); font-size: 0.85rem; font-weight: 600; }
.case-view::after { content: " →"; color: var(--primary); }
.section-sub { color: var(--muted); margin-top: 0.6rem; }

/* ===== Case filters ===== */
.case-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.55rem 1.2rem; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--muted); font-weight: 600; font-size: 0.9rem;
  font-family: 'Poppins', sans-serif; border: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--primary); transform: translateY(-2px); }
.filter-btn.active { background: var(--grad); color: #fff; border-color: transparent; }
.cases-empty { text-align: center; color: var(--muted); margin-top: 2rem; }

/* ===== Cases carousel (home page) ===== */
.case-belt-wrap { position: relative; display: flex; align-items: center; gap: 0.4rem; }
.cases-belt {
  display: flex; grid-template-columns: none; gap: 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 1rem;
  padding: 0.5rem 0.25rem 1.5rem; flex: 1; min-width: 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cases-belt::-webkit-scrollbar { display: none; }
.cases-belt .case-card {
  flex: 0 0 300px; max-width: 300px; scroll-snap-align: center;
}
.case-belt-wrap .cf-nav { align-self: center; }
@media (max-width: 700px) {
  .cases-belt .case-card { flex-basis: 78vw; max-width: 78vw; }
  .case-belt-wrap .cf-nav { display: none; }
}

/* Case status badge + platform label */
.case-status {
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2;
  padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  color: #fff; backdrop-filter: blur(6px);
}
.status-resolved { background: rgba(34,197,94,0.85); }
.status-restored { background: rgba(74,92,245,0.85); }
.status-secured  { background: rgba(168,85,247,0.85); }
.case-platform { color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.35rem; }

/* ===== Insights (blog) ===== */
.insight-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06); transition: transform 0.3s, border-color 0.3s;
  display: flex; flex-direction: column; padding: 1.8rem;
}
.insight-card:hover { transform: translateY(-8px); border-color: var(--primary); }
.insight-tag { align-self: flex-start; background: var(--grad); color: #fff; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; margin-bottom: 1rem; }
.insight-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.insight-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; }
.insight-more { margin-top: auto; color: var(--text); font-size: 0.85rem; font-weight: 600; }
.insight-more::after { content: " →"; color: var(--primary); }

/* ===== Why choose us ===== */
.why-grid { text-align: center; }
.why-item p { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; }
.why-ring {
  display: inline-flex; align-items: center; justify-content: center;
  width: 130px; height: 130px; border-radius: 50%;
  border: 6px solid var(--primary); color: var(--text);
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.6rem;
  box-shadow: 0 0 0 6px rgba(74,92,245,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.why-item:hover .why-ring {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 0 6px rgba(74,92,245,0.12), 0 0 34px rgba(109,125,255,0.55);
}
.why-item .why-ring { animation: ring-pulse 3.5s ease-in-out infinite; }
.why-grid > .why-item:nth-child(2) .why-ring { animation-delay: 0.5s; }
.why-grid > .why-item:nth-child(3) .why-ring { animation-delay: 1s; }
.why-grid > .why-item:nth-child(4) .why-ring { animation-delay: 1.5s; }
@keyframes ring-pulse {
  0%,100% { box-shadow: 0 0 0 6px rgba(74,92,245,0.12), 0 0 0 rgba(109,125,255,0); }
  50% { box-shadow: 0 0 0 6px rgba(74,92,245,0.12), 0 0 26px rgba(109,125,255,0.45); }
}

/* ===== Mission & Vision ===== */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mv-card { border-radius: var(--radius); padding: 2.5rem; text-align: center; }
.mv-card .mv-icon { font-size: 2rem; display: block; margin-bottom: 0.8rem; }
.mv-card h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.mv-mission { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.mv-mission p { color: rgba(255,255,255,0.9); }
.mv-vision { background: var(--surface); border: 1px solid rgba(255,255,255,0.08); }
.mv-vision h3, .mv-vision .mv-icon { color: var(--primary-2); }
.mv-vision p { color: var(--muted); }
@media (max-width: 640px) { .mv-grid { grid-template-columns: 1fr; } }

/* ===== Values ===== */
.value-card {
  background: var(--surface); padding: 2rem; border-radius: var(--radius); text-align: center;
  border: 1px solid rgba(255,255,255,0.06); transition: transform 0.3s, border-color 0.3s;
}
.value-card:hover { transform: translateY(-6px); border-color: var(--primary); }
.value-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.value-card p { color: var(--muted); font-size: 0.95rem; }

/* ===== Trademark card ===== */
.trademark {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center;
  max-width: 760px; margin: 0 auto; background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 2rem;
}
.trademark .tm-badge {
  width: 84px; height: 84px; border-radius: 50%; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: 'Poppins';
  font-weight: 800; font-size: 1.5rem; box-shadow: var(--shadow);
}
.trademark h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.trademark dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; font-size: 0.9rem; }
.trademark dt { color: var(--muted); }
.trademark dd { color: var(--text); font-weight: 600; }
@media (max-width: 560px) { .trademark { grid-template-columns: 1fr; text-align: center; } .trademark dl { text-align: left; } }

/* Footer legal line */
.footer-legal { color: var(--muted); font-size: 0.78rem; margin-top: 0.4rem; opacity: 0.8; }

/* ===== Article reader ===== */
.reader {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(6,5,15,0.9); backdrop-filter: blur(6px);
  align-items: flex-start; justify-content: center; overflow-y: auto; padding: 5vh 1rem;
}
.reader.open { display: flex; }
.reader-panel {
  position: relative; width: min(720px, 100%); background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  padding: 2.5rem; box-shadow: var(--shadow);
}
.reader-panel h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0.6rem 0 1.2rem; }
.reader-body p { color: var(--muted); margin-bottom: 1.1rem; }
.reader-body p:last-child { margin-bottom: 0; }
.reader-close {
  position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border-radius: 12px;
  background: transparent; border: 1px solid rgba(255,255,255,0.18); color: var(--text);
  font-size: 1.5rem; line-height: 1; cursor: pointer; transition: border-color 0.2s;
}
.reader-close:hover { border-color: var(--primary); }
@media (max-width: 640px) { .reader-panel { padding: 1.8rem 1.3rem; } }

/* ===== ADAB Network ===== */
.network-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; max-width: 780px; margin: 0 auto; }
.network-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.6rem;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s;
}
.network-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.network-card .icon { font-size: 1.6rem; }
.network-card strong { display: block; font-family: 'Poppins'; font-size: 1rem; }
.network-card span { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 640px) { .network-grid { grid-template-columns: 1fr; } }

/* ===== Wall of love (client reviews) ===== */
.wall { columns: 4 220px; column-gap: 1.1rem; }

/* ===== Feedback coverflow (true 3D cover-flow, scroll to move) ===== */
.coverflow {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem 0;
}
.cf-stage {
  position: relative; width: 100%; height: 560px;
  outline: none; overflow: hidden;
  perspective: 1500px; perspective-origin: 50% 48%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
/* Each card is a little phone; sized by HEIGHT so tall screenshots always fit */
.cf-item {
  position: absolute; top: 50%; left: 50%;
  height: 500px; aspect-ratio: 300 / 620; width: auto;
  margin: 0; padding: 8px;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 32px;
  background: linear-gradient(160deg, #2a2850, #0d0c22 62%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.04);
  overflow: hidden; cursor: pointer;
  font: inherit; text-align: left; color: inherit;
  transform-style: preserve-3d; transform-origin: center;
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--off) * 250px))
    translateZ(calc(-170px * var(--aoff, 0)))
    rotateY(calc(var(--off) * -30deg))
    scale(0.9);
  opacity: 0.5; filter: brightness(0.6) saturate(0.85);
  transition: transform 0.55s cubic-bezier(0.22,0.61,0.36,1), opacity 0.5s ease, filter 0.5s ease, border-color 0.35s ease, box-shadow 0.45s ease;
}
.cf-item img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: top center;
  border-radius: 24px; background: #000;
}
/* Dynamic-island pill so it reads as a real phone */
.cf-item::before {
  content: ""; position: absolute; z-index: 3; top: 15px; left: 50%;
  transform: translateX(-50%); width: 28%; height: 12px;
  background: #05040e; border-radius: 999px;
}
/* Glass sheen on the inactive/side cards */
.cf-item::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border-radius: 24px;
  background: linear-gradient(115deg, rgba(255,255,255,0.16), transparent 55%);
  opacity: 0.5; transition: opacity 0.5s ease;
}
.cf-item.is-active {
  opacity: 1; filter: none; cursor: zoom-in;
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 45px 100px -30px rgba(0,0,0,0.8), 0 0 0 1.5px var(--primary);
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--off) * 250px))
    translateZ(80px)
    rotateY(0deg)
    scale(1.04);
  z-index: 100;
}
.cf-item.is-active::after { opacity: 0; }
.cf-item.is-active:hover {
  transform: translate(-50%, -50%) translateZ(100px) rotateY(0deg) scale(1.07);
}
.cf-item .review-handle {
  position: absolute; z-index: 3; left: 8px; right: 8px; bottom: 8px;
  padding: 2rem 1rem 0.9rem; font-size: 0.85rem; font-weight: 600; color: #fff;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(to top, rgba(5,4,14,0.95), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease;
}
.cf-item.is-active .review-handle { opacity: 1; transform: translateY(0); }

.cf-nav {
  flex: 0 0 auto; z-index: 200; width: 48px; height: 48px; margin: 0 0.4rem;
  display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.14);
  background: var(--surface); color: #fff; font-size: 1.7rem; line-height: 1;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.cf-nav:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.08); }

/* ===== Video feedbacks — cinematic film reel ===== */
.vfb-head { margin-top: 3.5rem; }
.vfb-reel {
  position: relative; margin: 0 -1.5rem; padding: 3rem 0;
  overflow-x: auto; overflow-y: hidden; perspective: 1600px;
  cursor: grab; scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  /* film-strip sprocket edges top & bottom */
  background:
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(255,255,255,0.06) 26px 44px) top / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(255,255,255,0.06) 26px 44px) bottom / 100% 14px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 20%, transparent 80%, rgba(255,255,255,0.02));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.vfb-reel::-webkit-scrollbar { display: none; }
.vfb-reel.is-grabbing { cursor: grabbing; }
.vfb-track {
  display: flex; gap: 1.4rem; width: max-content; padding: 0 1.4rem;
  transform-style: preserve-3d;
}
.vfb-card { scroll-snap-align: center; }

.vfb-card {
  position: relative; flex: 0 0 auto; width: 210px; aspect-ratio: 9 / 16;
  margin: 0; padding: 0; cursor: pointer; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
  background: var(--surface); color: inherit; font: inherit;
  transform: rotateY(18deg) scale(0.9); transform-origin: center;
  box-shadow: 0 20px 45px rgba(0,0,0,0.45);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), box-shadow 0.5s ease, border-color 0.4s ease;
}
.vfb-card:nth-child(even) { transform: rotateY(-18deg) scale(0.9); }
.vfb-card img, .vfb-preview {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; pointer-events: none;
}
.vfb-preview { z-index: 1; opacity: 0; transition: opacity 0.4s ease; }
.vfb-card:hover .vfb-preview { opacity: 1; }
/* moving light sweep */
.vfb-sheen {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.28) 48%, transparent 62%);
  transform: translateX(-120%); transition: opacity 0.3s ease;
}
.vfb-card:hover .vfb-sheen { opacity: 1; animation: vfbSheen 0.9s ease forwards; }
@keyframes vfbSheen { to { transform: translateX(120%); } }

.vfb-card:hover {
  transform: rotateY(0deg) scale(1.12) translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 30px 70px rgba(74,92,245,0.5), 0 0 0 1px rgba(109,125,255,0.6);
  z-index: 5;
}
.vfb-play {
  position: absolute; top: 50%; left: 50%; z-index: 3; transform: translate(-50%, -50%);
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(74,92,245,0.85); color: #fff;
  font-size: 1.35rem; padding-left: 4px; backdrop-filter: blur(2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}
.vfb-card:hover .vfb-play { transform: translate(-50%, -50%) scale(1.15); background: var(--primary); }
.vfb-multi {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 3;
  padding: 0.22rem 0.6rem; border-radius: 999px;
  background: rgba(11,10,26,0.82); color: #fff; font-size: 0.68rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(3px);
}

/* Player modal */
.vfb-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem; background: rgba(6,5,16,0.92); backdrop-filter: blur(6px);
}
.vfb-modal[hidden] { display: none; }
.vfb-player { position: relative; display: flex; flex-direction: column; align-items: center; }
.vfb-player video {
  max-height: 82vh; max-width: min(92vw, 460px);
  border-radius: var(--radius); background: #000; box-shadow: var(--shadow);
}
.vfb-part {
  margin-top: 0.7rem; padding: 0.3rem 0.9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.14);
  color: var(--text); font-size: 0.82rem; font-weight: 600;
}
.vfb-nav, .vfb-close {
  flex: 0 0 auto; cursor: pointer; color: #fff;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08); display: grid; place-items: center;
  transition: background 0.25s ease, transform 0.2s ease, opacity 0.2s ease;
}
.vfb-nav { width: 52px; height: 52px; font-size: 1.9rem; line-height: 1; }
.vfb-nav:hover:not(:disabled), .vfb-close:hover { background: var(--primary); transform: scale(1.08); }
.vfb-nav:disabled { opacity: 0.3; cursor: default; }
.vfb-close {
  position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; font-size: 1.6rem;
}
@media (max-width: 640px) {
  .vfb-reel { margin: 0 -1rem; padding: 2rem 0; }
  .vfb-card { width: 155px; }
  .vfb-card, .vfb-card:nth-child(even) { transform: rotateY(0deg) scale(1); }
  .vfb-nav { position: absolute; bottom: 1.2rem; width: 46px; height: 46px; }
  .vfb-prev { left: 1rem; } .vfb-next { right: 1rem; }
}

.review-card {
  display: block; width: 100%; margin: 0 0 1.1rem; padding: 0;
  border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; cursor: pointer; position: relative;
  break-inside: avoid; -webkit-column-break-inside: avoid;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  font: inherit; text-align: left; color: inherit;
}
.review-card img { width: 100%; display: block; transition: transform 0.5s ease; }
.review-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow); }
.review-card:hover img { transform: scale(1.04); }
.review-handle {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.9rem 0.7rem; font-size: 0.82rem; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(11,10,26,0.92), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.35s ease;
}
.review-card:hover .review-handle { opacity: 1; transform: none; }

/* ===== Worldwide ===== */
.flag-marquee {
  overflow: hidden; margin: 2.5rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.flag-track { display: flex; gap: 1.6rem; width: max-content; animation: flag-scroll 40s linear infinite; }
.flag-track span { font-size: 2.6rem; line-height: 1; }
.flag-marquee:hover .flag-track { animation-play-state: paused; }
@keyframes flag-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.world-stats { max-width: 760px; margin: 0 auto; }
.lang-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 2.5rem; }
.lang-chips span {
  padding: 0.55rem 1.1rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 999px;
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.95rem;
}
@media (prefers-reduced-motion: reduce) { .flag-track { animation: none; } }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(6,5,15,0.94); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img-wrap { max-width: 92vw; max-height: 80vh; display: flex; align-items: center; justify-content: center; }
.lb-img-wrap img { max-width: 100%; max-height: 80vh; border-radius: 12px; box-shadow: var(--shadow); }
.lb-btn {
  position: absolute; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.lb-btn:hover { background: var(--primary); }
.lb-prev { left: 3%; } .lb-next { right: 3%; }
.lb-close { top: 4%; right: 4%; width: 46px; height: 46px; font-size: 1.3rem; }
.lb-counter { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 0.9rem; }
.lb-caption { position: absolute; top: 4%; left: 4%; color: var(--text); font-weight: 600; max-width: 60%; }

/* ===== Results ===== */
.result-card { background: var(--surface); text-align: center; padding: 2rem 1rem; border-radius: var(--radius); }
.result-card strong { display: block; font-family: 'Poppins'; font-size: 2.5rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result-card span { color: var(--muted); font-size: 0.9rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.contact-form { background: var(--surface); padding: 2.2rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.06); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px;
  background: var(--bg); border: 1px solid rgba(255,255,255,0.1); color: var(--text);
  font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field textarea { resize: vertical; }
.hidden { display: none; }
.form-note { margin-top: 1rem; font-size: 0.9rem; color: var(--accent); }

.contact-info { background: var(--bg-alt); padding: 2.2rem; border-radius: var(--radius); }
.contact-info h3 { margin-bottom: 1.5rem; }
.info-list { list-style: none; margin-bottom: 2rem; }
.info-list li { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; color: var(--muted); }
.info-list a:hover { color: var(--text); }
.socials { display: flex; gap: 1rem; flex-wrap: wrap; }
.socials a { padding: 0.5rem 1rem; border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; font-size: 0.85rem; transition: 0.2s; }
.socials a:hover { border-color: var(--primary); color: var(--text); }

/* ===== Footer ===== */
.site-footer { background: #0a0818; padding: 3rem 0 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-tag { color: var(--muted); margin-top: 0.6rem; font-size: 0.9rem; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a, .footer-social a { color: var(--muted); font-size: 0.9rem; transition: 0.2s; }
.footer-links a:hover, .footer-social a:hover { color: var(--text); }
.footer-bottom { padding-top: 1.5rem; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner, .about-inner, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; order: -1; }
  .grid-3, .cases { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .wall { columns: 3 180px; }
}
@media (max-width: 820px) {
  /* Header collapses to: hamburger (left) + centered logo */
  .header-inner { display: flex; justify-content: center; position: relative; }
  .hdr-nav, .hdr-actions { display: none; }
  .nav-toggle { display: flex; z-index: 101; position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
  body.menu-open .nav-toggle { display: none; }
  .lm-adab { font-size: 1.55rem; }

  /* Card-style mobile menu */
  .nav-links {
    display: flex;
    position: fixed; top: 0.9rem; left: 0.9rem; right: 0.9rem; z-index: 100;
    max-height: calc(100vh - 1.8rem); overflow-y: auto;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0.15rem;
    padding: 0.6rem;
    background: linear-gradient(180deg, #16153a, #0f0e26);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  body.menu-open::before {
    content: ""; position: fixed; inset: 0; z-index: 90;
    background: rgba(6,5,16,0.6); backdrop-filter: blur(4px);
  }

  /* Header row inside the menu: logo + close */
  .menu-head {
    display: flex; align-items: center; justify-content: space-between; order: -1;
    padding: 0.5rem 0.5rem 0.8rem; margin-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .menu-head .logo { font-size: 1.4rem; }
  .menu-close {
    width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18); background: transparent;
    color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: border-color 0.2s;
  }
  .menu-close:hover { border-color: var(--primary); }

  /* Menu items */
  .nav-links > li:not(.menu-head):not(.lang-switch) > a {
    display: block; padding: 0.95rem 1rem; border-radius: 12px;
    font-size: 1.15rem; font-weight: 600; color: var(--text);
  }
  .nav-links a.active { background: rgba(255,255,255,0.07); }
  .nav-links > li:has(a.btn-nav) { order: 3; }
  .nav-links a.btn-nav {
    text-align: center; margin-top: 0.4rem; padding: 1rem; font-size: 1.1rem; border-radius: 14px;
  }

  /* Language switcher as a full-width pill row */
  .lang-switch {
    order: 2; width: 100%; justify-content: space-between; gap: 0.2rem;
    margin: 0.7rem 0 0.1rem; padding: 0.35rem;
    border-radius: 14px; background: rgba(255,255,255,0.04);
  }
  .lang-btn { flex: 1; font-size: 1.5rem; padding: 0.5rem 0; text-align: center; }

  .grid-3, .grid-4, .cases { grid-template-columns: 1fr; }
  .wall { columns: 2 140px; column-gap: 0.7rem; }
  .review-card { margin-bottom: 0.7rem; }
  .cf-stage { height: 68vh; max-height: 500px; min-height: 380px; }
  .cf-item {
    height: 100%; padding: 6px; border-radius: 28px;
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--off) * 62%))
      translateZ(calc(-140px * var(--aoff, 0)))
      rotateY(calc(var(--off) * -26deg))
      scale(0.86);
  }
  .cf-item img, .cf-item::after { border-radius: 22px; }
  .cf-item .review-handle { border-radius: 0 0 22px 22px; }
  .cf-item.is-active {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--off) * 62%))
      translateZ(50px) rotateY(0deg) scale(1);
  }
  .cf-item.is-active:hover { transform: translate(-50%, -50%) translateZ(50px) scale(1); }
  .cf-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 210;
    width: 42px; height: 42px; font-size: 1.5rem;
    background: rgba(5,4,14,0.6); backdrop-filter: blur(6px);
  }
  .cf-prev { left: 4px; } .cf-next { right: 4px; }
  .coverflow { padding: 1rem 0; }
  .cf-nav { width: 40px; height: 40px; font-size: 1.4rem; }
  .review-handle { opacity: 1; transform: none; }
  .lb-prev { left: 1%; } .lb-next { right: 1%; }
  .hero-stats { gap: 1.5rem; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 900px) {
  .hero-visual { height: 340px; }
  .hero-badge { width: min(280px, 66vw); }
  .floating-card { font-size: 0.8rem; padding: 0.6rem 0.9rem; }
}
@media (max-width: 480px) {
  .hero { padding: 8.5rem 0 4rem; }
  .hero-visual { height: 290px; }
  .hero-badge { width: 230px; }
  .orbit-dot { width: 36px; height: 36px; margin: 0; font-size: 1rem; }
  .card-1 { left: 0; } .card-3 { left: 0; }
  .badge-sub { font-size: 0.52rem; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===== Language switcher ===== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lang-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.25rem 0.3rem;
  border-radius: 999px;
  filter: grayscale(0.6);
  opacity: 0.7;
  transition: transform 0.15s, filter 0.15s, opacity 0.15s, background 0.15s;
}
.lang-btn:hover { transform: translateY(-2px) scale(1.1); filter: none; opacity: 1; }
.lang-btn.active {
  filter: none;
  opacity: 1;
  background: rgba(74, 92, 245, 0.25);
  box-shadow: 0 0 0 1.5px var(--primary) inset;
}

/* RTL (Arabic) support */
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="rtl"] .check-list li { padding-right: 1.6rem; padding-left: 0; }
html[dir="rtl"] .check-list li::before { right: 0; left: auto; }
html[dir="rtl"] .case-view::after { content: " ←"; }
html[dir="rtl"] .hero-text p,
html[dir="rtl"] .page-hero p { margin-left: auto; }

/* ===== Floating contact widget — always-on dancing buttons ===== */
.contact-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.contact-fab__item {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  /* each button dances on its own beat, staggered by --i */
  animation: cf-dance 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.5s);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.contact-fab__item svg { width: 25px; height: 25px; position: relative; z-index: 2; }
.contact-fab__item.wa { background: #25d366; }
.contact-fab__item.tg { background: #229ed9; }
.contact-fab__item.ig { background: linear-gradient(45deg, #f09433, #e6683c 30%, #dc2743 55%, #cc2366 75%, #bc1888); }
.contact-fab__item:hover {
  animation-play-state: paused;
  transform: scale(1.18) rotate(-6deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}
@keyframes cf-dance {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-6px) rotate(-7deg); }
  50%      { transform: translateY(0) rotate(0deg); }
  75%      { transform: translateY(-4px) rotate(7deg); }
}
/* glowing halo ring in the brand colour */
.contact-fab__item::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  filter: blur(9px);
  opacity: 0.55;
  z-index: 0;
  animation: cf-glow 2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.4s);
}
@keyframes cf-glow {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 0.7;  transform: scale(1.15); }
}
/* label tooltip */
.contact-fab__item::after {
  content: attr(data-label);
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.25s, transform 0.25s;
}
.contact-fab__item:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Fire burst on click */
.cf-flames {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}
.contact-fab__item.fired { animation: cf-shake 0.5s ease; }
.contact-fab__item.fired .cf-flames {
  opacity: 1;
  background:
    radial-gradient(circle at 30% 100%, #ffd21e 0%, #ff9a1e 30%, #ff3d00 55%, transparent 70%),
    radial-gradient(circle at 70% 100%, #ffe23e 0%, #ff7a1e 35%, #ff1e00 60%, transparent 72%),
    radial-gradient(circle at 50% 100%, #fff59e 0%, #ffb01e 40%, #ff2d00 65%, transparent 78%);
  animation: cf-fire 0.85s ease-out forwards;
}
@keyframes cf-fire {
  0%   { transform: translateY(6px) scaleY(0.4) scaleX(0.8); opacity: 0.2; filter: blur(1px) brightness(1.4); }
  35%  { transform: translateY(-22px) scaleY(1.6) scaleX(1.1); opacity: 1; filter: blur(2px) brightness(1.5); }
  100% { transform: translateY(-52px) scaleY(2.1) scaleX(0.6); opacity: 0; filter: blur(6px) brightness(1.2); }
}
@keyframes cf-shake {
  0%, 100% { transform: scale(1.1) translateX(0); }
  25% { transform: scale(1.14) translateX(-3px) rotate(-4deg); }
  75% { transform: scale(1.14) translateX(3px) rotate(4deg); }
}
html[dir="rtl"] .contact-fab { right: auto; left: 20px; }
html[dir="rtl"] .contact-fab__item::after { right: auto; left: 62px; transform: translateY(-50%) translateX(-8px); }
html[dir="rtl"] .contact-fab__item:hover::after { transform: translateY(-50%) translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .contact-fab__item, .contact-fab__item::before { animation: none; }
}


/* ===== Floating "Join our community" bar (bottom-center, reveals on scroll) ===== */
.join-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 850;
  width: min(92vw, 360px);
  transform: translate(-50%, 160%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.5s ease;
}
.join-bar.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.join-panel {
  background: linear-gradient(160deg, #171636, #0f0e26);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
  padding: 0.7rem;
  overflow: hidden;
}
/* header row = the collapsed pill */
.join-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  padding: 0.35rem 0.4rem;
  font-family: inherit;
}
.join-head__ico {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad);
  font-size: 1.25rem;
  animation: join-wave 2.4s ease-in-out infinite;
}
@keyframes join-wave {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-14deg); }
  75% { transform: rotate(14deg); }
}
.join-head__txt { flex: 1; line-height: 1.25; }
.join-head__txt small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.join-head__txt b { font-size: 1.02rem; font-weight: 800; }
.join-head__chev {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.35s ease, background 0.3s;
}
.join-head__chev svg { width: 18px; height: 18px; }
.join-bar.open .join-head__chev { transform: rotate(135deg); background: rgba(255, 255, 255, 0.16); }

/* expandable choices */
.join-choices {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.4s ease, margin-top 0.4s ease;
  margin-top: 0;
}
.join-choices > div { overflow: hidden; display: flex; flex-direction: column; gap: 0.55rem; }
.join-bar.open .join-choices {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0.7rem;
}
.join-opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s, filter 0.2s;
}
.join-bar.open .join-opt { transform: translateY(0); opacity: 1; }
.join-bar.open .join-opt:nth-child(1) { transition-delay: 0.08s; }
.join-bar.open .join-opt:nth-child(2) { transition-delay: 0.15s; }
.join-opt.wa { background: linear-gradient(135deg, #25d366, #1aa251); }
.join-opt.tg { background: linear-gradient(135deg, #34b4ec, #229ed9); }
.join-opt:hover { filter: brightness(1.08); transform: translateY(-2px) scale(1.02); }
.join-opt__ico {
  flex: none; width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
}
.join-opt__ico svg { width: 20px; height: 20px; }
.join-opt__txt { flex: 1; line-height: 1.15; }
.join-opt__txt small { display: block; font-size: 0.7rem; opacity: 0.9; font-weight: 600; }
.join-opt__txt b { font-size: 0.98rem; font-weight: 800; }
.join-opt__go { flex: none; font-size: 1.1rem; }

@media (min-width: 560px) { .join-bar { width: 340px; } }
html[dir="rtl"] .join-head, html[dir="rtl"] .join-opt { text-align: right; }
@media (prefers-reduced-motion: reduce) {
  .join-bar { transition: opacity 0.4s ease; transform: translate(-50%, 0); }
  .join-head__ico { animation: none; }
}


/* ===== Services — pinned centered card deck ===== */
/* ===== What we do — cards orbiting a circle, non-stop =================== */
.hlab { position: relative; }
.svc-ring-section {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vh, 6rem) 0 0; text-align: center;
}
.svc-ring-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(74,92,245,0.16), transparent 68%) 20% 24%/720px 640px no-repeat,
    radial-gradient(closest-side, rgba(34,197,94,0.10), transparent 68%) 88% 96%/620px 560px no-repeat;
}
/* heading, centered above the wheel */
.cards-content { position: relative; z-index: 3; max-width: 40ch; margin: 0 auto; }
.cards-content .eyebrow { display: inline-block; margin-bottom: 0.7rem; font-size: 1rem; }
.cards-content h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.1; margin: 0; }

/* --- the orbit window: full-width, we see the top arc of a big spinning circle --- */
.svc-orbit {
  --svc-r: clamp(360px, 38vw, 560px);   /* circle radius */
  --svc-cw: clamp(300px, 33vw, 440px);  /* card width (big & rectangular) */
  --svc-ch: clamp(230px, 24vw, 300px);  /* card height */
  position: relative; z-index: 1; width: 100%;
  height: clamp(440px, 62vh, 600px);
  margin-top: clamp(1.5rem, 4vh, 3rem);
  overflow: hidden;
}
/* the rotor: a zero-size point at the circle's centre, sitting below the window.
   Centre is dropped so the top card lands fully inside the window (not clipped). */
.svc-rotor {
  position: absolute; left: 50%;
  top: calc(var(--svc-r) + var(--svc-ch) / 2 + 24px);
  width: 0; height: 0;
  transform-origin: 0 0; will-change: transform;
  animation: svc-spin var(--svc-dur, 48s) linear infinite;
}
@keyframes svc-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* pause the wheel while hovering a card so its "View before / after" button is clickable */
.svc-rotor:has(.hlab-tile:hover) { animation-play-state: paused; }
.hlab-status {
  display: inline-flex; align-items: center; gap: 10px; position: relative;
  margin-top: 1.1rem; padding: 7px 16px 7px 13px; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--muted); background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); overflow: hidden;
}
.hlab-status__dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: hlab-pulse 2s ease-out infinite; }
@keyframes hlab-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hlab-status__scan { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(109,125,255,0.35), transparent); width: 40%; transform: translateX(-120%); animation: hlab-scan 3.4s linear infinite; }
@keyframes hlab-scan { to { transform: translateX(320%); } }
/* scroll progress bar */
.hlab-progress { width: min(260px, 80%); height: 4px; margin: 1.6rem 0 0; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.hlab-progress span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--grad); box-shadow: 0 0 12px rgba(109,125,255,0.7); }

/* each card rides the circle: placed at the rotor centre, then pushed out to the
   rim at its own angle (--a), tilting tangentially as the wheel turns. Each card is
   a mock computer/browser window: a chrome bar on top, content below. */
.hlab-tile {
  position: absolute;
  left: calc(var(--svc-cw) / -2); top: calc(var(--svc-ch) / -2);
  width: var(--svc-cw); height: var(--svc-ch);
  display: flex; flex-direction: column; overflow: hidden; text-align: left;
  border-radius: 16px;
  background: linear-gradient(160deg, #1d1c40, #121127);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 34px 60px -36px rgba(0,0,0,0.9);
  transform-origin: 50% 50%; backface-visibility: hidden;
  transform: rotate(var(--a, 0deg)) translateY(calc(var(--svc-r) * -1));
  will-change: transform;
}
/* keep every card interactive so the proof button works, even mid-spin */
.hlab-tile { pointer-events: auto; }
.hlab-tile::after {
  content: ""; position: absolute; inset: -1px; border-radius: 16px; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(109,125,255,0.9), rgba(34,197,94,0.55), rgba(74,92,245,0.9));
  background-size: 200% 100%;
  -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 0.4s; animation: svcx-edge 4.5s linear infinite;
}
@keyframes svcx-edge { to { background-position: 200% 0; } }
.hlab-tile:hover::after, .hlab-tile.is-live::after { opacity: 0.95; }
.hlab-tile:hover { border-color: transparent; box-shadow: 0 48px 90px -40px rgba(0,0,0,0.95), 0 0 60px -22px rgba(109,125,255,0.6); }

/* browser chrome: traffic-light dots + a fake address pill */
.hlab-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 15px; flex: 0 0 auto;
  background: rgba(255,255,255,0.045);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hlab-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.hlab-dot--r { background: #ff5f57; } .hlab-dot--y { background: #febc2e; } .hlab-dot--g { background: #28c840; }
.hlab-url {
  margin-left: 6px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 7px; padding: 4px 11px;
}
/* card body below the chrome */
.hlab-tile__inner {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px;
  padding: 16px 20px 18px;
}

.hlab-tile__viz { position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; min-height: 56px; height: 26%; }
.hlab-tile__num {
  position: absolute; top: -4px; right: 0;
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 2.1rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,0.16); pointer-events: none;
}
.hlab-tile__meta { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.hlab-tile__title { font-size: 1.08rem; font-weight: 800; color: var(--text); margin: 0 0 6px; line-height: 1.15; }
.hlab-tile__body { font-size: 0.86rem; line-height: 1.45; color: var(--muted); margin: 0 0 12px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
/* pin the button to the bottom of the card so it's always visible */
.hlab .proof-link { margin-top: auto; }

.hlab-chip {
  position: absolute; bottom: 4px; right: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em; padding: 4px 9px; border-radius: 999px;
  opacity: 0; transform: translateY(6px); transition: opacity 0.4s 0.15s, transform 0.4s 0.15s;
}
.hlab-chip--up { color: #7ef0a8; background: rgba(34,197,94,0.14); border: 1px solid rgba(34,197,94,0.3); }
.hlab-tile:hover .hlab-chip, .hlab-tile.is-live .hlab-chip { opacity: 1; transform: translateY(0); }

.hlab .proof-link {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  color: #fff; text-decoration: none; cursor: pointer;
  background: var(--grad); border: none;
  box-shadow: 0 12px 26px -10px rgba(74,92,245,0.7);
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
}
.hlab .proof-link:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 32px -10px rgba(74,92,245,0.9); }
.hlab .proof-link .pl-arrow { display: inline-block; transition: transform 0.28s cubic-bezier(0.3,1.4,0.5,1); }
.hlab .proof-link:hover .pl-arrow { transform: translateX(5px); }

/* --- viz 01: reach graph --- */
.hlab-graph { width: 100%; height: 92px; }
.hlab-graph__area { fill: url(#hlabFill); opacity: 0; }
.hlab-graph__line { fill: none; stroke: #6d7dff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(109,125,255,0.7));
  stroke-dasharray: 460; stroke-dashoffset: 460; }
.hlab-graph__dot { fill: #22c55e; opacity: 0; filter: drop-shadow(0 0 6px rgba(34,197,94,0.9)); }
.hlab-tile[data-viz="reach"]:hover .hlab-graph__line,
.hlab-tile[data-viz="reach"].is-live .hlab-graph__line { animation: hlab-draw 1.6s ease forwards; }
.hlab-tile[data-viz="reach"]:hover .hlab-graph__dot,
.hlab-tile[data-viz="reach"].is-live .hlab-graph__dot { animation: hlab-runDot 1.6s ease forwards; }
@keyframes hlab-draw { to { stroke-dashoffset: 0; } }
@keyframes hlab-runDot { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 1; transform: translate(260px, 10px); } }
/* area handled by simple fade */
.hlab-tile[data-viz="reach"]:hover .hlab-graph__area,
.hlab-tile[data-viz="reach"].is-live .hlab-graph__area { animation: hlab-fade 1.6s ease forwards; }
@keyframes hlab-fade { to { opacity: 0.28; } }

/* --- viz 02: padlock --- */
.hlab-lock { width: 78px; height: 78px; }
.hlab-lock__body { fill: rgba(109,125,255,0.16); stroke: #6d7dff; stroke-width: 2.4; }
.hlab-lock__hole { fill: #22c55e; }
.hlab-lock__shackle { fill: none; stroke: #8b97ff; stroke-width: 3; stroke-linecap: round;
  transform-box: fill-box; transform-origin: 100% 100%; transition: transform 0.5s cubic-bezier(0.3,1.4,0.4,1); }
.hlab-tile[data-viz="lock"]:hover .hlab-lock__shackle,
.hlab-tile[data-viz="lock"].is-live .hlab-lock__shackle { transform: translateX(-9px) translateY(-4px) rotate(-16deg); }
.hlab-tile[data-viz="lock"]:hover .hlab-lock__body,
.hlab-tile[data-viz="lock"].is-live .hlab-lock__body { stroke: #22c55e; fill: rgba(34,197,94,0.16); transition: stroke 0.5s, fill 0.5s; }

/* --- viz 03: verify badge --- */
.hlab-handle { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.hlab-handle__av { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(from 210deg, #6d7dff, #b84af5, #22c55e, #6d7dff); }
.hlab-handle__name { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--text); font-size: 0.98rem; }
.hlab-badge { width: 20px; height: 20px; fill: #3897f0; transform: scale(0); transform-origin: center; }
.hlab-badge__tick { stroke-dasharray: 12; stroke-dashoffset: 12; }
.hlab-tile[data-viz="verify"]:hover .hlab-badge,
.hlab-tile[data-viz="verify"].is-live .hlab-badge { animation: hlab-pop 0.6s cubic-bezier(0.3,1.6,0.4,1) 0.15s forwards; }
.hlab-tile[data-viz="verify"]:hover .hlab-badge__tick,
.hlab-tile[data-viz="verify"].is-live .hlab-badge__tick { animation: hlab-draw 0.5s ease 0.5s forwards; }
@keyframes hlab-pop { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: scale(1) rotate(0); } }

/* --- viz 04: strikes clearing --- */
.hlab-strikes { position: relative; display: flex; gap: 12px; align-items: center; }
.hlab-strike { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 900; color: #ff7676; background: rgba(239,68,68,0.14); border: 1px solid rgba(239,68,68,0.4);
  transition: transform 0.4s, opacity 0.4s; }
.hlab-strike__ok { position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.4rem; color: #7ef0a8;
  background: rgba(34,197,94,0.16); border: 1px solid rgba(34,197,94,0.45);
  opacity: 0; transform: scale(0.5); transition: opacity 0.4s 0.35s, transform 0.5s 0.35s cubic-bezier(0.3,1.5,0.4,1); }
.hlab-tile[data-viz="strikes"]:hover .hlab-strike,
.hlab-tile[data-viz="strikes"].is-live .hlab-strike { opacity: 0; transform: translateY(-8px) scale(0.7); }
.hlab-tile[data-viz="strikes"]:hover .hlab-strike:nth-child(2),
.hlab-tile[data-viz="strikes"].is-live .hlab-strike:nth-child(2) { transition-delay: 0.1s; }
.hlab-tile[data-viz="strikes"]:hover .hlab-strike:nth-child(3),
.hlab-tile[data-viz="strikes"].is-live .hlab-strike:nth-child(3) { transition-delay: 0.2s; }
.hlab-tile[data-viz="strikes"]:hover .hlab-strike__ok,
.hlab-tile[data-viz="strikes"].is-live .hlab-strike__ok { opacity: 1; transform: scale(1); }

/* --- viz 05: follower counter --- */
.hlab-count { display: inline-flex; align-items: baseline; gap: 2px; font-family: 'Poppins', sans-serif; }
.hlab-count b { font-size: 3.1rem; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hlab-count small { font-size: 1.5rem; font-weight: 800; color: var(--muted); }

/* --- viz 06: equalizer bars --- */
.hlab-eq { display: flex; align-items: flex-end; gap: 6px; height: 84px; }
.hlab-eq i { width: 12px; border-radius: 5px 5px 0 0; height: 12%;
  background: linear-gradient(180deg, #6d7dff, #4a5cf5);
  transition: height 0.6s cubic-bezier(0.2,0.9,0.3,1); }
.hlab-tile[data-viz="bars"]:hover .hlab-eq i,
.hlab-tile[data-viz="bars"].is-live .hlab-eq i { animation: hlab-eq 1.1s ease-in-out infinite alternate; }
.hlab-eq i:nth-child(1){animation-delay:0s} .hlab-eq i:nth-child(2){animation-delay:.09s}
.hlab-eq i:nth-child(3){animation-delay:.18s} .hlab-eq i:nth-child(4){animation-delay:.27s}
.hlab-eq i:nth-child(5){animation-delay:.36s} .hlab-eq i:nth-child(6){animation-delay:.45s}
.hlab-eq i:nth-child(7){animation-delay:.54s} .hlab-eq i:nth-child(8){animation-delay:.63s}
.hlab-eq i:nth-child(9){animation-delay:.72s} .hlab-eq i:nth-child(10){animation-delay:.81s}
.hlab-eq i:nth-child(11){animation-delay:.9s} .hlab-eq i:nth-child(12){animation-delay:.99s}
@keyframes hlab-eq { 0% { height: 22%; } 100% { height: 96%; filter: drop-shadow(0 0 6px rgba(109,125,255,0.6)); } }

/* --- responsive: smaller wheel on phones --- */
@media (max-width: 820px) {
  .cards-content { max-width: 34ch; }
  .cards-content h2 { font-size: clamp(1.3rem, 6vw, 1.9rem); }
  .hlab-status { margin-top: 0.9rem; }
  .svc-orbit {
    --svc-r: clamp(300px, 92vw, 460px);
    --svc-cw: clamp(190px, 58vw, 240px);
    --svc-ch: clamp(210px, 66vw, 270px);
    height: clamp(320px, 48vh, 440px);
  }
}
/* reduced motion → plain vertical list, no orbit */
@media (prefers-reduced-motion: reduce) {
  .svc-ring-section { padding: 4rem max(6vw, 20px); }
  .cards-content { max-width: none; margin: 0 auto 2rem; text-align: center; }
  .svc-orbit { height: auto; overflow: visible; margin-top: 2rem; }
  .svc-rotor {
    position: static; width: min(460px, 92%); height: auto; margin: 0 auto;
    display: flex; flex-direction: column; gap: 18px; animation: none;
  }
  .hlab-tile {
    position: relative; left: auto; top: auto; width: 100%; height: auto;
    transform: none !important; opacity: 1 !important; pointer-events: auto;
  }
  .hlab-status__scan, .hlab-status__dot { animation: none; }
  .hlab-tile::after { animation: none; }
  .hlab-eq i { animation: none !important; height: 60%; }
}
