/* =========================================================
   InTech — website (light)
   Brand System v2 colours & type · violet as light · The Slant 59.8°
   ========================================================= */

:root {
  /* brand palette */
  --midnight: #0D0B1C;
  --violet: #755BE3;
  --deep: #4A32BE;
  --electric: #9B85EA;
  --lavender: #E7DBFD;
  --mist: #F2EEFF;

  /* light theme */
  --bg: #FFFFFF;
  --bg-2: #F7F5FC;
  --tint: #F0EBFF;
  --ink: var(--midnight);
  --ink-2: #4B4762;
  --ink-3: #8A86A0;
  --line: #ECE8F4;
  --line-2: #DCD5EE;
  --shadow-soft: 0 1px 2px rgba(13,11,28,.04), 0 24px 48px -28px rgba(46,26,130,.28);

  /* type */
  --f-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;

  /* layout */
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 11vw, 160px);

  /* motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3, .h2 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.035em; color: var(--ink); }
.h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.06; }
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: inline-block; will-change: transform; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; width: max-content;
  padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff;
  font: 500 13px/1.2 var(--f-body); color: var(--ink-2);
}
.badge svg { width: 20px; height: 20px; border-radius: 6px; flex: none; }
.badge--glass { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.badge--glass svg[viewBox="0 0 24 24"] { color: #fff; border-radius: 0; padding: 1px; }

.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); max-width: 760px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head__lead { font-size: 18px; max-width: 560px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 12px; white-space: nowrap;
  font: 600 15px/1 var(--f-display); letter-spacing: -.01em;
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn svg.btn__os { width: 20px; height: 20px; margin-right: -2px; }
.btn:hover svg.btn__os { transform: none; }
.btn:active { transform: translateY(1px); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn--lg { height: 58px; padding: 0 26px; font-size: 16px; }
.btn--violet { color: #fff; background: linear-gradient(180deg, #8670ef, #6a4fe0); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 20px -8px rgba(117,91,227,.65); }
.btn--violet:hover { background: linear-gradient(180deg, #927df3, #7458e8); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 28px -8px rgba(117,91,227,.8); }
.btn--white { background: #fff; color: var(--deep); box-shadow: 0 10px 30px -12px rgba(20,8,80,.45); }
.btn--white:hover { background: var(--mist); }
.btn--outline-light { color: #fff; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.btn--outline-light:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.7); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #26213f; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 15px var(--f-display); color: var(--deep); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- realistic phone (render frame + live screens) ---------- */
.phone { position: relative; aspect-ratio: 1052 / 2160; width: clamp(220px, 20vw, 300px); }
.phone::before { content: ''; position: absolute; left: 8%; right: 8%; bottom: -3%; height: 16%; border-radius: 50%; background: rgba(40, 20, 110, .32); filter: blur(26px); transform: translateZ(0); pointer-events: none; }
.phone__screen { position: absolute; left: 4.85%; top: 2%; width: 90.3%; height: 96%; border-radius: 13.5% / 6.3%; overflow: hidden; background: #fff; }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__screen img:not(:first-child) { clip-path: inset(100% 0 0 0); }
.phone__frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* ---------- floating UI chips (match the app's own cards) ---------- */
.chip, .fcard {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; width: max-content;
  border-radius: 16px; background: #fff; border: 1px solid rgba(13,11,28,.06);
  box-shadow: 0 1px 2px rgba(13,11,28,.05), 0 22px 44px -18px rgba(40,20,120,.35);
}
.chip b, .fcard b { display: block; font: 600 14px/1.3 var(--f-display); color: var(--ink); letter-spacing: -.01em; }
.chip small, .fcard small { display: block; font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.chip__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--violet); flex: none; }
.chip__ico svg { width: 18px; height: 18px; }
.chip__ico.ok { background: #E4F6EC; color: #1F9D5B; }

/* =========================================================
   LOADER
   ========================================================= */
.loader { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.loader__stage { position: absolute; inset: 0; background: #fff; display: grid; place-items: center; }
.loader__mark { width: clamp(84px, 9vw, 128px); overflow: visible; }
.loader__count { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 4vw, 44px); display: flex; justify-content: space-between; align-items: end; }
.loader__num { font: 500 clamp(48px, 6vw, 88px)/.8 var(--f-display); letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.loader__label { font: 500 13px var(--f-body); color: var(--ink-3); }
.loader__wipe { position: absolute; inset: -20%; background: linear-gradient(90deg, var(--deep), var(--violet)); transform: translateX(-140%); }
.loader.is-done { display: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; z-index: 60; top: 16px; left: 0; right: 0; margin: 0 auto;
  width: min(calc(100% - 32px), 1080px); height: 60px; padding: 0 9px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.78); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 2px rgba(13,11,28,.04), 0 16px 40px -24px rgba(40,20,120,.4);
  transition: transform .8s var(--ease);
}
.nav.is-hidden { transform: translateY(-140%); }
.nav__brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font: 600 18px var(--f-display); letter-spacing: -.03em; color: var(--ink); }
.nav__badge { width: 28px; height: 28px; border-radius: 8px; }
.nav__links { display: flex; gap: 2px; }
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__lang { display: inline-grid; place-items: center; min-width: 44px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); font: 700 14px/1 'Cairo', var(--f-display); color: var(--ink); transition: background .3s, border-color .3s, color .3s; }
.nav__lang[lang="fr"] { font: 600 13px/1 var(--f-display); letter-spacing: .02em; }
.nav__lang:hover { background: var(--tint); border-color: var(--tint); color: var(--deep); }
.nav__links a { position: relative; padding: 9px 14px; border-radius: 10px; font: 500 14px var(--f-body); color: var(--ink-2); transition: color .3s, background .3s; }
.nav__links a:hover { color: var(--ink); background: var(--bg-2); }
.nav__links a.is-active { color: var(--deep); background: var(--tint); }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 10px; background: var(--ink); position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: #fff; transition: transform .6s var(--ease); }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 24px; }
.menu-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; visibility: hidden; display: flex; flex-direction: column; justify-content: center; padding: 110px var(--gutter) 40px; }
.menu__bg { position: absolute; inset: 0; background: #fff; transform: scaleY(0); transform-origin: top; }
.menu__links { position: relative; display: grid; gap: 4px; }
.menu__links a { display: block; font: 500 clamp(36px, 10vw, 56px)/1.15 var(--f-display); letter-spacing: -.04em; color: var(--ink); }
.menu__foot { position: relative; margin-top: 40px; color: var(--ink-3); }
.menu-open .menu { visibility: visible; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 130px 0 120px; min-height: 100svh; display: flex; align-items: center; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(90% 70% at 80% 30%, rgba(155,133,234,.45), transparent 60%),
    linear-gradient(180deg, #4A32BE 0%, #5D44D8 55%, #7259E3 100%);
}
.hero__bg::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; pointer-events: none; }
.blob--a { width: 46vw; height: 46vw; right: -6%; top: -12%; background: radial-gradient(circle, rgba(231,219,253,.55), transparent 65%); }
.blob--b { width: 40vw; height: 40vw; left: -12%; bottom: -18%; background: radial-gradient(circle, rgba(155,133,234,.6), transparent 65%); }
.blob--c { width: 26vw; height: 26vw; left: 38%; top: 12%; background: radial-gradient(circle, rgba(74,50,190,.7), transparent 65%); }
.hero__arc { position: absolute; left: 50%; top: 18%; width: max(1500px, 130vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, transparent 90%, rgba(231,219,253,.32) 95%, transparent 100%); }

.hero__grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero__copy { position: relative; z-index: 2; display: grid; justify-items: start; }
.hero__title { margin-top: 26px; color: #fff; font-size: clamp(40px, 4.5vw, 68px); line-height: 1.04; letter-spacing: -.04em; }
.hero__lead { margin-top: 22px; max-width: 460px; font-size: clamp(16px, 1.25vw, 18px); color: rgba(255,255,255,.82); }
.hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__tags { list-style: none; margin: 44px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero__tags li { display: inline-flex; align-items: center; gap: 8px; font: 500 14px var(--f-body); color: rgba(255,255,255,.85); }
.hero__tags svg { width: 18px; height: 18px; color: var(--lavender); }

.hero__stage { position: relative; height: min(700px, 76svh); perspective: 1400px; }
.hero__rig { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
/* the glass mark sits in the background layer so `screen` drops its dark backdrop into the violet */
.hero__logo { position: absolute; right: -26%; top: 50%; width: 104%; aspect-ratio: 16 / 9; margin-top: -29.25%; pointer-events: none; mix-blend-mode: screen; will-change: transform; }
.hero__video { width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 46% 52% at 50% 50%, #000 45%, transparent 78%); mask-image: radial-gradient(ellipse 46% 52% at 50% 50%, #000 45%, transparent 78%); }
.hero__phone { position: absolute; height: auto; will-change: transform; filter: drop-shadow(0 50px 50px rgba(20, 8, 80, .45)); }
.hero__phone--l { width: 50%; left: 6%; top: 2%; z-index: 2; }
.hero__phone--r { width: 44%; right: 4%; top: 15%; z-index: 3; }
.hero__stage .chip { position: absolute; z-index: 4; }
.hero__phone--l { animation: float 6.4s var(--ease-io) infinite; }
.hero__phone--r { animation: float 7.6s var(--ease-io) -2s infinite reverse; }
.chip--a { animation: float 5.2s var(--ease-io) -1s infinite; }
.chip--b { animation: float 5.8s var(--ease-io) -3s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.chip--a { left: -4%; bottom: 14%; }
.chip--b { right: -2%; top: 6%; }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto { position: relative; padding: var(--section) 0; }
.manifesto__inner { display: grid; gap: 40px; }
.manifesto__text { font-size: clamp(32px, 4.6vw, 68px); line-height: 1.14; letter-spacing: -.04em; max-width: 17ch; }
.manifesto__text .w { display: inline-block; opacity: .16; }
.manifesto__text .pill.w, .pill {
  display: inline-grid; place-items: center; vertical-align: middle;
  width: 1.5em; height: .92em; margin: -.1em .06em 0; border-radius: 999px;
  background: var(--tint); color: var(--violet);
}
.pill svg { width: .46em; height: .46em; }
.manifesto__meta { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: end; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--line); }
.manifesto__meta p { max-width: 460px; font-size: 17px; }

/* =========================================================
   SHOWCASE
   ========================================================= */
.showcase { position: relative; height: 320vh; background: var(--bg-2); }
.showcase__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.showcase__floor {
  position: absolute; left: -50%; right: -50%; bottom: -12%; height: 58%;
  background-image: linear-gradient(rgba(117,91,227,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(117,91,227,.14) 1px, transparent 1px);
  background-size: 80px 80px; transform: perspective(600px) rotateX(62deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 80%); mask-image: linear-gradient(to top, #000 10%, transparent 80%);
}
.showcase__track { position: absolute; top: 50%; left: 0; margin-top: -.6em; display: flex; gap: .3em; white-space: nowrap; font: 600 clamp(110px, 18vw, 280px)/1 var(--f-display); letter-spacing: -.055em; color: var(--ink); will-change: transform; }
.showcase__track .o { color: transparent; -webkit-text-stroke: 1.5px var(--violet); }
.showcase__phone { position: relative; z-index: 2; will-change: transform; }
.showcase__phone .phone { width: clamp(230px, 21vw, 320px); }
.showcase__chip { position: absolute; z-index: 3; }
.showcase__chip--a { left: -64%; top: 22%; }
.showcase__chip--b { right: -58%; bottom: 20%; }
.showcase__caption { position: absolute; left: 0; right: 0; bottom: clamp(24px, 4vw, 44px); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.showcase__steps { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.showcase__steps span { padding: 8px 14px; border-radius: 9px; font: 500 13px var(--f-body); color: var(--ink-3); transition: all .5s var(--ease); }
.showcase__steps span.is-on { color: #fff; background: var(--violet); }

/* =========================================================
   PROFILES
   ========================================================= */
.profiles { padding: var(--section) 0 calc(var(--section) * .6); }
.stack { display: grid; gap: 32px; }
.pcard {
  position: sticky; top: calc(100px + var(--i) * 18px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; min-height: min(580px, 76svh);
  border-radius: 28px; border: 1px solid var(--line); background: var(--bg-2);
  box-shadow: var(--shadow-soft); transform-origin: 50% 0; will-change: transform;
}
.pcard__body { padding: clamp(24px, 3.6vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.tag { width: max-content; padding: 5px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); font: 600 12.5px var(--f-body); color: var(--deep); }
.pcard__title { font-size: clamp(28px, 2.7vw, 40px); line-height: 1.1; max-width: 15ch; }
.pcard__text { max-width: 420px; font-size: 16.5px; }
.pcard__list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.pcard__list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); }
.pcard__list svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--tint); color: var(--violet); flex: none; }
.pcard__visual { position: relative; min-height: 420px; border-radius: 20px; overflow: hidden; background: radial-gradient(80% 80% at 50% 100%, var(--lavender), var(--mist) 60%); }
.slant-window { position: absolute; inset: 0; margin: 0; overflow: hidden; clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%); }
.slant-window img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.pcard__phone { position: absolute !important; left: 7%; bottom: -16%; width: clamp(160px, 14vw, 210px); transform: rotate(-5deg); }
.pcard--vendeur .slant-window img { object-position: 47% 50%; }
.pcard--vendeur .pcard__phone { bottom: -36%; }

/* =========================================================
   JOURNEY
   ========================================================= */
.journey { position: relative; height: 520vh; }
.journey__pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 32px; overflow: hidden; }
.journey__grid { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(24px, 4vw, 72px); min-height: 0; }
.journey__left { display: grid; gap: 22px; align-content: center; justify-items: start; }
.journey__title { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.1; max-width: 13ch; }
.journey__index { display: flex; align-items: flex-end; gap: 10px; margin-top: 16px; font-family: var(--f-display); }
.journey__num { display: block; height: 1em; overflow: hidden; font-size: clamp(88px, 10vw, 150px); font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.journey__num b { display: block; font-weight: inherit; background: linear-gradient(180deg, var(--violet), var(--electric)); -webkit-background-clip: text; background-clip: text; color: transparent; will-change: transform; }
.journey__of { font-size: 17px; color: var(--ink-3); padding-bottom: .9em; }
.journey__center { position: relative; display: grid; place-items: center; }
.journey__phone { width: clamp(220px, 19vw, 290px); z-index: 2; }
.journey__orbit { position: absolute; inset: 50% auto auto 50%; width: 0; height: 0; }
.journey__orbit i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid var(--line-2); transform: translate(-50%, -50%); }
.journey__orbit i:nth-child(1) { width: 420px; height: 420px; background: radial-gradient(circle, var(--mist), transparent 70%); }
.journey__orbit i:nth-child(2) { width: 600px; height: 600px; border-style: dashed; }
.journey__orbit i:nth-child(3) { width: 800px; height: 800px; border-color: var(--line); }
.journey__orbit b { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 5px var(--tint); }
.journey__copy { position: relative; min-height: 200px; }
.journey__copy article { position: absolute; inset: 0 0 auto 0; display: grid; gap: 14px; opacity: 0; visibility: hidden; }
.journey__copy article.is-on { opacity: 1; visibility: visible; }
.journey__copy h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.journey__copy p { font-size: 16.5px; max-width: 340px; }
.journey__bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 2vw, 28px); margin-top: 24px; }
.jbar { text-align: left; display: grid; gap: 12px; font: 500 14px var(--f-body); color: var(--ink-3); transition: color .5s; }
.jbar i { display: block; height: 3px; background: var(--line); overflow: hidden; border-radius: 3px; }
.jbar i b { display: block; height: 100%; width: 100%; background: var(--violet); transform: scaleX(0); transform-origin: left; }
.jbar span { color: var(--violet); margin-right: 8px; font-weight: 600; }
.jbar.is-on { color: var(--ink); }

/* =========================================================
   GATHER
   ========================================================= */
.gather { position: relative; height: 340vh; background: var(--bg-2); }
.gather__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.gather__pin::before { content: ''; position: absolute; left: 50%; top: 50%; width: 70vw; height: 70vw; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(231,219,253,.9), transparent 60%); }
.gather__title { position: relative; z-index: 1; text-align: center; font-size: clamp(40px, 6.4vw, 100px); line-height: 1.02; letter-spacing: -.045em; }
.gather__cards { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fcard { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; }
.fcard--tech img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.fcard__badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 4px 8px; border-radius: 999px; background: var(--violet); color: #fff; font: 600 11px var(--f-body); }
.fcard__badge svg { width: 12px; height: 12px; }
.fcard--stack { flex-direction: column; align-items: flex-start; gap: 6px; min-width: 190px; padding: 14px 18px; }
.fcard .big { font-size: 26px; letter-spacing: -.03em; }
.fcard--violet { background: linear-gradient(135deg, #7d63ea, #5a40d4); border-color: transparent; }
.fcard--violet b, .fcard--violet small { color: #fff; } .fcard--violet small { opacity: .8; }
.fcard__bar { display: block; width: 100%; height: 6px; border-radius: 6px; background: var(--tint); overflow: hidden; }
.fcard__bar i { display: block; width: 72%; height: 100%; background: var(--violet); border-radius: 6px; }
.stars { display: flex; gap: 4px; color: #F5B83D; }
.stars svg { width: 22px; height: 22px; }
.gather__phone { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, 70vh); }
.gather__phone .phone { width: clamp(220px, 19vw, 290px); }
.gather__caption { position: absolute; bottom: clamp(28px, 5vw, 52px); left: 0; right: 0; text-align: center; font: 500 15px var(--f-body); color: var(--ink-2); opacity: 0; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { position: relative; padding: var(--section) 0; overflow: hidden; }
.services__arc {
  position: absolute; left: 50%; top: 40px; width: min(1300px, 150vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, transparent 80%, rgba(117,91,227,.5) 87%, rgba(155,133,234,.22) 93%, transparent 100%);
  filter: blur(14px); pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 0%, transparent 34%); mask-image: linear-gradient(#000 0%, transparent 34%);
}
.services .section-head { position: relative; padding-top: clamp(40px, 6vw, 90px); }
.bento { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scard {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 28px;
  border-radius: 22px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden;
  transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.scard::before { content: ''; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx) var(--my), rgba(231,219,253,.7), transparent 65%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.scard:hover { background: #fff; border-color: var(--line-2); box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.scard:hover::before { opacity: 1; }
.scard > * { position: relative; }
.scard__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--violet); }
.scard__ico svg { width: 22px; height: 22px; }
.scard h3 { margin-top: auto; padding-top: 40px; font-size: 20px; letter-spacing: -.02em; font-weight: 600; }
.scard p { margin-top: 8px; font-size: 15px; }

/* =========================================================
   PROS
   ========================================================= */
.pros { position: relative; padding: var(--section) 0 calc(var(--section) * .5); overflow: hidden; }
.pros__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.pros__head > div:first-child { display: grid; gap: 20px; justify-items: start; }
.pros__side { display: grid; gap: 24px; justify-items: start; }
.pros__side p { font-size: 17px; max-width: 440px; }
.pros__track { display: flex; width: max-content; padding-left: var(--gutter); will-change: transform; }
.win { position: relative; flex: none; width: clamp(280px, 28vw, 420px); aspect-ratio: 3 / 4; margin: 0 -4.6vw 0 0; overflow: hidden; clip-path: polygon(28% 0, 100% 0, 72% 100%, 0 100%); }
.win img { width: 130%; max-width: none; height: 100%; object-fit: cover; margin-left: -15%; will-change: transform; transition: scale 1.2s var(--ease); }
.win:hover img { scale: 1.05; }
.win::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,11,28,.7), transparent 42%); }
.win figcaption { position: absolute; left: 9%; right: 34%; bottom: 24px; z-index: 1; font: 500 clamp(15px, 1.3vw, 19px)/1.25 var(--f-display); color: #fff; letter-spacing: -.01em; }

/* =========================================================
   DOWNLOAD
   ========================================================= */
.download { padding: calc(var(--section) * .5) 0 var(--section); }
.download__panel {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(36px, 6vw, 80px); border-radius: 32px;
  background: linear-gradient(135deg, #4A32BE 0%, #6249DA 50%, #8670EF 100%);
}
.download__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.download__bg .blob--a { right: -10%; top: -30%; }
.download__bg .blob--b { left: -10%; bottom: -40%; }
.download__floor {
  position: absolute; left: -40%; right: -40%; bottom: -10%; height: 60%;
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 70px 70px; transform: perspective(700px) rotateX(64deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%); mask-image: linear-gradient(to top, #000, transparent 85%);
}
.download__copy { display: grid; gap: 24px; justify-items: start; }
.download__title { color: #fff; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -.04em; }
.download__lead { color: rgba(255,255,255,.82); font-size: 17px; max-width: 480px; }
.download__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.download__meta { color: rgba(255,255,255,.75); font-size: 14px; }
.faq { width: min(100%, 520px); border-top: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font: 600 15px var(--f-display); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.14); transition: transform .6s var(--ease), background .4s; }
.faq__ico svg { width: 15px; height: 15px; }
.faq[open] .faq__ico { transform: rotate(45deg); background: rgba(255,255,255,.28); }
.faq__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq[open] .faq__body { grid-template-rows: 1fr; }
.faq__body > div { overflow: hidden; display: grid; gap: 6px; color: rgba(255,255,255,.82); font-size: 15px; }
.faq__body > div p:last-child { padding-bottom: 20px; }
.download__card { justify-self: center; display: grid; gap: 18px; justify-items: center; text-align: center; padding: 22px 22px 24px; border-radius: 24px; background: #fff; color: var(--ink-2); box-shadow: 0 40px 80px -30px rgba(20,8,80,.6); }
.qr-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.qr-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; border-radius: 9px; font: 600 13.5px var(--f-display); color: var(--ink-3); transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.qr-tab svg { width: 17px; height: 17px; }
.qr-tab.is-on { background: #fff; color: var(--deep); box-shadow: 0 4px 12px -6px rgba(40,20,110,.35); }
.qr__code { transition: opacity .3s var(--ease); }
.qr__frame { position: relative; width: clamp(200px, 18vw, 250px); aspect-ratio: 1; padding: 8px; }
.qr__code, .qr__code svg { width: 100%; height: 100%; }
.qr__logo { position: absolute; left: 50%; top: 50%; width: 21%; height: 21%; transform: translate(-50%, -50%); border-radius: 10px; box-shadow: 0 0 0 5px #fff; }
.download__scan { display: grid; gap: 2px; font-size: 13px; color: var(--ink-3); }
.download__scan b { font: 600 17px var(--f-display); color: var(--ink); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; padding-top: 72px; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__top { position: relative; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; }
.footer__brand { display: grid; gap: 14px; }
.footer__brand p { max-width: 300px; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.footer__cols h4 { font: 600 13px var(--f-body); color: var(--ink); margin-bottom: 6px; }
.footer__cols a { display: block; padding: 10px 0; transition: color .3s; }
.footer__cols a:hover { color: var(--deep); }
.footer__top-btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); color: var(--ink); transition: background .4s, color .4s, border-color .4s; }
.footer__top-btn svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.footer__top-btn:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.footer__word { position: relative; margin-top: 56px; text-align: center; height: .78em; font: 600 clamp(110px, 28vw, 440px)/.78 var(--f-display); letter-spacing: -.07em; overflow: hidden; }
.footer__word span { display: inline-block; background: linear-gradient(180deg, var(--violet) 0%, var(--electric) 45%, rgba(231,219,253,.4) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; will-change: transform; }
.footer__bottom { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 32px; padding-top: 20px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { justify-items: center; text-align: center; }
  .hero__tags { justify-content: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__stage { height: min(620px, 80vw); max-width: 720px; width: 100%; margin: 0 auto; }
  .hero__logo { right: -30%; width: 160%; top: auto; bottom: 0; margin-top: 0; }
  .journey__grid { grid-template-columns: 1fr auto; }
  .journey__left { grid-column: 1; grid-row: 1; }
  .journey__right { grid-column: 1; grid-row: 2; align-self: start; }
  .journey__center { grid-column: 2; grid-row: 1 / span 2; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .showcase__chip--a { left: -42%; } .showcase__chip--b { right: -42%; }
}

@media (max-width: 820px) {
  .nav { height: 56px; top: 12px; padding: 0 7px 0 14px; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero { padding: 110px 0 60px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__stage { height: 112vw; margin-top: 12px; }
  .chip { padding: 9px 12px 9px 9px; gap: 9px; border-radius: 13px; }
  .chip b { font-size: 12.5px; } .chip small { font-size: 11px; }
  .chip__ico { width: 30px; height: 30px; border-radius: 9px; }
  .chip--a { left: 0; bottom: 8%; } .chip--b { right: 0; top: 2%; }
  .pcard { grid-template-columns: 1fr; top: calc(76px + var(--i) * 12px); min-height: 0; gap: 0; padding: 8px; border-radius: 24px; }
  .stack { gap: 24px; }
  .pcard__visual { order: -1; min-height: 0; height: clamp(170px, 26svh, 230px); border-radius: 18px; }
  .pcard__phone { width: 104px; left: 6%; bottom: -46%; }
  .pcard--vendeur .pcard__phone { bottom: -62%; }
  .pcard__body { padding: 18px 14px 14px; gap: 12px; }
  .pcard__title { font-size: 23px; }
  .pcard__text { font-size: 14.5px; }
  .pcard__list { gap: 8px; margin: 0; }
  .pcard__list li { font-size: 13.5px; gap: 10px; }
  .pcard__list svg { width: 20px; height: 20px; }
  .journey { height: 500vh; }
  .journey__pin { padding: 78px 0 18px; justify-content: flex-start; }
  .journey__grid { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .journey__left { grid-template-columns: 1fr auto; align-items: end; gap: 10px 16px; justify-items: stretch; }
  .journey__left .badge { grid-column: 1 / -1; justify-self: start; }
  .journey__title { font-size: 23px; max-width: 17ch; }
  .journey__left, .journey__right { align-self: stretch; }
  .journey__index { margin: 0; gap: 4px; }
  .journey__num { font-size: 52px; }
  .journey__of { font-size: 13px; padding-bottom: .5em; }
  .journey__center { flex: 1; min-height: 0; }
  .journey__orbit i:nth-child(1) { width: 300px; height: 300px; }
  .journey__orbit i:nth-child(2) { width: 430px; height: 430px; }
  .journey__orbit i:nth-child(3) { display: none; }
  .journey__phone { width: min(54vw, calc((100svh - 410px) * .487)); }
  .journey__copy { min-height: 92px; }
  .journey__copy article { gap: 6px; }
  .journey__copy h3 { font-size: 18px; }
  .journey__copy p { font-size: 14px; max-width: none; }
  .journey__bars { grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
  .jbar { font-size: 10.5px; }
  .jbar { gap: 8px; font-size: 11px; line-height: 1.25; }
  .jbar span { display: block; margin: 0 0 2px; }
  .showcase { height: 260vh; }
  .showcase__chip--a { left: -16%; top: 8%; } .showcase__chip--b { right: -12%; bottom: 14%; }
  .showcase__caption { flex-direction: column; align-items: flex-start; }
  .showcase__steps span { font-size: 12px; padding: 6px 10px; }
  .gather { height: 300vh; }
  .fcard { padding: 9px 12px 9px 9px; gap: 9px; border-radius: 13px; }
  .fcard b { font-size: 12.5px; } .fcard small { font-size: 11px; }
  .fcard .big { font-size: 20px; }
  .fcard--stack { min-width: 0; padding: 10px 14px; }
  .fcard--tech img { width: 32px; height: 32px; }
  .fcard__badge, .fcard--hide-m { display: none; }
  .fcard .chip__ico { width: 30px; height: 30px; }
  .bento { grid-template-columns: 1fr; }
  .scard { min-height: 0; padding: 24px; }
  .scard h3 { padding-top: 22px; }
  .manifesto { padding-top: 64px; }
  :root { --section: 72px; }
  .section-head, .pros__head { margin-bottom: 36px; gap: 16px; }
  .services .section-head { padding-top: 12px; }
  .section-head__lead { font-size: 16px; }
  .pros__head { grid-template-columns: 1fr; }
  .win { width: 72vw; margin-right: -12vw; }
  .download__panel { grid-template-columns: 1fr; border-radius: 24px; }
  .download__card { justify-self: stretch; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__top-btn { position: absolute; right: var(--gutter); top: 0; }
}

@media (max-width: 480px) {
  .btn { height: 50px; }
  .hero__tags li:nth-child(3) { display: none; }
}

/* =========================================================
   ARABIC (ar.html, dir="rtl") — Cairo, mirrored layout
   ========================================================= */
[dir="rtl"] { --f-display: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif; --f-body: 'Cairo', 'Inter', system-ui, sans-serif; }
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] *, [dir="rtl"] *::before { letter-spacing: 0 !important; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .h2 { font-weight: 700; }
[dir="rtl"] .hero__title { line-height: 1.3; }
[dir="rtl"] .h2, [dir="rtl"] .download__title { line-height: 1.35; }
[dir="rtl"] .manifesto__text { line-height: 1.45; font-weight: 600; }
[dir="rtl"] .gather__title { line-height: 1.3; }
[dir="rtl"] .journey__title, [dir="rtl"] .pcard__title { line-height: 1.4; }
[dir="rtl"] .journey__copy h3 { line-height: 1.4; }
[dir="rtl"] .line { padding-top: .12em; margin-top: -.12em; padding-bottom: .16em; margin-bottom: -.16em; }
[dir="rtl"] .hero__logo { right: auto; left: -26%; }
[dir="rtl"] .jbar { text-align: right; }
[dir="rtl"] .jbar i b { transform-origin: right; }
[dir="rtl"] .jbar span { margin: 0 0 0 8px; }
[dir="rtl"] .fcard__badge { margin: 0 6px 0 0; }
[dir="rtl"] .showcase__track { direction: ltr; font-weight: 700; }
[dir="rtl"] .showcase__track span { direction: rtl; }
[dir="rtl"] .pros__rail { direction: ltr; }
[dir="rtl"] .win figcaption { direction: rtl; text-align: right; left: 34%; right: 9%; }
[dir="rtl"] .btn svg:not(.btn__os), [dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg:not(.btn__os) { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .menu__links a { line-height: 1.5; }
@media (max-width: 1080px) { [dir="rtl"] .hero__logo { left: -30%; right: auto; } }
@media (max-width: 820px) {
  [dir="rtl"] .journey__title { font-size: 22px; }
  [dir="rtl"] .jbar { font-size: 11px; }
  [dir="rtl"] .footer__top-btn { right: auto; left: var(--gutter); }
}
