/* =========================================================
   LoQal FranX — marketing site styles
   Self-contained, no external deps (one optional font link).
   Vibrant, motion-rich, modern product site.
   ========================================================= */

/* =========================================================
   THEME — edit here
   ---------------------------------------------------------
   ALL theme tokens live in this single :root block. Re-skin
   the whole site by editing the values below — the rest of
   this stylesheet only references these variables, never raw
   colours.  (You can also override any of these from
   config.js via window.FRANX.theme, which is applied at load.)

   Quick start — the brand-defining knobs:
     --indigo-600 / --indigo-500 / --violet-400  → primary brand ramp
     --accent / --accent-strong                   → warm accent (CTAs, highlights)
     --grad-vivid / --grad-primary                → the signature gradients
     --font                                       → typeface
     --radius / --radius-lg / --radius-sm         → corner roundness
   ========================================================= */
:root {
  /* Palette: deep indigo/violet primary, warm amber accent, slate neutrals */
  --indigo-900: #1e1b4b;
  --indigo-800: #2e2a6e;
  --indigo-700: #4338ca;
  --indigo-600: #5b4fe0;
  --indigo-500: #6d5df6;
  --violet-400: #8b7ff9;
  --fuchsia: #d946ef;
  --cyan: #22d3ee;
  --accent: #ff9c3f;      /* warm amber */
  --accent-strong: #f97316;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --bg: #ffffff;
  --bg-soft: var(--slate-50);
  --text: var(--slate-800);
  --text-soft: var(--slate-500);
  --heading: var(--slate-900);
  --border: var(--slate-200);

  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(30, 27, 75, 0.08), 0 2px 6px rgba(30, 27, 75, 0.05);
  --shadow-lg: 0 24px 60px rgba(30, 27, 75, 0.16);
  --shadow-glow: 0 18px 50px -12px rgba(109, 93, 246, 0.5);
  --maxw: 1180px;
  --header-h: 70px;

  --grad-primary: linear-gradient(135deg, var(--indigo-600) 0%, var(--indigo-500) 50%, var(--violet-400) 100%);
  --grad-vivid: linear-gradient(120deg, #6d5df6 0%, #a855f7 38%, #d946ef 70%, #ff9c3f 100%);
  --grad-cool: linear-gradient(120deg, #6d5df6 0%, #22d3ee 100%);
  --grad-hero: radial-gradient(1200px 600px at 80% -10%, rgba(139,127,249,0.22), transparent 60%),
               radial-gradient(900px 500px at 0% 10%, rgba(255,156,63,0.12), transparent 55%);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--heading); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--indigo-600); text-decoration: none; }
a:hover { color: var(--indigo-700); }
img, svg { max-width: 100%; }

:focus-visible { outline: 3px solid var(--violet-400); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad-vivid); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--indigo-600);
  background: rgba(91,79,224,.09);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.section { padding: 84px 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 1.08rem; }
.lead { font-size: 1.15rem; color: var(--text-soft); }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-vivid); z-index: 100; transition: width .08s linear;
  box-shadow: 0 0 10px rgba(168,85,247,.6);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: .98rem;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap; line-height: 1; position: relative;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-md); background-size: 160% 160%; }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.btn-accent { background: var(--accent-strong); color: #fff; box-shadow: 0 8px 22px -8px rgba(249,115,22,.6); }
.btn-accent:hover { color: #fff; background: #ea6a0c; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--indigo-700); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--indigo-700); border-color: var(--indigo-500); transform: translateY(-2px); }
.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { color: #fff; background: rgba(255,255,255,.16); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.7);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.88);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(30,27,75,.06);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--heading); letter-spacing: -.02em; }
.brand:hover { color: var(--heading); }
.brand .logo-mark { width: 32px; height: 32px; flex: none; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.brand b { color: var(--indigo-600); }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate-600); font-weight: 600; font-size: .95rem; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--grad-vivid); border-radius: 2px; transition: width .25s ease; }
.nav-links a:hover { color: var(--indigo-700); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta a.signin { color: var(--slate-700); font-weight: 700; font-size: .95rem; }
.nav-cta a.signin:hover { color: var(--indigo-700); }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--border);
  border-radius: 10px; width: 44px; height: 42px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--slate-700);
  position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* CSS aurora fallback / layer behind canvas */
.hero-aurora { position: absolute; inset: -20%; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .9; }
.hero-aurora::before, .hero-aurora::after {
  content: ""; position: absolute; border-radius: 50%;
}
.hero-aurora::before {
  width: 55vw; height: 55vw; left: 50%; top: -10%;
  background: radial-gradient(circle at 30% 30%, rgba(168,85,247,.45), transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(34,211,238,.30), transparent 60%);
  animation: aurora1 18s ease-in-out infinite alternate;
}
.hero-aurora::after {
  width: 45vw; height: 45vw; right: -5%; bottom: -15%;
  background: radial-gradient(circle at 50% 50%, rgba(255,156,63,.35), transparent 60%),
              radial-gradient(circle at 30% 70%, rgba(109,93,246,.40), transparent 60%);
  animation: aurora2 22s ease-in-out infinite alternate;
}
@keyframes aurora1 { 0% { transform: translate(-50%,0) rotate(0deg) scale(1); } 100% { transform: translate(-42%,8%) rotate(40deg) scale(1.15); } }
@keyframes aurora2 { 0% { transform: translate(0,0) rotate(0deg) scale(1.05); } 100% { transform: translate(-6%,-6%) rotate(-35deg) scale(1.2); } }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 92px 0 80px; }
.hero .eyebrow { background: rgba(255,255,255,.7); border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 8px; }
.hero .eyebrow .pulse { width: 7px; height: 7px; border-radius: 999px; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.hero h1 span.grad { background: var(--grad-vivid); background-size: 200% 200%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradShift 8s ease infinite; }
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero p.sub { font-size: 1.22rem; color: var(--slate-600); max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-note { font-size: .9rem; color: var(--text-soft); }
.hero-note b { color: var(--slate-700); }

/* mock dashboard card */
.hero-visual { position: relative; }
.dash-card {
  background: rgba(255,255,255,.92); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px; position: relative; z-index: 2;
  backdrop-filter: blur(6px);
}
.dash-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius-lg); padding: 1px;
  background: var(--grad-vivid); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; pointer-events: none;
}
.dash-card .dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash-card .dash-title { font-weight: 800; color: var(--heading); font-size: 1.02rem; }
.dash-pill { font-size: .72rem; font-weight: 700; color: var(--indigo-700); background: rgba(91,79,224,.1); padding: 4px 10px; border-radius: 999px; }
.match-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); margin-bottom: 10px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.match-row:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.match-row:last-child { margin-bottom: 0; }
.avatar { width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: .9rem; }
.match-meta { flex: 1; min-width: 0; }
.match-meta .name { font-weight: 700; color: var(--heading); font-size: .92rem; }
.match-meta .desc { font-size: .78rem; color: var(--text-soft); }
.score { font-weight: 800; font-size: .95rem; }
.score.high { color: #16a34a; }
.score.mid  { color: var(--accent-strong); }
.bar { height: 6px; border-radius: 999px; background: var(--slate-100); overflow: hidden; margin-top: 4px; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--grad-vivid); width: 0; transition: width 1.1s cubic-bezier(.16,1,.3,1); }
.float-badge {
  position: absolute; z-index: 3; background: rgba(255,255,255,.92); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-md); padding: 10px 14px; font-size: .82rem; font-weight: 700; color: var(--slate-700);
  display: flex; align-items: center; gap: 8px; backdrop-filter: blur(6px);
}
.float-badge .dot { width: 8px; height: 8px; border-radius: 999px; background: #16a34a; }
.float-badge.b1 { top: -18px; left: -22px; animation: float 6s ease-in-out infinite; }
.float-badge.b2 { bottom: -16px; right: -10px; animation: float 7s ease-in-out infinite .8s; }
.float-badge svg { width: 16px; height: 16px; color: var(--indigo-600); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Marquee (sector pills) ---------- */
.marquee { overflow: hidden; padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pill {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  background: #fff; border: 1px solid var(--border); color: var(--slate-700); box-shadow: var(--shadow-sm);
}
.pill .pdot { width: 8px; height: 8px; border-radius: 999px; background: var(--grad-vivid); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--indigo-900); color: #fff; position: relative; overflow: hidden; }
.stats-band::before { content:""; position:absolute; inset:0; background:
  radial-gradient(700px 380px at 15% 0%, rgba(168,85,247,.35), transparent 60%),
  radial-gradient(700px 380px at 85% 100%, rgba(34,211,238,.25), transparent 60%),
  radial-gradient(600px 300px at 50% 120%, rgba(255,156,63,.22), transparent 60%);
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 52px 0; text-align: center; }
.stat .num { font-size: 2.3rem; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1; display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.stat .num b { color: var(--accent); }
.stat .num .suffix { background: var(--grad-vivid); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .label { font-size: .9rem; color: rgba(255,255,255,.72); margin-top: 8px; }

/* ---------- Interactive matchmaker (showpiece) ---------- */
.matchmaker { background: var(--indigo-900); color: #fff; position: relative; overflow: hidden; }
.matchmaker::before { content:""; position:absolute; inset:0; background:
  radial-gradient(900px 500px at 10% -10%, rgba(168,85,247,.35), transparent 60%),
  radial-gradient(800px 500px at 100% 100%, rgba(34,211,238,.22), transparent 55%);
}
.matchmaker .section-head h2, .matchmaker .section-head { color: #fff; }
.matchmaker .section-head p { color: rgba(255,255,255,.75); }
.matchmaker .eyebrow { color: #fff; background: rgba(255,255,255,.12); }
.mm-wrap { position: relative; z-index: 2; display: grid; grid-template-columns: .82fr 1.18fr; gap: 36px; align-items: start; }
.mm-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(6px); }
.mm-panel h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.mm-sub { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.mm-label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); margin: 20px 0 10px; }
.mm-label:first-of-type { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: inherit; cursor: pointer; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.85);
  padding: 9px 15px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  transition: all .18s ease;
}
.chip:hover { border-color: rgba(255,255,255,.5); color: #fff; transform: translateY(-1px); }
.chip.active { background: var(--grad-vivid); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px rgba(217,70,239,.7); }
.mm-city { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-family: inherit; font-size: .92rem; }
.mm-city option { color: #111; }
.mm-city:focus { outline: none; border-color: var(--violet-400); box-shadow: 0 0 0 3px rgba(139,127,249,.3); }

.mm-results { display: flex; flex-direction: column; gap: 12px; min-height: 320px; }
.mm-results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.mm-results-head .ttl { font-weight: 800; color: #fff; }
.mm-count { font-size: .8rem; color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); padding: 4px 12px; border-radius: 999px; }
.mm-card {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 14px 16px;
  transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .45s ease, box-shadow .25s ease;
}
.mm-card:hover { box-shadow: 0 14px 36px -14px rgba(168,85,247,.6); border-color: rgba(255,255,255,.28); }
.mm-card.enter { opacity: 0; transform: translateY(14px) scale(.98); }
.mm-card .mm-logo { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: .95rem; }
.mm-card .mm-name { font-weight: 800; color: #fff; font-size: .98rem; }
.mm-card .mm-tags { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 2px; }
.mm-card .mm-bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 9px; }
.mm-card .mm-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--grad-vivid); width: 0; transition: width .9s cubic-bezier(.16,1,.3,1); }
.mm-pct { font-weight: 800; font-size: 1.25rem; line-height: 1; text-align: right; }
.mm-pct .lbl { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 4px; }
.mm-pct.t-high { color: #4ade80; }
.mm-pct.t-mid { color: var(--accent); }
.mm-pct.t-low { color: #f87171; }
.mm-empty { text-align: center; padding: 48px 20px; color: rgba(255,255,255,.6); border: 1px dashed rgba(255,255,255,.18); border-radius: 16px; }
.mm-note { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 4px; text-align: center; }

/* ---------- Problem / Solution ---------- */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ps-card { border-radius: var(--radius-lg); padding: 34px; border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease; }
.ps-card.problem { background: #fff; }
.ps-card.problem:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ps-card.solution { background: var(--indigo-900); color: rgba(255,255,255,.86); border-color: transparent; position: relative; overflow: hidden; }
.ps-card.solution::before { content:""; position:absolute; inset:0; background: radial-gradient(500px 300px at 90% 0%, rgba(168,85,247,.4), transparent 60%), radial-gradient(400px 240px at 0% 100%, rgba(255,156,63,.22), transparent 60%); }
.ps-card.solution > * { position: relative; }
.ps-card.solution h3, .ps-card.solution h2 { color: #fff; }
.ps-card h3 { margin-bottom: 18px; }
.ps-list { list-style: none; padding: 0; margin: 0; }
.ps-list li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; font-size: 1rem; }
.ps-list li svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.ps-card.problem .ps-list svg { color: #ef4444; }
.ps-card.solution .ps-list svg { color: var(--accent); }

/* ---------- Features grid ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.feature::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); opacity: 0;
  background: radial-gradient(400px 200px at var(--mx,50%) var(--my,0%), rgba(109,93,246,.10), transparent 60%);
  transition: opacity .3s ease; pointer-events: none;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(109,93,246,.35); }
.feature:hover::after { opacity: 1; }
.feature .ficon {
  width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary); margin-bottom: 16px; box-shadow: 0 8px 18px -8px rgba(91,79,224,.6);
  transition: transform .3s ease;
}
.feature:hover .ficon { transform: scale(1.08) rotate(-4deg); }
.feature .ficon svg { width: 26px; height: 26px; color: #fff; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--text-soft); font-size: .95rem; margin: 0; }

/* ---------- Audience tabs ---------- */
.aud-tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--slate-100); border-radius: 999px; margin: 0 auto 36px; position: relative; }
.aud-tab { font-family: inherit; cursor: pointer; border: none; background: transparent; color: var(--slate-600); font-weight: 700; font-size: .95rem; padding: 10px 22px; border-radius: 999px; transition: color .2s ease; position: relative; z-index: 2; }
.aud-tab.active { color: #fff; }
.aud-tab-pill { position: absolute; top: 6px; bottom: 6px; border-radius: 999px; background: var(--grad-vivid); box-shadow: 0 8px 20px -8px rgba(217,70,239,.6); transition: transform .35s cubic-bezier(.16,1,.3,1), width .35s cubic-bezier(.16,1,.3,1); z-index: 1; }
.aud-panel { display: none; }
.aud-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; animation: panelIn .45s cubic-bezier(.16,1,.3,1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.aud-panel h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }

/* ---------- Split audience sections (shared media card) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: -1; }
.split h2 { margin-bottom: 8px; }
.split .lead { margin-bottom: 22px; }
.benefit-list { list-style: none; padding: 0; margin: 0 0 26px; }
.benefit-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.benefit-list li svg { width: 22px; height: 22px; color: var(--indigo-600); flex: none; margin-top: 2px; }
.benefit-list li b { color: var(--heading); }
.split-media {
  background: var(--grad-vivid); background-size: 160% 160%; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-glow);
  animation: gradShift 12s ease infinite;
}
.media-card { background: #fff; border-radius: var(--radius); padding: 20px; }
.media-card .mc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.media-card .mc-row:last-child { border-bottom: none; }
.media-card .mc-ic { width: 38px; height: 38px; border-radius: 11px; background: rgba(91,79,224,.1); display: flex; align-items: center; justify-content: center; flex: none; }
.media-card .mc-ic svg { width: 20px; height: 20px; color: var(--indigo-600); }
.media-card .mc-row .t { font-weight: 700; color: var(--heading); font-size: .92rem; }
.media-card .mc-row .s { font-size: .8rem; color: var(--text-soft); }
.media-card .mc-row .right { margin-left: auto; font-weight: 800; font-size: .85rem; color: #16a34a; }

/* ---------- Pipeline (animated kanban) ---------- */
.pipeline { background: var(--bg-soft); }
.pipe-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pipe-col { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; min-height: 230px; box-shadow: var(--shadow-sm); }
.pipe-col h4 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.pipe-col h4 .pdotc { width: 9px; height: 9px; border-radius: 999px; }
.pipe-col[data-stage="lead"] .pdotc { background: var(--slate-400); }
.pipe-col[data-stage="matched"] .pdotc { background: var(--indigo-500); }
.pipe-col[data-stage="meeting"] .pdotc { background: var(--cyan); }
.pipe-col[data-stage="deal"] .pdotc { background: #16a34a; }
.pipe-cards { display: flex; flex-direction: column; gap: 10px; }
.pipe-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  box-shadow: var(--shadow-sm); transition: transform .55s cubic-bezier(.16,1,.3,1), opacity .55s ease;
}
.pipe-card .pc-top { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.pipe-card .pc-av { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: .68rem; flex: none; }
.pipe-card .pc-name { font-weight: 700; font-size: .82rem; color: var(--heading); }
.pipe-card .pc-meta { font-size: .72rem; color: var(--text-soft); }
.pipe-card .pc-score { margin-left: auto; font-weight: 800; font-size: .78rem; color: var(--indigo-600); }
.pipe-card.flash { animation: cardFlash .8s ease; }
@keyframes cardFlash { 0% { box-shadow: 0 0 0 0 rgba(109,93,246,.5); } 100% { box-shadow: 0 0 0 8px rgba(109,93,246,0); } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.step { position: relative; padding: 28px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step .num { width: 44px; height: 44px; border-radius: 13px; background: var(--grad-vivid); color: #fff; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; box-shadow: 0 8px 18px -8px rgba(217,70,239,.6); }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--text-soft); font-size: .93rem; margin: 0; }

/* ---------- Pricing / Request access ---------- */
.cta-band {
  background: var(--indigo-900); color: #fff; border-radius: var(--radius-lg);
  padding: 52px; position: relative; overflow: hidden;
}
.cta-band::before { content:""; position:absolute; inset:0; background:
  radial-gradient(700px 400px at 10% -10%, rgba(168,85,247,.4), transparent 60%),
  radial-gradient(600px 360px at 100% 110%, rgba(34,211,238,.25), transparent 55%),
  radial-gradient(500px 300px at 60% 50%, rgba(255,156,63,.18), transparent 60%);
}
.cta-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta-grid h2 { color: #fff; }
.cta-grid p { color: rgba(255,255,255,.8); }
.tiers { display: grid; gap: 14px; }
.tier { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 18px 20px; transition: transform .2s ease, background .2s ease; }
.tier:hover { transform: translateX(4px); background: rgba(255,255,255,.13); }
.tier .t-name { font-weight: 800; color: #fff; }
.tier .t-desc { font-size: .9rem; color: rgba(255,255,255,.72); margin: 2px 0 0; }

.lead-form { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); }
.lead-form h3 { margin-bottom: 4px; }
.lead-form p.fine { font-size: .85rem; color: var(--text-soft); margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--slate-700); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px;
  font-family: inherit; font-size: .95rem; color: var(--text); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo-500); box-shadow: 0 0 0 3px rgba(91,79,224,.15); }
.lead-form .btn { width: 100%; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; background: #fff; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item.open { border-color: rgba(109,93,246,.4); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 1.02rem; color: var(--heading);
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q .chev { width: 20px; height: 20px; flex: none; transition: transform .2s ease; color: var(--indigo-600); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding: 0 22px 18px; color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-900); color: rgba(255,255,255,.7); padding: 60px 0 30px; position: relative; overflow: hidden; }
.site-footer::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 300px at 90% 0%, rgba(109,93,246,.18), transparent 60%); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand b { color: var(--violet-400); }
.footer-about { font-size: .92rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: .86rem; }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom .badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-bottom .badges span { background: rgba(255,255,255,.08); padding: 4px 10px; border-radius: 999px; font-size: .78rem; }

/* ---------- Legal / simple pages ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--indigo-900); color: #fff; padding: 72px 0 48px; }
.page-hero::before { content:""; position:absolute; inset:0; background:
  radial-gradient(700px 360px at 15% -10%, rgba(168,85,247,.4), transparent 60%),
  radial-gradient(600px 340px at 90% 110%, rgba(34,211,238,.22), transparent 55%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); }
.page-hero .eyebrow { color: #fff; background: rgba(255,255,255,.14); }
.page-hero .lead { color: rgba(255,255,255,.78); }
.prose { max-width: 820px; margin: 0 auto; padding: 48px 0 80px; }
.prose h2 { font-size: 1.4rem; margin-top: 36px; }
.prose h3 { font-size: 1.1rem; margin-top: 24px; }
.prose p, .prose li { color: var(--slate-600); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.note-box { background: var(--slate-50); border: 1px solid var(--border); border-left: 4px solid var(--accent-strong); border-radius: 10px; padding: 16px 18px; font-size: .92rem; color: var(--slate-600); margin: 0 0 28px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 18px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(109,93,246,.35); }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card a { font-weight: 700; }

/* ---------- WhatsApp button ---------- */
.btn-whatsapp { background: #25d366; color: #0b3d20; box-shadow: 0 8px 22px -8px rgba(37,211,102,.6); }
.btn-whatsapp:hover { background: #1fbe5a; color: #0b3d20; transform: translateY(-2px); }
.btn-whatsapp svg { width: 18px; height: 18px; }

/* Form actions row (Request access + Send on WhatsApp) */
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form .form-actions .btn { width: 100%; }
.head-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* ---------- Featured brands strip ---------- */
.brandcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.brandcard {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.brandcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(109,93,246,.35); }
.brandcard-mark {
  align-self: flex-start; color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em;
  padding: 10px 16px; border-radius: 12px; box-shadow: 0 8px 18px -8px rgba(91,79,224,.55);
}
.brandcard-sector {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--indigo-600); background: rgba(109,93,246,.1); padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
}
.brandcard-line { color: var(--text-soft); font-size: .92rem; margin: 0 0 8px; }
.brandcard-invest { color: var(--heading); font-weight: 700; font-size: .88rem; margin: 0; }

/* ---------- Omnichannel channels ---------- */
.channels-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.channel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.channel:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(109,93,246,.35); }
.channel .ficon {
  width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary); margin-bottom: 16px; box-shadow: 0 8px 18px -8px rgba(91,79,224,.6); transition: transform .3s ease;
}
.channel:hover .ficon { transform: scale(1.08) rotate(-4deg); }
.channel .ficon svg { width: 26px; height: 26px; color: #fff; }
.channel h3 { font-size: 1.1rem; margin-bottom: 8px; }
.channel p { color: var(--text-soft); font-size: .95rem; margin: 0; }
/* Headline channels (WhatsApp + IVR) get an accent treatment */
.channel.channel-lead { border-color: rgba(109,93,246,.4); box-shadow: var(--shadow-md); }
.channel.channel-lead::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-vivid);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .mm-wrap { grid-template-columns: 1fr; gap: 24px; }
  .brandcards, .channels-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .ps-grid, .split, .cta-grid, .contact-grid, .aud-panel.active { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pipe-board { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 12px 24px 20px; margin: 0; }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-links a::after { display: none; }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 14px; }
  .nav-cta .btn, .nav-cta a.signin { width: 100%; text-align: center; justify-content: center; }
  .nav-toggle { display: flex; }
  .cta-band { padding: 32px 22px; }
  .aud-tabs { display: flex; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .features-grid, .steps, .stats-grid, .footer-grid, .pipe-board, .brandcards, .channels-grid { grid-template-columns: 1fr; }
  .form-actions { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .float-badge { display: none; }
  .pipe-col { min-height: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-canvas { display: none; }
  .marquee-track { animation: none; }
}
