/* ============================================================
   Ogerant — Landing page
   Premium dark, futuristic, glassmorphism. Zero-build, vanilla.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #071957;          /* deep violet — lifted off near-black */
  --bg-2: #0e2470;
  --ink: #f5f2ff;
  --muted: #b6abe0;        /* a touch brighter to keep contrast on the lighter ground */
  --faint: #847aa8;

  --v1: #4a1fa8;   /* violet  */
  --v2: #7c54d0;   /* magenta */
  --v3: #b089f2;   /* pink    */
  --indigo: #33268f;
  --cyan: #b089f2; /* neon accent */
  --accent: #cd223b; /* brand red */
  --emerald: #34d399;

  --grad: linear-gradient(100deg, #4a1fa8 0%, #7c54d0 50%, #b089f2 100%);
  --grad-cool: linear-gradient(120deg, #b089f2 0%, #4a1fa8 70%);
  --grad-text: linear-gradient(100deg, #c4a8ff 0%, #e9d5ff 40%, #f0abfc 100%);

  --line: rgba(255, 255, 255, 0.10);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-2: rgba(255, 255, 255, 0.08);
  --glass-bd: rgba(255, 255, 255, 0.13);

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 30px 80px -30px rgba(74, 31, 168, 0.45);
  --shadow-soft: 0 16px 50px -24px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
  --nav-h: 72px;

  --font-display: 'Sora', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-feature-settings: 'cv11', 'ss01';
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(124, 84, 208, 0.35); color: #fff; }

/* ambient page glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 78% -8%, rgba(74, 31, 168, 0.30), transparent 60%),
    radial-gradient(50% 40% at 8% 8%, rgba(176, 137, 242, 0.12), transparent 60%),
    linear-gradient(180deg, #071957 0%, #0e2470 60%, #071957 100%);
}
/* subtle grid */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: clamp(72px, 11vh, 130px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 6vh, 64px); text-align: center; }
.section-head h2 { margin-top: 16px; }
.section-head .lead { margin-top: 18px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #c4a8ff;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(74, 31, 168, 0.14);
  border: 1px solid rgba(74, 31, 168, 0.32);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--v3); box-shadow: 0 0 12px var(--v3); }
.eyebrow.red { color: #ffb4b6; background: rgba(205, 34, 59,.12); border-color: rgba(205, 34, 59,.32); }
.eyebrow.red .dot { background: var(--accent); box-shadow: 0 0 12px var(--accent); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
h1 { font-size: clamp(40px, 6.6vw, 84px); }
h2 { font-size: clamp(30px, 4.6vw, 56px); letter-spacing: -0.025em; }
h3 { font-size: 21px; letter-spacing: -0.015em; }
.lead { font-size: clamp(16px, 1.6vw, 20px); color: var(--muted); line-height: 1.6; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; border-radius: 13px; padding: 14px 24px;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 40px -14px rgba(124, 84, 208, 0.8); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.35) 50%, transparent 75%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 56px -16px rgba(124, 84, 208, 0.95); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: var(--glass); color: var(--ink); border-color: var(--glass-bd); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--glass-2); border-color: rgba(255,255,255,0.22); }
.btn-lg { padding: 17px 30px; font-size: 16px; border-radius: 15px; }

/* ---------- Glass card ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(22, 15, 51, 0.74);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 6px 18px -6px rgba(74,31,168,0.8); color: #fff; font-weight: 900;
}
/* O'Gérant wordmark (assets/logo-gradient-dark.svg — white lettering,
   gradient O + red dot) sits directly on the dark nav. */
.brand img.brand-logo { height: 30px; width: auto; display: block; }
.brand .apos { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--muted); transition: color .2s; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; border-radius: 11px; }
.nav-burger { display: none; background: none; border: 0; color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 96px)); padding-bottom: clamp(60px, 10vh, 120px); overflow: hidden; }
#particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; z-index: 0; pointer-events: none; will-change: transform; }
.hero-blob.b1 { width: 480px; height: 480px; top: -120px; right: -60px; background: radial-gradient(circle, rgba(124, 84, 208,0.55), transparent 70%); }
.hero-blob.b2 { width: 420px; height: 420px; bottom: -160px; left: -80px; background: radial-gradient(circle, rgba(176, 137, 242,0.40), transparent 70%); }
.hero-blob.b3 { width: 320px; height: 320px; top: 30%; left: 44%; background: radial-gradient(circle, rgba(74, 31, 168,0.40), transparent 70%); }

.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero-copy { max-width: 620px; }
.hero h1 { margin: 22px 0 0; }
.hero .lead { margin-top: 22px; max-width: 540px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-assure { margin-top: 16px; color: var(--faint); font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; }
.hero-assure i { width: 15px; height: 15px; color: var(--cyan); vertical-align: -2px; }
.hero-trust { margin-top: 30px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
.hero-trust .stat b { color: var(--ink); font-weight: 800; font-size: 18px; font-family: var(--font-display); }
.hero-trust .divider { width: 1px; height: 28px; background: var(--line); }

/* ---- Hero visual: dashboard mockup + AI orb ---- */
.hero-visual { position: relative; }
.mock {
  position: relative; z-index: 2; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20,16,40,0.9), rgba(12,9,28,0.92));
  border: 1px solid var(--glass-bd); box-shadow: var(--shadow), var(--shadow-soft);
  transform: perspective(1400px) rotateY(-13deg) rotateX(6deg);
  transform-style: preserve-3d; will-change: transform;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3550; }
.mock-bar i:nth-child(1) { background: #ff5f57; } .mock-bar i:nth-child(2) { background: #febc2e; } .mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar .url { margin-left: 8px; font-size: 11px; color: var(--faint); font-family: var(--font-body); }
.mock-body { padding: 16px; display: grid; gap: 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.mk .lab { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; }
.mk .val { font-size: 20px; font-weight: 800; font-family: var(--font-display); margin-top: 3px; }
.mock-rows { display: grid; gap: 8px; }
.mrow { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px; background: rgba(255,255,255,0.025); border: 1px solid var(--line); }
.mrow .tag { font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 5px; background: rgba(74, 31, 168,.25); color: #d6c2ff; text-align: center; }
.mrow .nm { min-width: 0; }
.mrow .nm b { font-size: 12px; font-weight: 700; display: block; }
.mrow .nm span { font-size: 10px; color: var(--faint); }
.mrow .score { font-size: 13px; font-weight: 800; font-family: var(--font-display); }
.bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 4px; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--grad); width: 0; transition: width 1.2s var(--ease); }

.orb {
  position: absolute; z-index: 3; width: 120px; height: 120px; right: -28px; top: -40px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f0abfc, #7c54d0 42%, #4f1d96 75%);
  box-shadow: 0 0 60px rgba(124, 84, 208,0.8), inset 0 0 30px rgba(255,255,255,0.35);
  animation: orbFloat 7s var(--ease) infinite;
}
.orb::before, .orb::after {
  content: ""; position: absolute; inset: -16px; border-radius: 50%;
  border: 1px solid rgba(216,180,254,0.5);
}
.orb::after { inset: -30px; border-style: dashed; border-color: rgba(74, 31, 168,0.5); animation: spin 16s linear infinite; }
@keyframes orbFloat { 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Marquee trust strip ---- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scrollx 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 9px; color: var(--faint); font-size: 14px; font-weight: 600; white-space: nowrap; }
.marquee-track span b { color: var(--muted); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
/* Hidden initial state applies ONLY when JS is active (html.js). No-JS / crawlers / print see everything. */
html.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
html.js [data-reveal="left"] { transform: translateX(-34px); }
html.js [data-reveal="right"] { transform: translateX(34px); }
html.js [data-reveal="scale"] { transform: scale(0.94); }
html.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .orb, .hero-blob, .marquee-track { animation: none !important; }
}

/* ============================================================
   PROBLEM
   ============================================================ */
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prob-card { padding: 26px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-bd); transition: transform .3s var(--ease), border-color .3s; }
.prob-card:hover { transform: translateY(-5px); border-color: rgba(205, 34, 59,0.35); }
.prob-card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(205, 34, 59,0.12); color: #ff8a8d; margin-bottom: 16px; }
.prob-card .ic svg { width: 22px; height: 22px; }
.prob-card h3 { margin-bottom: 8px; }
.prob-card p { color: var(--muted); font-size: 14.5px; }
.prob-card .big { font-family: var(--font-display); font-weight: 800; font-size: 32px; background: linear-gradient(100deg,#e86a76,#cd223b); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 4px; }

/* ============================================================
   SOLUTION (split)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.sol-list { display: grid; gap: 16px; margin-top: 26px; }
.sol-item { display: flex; gap: 14px; align-items: flex-start; }
.sol-item .ck { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(52,211,153,0.14); color: var(--emerald); margin-top: 2px; }
.sol-item .ck svg { width: 17px; height: 17px; }
.sol-item h3 { font-size: 16px; font-weight: 700; }
.sol-item p { color: var(--muted); font-size: 14px; }

/* flowing network panel */
.flow-panel { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(circle at 50% 40%, rgba(74, 31, 168,0.18), transparent 65%); border: 1px solid var(--glass-bd); display: grid; place-items: center; }
.flow-panel .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(124, 84, 208,0.25); }
.flow-panel .ring.r1 { inset: 12%; } .flow-panel .ring.r2 { inset: 26%; border-style: dashed; animation: spin 30s linear infinite; } .flow-panel .ring.r3 { inset: 40%; }
.flow-core { width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #f0abfc, #7c54d0 50%, #4f1d96); box-shadow: 0 0 70px rgba(124, 84, 208,0.7); display: grid; place-items: center; color: #fff; z-index: 2; }
.flow-core svg { width: 42px; height: 42px; }
.flow-node { position: absolute; padding: 7px 12px; border-radius: 11px; background: rgba(16,12,34,0.85); border: 1px solid var(--glass-bd); font-size: 12px; font-weight: 600; backdrop-filter: blur(8px); display: inline-flex; align-items: center; gap: 7px; box-shadow: var(--shadow-soft); }
.flow-node svg { width: 14px; height: 14px; color: #c4a8ff; }
.flow-node.n1 { top: 8%; left: 8%; } .flow-node.n2 { top: 16%; right: 4%; } .flow-node.n3 { bottom: 12%; left: 2%; } .flow-node.n4 { bottom: 8%; right: 10%; }
.flow-panel .float { animation: orbFloat 6s var(--ease) infinite; }
.flow-node.n2 { animation-delay: -1.5s; } .flow-node.n3 { animation-delay: -3s; } .flow-node.n4 { animation-delay: -4.5s; }

/* ============================================================
   FEATURES
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card {
  position: relative; padding: 28px 26px; border-radius: var(--radius); overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-bd);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.feat-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad); -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 .35s;
}
.feat-card:hover { transform: translateY(-6px); background: var(--glass-2); }
.feat-card:hover::before { opacity: 1; }
.feat-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 9%, transparent); transition: transform .35s var(--ease); }
.feat-card:hover .ic { transform: scale(1.08) rotate(-4deg); }
.feat-card .ic svg { width: 25px; height: 25px; }
.feat-card h3 { margin-bottom: 9px; }
.feat-card p { color: var(--muted); font-size: 14.5px; }
.feat-card .tag { display: inline-block; margin-top: 14px; font-size: 11px; font-weight: 700; color: #c4a8ff; }

/* ============================================================
   PRODUCT PREVIEW
   ============================================================ */
.preview-wrap { position: relative; margin-top: 18px; }
.preview-glow { position: absolute; inset: -40px -10px; background: radial-gradient(50% 60% at 50% 30%, rgba(74, 31, 168,0.35), transparent 70%); filter: blur(20px); z-index: 0; }
.preview {
  position: relative; z-index: 1; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20,16,40,0.92), rgba(11,8,26,0.95));
  border: 1px solid var(--glass-bd); box-shadow: var(--shadow), var(--shadow-soft);
}
.preview .mock-bar { padding: 13px 16px; }
.preview-body { display: grid; grid-template-columns: 200px 1fr; min-height: 360px; }
.pv-side { border-right: 1px solid var(--line); padding: 18px 14px; display: grid; gap: 7px; align-content: start; }
.pv-side .nav-i { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; font-size: 13px; color: var(--muted); }
.pv-side .nav-i.on { background: rgba(74, 31, 168,0.18); color: #fff; }
.pv-side .nav-i svg { width: 16px; height: 16px; }
.pv-main { padding: 20px; display: grid; gap: 14px; align-content: start; }
.pv-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pv-chart { height: 140px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); padding: 14px; display: flex; align-items: flex-end; gap: 9px; }
.pv-chart .col { flex: 1; border-radius: 6px 6px 0 0; background: var(--grad); opacity: .85; height: 0; transition: height 1s var(--ease); }
@media (max-width: 720px) { .preview-body { grid-template-columns: 1fr; } .pv-side { display: none; } .pv-kpis { grid-template-columns: repeat(2,1fr); } }

/* ============================================================
   BENEFITS
   ============================================================ */
.ben-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ben { text-align: center; padding: 12px; }
.ben .ic { width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-bd); color: #c4a8ff; transition: transform .35s var(--ease); }
.ben:hover .ic { transform: translateY(-4px); }
.ben .ic svg { width: 26px; height: 26px; }
.ben h3 { font-size: 17px; margin-bottom: 7px; }
.ben p { color: var(--muted); font-size: 14px; }

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: clamp(40px,7vh,80px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { text-align: center; padding: 30px 18px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-bd); }
.stat-card .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4vw, 50px); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card .lab { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { padding: 26px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-bd); display: flex; flex-direction: column; }
.quote .stars { color: #fbbf24; letter-spacing: 2px; font-size: 13px; }
.quote p { margin: 14px 0 18px; font-size: 15px; color: var(--ink); line-height: 1.6; flex: 1; }
.quote .who { display: flex; align-items: center; gap: 11px; }
.quote .who .av { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; }
.quote .who .meta b { display: block; font-size: 13.5px; }
.quote .who .meta span { font-size: 12px; color: var(--faint); }

.poweredby { margin-top: 44px; text-align: center; color: var(--faint); font-size: 14px; }
.poweredby b { color: var(--muted); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final .panel {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(46px, 8vw, 84px) 28px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(74, 31, 168,0.22), rgba(124, 84, 208,0.10) 50%, rgba(176, 137, 242,0.12));
  border: 1px solid var(--glass-bd);
}
.cta-final .panel::before { content: ""; position: absolute; width: 500px; height: 500px; top: -250px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(124, 84, 208,0.5), transparent 70%); filter: blur(40px); }
.cta-final h2 { position: relative; }
.cta-final .lead { position: relative; margin: 16px auto 30px; max-width: 560px; }
.cta-final .actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-final .fineprint { position: relative; margin-top: 18px; color: var(--faint); font-size: 13px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 56px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 280px; }
.foot-col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #9a90c0; margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }
.foot-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
.foot-socials { display: flex; gap: 10px; }
.foot-socials a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-bd); color: var(--muted); transition: .2s; }
.foot-socials a:hover { color: #fff; border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }
.foot-socials svg { width: 17px; height: 17px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin: 0 auto; }
  .mock { transform: none; }
  .split { grid-template-columns: 1fr; }
  .prob-grid, .feat-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .ben-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* mobile dropdown menu */
@media (max-width: 640px) {
  .nav.open { background: rgba(22,15,51,0.96); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px; align-items: stretch;
    position: absolute; top: var(--nav-h); left: 0; right: 0; padding: 14px 24px 22px;
    background: rgba(22,15,51,0.98); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a { padding: 12px 8px; border-radius: 10px; font-size: 16px; }
  .nav.open .nav-links a:hover { background: var(--glass); }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: grid; place-items: center; }
  .prob-grid, .feat-grid, .quote-grid, .ben-grid, .stats-grid, .foot-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  h1 { font-size: clamp(34px, 11vw, 48px); }
  .orb { width: 84px; height: 84px; right: 6px; top: -28px; }
}

/* ============================================================
   THEME LAYER — simple.ma vibe: floating nav pill, minimal
   centered hero, watermarks, dark→light band rhythm.
   (Appended last; source-order overrides win.)
   ============================================================ */

/* ---- light / dark band tokens ---- */
:root {
  --bg-light: #f2f1f7;
  --ink-dark: #071957;
  --muted-dark: #4d4a78;
  --line-dark: rgba(7, 25, 87, 0.10);
}

/* ---- Floating nav pill ---- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; height: auto; display: flex; justify-content: center; border-bottom: 0; }
.nav .container {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  max-width: 1080px; width: calc(100% - 32px);
  padding: 9px 9px 9px 20px;
  background: rgba(22, 15, 51, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 10px 40px -16px rgba(0, 0, 0, 0.6);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.scrolled { background: transparent; }
.nav.scrolled .container { background: rgba(22, 15, 51, 0.82); box-shadow: 0 14px 50px -18px rgba(0, 0, 0, 0.72); }
.nav .nav-links a { color: #cabfee; }
.nav .nav-links a:hover { color: #fff; }

/* ---- Hero: minimal, centered ---- */
.hero { text-align: center; padding-bottom: clamp(50px, 8vh, 96px); }
.hero .hero-inner { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; max-width: none; }
.hero .eyebrow { margin-bottom: 4px; }
.hero .hero-sub { max-width: 600px; margin: 22px auto 0; }
.hero .hero-cta { justify-content: center; margin-top: 32px; }

.display { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
.hero h1.display { font-size: clamp(40px, 7vw, 82px); margin-top: 20px; }
.display .thin { font-weight: 300; color: #cabfee; }
.display .brandword { font-weight: 800; color: #fff; }
.display .brandword .apos { color: var(--accent); }

/* watermarks */
.wm { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.wm span { position: absolute; font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 7vw, 104px); letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.028); white-space: nowrap; }

/* hero stage (floating product on glow) */
.hero-stage { position: relative; margin: 54px auto 0; width: min(880px, 100%); perspective: 1700px; z-index: 2; }
.stage-glow { position: absolute; inset: -10% -6% -24%; background: radial-gradient(55% 62% at 50% 28%, rgba(124, 84, 208, 0.42), transparent 70%); filter: blur(34px); z-index: 0; }
.hero-stage .mock { position: relative; z-index: 2; transform: perspective(1700px) rotateX(7deg); transition: transform .4s var(--ease); }
.hero-stage .orb { right: -8px; top: -46px; z-index: 4; }

/* scroll cue */
.scrollcue { margin-top: 44px; display: inline-flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
.scrollcue i { width: 16px; height: 16px; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---- DARK bands (between light sections) ---- */
section.dark { background: linear-gradient(180deg, #071957 0%, #1c1446 52%, #071957 100%); }

/* ---- LIGHT bands ---- */
section.light { background: var(--bg-light); color: var(--ink-dark); }
section.light h1, section.light h2, section.light h3, section.light h4 { color: var(--ink-dark); }
section.light .lead { color: var(--muted-dark); }
section.light .eyebrow { color: #4a1fa8; background: rgba(74, 31, 168, 0.08); border-color: rgba(74, 31, 168, 0.20); }
section.light .eyebrow.red { color: #b3151c; background: rgba(205, 34, 59, 0.07); border-color: rgba(205, 34, 59, 0.20); }
section.light .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
section.light .prob-card, section.light .quote { background: #fff; border-color: var(--line-dark); box-shadow: 0 20px 54px -34px rgba(48, 22, 92, 0.45); }
section.light .prob-card:hover { border-color: rgba(205, 34, 59, 0.32); }
section.light .prob-card p, section.light .quote p, section.light .sol-item p, section.light .ben p { color: var(--muted-dark); }
section.light .quote p { color: #2c2444; }
section.light .sol-item .ck { background: rgba(74, 31, 168, 0.10); color: #4a1fa8; }
section.light .flow-panel { background: radial-gradient(circle at 50% 40%, rgba(74, 31, 168, 0.09), transparent 66%); border-color: var(--line-dark); }
section.light .flow-node { background: #fff; border-color: var(--line-dark); color: var(--ink-dark); box-shadow: 0 12px 34px -18px rgba(48, 22, 92, 0.35); }
section.light .flow-node svg { color: #4a1fa8; }
section.light .ben .ic { background: #fff; border-color: var(--line-dark); color: #4a1fa8; box-shadow: 0 12px 34px -20px rgba(48, 22, 92, 0.4); }
section.light .quote .who .meta span { color: #6f6790; }
section.light .poweredby { color: var(--muted-dark); }
section.light .preview { box-shadow: 0 40px 90px -40px rgba(48, 22, 92, 0.5); }

/* big number in problem cards (was .big) */
.big-num { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; margin-bottom: 4px; background: linear-gradient(100deg, #e86a76, #cd223b); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* statement section */
.statement { padding: clamp(80px, 13vh, 150px) 0; }
.statement .display.big { font-size: clamp(40px, 7.4vw, 90px); }

/* ---- responsive tweaks for the new layout ---- */
@media (max-width: 980px) {
  .hero-stage { transform: none; }
  .hero-stage .mock { transform: none; }
}
@media (max-width: 640px) {
  .nav .container { width: calc(100% - 22px); padding: 8px 8px 8px 16px; gap: 12px; }
  .nav.open .nav-links {
    position: absolute; top: 62px; left: 11px; right: 11px;
    display: flex; flex-direction: column; gap: 4px; align-items: stretch;
    padding: 12px; border-radius: 18px;
    background: rgba(22, 15, 51, 0.97); border: 1px solid var(--glass-bd);
    backdrop-filter: blur(18px); box-shadow: 0 20px 50px -18px rgba(0,0,0,0.7);
  }
  .nav.open .nav-links a { padding: 11px 10px; border-radius: 10px; font-size: 15px; color: #e8e2ff; }
  .wm span { font-size: clamp(30px, 12vw, 60px); }
  .scrollcue { display: none; }
}

/* ============================================================
   HERO — AI / premium motion layer
   ============================================================ */

/* drifting aurora behind the hero */
.aurora {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; will-change: transform;
  background:
    radial-gradient(40% 50% at 28% 30%, rgba(124, 84, 208, 0.18), transparent 60%),
    radial-gradient(36% 46% at 74% 38%, rgba(176, 137, 242, 0.13), transparent 60%),
    radial-gradient(34% 40% at 55% 78%, rgba(74, 31, 168, 0.14), transparent 62%);
  animation: auroraDrift 18s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(3%, 2.5%, 0) scale(1.1); }
}

/* headline brand word — shimmering sweep */
.display .brandword {
  background: linear-gradient(100deg, #ffffff 0%, #e9d5ff 28%, #ffffff 48%, #c4a8ff 68%, #ffffff 100%);
  background-size: 230% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 5.5s linear infinite;
}
.display .brandword .apos { -webkit-text-fill-color: var(--accent); color: var(--accent); background: none; }
@keyframes shimmer { to { background-position: -230% center; } }

/* ---- AI core: pulsing orb + floating data nodes ---- */
.ai-core { position: absolute; right: -30px; top: -56px; width: 132px; height: 132px; z-index: 6; }
.ai-orb {
  position: absolute; inset: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 34% 28%, #f5c9ff, #7c54d0 44%, #5a1b9e 80%);
  box-shadow: 0 0 54px rgba(124, 84, 208, 0.85), inset 0 0 26px rgba(255, 255, 255, 0.45);
  animation: orbFloat 6s var(--ease) infinite;
}
.ai-orb svg { width: 26px; height: 26px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.ai-ring { position: absolute; inset: 16px; border-radius: 50%; border: 1px solid rgba(216, 180, 254, 0.45); }
.ai-ring.r2 { inset: 2px; border-style: dashed; border-color: rgba(74, 31, 168, 0.55); animation: spin 18s linear infinite; }
.ai-pulse { position: absolute; inset: 36px; border-radius: 50%; animation: aipulse 2.8s ease-out infinite; }
.ai-pulse.d2 { animation-delay: 1.4s; }
@keyframes aipulse {
  0%   { box-shadow: 0 0 0 0 rgba(124, 84, 208, 0.5); opacity: .9; }
  70%  { box-shadow: 0 0 0 44px rgba(124, 84, 208, 0); opacity: 0; }
  100% { opacity: 0; }
}
.ai-orbit { position: absolute; animation: floaty 5.5s ease-in-out infinite; }
.ai-orbit.o2 { animation-delay: -1.8s; } .ai-orbit.o3 { animation-delay: -3.4s; }
.ai-orbit:not(.o2):not(.o3) { top: -10px; left: -40px; }
.ai-orbit.o2 { top: 44px; right: -52px; }
.ai-orbit.o3 { bottom: -16px; left: -8px; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.ai-bead {
  display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .01em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap; color: #e8def8;
  background: rgba(16, 12, 34, 0.9); border: 1px solid var(--glass-bd);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.7);
}
.ai-bead.alt { color: #8ce9f7; } .ai-bead.pos { color: #86efac; }

/* ---- live AI insight ticker ---- */
.ai-ticker {
  position: absolute; top: -20px; left: 16px; z-index: 7;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #e8def8;
  background: rgba(16, 12, 34, 0.85); border: 1px solid var(--glass-bd);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.75); max-width: min(70vw, 340px);
}
.ai-live { width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: livepulse 1.8s infinite; flex: none; }
@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.ai-ticker-lab { font-size: 9px; font-weight: 800; letter-spacing: .08em; padding: 2px 6px; border-radius: 5px; background: var(--grad); color: #fff; flex: none; }
#aiType { font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-caret { width: 2px; height: 13px; background: #c4a8ff; flex: none; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- scanning beam over the dashboard ---- */
.mock { position: relative; }
.mock .scan {
  position: absolute; left: 0; right: 0; top: 0; height: 48%; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(74, 31, 168, 0.14) 72%, rgba(124, 84, 208, 0.3));
  border-bottom: 1px solid rgba(199, 146, 255, 0.65);
  mix-blend-mode: screen; opacity: 0;
  animation: scanSweep 3.6s var(--ease) infinite;
}
@keyframes scanSweep {
  0% { transform: translateY(-50%); opacity: 0; }
  14% { opacity: 1; } 82% { opacity: 1; }
  100% { transform: translateY(175%); opacity: 0; }
}

/* reduce motion: calm everything */
@media (prefers-reduced-motion: reduce) {
  .aurora, .ai-orb, .ai-ring.r2, .ai-pulse, .ai-orbit, .ai-live, .ai-caret, .mock .scan, .display .brandword { animation: none !important; }
  .display .brandword { -webkit-text-fill-color: #fff; color: #fff; background: none; }
  .display .brandword .apos { -webkit-text-fill-color: var(--accent); color: var(--accent); }
  .mock .scan { display: none; }
}

/* AI core → row connecting lines */
.ai-links { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: visible; width: 100%; height: 100%; }
.ai-link {
  fill: none; stroke: url(#aiLinkGrad); stroke-width: 1.4; stroke-linecap: round;
  opacity: 0.55; stroke-dasharray: 5 7;
  filter: drop-shadow(0 0 3px rgba(124, 84, 208, 0.6));
  animation: linkflow 1.1s linear infinite;
  animation-delay: calc(var(--d, 0) * -0.36s);
}
@keyframes linkflow { to { stroke-dashoffset: -24; } }
.ai-spark { fill: #ffffff; filter: drop-shadow(0 0 5px rgba(216, 180, 254, 0.95)); }
@media (prefers-reduced-motion: reduce) {
  .ai-link { animation: none; opacity: 0.3; stroke-dasharray: none; }
}

/* ---- restraint pass: solid wordmark, calmer aurora, brighter thin line ---- */
.display .brandword { background: none; -webkit-text-fill-color: #fff; color: #fff; animation: none; }
.display .brandword .apos { -webkit-text-fill-color: var(--accent); color: var(--accent); }
.display .thin { font-weight: 400; color: #e3ddf7; }
.aurora { opacity: 0.7; animation-duration: 26s; }
.ai-ticker-txt { font-weight: 600; }

/* ============================================================
   PREMIUM PASS — trust pillars + benefit + stat cards
   ============================================================ */
.ben {
  position: relative; text-align: center; padding: 30px 22px 26px; border-radius: 18px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-bd);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.ben::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c, #7c54d0) 85%, transparent), transparent 58%);
  -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 .4s;
}
.ben:hover { transform: translateY(-7px); }
.ben:hover::before { opacity: 1; }
.ben .ic {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 18px; display: grid; place-items: center; border: 0;
  background: color-mix(in srgb, var(--c, #7c54d0) 20%, transparent);
  color: var(--c, #c4a8ff);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c, #7c54d0) 8%, transparent), 0 14px 30px -14px color-mix(in srgb, var(--c, #7c54d0) 60%, transparent);
  transition: transform .4s var(--ease);
}
.ben:hover .ic { transform: translateY(-3px) scale(1.07); }
.ben h3 { font-size: 16.5px; }

/* light-mode premium trust/benefit cards */
section.light .ben { background: #fff; border-color: var(--line-dark); box-shadow: 0 24px 56px -36px rgba(48, 22, 92, 0.4); }
section.light .ben:hover { box-shadow: 0 32px 66px -34px rgba(48, 22, 92, 0.5); }
section.light .ben .ic {
  background: color-mix(in srgb, var(--c, #4a1fa8) 13%, #fff);
  color: var(--c, #4a1fa8);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c, #4a1fa8) 6%, #fff), 0 14px 30px -16px color-mix(in srgb, var(--c, #4a1fa8) 42%, transparent);
}

/* premium stat band */
.stats.dark { overflow: hidden; }
.stats.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 130% at 50% -12%, rgba(124, 84, 208, 0.18), transparent 60%);
}
.stats .container { position: relative; z-index: 1; }
.stat-card {
  position: relative; padding: 34px 18px 30px; overflow: hidden;
  transition: transform .4s var(--ease), background .4s, border-color .4s, box-shadow .4s;
}
.stat-card::after {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 42%; height: 2px; border-radius: 0 0 4px 4px; background: var(--grad);
  opacity: .55; transition: width .4s var(--ease), opacity .4s;
}
.stat-card:hover { transform: translateY(-6px); background: var(--glass-2); border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 26px 60px -30px rgba(74, 31, 168, 0.6); }
.stat-card:hover::after { width: 72%; opacity: 1; }
.stat-card .num { background: linear-gradient(100deg, #ffffff 0%, #d8c4ff 46%, #8ce9f7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================================================
   i18n: language switcher + value cards + premium problem/solution + RTL
   ============================================================ */

/* language switcher (in nav pill) */
.lang-switch { display: inline-flex; align-items: center; gap: 1px; padding: 2px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.lang-switch button { border: 0; background: transparent; color: #cabfee; font-family: var(--font-body); font-weight: 700; font-size: 12px; line-height: 1; padding: 6px 9px; border-radius: 999px; cursor: pointer; transition: background .25s var(--ease), color .25s; }
.lang-switch button[aria-pressed="true"] { background: var(--grad); color: #fff; box-shadow: 0 4px 12px -4px rgba(124, 84, 208,0.7); }
.lang-switch button:hover:not([aria-pressed="true"]) { color: #fff; }

/* value cards — quote line */
.val-grid .ben { text-align: center; }
.ben em { display: block; font-style: normal; font-weight: 700; font-size: 12.5px; color: #c4a8ff; margin: 6px 0 9px; }

/* premium problem cards (light) */
section.light .prob-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line-dark); border-radius: 20px; padding: 28px 26px; box-shadow: 0 24px 56px -36px rgba(48,22,92,0.42); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
section.light .prob-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(205, 34, 59,0.7), transparent 58%); -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 .4s; }
section.light .prob-card:hover { transform: translateY(-7px); box-shadow: 0 34px 70px -34px rgba(48,22,92,0.5); }
section.light .prob-card:hover::before { opacity: 1; }
.prob-card .ic { width: 48px; height: 48px; border-radius: 14px; border: 0; background: linear-gradient(140deg, rgba(205, 34, 59,0.16), rgba(205, 34, 59,0.05)); color: #cd223b; box-shadow: 0 0 0 5px rgba(205, 34, 59,0.05), 0 14px 30px -16px rgba(205, 34, 59,0.5); transition: transform .4s var(--ease); }
section.light .prob-card:hover .ic { transform: translateY(-3px) scale(1.06); }
.big-num { font-size: 36px; }

/* premium solution checklist */
section.light .sol-item .ck { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(74, 31, 168,0.6); transition: transform .35s var(--ease); }
section.light .sol-item:hover .ck { transform: translateY(-2px) scale(1.06); }
section.light .flow-panel { box-shadow: 0 30px 70px -40px rgba(48,22,92,0.4); }

/* ---- RTL + Arabic typography ---- */
html[lang="ar"], [dir="rtl"] { font-family: 'Cairo', 'Inter', ui-sans-serif, system-ui, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .display, [dir="rtl"] .brandword { font-family: 'Cairo', 'Sora', sans-serif; letter-spacing: 0; }
[dir="rtl"] .split > div:first-child, [dir="rtl"] .sol-item h3, [dir="rtl"] .sol-item p, [dir="rtl"] .prob-card, [dir="rtl"] .feat-card { text-align: right; }
/* keep the product mockups left-to-right (they're a UI screenshot) */
[dir="rtl"] .mock, [dir="rtl"] .preview { direction: ltr; text-align: left; }
[dir="rtl"] .lang-switch { direction: ltr; }

@media (max-width: 640px) {
  .lang-switch button { padding: 6px 7px; font-size: 11px; }
}

/* Tamazight (Tifinagh) — LTR, dedicated font */
html[lang="zgh"], html[lang="zgh"] h1, html[lang="zgh"] h2, html[lang="zgh"] h3, html[lang="zgh"] h4,
html[lang="zgh"] .display, html[lang="zgh"] .brandword { font-family: 'Noto Sans Tifinagh', 'Sora', sans-serif; letter-spacing: 0; }
.lang-switch button[data-lang="zgh"] { font-family: 'Noto Sans Tifinagh', sans-serif; font-size: 14px; }

/* ============================================================
   MODULES grid (complete suite)
   ============================================================ */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.mod-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-bd); position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s; }
.mod-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, color-mix(in srgb, var(--c, #7c54d0) 85%, transparent), transparent 58%); -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 .35s; }
.mod-card:hover { transform: translateY(-5px); }
.mod-card:hover::before { opacity: 1; }
.mod-card .mic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, #7c54d0) 20%, transparent); color: var(--c, #c4a8ff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, #7c54d0) 8%, transparent); transition: transform .35s var(--ease); }
.mod-card:hover .mic { transform: scale(1.08) rotate(-4deg); }
.mod-card .mic svg { width: 22px; height: 22px; }
.mod-card h3 { font-size: 15.5px; line-height: 1.15; }
.mod-card p { font-size: 12.5px; margin-top: 3px; }
section.light .mod-card { background: #fff; border-color: var(--line-dark); box-shadow: 0 18px 44px -32px rgba(48,22,92,0.4); }
section.light .mod-card:hover { box-shadow: 0 28px 60px -34px rgba(48,22,92,0.5); }
section.light .mod-card h3 { color: var(--ink-dark); }
section.light .mod-card p { color: var(--muted-dark); }
section.light .mod-card .mic { background: color-mix(in srgb, var(--c, #4a1fa8) 13%, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, #4a1fa8) 6%, #fff); }

/* ============================================================
   INNOVATIVE CTA — rotating gradient border, orb, email capture
   ============================================================ */
@property --cta-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.cta-innov { position: relative; overflow: hidden; isolation: isolate; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px); }
.cta-innov::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--cta-a), #4a1fa8, #b089f2, #b089f2, #7c54d0, #4a1fa8); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ctaspin 7s linear infinite; pointer-events: none; }
@keyframes ctaspin { to { --cta-a: 360deg; } }
.cta-orb { position: absolute; width: 220px; height: 220px; top: -90px; right: -40px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #f0abfc, #7c54d0 46%, #4f1d96 80%); filter: blur(6px); opacity: .55; z-index: -1; animation: orbFloat 8s var(--ease) infinite; }
.cta-innov .eyebrow { position: relative; }
.cta-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.cta-input { display: inline-flex; align-items: center; gap: 9px; padding: 0 16px; height: 54px; min-width: 300px; border-radius: 15px; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-bd); backdrop-filter: blur(8px); transition: border-color .25s, box-shadow .25s; }
.cta-input:focus-within { border-color: rgba(124, 84, 208,0.6); box-shadow: 0 0 0 4px rgba(124, 84, 208,0.18); }
.cta-input i { width: 18px; height: 18px; color: var(--faint); }
.cta-input input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font-size: 15px; font-family: var(--font-body); }
.cta-input input::placeholder { color: var(--faint); }
.cta-form .btn-lg { height: 54px; }
@media (max-width: 540px) { .cta-input { min-width: 0; width: 100%; } .cta-form { flex-direction: column; } .cta-form .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .cta-innov::after { animation: none; } .cta-orb { animation: none; } }

/* ============================================================
   MODULES — premium "spotlight" grid (cursor-follow glow border)
   ============================================================ */
#modules { overflow: hidden; }
#modules::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(74, 31, 168,0.16), transparent 60%); }
#modules .container { position: relative; z-index: 1; }
.mod-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }

.mod-card {
  position: relative; overflow: hidden; padding: 18px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
  transition: transform .4s var(--ease), background .4s var(--ease);
}
/* glowing border that brightens toward the cursor (set via --x/--y in JS) */
.mod-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 1;
  background: radial-gradient(200px circle at var(--x, 50%) var(--y, 0%),
    color-mix(in srgb, var(--c, #7c54d0) 95%, transparent), rgba(255, 255, 255, 0.06) 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; transition: opacity .4s;
}
/* soft inner glow that follows the cursor on hover */
.mod-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%),
    color-mix(in srgb, var(--c, #7c54d0) 18%, transparent), transparent 50%);
}
.mod-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.06); }
.mod-card:hover::before { opacity: 1; }
.mod-card:hover::after { opacity: 1; }
.mod-card > * { position: relative; z-index: 2; }
.mod-card .mic {
  background: color-mix(in srgb, var(--c, #7c54d0) 22%, transparent);
  color: var(--c, #c4a8ff);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, #7c54d0) 9%, transparent),
              0 12px 26px -12px color-mix(in srgb, var(--c, #7c54d0) 75%, transparent);
}
.mod-card h3 { color: #fff; }
.mod-card p { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .mod-card { transition: none; } }

/* ============================================================
   UNIFIED PREMIUM HOVER — cursor-follow spotlight on every card
   ============================================================ */
.feat-card, .ben, .prob-card, .stat-card { position: relative; }
.feat-card > *, .ben > *, .prob-card > *, .stat-card > * { position: relative; z-index: 2; }

/* soft inner glow that follows the cursor on hover (works on light & dark) */
.feat-card::after, .ben::after, .prob-card::after, .stat-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0;
  transition: opacity .45s var(--ease);
  background: radial-gradient(240px circle at var(--x, 50%) var(--y, 50%),
    color-mix(in srgb, var(--c, #7c54d0) 17%, transparent), transparent 52%);
}
.feat-card:hover::after, .ben:hover::after, .prob-card:hover::after, .stat-card:hover::before { opacity: 1; }
.prob-card { --c: #cd223b; }
.stat-card { --c: #8b5cf6; }

/* feature cards (dark band): the border itself glows toward the cursor */
.feat-card::before {
  background: radial-gradient(220px circle at var(--x, 50%) var(--y, 0%),
    color-mix(in srgb, var(--c, #7c54d0) 95%, transparent), rgba(255, 255, 255, 0.05) 45%);
  opacity: .45; z-index: 1;
}
.feat-card:hover::before { opacity: 1; }
/* values cards sit on a dark band too — give them the glowing border */
#valeurs .ben::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 1;
  background: radial-gradient(210px circle at var(--x, 50%) var(--y, 0%),
    color-mix(in srgb, var(--c, #7c54d0) 92%, transparent), rgba(255, 255, 255, 0.06) 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5;
}
#valeurs .ben:hover::before { opacity: 1; }

/* a touch more lift + snappier icon motion on hover, consistently */
.feat-card:hover, #valeurs .ben:hover { transform: translateY(-7px); }
.feat-card:hover .ic, .ben:hover .ic, .prob-card:hover .ic, .mod-card:hover .mic { transform: translateY(-3px) scale(1.09) rotate(-4deg); }

/* slightly richer scroll-reveal: gentle scale + longer premium ease */
html.js [data-reveal] { transition: opacity .85s var(--ease), transform .85s var(--ease); }
html.js [data-reveal]:not([data-reveal="scale"]):not([data-reveal="left"]):not([data-reveal="right"]) { transform: translateY(34px) scale(.985); }

/* ============================================================
   RADAR (Solution panel) — live animated
   ============================================================ */
.flow-panel.radar { overflow: hidden; }
.radar .flow-core { z-index: 3; }
.radar .flow-node { z-index: 4; position: absolute; }

/* rotating sweep beam */
.radar .sweep { position: absolute; inset: 9%; border-radius: 50%; pointer-events: none; z-index: 0;
  background: conic-gradient(from 0deg, rgba(124, 84, 208,.30), rgba(124, 84, 208,0) 78deg, transparent 360deg);
  animation: spin 4.5s linear infinite; }

/* expanding radar pings */
.radar .ping { position: absolute; top: 50%; left: 50%; width: 26%; height: 26%; margin: -13% 0 0 -13%;
  border-radius: 50%; border: 1px solid rgba(124, 84, 208,.5); opacity: 0; z-index: 0;
  animation: radarPing 3.6s ease-out infinite; }
.radar .ping.p2 { animation-delay: 1.2s; } .radar .ping.p3 { animation-delay: 2.4s; }
@keyframes radarPing { 0% { transform: scale(.35); opacity: .7; } 75% { opacity: 0; } 100% { transform: scale(2.7); opacity: 0; } }

/* detected blips */
.radar .blip { position: absolute; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; z-index: 1;
  background: #7c54d0; box-shadow: 0 0 10px rgba(124, 84, 208,.9); animation: blipPulse 2.6s ease-in-out infinite; }
@keyframes blipPulse { 0%,100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.25); } }

/* signal lines core → nodes */
.radar .radar-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.radar .radar-lines line { stroke: url(#rl); stroke-width: .5; opacity: .5; stroke-linecap: round; stroke-dasharray: 2 3; animation: linkflow 1.1s linear infinite; }
.radar .radar-lines circle { fill: #fff; filter: drop-shadow(0 0 3px rgba(216,180,254,.95)); }

/* core halo pulse + live node dot */
.radar .core-halo { position: absolute; inset: -10px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(124, 84, 208,.5); animation: corePulse 2.6s ease-out infinite; }
@keyframes corePulse { 0% { box-shadow: 0 0 0 0 rgba(124, 84, 208,.45); } 70% { box-shadow: 0 0 0 26px rgba(124, 84, 208,0); } 100% { box-shadow: 0 0 0 0 rgba(124, 84, 208,0); } }
.radar .flow-node::after { content: ""; position: absolute; top: 7px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: #34d399; box-shadow: 0 0 6px #34d399; animation: livepulse 1.8s infinite; }

@media (prefers-reduced-motion: reduce) {
  .radar .sweep, .radar .ping, .radar .blip, .radar .radar-lines line, .radar .radar-lines circle, .radar .core-halo, .radar .flow-node::after { animation: none !important; }
  .radar .ping { display: none; }
}

/* RADAR fix: lock the core to the true centre + keep blips violet */
.flow-panel.radar { display: block; }            /* don't rely on grid flow */
.radar .flow-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; z-index: 3; }
.radar .blip { background: #7c54d0; box-shadow: 0 0 12px rgba(124, 84, 208,.95); }
.radar .sweep { background: conic-gradient(from 0deg, rgba(124, 84, 208,.34), rgba(124, 84, 208,0) 80deg, transparent 360deg); }

/* ============================================================
   RADAR — revamped (circular disc, robust centering)
   ============================================================ */
.flow-panel.radar { display: block; }
.radar-disc {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 88%; aspect-ratio: 1/1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(74, 31, 168,.13), transparent 70%);
}
.radar-disc .r-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(124, 84, 208,.22); }
.r-ring.r1 { inset: 0; }
.r-ring.r2 { inset: 18%; border-style: dashed; border-color: rgba(124, 84, 208,.32); }
.r-ring.r3 { inset: 36%; }
/* rotating sweep beam */
.r-sweep { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(124, 84, 208,.34), rgba(124, 84, 208,0) 72deg, transparent 360deg);
  animation: spin 4s linear infinite; }
/* sonar pings */
.r-sonar { position: absolute; inset: 36%; border-radius: 50%; border: 1.5px solid rgba(124, 84, 208,.5); opacity: 0; animation: rSonar 3.2s ease-out infinite; }
.r-sonar.s2 { animation-delay: 1.6s; }
@keyframes rSonar { 0% { transform: scale(.5); opacity: .6; } 100% { transform: scale(2.4); opacity: 0; } }
/* orbiting dot */
.r-orbit { position: absolute; inset: 7%; border-radius: 50%; animation: spin 14s linear infinite; }
.r-orbit .od { position: absolute; top: -5px; left: 50%; transform: translateX(-50%); width: 11px; height: 11px; border-radius: 50%; background: #b089f2; box-shadow: 0 0 14px #7c54d0; }
/* detected blips */
.r-blip { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #c4a8ff; box-shadow: 0 0 12px #7c54d0; opacity: 0; animation: rBlip 2.8s ease-in-out infinite; }
@keyframes rBlip { 0%,100% { opacity: 0; transform: scale(.4); } 45% { opacity: 1; transform: scale(1.2); } 75% { opacity: .25; } }
/* central AI core */
.r-core { position: relative; z-index: 3; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 36% 30%, #f0abfc, #7c54d0 50%, #4f1d96);
  box-shadow: 0 0 56px rgba(124, 84, 208,.7), inset 0 0 24px rgba(255,255,255,.35); }
.r-core svg { width: 38px; height: 38px; }
.r-core::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(124, 84, 208,.45); animation: corePulse 2.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .r-sweep, .r-sonar, .r-orbit, .r-blip, .r-core::before { animation: none !important; }
  .r-sonar { display: none; }
}

/* ============================================================
   FAQ (accessible <details> accordion)
   ============================================================ */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line-dark); border-radius: 14px; box-shadow: 0 14px 36px -30px rgba(48,22,92,.4); overflow: hidden; transition: box-shadow .3s var(--ease); }
.faq-item[open] { box-shadow: 0 22px 50px -32px rgba(48,22,92,.5); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--ink-dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { width: 20px; height: 20px; color: #4a1fa8; transition: transform .3s var(--ease); flex: none; }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-a { padding: 0 22px 20px; }
.faq-a p { font-size: 15px; line-height: 1.65; color: var(--muted-dark); margin: 0; }
[dir="rtl"] .faq-item summary { flex-direction: row-reverse; }

/* ============================================================
   ACCESSIBILITY (WCAG 2.1 AA / 2.2)
   ============================================================ */

/* Screen-reader-only utility */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Skip-to-content link — visible on keyboard focus */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 2000;
  transform: translateY(-150%); transition: transform .2s var(--ease);
  background: #fff; color: #181126; font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--v2); outline-offset: 2px; }
[dir="rtl"] .skip-link { left: auto; right: 10px; }

/* Visible keyboard focus on every interactive element */
:focus-visible {
  outline: 2px solid var(--v2);
  outline-offset: 2px;
  border-radius: 6px;
}
/* keep focus ring readable on light bands */
section.light :focus-visible,
.footer :focus-visible { outline-color: #4a1fa8; }
/* the email field shows its ring via .cta-input:focus-within — avoid a double ring */
.cta-input input:focus-visible { outline: none; }
/* mouse users keep the clean look (no outline without keyboard) */
:focus:not(:focus-visible) { outline: none; }

/* Minimum touch-target sizes (WCAG 2.2 §2.5.8) */
.lang-switch button { min-height: 30px; min-width: 30px; }
.nav-burger { min-height: 44px; min-width: 44px; }
.foot-socials a { min-height: 36px; min-width: 36px; display: inline-grid; place-items: center; }

/* TOC heading keeps its small-caps look after h4→h2 promotion */
.toc .toc-h { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted-dark); margin-bottom: 12px; }

/* Universal reduced-motion guard — neutralises any animation/transition we missed */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* skip-link target receives focus but shouldn't show a full-page ring */
main[tabindex="-1"]:focus, main[tabindex="-1"]:focus-visible { outline: none; }
