/* Vaancoin — public site design system. Palette shared with app.html / admin.html. */

:root {
  --ink-950: #050B17;
  --ink-900: #08122A;
  --ink-800: #0D1C3B;
  --ink-700: #16294F;
  --ink-600: #233A66;

  --sky-600: #0284C7;
  --sky-500: #0EA5E9;
  --sky-400: #38BDF8;
  --sky-300: #7DD3FC;
  --sky-100: #E0F4FE;
  --brand-violet: #7D8FF0;

  --surface: #F3F5F9;
  --surface-2: #E9EDF4;
  --card: #FFFFFF;
  --fg: #12151F;
  --muted: #5B6478;
  --muted-2: #8A93A8;
  --line: rgba(14, 22, 44, 0.09);
  --line-strong: rgba(14, 22, 44, 0.16);
  --on-dark: #EAF2FF;
  --on-dark-muted: #9AACCB;
  --line-dark: rgba(148, 182, 255, 0.14);

  --ok: #0E9C86;
  --bad: #D1453C;

  --font-display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(12, 22, 48, 0.06), 0 1px 1px rgba(12, 22, 48, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(12, 22, 48, 0.18), 0 2px 6px rgba(12, 22, 48, 0.05);
  --shadow-lg: 0 30px 60px -24px rgba(12, 22, 48, 0.28), 0 8px 20px -8px rgba(12, 22, 48, 0.12);
  --glow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 10px 40px -8px rgba(14, 165, 233, 0.55);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-base: 280ms;

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1200px;

  color-scheme: light;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 220ms var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 380ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sky-400); color: #04121F; }

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

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--ink-900); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top var(--t-fast); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: radial-gradient(60% 50% at 50% 45%, #0D2347 0%, var(--ink-950) 70%);
  transition: opacity 500ms var(--ease-out), visibility 500ms;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 22px; }
.preloader__mark { width: 84px; height: 84px; }
.preloader__mark path {
  fill: none; stroke: url(#plGrad); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 260; stroke-dashoffset: 260;
  animation: pl-draw 1.1s var(--ease-out) forwards;
}
.preloader__mark path:nth-child(2) { animation-delay: 0.18s; }
.preloader__bar { width: 140px; height: 3px; border-radius: 3px; background: rgba(148, 182, 255, 0.15); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--sky-500), var(--sky-300)); animation: pl-bar 1s var(--ease-in-out) infinite; }
.preloader__label { font-family: var(--font-display); letter-spacing: 0.32em; font-size: 12px; font-weight: 700; color: var(--on-dark-muted); text-transform: uppercase; }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }
@keyframes pl-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sky-500), var(--brand-violet)); pointer-events: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--sky-500); --btn-fg: #fff; --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-weight: 700; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), border-color var(--t-base);
}
.btn i { font-size: 13px; transition: transform var(--t-base) var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover i.fa-arrow-right, .btn:hover i.fa-arrow-up-right-from-square { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 90ms; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 700ms var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn--primary { box-shadow: 0 8px 24px -10px rgba(14, 165, 233, 0.8); background: linear-gradient(135deg, var(--sky-500), var(--sky-400)); }
.btn--primary:hover { box-shadow: var(--glow); }
.btn--ghost-dark { --btn-bg: rgba(255, 255, 255, 0.04); --btn-fg: var(--on-dark); --btn-bd: rgba(148, 182, 255, 0.28); backdrop-filter: blur(8px); }
.btn--ghost-dark:hover { --btn-bd: rgba(125, 211, 252, 0.6); --btn-bg: rgba(56, 189, 248, 0.08); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--sky-500); --btn-fg: var(--sky-600); }
.btn--dark { --btn-bg: var(--ink-900); --btn-fg: #fff; }
.btn--dark:hover { box-shadow: var(--shadow-lg); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sky-600); }
.link-arrow i { font-size: 12px; transition: transform var(--t-base) var(--ease-out); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  color: var(--on-dark);
  transition: background-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), color var(--t-base), transform 400ms var(--ease-out);
}
.site-header.is-solid { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line); color: var(--fg); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; flex-shrink: 0; }
.brand__logo { width: 38px; height: 38px; border-radius: 11px; background: #fff; padding: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 6px 18px -6px rgba(14, 165, 233, 0.6); object-fit: contain; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link { position: relative; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px; opacity: 0.86; transition: opacity var(--t-fast), background-color var(--t-fast); }
.nav__link:hover { opacity: 1; background: rgba(148, 182, 255, 0.1); }
.site-header.is-solid .nav__link:hover { background: var(--surface); }
.nav__link[aria-current="page"] { opacity: 1; }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--sky-400); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn--ghost-dark { min-height: 40px; }
.site-header.is-solid .btn--ghost-dark { --btn-fg: var(--fg); --btn-bd: var(--line-strong); --btn-bg: transparent; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; border: 1px solid rgba(148, 182, 255, 0.25); }
.site-header.is-solid .burger { border-color: var(--line-strong); }
.burger span { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: background-color var(--t-fast); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--t-base) var(--ease-out); }
.burger span::before { transform: translateY(-6px); }
.burger span::after { transform: translateY(6px); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--ink-950); color: var(--on-dark);
  display: flex; flex-direction: column; gap: 6px;
  clip-path: circle(0% at calc(100% - 40px) 36px);
  visibility: hidden;
  transition: clip-path 600ms var(--ease-in-out), visibility 0s 600ms;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; transition: clip-path 700ms var(--ease-in-out), visibility 0s; }
.mobile-menu a.mobile-menu__link { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-family: var(--font-display); font-size: 28px; font-weight: 700; border-bottom: 1px solid var(--line-dark); opacity: 0; transform: translateY(16px); transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out); }
.mobile-menu a.mobile-menu__link i { font-size: 16px; color: var(--sky-400); }
.mobile-menu.is-open a.mobile-menu__link { opacity: 1; transform: none; }
.mobile-menu.is-open a.mobile-menu__link:nth-child(1) { transition-delay: 150ms; }
.mobile-menu.is-open a.mobile-menu__link:nth-child(2) { transition-delay: 200ms; }
.mobile-menu.is-open a.mobile-menu__link:nth-child(3) { transition-delay: 250ms; }
.mobile-menu.is-open a.mobile-menu__link:nth-child(4) { transition-delay: 300ms; }
.mobile-menu.is-open a.mobile-menu__link:nth-child(5) { transition-delay: 350ms; }
.mobile-menu__actions { margin-top: auto; display: grid; gap: 10px; }
.site-header.menu-open { color: var(--on-dark); background: transparent; box-shadow: none; backdrop-filter: none; }
.site-header.menu-open .burger { border-color: rgba(148, 182, 255, 0.25); }
body.no-scroll { overflow: hidden; }

/* ---------- Dark hero shell (shared by home + subpages) ---------- */
.hero-shell {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink-950); color: var(--on-dark);
}
.hero-shell::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(50% 60% at 72% 40%, rgba(14, 165, 233, 0.28) 0%, transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(125, 143, 240, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 100%);
}
.hero-shell::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(148, 182, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 182, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 80%);
}
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; will-change: transform; }
.hero-orb--a { width: 420px; height: 420px; right: -80px; top: 10%; background: rgba(14, 165, 233, 0.22); }
.hero-orb--b { width: 320px; height: 320px; left: -120px; bottom: -80px; background: rgba(125, 143, 240, 0.18); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; background: rgba(56, 189, 248, 0.1); color: var(--sky-300); border: 1px solid rgba(56, 189, 248, 0.25); }
.eyebrow__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34D399; margin-left: 4px; }
.eyebrow__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #34D399; opacity: 0; animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }
.eyebrow--light { background: var(--sky-100); color: var(--sky-600); border-color: rgba(14, 165, 233, 0.2); padding: 6px 14px; }

/* ---------- Home hero ---------- */
.hero { padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__title { font-size: clamp(38px, 5.2vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 22px 0 22px; }
.hero__title .accent { background: linear-gradient(100deg, var(--sky-300) 0%, var(--sky-500) 45%, var(--brand-violet) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--on-dark-muted); max-width: 520px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; font-size: 13.5px; color: var(--on-dark-muted); font-weight: 600; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust i { color: var(--sky-400); }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.02em 0.2em; margin: -0.04em -0.02em -0.2em; }
.split-word > span { display: inline-block; will-change: transform; }

/* ---------- Flow network visual ---------- */
.flow { position: relative; width: 100%; max-width: 560px; margin-inline: auto; display: grid; gap: 18px; }
.flow svg { width: 100%; height: auto; aspect-ratio: 1 / 1; overflow: visible; }
.flow__ring { fill: none; stroke: rgba(148, 182, 255, 0.12); stroke-width: 1; stroke-dasharray: 2 6; }
.flow__edge { fill: none; stroke: rgba(125, 211, 252, 0.16); stroke-width: 1.2; }
.flow__edge.is-active { stroke: rgba(125, 211, 252, 0.5); transition: stroke 300ms; }
.flow__hub-glow { fill: url(#hubGlow); }
.flow__node-bg { fill: #0B1934; stroke: rgba(148, 182, 255, 0.25); stroke-width: 1; }
.flow__node-bg--person { fill: #10254A; }
.flow__label { font-family: var(--font-body); font-size: 11px; font-weight: 700; fill: var(--on-dark-muted); text-anchor: middle; letter-spacing: 0.01em; }
.flow__packet-pill { fill: #0EA5E9; }
.flow__packet-text { font-family: var(--font-body); font-size: 10.5px; font-weight: 800; fill: #fff; text-anchor: middle; dominant-baseline: central; }
.flow__legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--on-dark-muted); font-weight: 600; }
.flow__legend span { display: inline-flex; align-items: center; gap: 6px; }
.flow__legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.flow__ticker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 58px; overflow: hidden; pointer-events: none; }
.flow__ticker .flow__toast:nth-child(n+3) { display: none; }
.flow__toast { display: flex; align-items: center; gap: 10px; min-width: 0; height: 58px; padding: 9px 12px; transition: opacity 400ms; overflow: hidden; border-radius: 14px; background: rgba(10, 22, 46, 0.82); border: 1px solid var(--line-dark); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); font-size: 12px; color: var(--on-dark); line-height: 1.3; }
.flow__toast img { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.flow__toast > div { min-width: 0; }
.flow__toast b, .flow__toast small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow__toast b { font-size: 12.5px; }
.flow__toast small { color: var(--on-dark-muted); font-size: 11px; }
.flow__toast .ok { margin-left: auto; color: #34D399; font-size: 13px; }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line-dark); background: var(--ink-900); color: var(--on-dark); padding: 18px 0; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink-900), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink-900), transparent); }
.marquee__track { display: flex; width: max-content; gap: 56px; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--on-dark); }
.marquee__item img { width: 28px; height: 28px; }
.marquee__item small { color: var(--on-dark-muted); font-weight: 600; font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Operator badges (real brand colours, same as app.html) ---------- */
.op { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: -0.02em; flex-shrink: 0; background-size: contain; background-repeat: no-repeat; background-position: center; }
.op--orange { background-color: #FF7900; color: #fff; }
.op--mtn { background-color: #FFCB05; color: #111318; font-size: 11px; }
.op--moov { background-color: #0096A0; color: #fff; }
.op--wave { background-color: #1DC8F2; color: #0B2340; }
.op--sm { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.op--sm.op--mtn { font-size: 8.5px; }
/* Use background-image to display real operator logos */
.op--logo { font-size: 0; color: transparent; background-size: contain; background-repeat: no-repeat; background-position: center; }
.op--logo.op--orange { background-image: url('../img/operators/orange-money.webp'); }
.op--logo.op--wave { background-image: url('../img/operators/wave.png'); }
.op--logo.op--mtn { background-image: url('../img/operators/mtn-momo.png'); }
.op--logo.op--moov { background-image: url('../img/operators/moov-money.png'); }
.op--sm.op--logo { background-size: contain; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--white { background: var(--card); }
.section--dark { background: var(--ink-950); color: var(--on-dark); }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.03em; margin: 16px 0 16px; }
.section-head p { font-size: 17px; color: var(--muted); }
.section--dark .section-head p { color: var(--on-dark-muted); }
.section--dark .eyebrow--light { background: rgba(56, 189, 248, 0.1); color: var(--sky-300); border-color: rgba(56, 189, 248, 0.25); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.stat { background: var(--card); padding: clamp(24px, 3vw, 36px); display: grid; gap: 6px; position: relative; overflow: hidden; }
.stat__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-100); color: var(--sky-600); font-size: 18px; margin-bottom: 14px; transition: transform var(--t-base) var(--ease-out), background-color var(--t-base); }
.stat:hover .stat__icon { transform: rotate(-8deg) scale(1.08); background: var(--sky-500); color: #fff; }
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 4vw, 50px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-weight: 600; font-size: 14.5px; }

/* ---------- Steps (scroll-driven) ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.steps__sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.steps__list { position: relative; display: grid; gap: 20px; padding-left: 36px; }
.steps__rail { position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: var(--line); border-radius: 2px; }
.steps__rail span { position: absolute; inset: 0; transform-origin: top; transform: scaleY(0); background: linear-gradient(var(--sky-500), var(--brand-violet)); border-radius: inherit; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: border-color var(--t-base), box-shadow var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out); }
.step::before { content: ""; position: absolute; left: -32px; top: 32px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-strong); transition: border-color var(--t-base), background-color var(--t-base), box-shadow var(--t-base); }
.step.is-active { border-color: rgba(14, 165, 233, 0.4); box-shadow: var(--shadow-md); }
.step.is-active::before { border-color: var(--sky-500); background: var(--sky-500); box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.15); }
.step__top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.step__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ink-900); color: var(--sky-300); font-size: 19px; flex-shrink: 0; }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 0.14em; color: var(--sky-600); text-transform: uppercase; }
.step h3 { font-size: 22px; }
.step p { color: var(--muted); }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 32px); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile--wide { grid-column: span 4; }
.tile--narrow { grid-column: span 2; }
.tile--half { grid-column: span 3; }
.tile--dark { background: var(--ink-900); color: var(--on-dark); border-color: var(--line-dark); }
.tile--dark p { color: var(--on-dark-muted); }
.tile__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 21px; background: var(--sky-100); color: var(--sky-600); margin-bottom: 22px; transition: transform 500ms var(--ease-out); }
.tile:hover .tile__icon { transform: translateY(-3px) rotate(-6deg); }
.tile--dark .tile__icon { background: rgba(56, 189, 248, 0.12); color: var(--sky-300); }
.tile h3 { font-size: 22px; margin-bottom: 10px; }
.tile p { color: var(--muted); }
.tile__ops { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.tile__coins { display: flex; margin-top: 24px; }
.tile__coins img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink-900); margin-left: -10px; transition: transform var(--t-base) var(--ease-out); }
.tile__coins img:first-child { margin-left: 0; }
.tile:hover .tile__coins img { transform: translateY(-4px); }
.tile:hover .tile__coins img:nth-child(2) { transition-delay: 40ms; }
.tile:hover .tile__coins img:nth-child(3) { transition-delay: 80ms; }
.tile:hover .tile__coins img:nth-child(4) { transition-delay: 120ms; }
.tile:hover .tile__coins img:nth-child(5) { transition-delay: 160ms; }
.tile__shield { position: absolute; right: -30px; bottom: -40px; font-size: 180px; color: rgba(56, 189, 248, 0.06); pointer-events: none; }
.rate-demo { margin-top: 24px; display: grid; gap: 10px; }
.rate-demo__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-weight: 700; font-size: 14px; }
.rate-demo__row span { display: inline-flex; align-items: center; gap: 10px; }
.rate-demo__row img { width: 24px; height: 24px; }
.rate-demo__timer { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.rate-demo__bar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.rate-demo__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--sky-500), var(--sky-300)); border-radius: inherit; transform-origin: left; animation: countdown 12s linear infinite; }
@keyframes countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- Countries ---------- */
.flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; --flag-cols: 5; }
.flags > * { flex: 0 1 calc((100% - (var(--flag-cols) - 1) * 16px) / var(--flag-cols)); min-width: 0; }
.flag-card { display: grid; justify-items: center; gap: 14px; padding: 26px 12px 22px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-dark); transition: transform var(--t-base) var(--ease-out), border-color var(--t-base), background-color var(--t-base); }
.flag-card:hover { transform: translateY(-6px); border-color: rgba(125, 211, 252, 0.45); background: rgba(56, 189, 248, 0.06); }
.flag-card__flag { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 24px -10px rgba(0, 0, 0, 0.7); transition: transform 500ms var(--ease-out); }
.flag-card:hover .flag-card__flag { transform: scale(1.08) rotate(-2deg); }
.flag-card__flag img { width: 100%; height: 100%; object-fit: cover; }
.flag-card__name { font-weight: 700; font-size: 14.5px; text-align: center; line-height: 1.3; }
.flag-card__cur { font-size: 12px; color: var(--on-dark-muted); font-weight: 600; margin-top: -10px; }

/* ---------- App showcase ---------- */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.phone { position: relative; width: min(320px, 78vw); aspect-ratio: 390 / 844; margin-inline: auto; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #1D2B4A, #0A1428); box-shadow: 0 0 0 1px rgba(148, 182, 255, 0.2), 0 50px 100px -30px rgba(5, 11, 23, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.04); }
.phone__screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #F3F5F9; position: relative; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 20px; background: #050B17; z-index: 2; }
.phone-wrap { position: relative; }
.phone-wrap::before { content: ""; position: absolute; inset: 10% -10% 0; background: radial-gradient(50% 50% at 50% 50%, rgba(14, 165, 233, 0.35), transparent 70%); filter: blur(30px); z-index: -1; }
.phone-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 700; white-space: nowrap; }
.phone-float img { width: 28px; height: 28px; }
.phone-float small { display: block; font-weight: 600; color: var(--muted); font-size: 11.5px; }
.phone-float--a { left: -4%; top: 22%; }
.phone-float--b { right: -6%; bottom: 20%; }
.checklist { display: grid; gap: 14px; margin: 28px 0 34px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.checklist i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-100); color: var(--sky-600); font-size: 12px; flex-shrink: 0; margin-top: 1px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 14px; background: var(--ink-900); color: #fff; transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-btn i { font-size: 26px; }
.store-btn small { display: block; font-size: 11px; opacity: 0.7; font-weight: 600; }
.store-btn b { display: block; font-size: 16px; line-height: 1.1; }
.store-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.store-btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); transition: border-color var(--t-base), box-shadow var(--t-base); }
.faq__item.is-open { border-color: rgba(14, 165, 233, 0.35); box-shadow: var(--shadow-md); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; text-align: left; font-weight: 700; font-size: 16.5px; }
.faq__q i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--sky-600); font-size: 12px; flex-shrink: 0; transition: transform 400ms var(--ease-out), background-color var(--t-base), color var(--t-base); }
.faq__item.is-open .faq__q i { transform: rotate(135deg); background: var(--sky-500); color: #fff; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 450ms var(--ease-out); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); background: var(--ink-900); color: var(--on-dark); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 100% at 100% 0%, rgba(14, 165, 233, 0.4), transparent 60%), radial-gradient(40% 80% at 0% 100%, rgba(125, 143, 240, 0.25), transparent 60%); }
.cta-band__bg { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 340px; opacity: 0.08; z-index: -1; pointer-events: none; }
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.cta-band p { color: var(--on-dark-muted); font-size: 17px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 14px; }
.field label .req { color: var(--sky-600); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid transparent; font-size: 15.5px;
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-base) var(--ease-out);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235B6478' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--card); border-color: var(--sky-500); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); background: #FEF4F3; }
.field__error { font-size: 13px; color: var(--bad); font-weight: 600; min-height: 0; }
.field__hint { font-size: 12.5px; color: var(--muted-2); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.form__note i { color: var(--ok); margin-top: 3px; }
.card-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); }

.newsletter { display: flex; gap: 10px; max-width: 460px; }
.newsletter input { flex: 1; min-width: 0; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.05); color: var(--on-dark); font-size: 15px; transition: border-color var(--t-fast), box-shadow var(--t-base); }
.newsletter input::placeholder { color: var(--on-dark-muted); }
.newsletter input:focus { outline: none; border-color: var(--sky-400); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15); }

/* ---------- Subpage hero ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(56px, 8vw, 96px); }
.page-hero__inner { max-width: 760px; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; letter-spacing: -0.035em; margin: 20px 0 20px; }
.page-hero p { font-size: clamp(16px, 1.5vw, 19px); color: var(--on-dark-muted); max-width: 600px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--on-dark-muted); }
.breadcrumb a:hover { color: var(--sky-300); }
.breadcrumb i { font-size: 10px; opacity: 0.6; }

/* ---------- Value cards / generic grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.lead-text { font-size: 18px; color: var(--muted); }
.lead-text + .lead-text { margin-top: 16px; }
.quote-card { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; gap: 18px; }
.quote-card i.fa-quote-left { font-size: 26px; color: var(--sky-400); }
.quote-card blockquote { margin: 0; font-size: 16.5px; line-height: 1.6; }
.quote-card cite { font-style: normal; font-weight: 700; }
.quote-card cite small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }

.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); transition: transform var(--t-base) var(--ease-out), border-color var(--t-base), box-shadow var(--t-base); }
a.contact-card:hover { transform: translateX(4px); border-color: rgba(14, 165, 233, 0.4); box-shadow: var(--shadow-md); }
.contact-card__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; color: #fff; }
.contact-card small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.contact-card b { font-size: 15.5px; word-break: break-word; }
.contact-card .fa-arrow-right { margin-left: auto; color: var(--muted-2); font-size: 13px; transition: transform var(--t-base) var(--ease-out), color var(--t-base); }
a.contact-card:hover .fa-arrow-right { transform: translateX(3px); color: var(--sky-600); }
.bg-whatsapp { background: #25D366; }
.bg-telegram { background: #229ED9; }
.bg-facebook { background: #1877F2; }
.bg-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.bg-sky { background: var(--sky-500); }
.bg-ink { background: var(--ink-800); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: var(--on-dark-muted); padding: clamp(56px, 8vw, 96px) 0 32px; font-size: 14.5px; position: relative; overflow: hidden; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: 14px; font-family: var(--font-body); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { transition: color var(--t-fast); }
.site-footer a:hover { color: var(--sky-300); }
.footer-about { max-width: 340px; margin-bottom: 24px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--on-dark); font-size: 17px; transition: transform var(--t-base) var(--ease-out), background-color var(--t-base), border-color var(--t-base), color var(--t-base); }
.social:hover { transform: translateY(-3px); color: #fff !important; border-color: transparent; }
.social--whatsapp:hover { background: #25D366; }
.social--telegram:hover { background: #229ED9; }
.social--facebook:hover { background: #1877F2; }
.social--instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social--x:hover { background: #000; }
.social--linkedin:hover { background: #0A66C2; }
.site-footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.site-footer__word { position: absolute; left: 50%; bottom: -0.28em; transform: translateX(-50%); font-family: var(--font-display); font-weight: 800; font-size: clamp(80px, 18vw, 260px); letter-spacing: -0.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(148, 182, 255, 0.08); white-space: nowrap; pointer-events: none; user-select: none; }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; z-index: 400; right: 16px; bottom: 16px; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--ink-900); color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14.5px; animation: toast-in 450ms var(--ease-out) both; }
.toast i { margin-top: 3px; }
.toast--ok i { color: #34D399; }
.toast--err i { color: #F87171; }
.toast.is-leaving { animation: toast-out 300ms var(--ease-in-out) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(0.97); } }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--header-h) var(--gutter) 48px; }
.notfound__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(120px, 24vw, 240px); line-height: 0.9; letter-spacing: -0.06em; background: linear-gradient(180deg, var(--sky-300), rgba(14, 165, 233, 0.1)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header-actions .btn--ghost-dark { display: none; }
  .burger { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .flags { --flag-cols: 4; }
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero__grid, .steps, .showcase, .split, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-bottom: 72px; }
  .flow { max-width: 480px; }
  .steps__sticky { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tile--wide, .tile--narrow, .tile--half { grid-column: span 2; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .cta-band__actions { justify-content: flex-start; }
  .showcase .phone-wrap { order: 2; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .header-actions .btn--primary { display: none; }
  .flags { --flag-cols: 2; }
  .form__row, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .flow__ticker { grid-template-columns: 1fr; }
  .flow__ticker .flow__toast:nth-child(n+2) { display: none; }
  .flow__legend { gap: 10px; font-size: 11px; }
  .phone-float--a { left: -2%; }
  .phone-float--b { right: -2%; }
  .newsletter { flex-direction: column; }
  .stat { padding: 20px; }
  .step { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  @view-transition { navigation: none; }
}
