/* ============================================================
   eFinance — Light design system (shared across all pages)
   Brand palette from 2026 brochure:
   royal #142A7D · cobalt #084BE0 · ink #1D1D1D · light #9CC0FF
   ============================================================ */
:root {
  --paper: #F6F7FB;
  --paper-2: #ECEEF5;
  --white: #FFFFFF;
  --ink: #14151A;
  --ink-2: #4C4E57;
  --ink-3: #8A8C96;
  --rule: #DBDEEA;
  --rule-2: #C7CCDD;
  --royal: #142A7D;
  --royal-2: #1B3596;
  --electric: #084BE0;
  --electric-2: #2E6BFF;
  --blue-light: #9CC0FF;
  --f-sans: 'Geist', system-ui, sans-serif;
  --f-mono: 'Geist Mono', monospace;
  --f-display: 'Archivo', 'Geist', sans-serif;
  --max: 1296px;
  --pad: 56px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--f-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
section { position: relative; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; } .d5 { transition-delay: .40s; }

/* ── NAV ── */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(246,247,251,.82); backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 18px var(--pad); display: flex; align-items: center; justify-content: space-between; }
.nav-logo { height: 26px; }
.nav-mid { display: flex; gap: 32px; }
.nav-mid a { font-size: 14.5px; color: var(--ink-2); font-weight: 500; transition: color .2s; }
.nav-mid a:hover, .nav-mid a.on { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-lang { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.nav-lang b { color: var(--ink); font-weight: 500; }
.nav-cta { font-size: 14px; font-weight: 600; color: #fff; background: var(--electric); padding: 11px 20px; border-radius: 8px; white-space: nowrap; transition: transform .18s, background .2s; }
.nav-cta:hover { background: var(--royal); transform: translateY(-1px); }

/* ── BUTTONS ── */
.btn-ink { font-size: 15px; font-weight: 600; color: #fff; background: var(--ink); padding: 15px 26px; border-radius: 8px; display: inline-flex; gap: 9px; align-items: center; transition: transform .18s, box-shadow .2s; }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(20,21,26,.5); }
.btn-electric { font-size: 15px; font-weight: 600; color: #fff; background: var(--electric); padding: 15px 26px; border-radius: 8px; display: inline-flex; gap: 9px; align-items: center; transition: transform .18s, box-shadow .2s; }
.btn-electric:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(8,75,224,.6); }
.btn-line { font-size: 15px; font-weight: 600; color: var(--ink); padding: 15px 22px; border: 1.5px solid var(--ink); border-radius: 8px; display: inline-flex; align-items: center; gap: 9px; transition: background .2s, color .2s; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { font-size: 15px; font-weight: 600; color: var(--royal); background: #fff; padding: 15px 26px; border-radius: 8px; display: inline-flex; gap: 9px; align-items: center; transition: transform .18s; }
.btn-white:hover { transform: translateY(-2px); }
.btn-ghost-d { font-size: 15px; font-weight: 600; color: #fff; padding: 15px 22px; border: 1.5px solid rgba(255,255,255,.3); border-radius: 8px; transition: border-color .2s; }
.btn-ghost-d:hover { border-color: #fff; }

/* ── MARQUEE (kinetic строки) ── */
.marquee { overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); padding: 13px 0; display: flex; gap: 0; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee.dark { background: var(--royal); border-color: rgba(255,255,255,.12); }
.marquee-track { display: inline-flex; align-items: center; gap: 26px; flex-shrink: 0; padding-right: 26px; white-space: nowrap; animation: marquee 42s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee-track > span { font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: -.005em; display: inline-flex; align-items: center; gap: 9px; }
.marquee-track > span.mono { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--electric); }
.marquee-track > span.sep { color: var(--rule-2); font-weight: 300; }
.marquee.dark .marquee-track > span { color: #fff; }
.marquee.dark .marquee-track > span.mono { color: var(--blue-light); }
.marquee.dark .marquee-track > span.sep { color: rgba(255,255,255,.3); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ── SECTION SHELL ── */
.sec { padding: clamp(72px, 9vw, 130px) 0; }
.sec-white { background: var(--white); }
.sec-paper2 { background: var(--paper-2); }
.sec-royal { background: radial-gradient(125% 130% at 75% 0%, #21429E 0%, #142A7D 48%, #0E1E5C 100%); color: #fff; overflow: hidden; }
.sec-royal::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 0%, #000, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000, transparent 72%); opacity: .55; pointer-events: none; }
.sec-royal > .wrap { position: relative; z-index: 1; }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--electric); font-weight: 600; margin-bottom: 22px; }
.sec-eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.sec-royal .sec-eyebrow { color: var(--blue-light); }
h2.sec-h { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 4vw, 56px); line-height: .98; letter-spacing: -.035em; }
h2.sec-h .dim { color: var(--ink-3); }
.sec-royal h2.sec-h .dim { color: var(--blue-light); }
.sec-lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin-top: 22px; max-width: 580px; }
.sec-royal .sec-lead { color: rgba(255,255,255,.72); }
.sec-head.center .sec-lead { margin-left: auto; margin-right: auto; }

/* ── TOPBAND ── */
.topband { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; padding: 12px 0; gap: 18px; flex-wrap: wrap; }
.topband span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.topband b { color: var(--electric); font-weight: 600; }

/* ── HERO common ── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--electric); font-weight: 600; margin-bottom: 26px; }
.eyebrow .sq { width: 8px; height: 8px; background: var(--electric); }
h1.hero-h { font-family: var(--f-display); font-weight: 800; font-size: clamp(52px, 6vw, 86px); line-height: .9; letter-spacing: -.04em; }
h1.hero-h .e { color: var(--electric); }
h1.hero-h .out { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero-sub { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 470px; margin: 30px 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 5vw, 60px); border-top: 2px solid var(--ink); }
.hstat { padding: 24px 24px 4px 0; border-right: 1px solid var(--rule); }
.hstat:last-child { border-right: none; }
.hstat .n { font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 3.2vw, 44px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.hstat .n i { font-style: normal; color: var(--electric); font-size: .5em; }
.hstat .l { font-size: 13px; color: var(--ink-2); margin-top: 10px; line-height: 1.4; max-width: 180px; }

/* ── FLOW PIPE (dynamic infrastructure diagram) ── */
.flowpipe { display: flex; flex-direction: column; align-items: stretch; gap: 0; max-width: 360px; margin: 0 auto; width: 100%; position: relative; }
.fp-tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px; }
.fp-tag b { color: var(--ink); font-weight: 600; }
.fp-tag .live { width: 6px; height: 6px; border-radius: 50%; background: var(--electric); box-shadow: 0 0 0 3px rgba(8,75,224,.14); animation: fppulse 2.4s infinite; }
@keyframes fppulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.fp-stage { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; text-align: center; box-shadow: 0 8px 24px -18px rgba(20,42,125,.4); }
.fp-kicker { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.fp-chips { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }
.fp-chips span { font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--paper-2); border-radius: 999px; padding: 6px 12px; }
.fp-core { background: linear-gradient(180deg, rgba(8,75,224,.08), rgba(8,75,224,.03)); border: 1.5px solid var(--electric); padding: 18px; }
.fp-core-mark { font-family: var(--f-display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; color: var(--electric); line-height: 1; }
.fp-core-t { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; margin-top: 6px; }
.fp-core-s { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.fp-step { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 18px; }
.fp-step .fp-ix { font-family: var(--f-display); font-weight: 800; font-size: 16px; letter-spacing: -.01em; color: var(--electric); }
.fp-step .fp-d { font-size: 13px; color: var(--ink-2); }
.fp-dest { background: var(--electric); border-color: var(--electric); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; box-shadow: 0 18px 40px -18px rgba(8,75,224,.7); }
.fp-dest span { font-family: var(--f-sans); font-weight: 500; font-size: 13px; color: rgba(255,255,255,.8); margin-left: 4px; }
.fp-link { width: 2px; height: 26px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--electric) 0 5px, transparent 5px 11px); background-size: 2px 11px; opacity: .55; animation: fpflow .7s linear infinite; position: relative; }
.fp-link::after { content: ''; position: absolute; bottom: 1px; left: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--electric); border-bottom: 1.5px solid var(--electric); transform: translateX(-50%) rotate(45deg); opacity: .8; }
@keyframes fpflow { to { background-position: 0 11px; } }

/* ── SVG FLOW DIAGRAM (curved animated connectors, original style) ── */
.diagram { width: 100%; height: auto; display: block; position: relative; }
.diagram .flow { stroke-dasharray: 5 7; animation: dashflow 1.6s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -48; } }

/* ── CARD: services ── */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc-card { background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: 30px 30px 26px; display: flex; flex-direction: column; transition: border-color .25s, transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.svc-card::after { content: attr(data-n); position: absolute; right: -6px; bottom: -34px; font-family: var(--f-display); font-weight: 800; font-size: 150px; line-height: .8; letter-spacing: -.06em; color: var(--paper-2); pointer-events: none; transition: color .3s; }
.svc-card:hover { border-color: var(--electric); transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(8,75,224,.35); }
.svc-card:hover::after { color: rgba(8,75,224,.07); }
.svc-cat { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--electric); font-weight: 600; margin-bottom: 18px; position: relative; z-index: 1; }
.svc-cat::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.svc-name { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.3vw, 28px); letter-spacing: -.025em; line-height: 1.05; margin-bottom: 12px; position: relative; z-index: 1; }
.svc-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin-bottom: 22px; max-width: 400px; position: relative; z-index: 1; }
.svc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; position: relative; z-index: 1; }
.svc-tags span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .03em; color: var(--electric); background: rgba(8,75,224,.08); border: 1px solid rgba(8,75,224,.2); border-radius: 999px; padding: 5px 11px; font-weight: 600; }
.svc-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.svc-foot .meta { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }
.svc-foot a { font-size: 13.5px; font-weight: 600; color: var(--electric); display: inline-flex; gap: 7px; transition: gap .2s; }
.svc-foot a:hover { gap: 11px; }

/* ── GRID: index list (why / categories) ── */
.idx-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.idx-item { padding: 34px 30px 38px 0; border-bottom: 1px solid var(--rule); }
.idx-item:not(:nth-child(3n)) { border-right: 1px solid var(--rule); padding-right: 30px; }
.idx-ix { font-family: var(--f-mono); font-size: 11px; color: var(--electric); font-weight: 600; letter-spacing: .08em; }
.idx-t { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: 18px 0 10px; line-height: 1.1; }
.idx-d { font-size: 14px; color: var(--ink-2); line-height: 1.55; max-width: 290px; }
.sec-royal .idx-grid { border-color: rgba(255,255,255,.16); }
.sec-royal .idx-item { border-color: rgba(255,255,255,.16); }
.sec-royal .idx-ix { color: var(--blue-light); }
.sec-royal .idx-d { color: rgba(255,255,255,.7); }

/* ── PROCESS ── */
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.proc-step { padding: 30px 26px 34px; background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; transition: border-color .25s, transform .25s; }
.sec-white .proc-step { background: var(--paper); }
.proc-step:hover { border-color: var(--electric); transform: translateY(-3px); }
.proc-n { font-family: var(--f-display); font-weight: 800; font-size: 52px; color: var(--electric); line-height: 1; letter-spacing: -.05em; margin-bottom: 26px; }
.proc-t { font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; margin-bottom: 10px; }
.proc-d { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.proc-meta { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: .05em; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--rule); }

/* ── CTA dark royal ── */
.cta { background: radial-gradient(125% 130% at 75% 0%, #21429E 0%, #142A7D 48%, #0E1E5C 100%); color: #fff; padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.cta .gridbg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); opacity: .5; }
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.cta-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-light); font-weight: 600; margin-bottom: 22px; }
.cta-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--blue-light); }
h2.cta-h { font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 4.4vw, 60px); line-height: .98; letter-spacing: -.035em; }
h2.cta-h .e { color: var(--blue-light); }
.cta-sub { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.72); margin-top: 22px; max-width: 440px; }
.cta-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.cta-panel { border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 28px; background: rgba(255,255,255,.05); }
.cta-panel-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 6px; }
.cta-row { display: flex; justify-content: space-between; align-items: baseline; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.cta-row:last-child { border-bottom: none; padding-bottom: 0; }
.cta-row:first-child { padding-top: 0; }
.cta-row .k { font-size: 14px; color: rgba(255,255,255,.65); }
.cta-row .v { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.cta-row .v.e { color: var(--blue-light); }

/* ── FOOTER ── */
footer.site { background: #0C1A52; color: #fff; padding: clamp(56px, 7vw, 88px) 0 36px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-logo { height: 28px; margin-bottom: 20px; }
.foot-blurb { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.6; max-width: 280px; }
.foot-col h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 18px; font-weight: 500; }
.foot-col a { display: block; font-size: 14.5px; color: rgba(255,255,255,.78); margin-bottom: 12px; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 14px; }
.foot-bot span { font-family: var(--f-mono); font-size: 11.5px; color: rgba(255,255,255,.5); letter-spacing: .04em; }

/* ── CURSOR GLOW (follows the mouse, injected by home-motion.js) ── */
.cursor-blob { position: fixed; top: 0; left: 0; width: 480px; height: 480px; border-radius: 50%; pointer-events: none; z-index: 4; opacity: 0; transform: translate3d(-50%,-50%,0); transition: opacity .35s; will-change: transform; background: radial-gradient(circle, rgba(46,107,255,.20) 0%, rgba(8,75,224,.07) 34%, transparent 62%); }

/* ── VERSION SWITCH ── */
.ver-switch { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .03em; color: #fff; background: rgba(20,21,26,.92); backdrop-filter: blur(10px); padding: 11px 18px; border-radius: 999px; box-shadow: 0 14px 40px -12px rgba(0,0,0,.5); transition: transform .18s, background .2s; }
.ver-switch:hover { transform: translateX(-50%) translateY(-2px); background: #14151A; }
.ver-switch b { color: #fff; font-weight: 600; }
.ver-switch .dot { width: 8px; height: 8px; border-radius: 50%; background: #084BE0; box-shadow: 0 0 0 3px rgba(8,75,224,.3); }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  :root { --pad: 28px; }
  .nav-mid { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hstat:nth-child(2) { border-right: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .idx-grid { grid-template-columns: 1fr 1fr; }
  .idx-item:nth-child(2n) { border-right: none; }
  .idx-item:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
  .idx-item:nth-child(2n) { border-right: none; }
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero-stats, .idx-grid, .proc-grid, .foot-top { grid-template-columns: 1fr; }
  .idx-item { border-right: none !important; }
}
