/* ============================================================
   Enhency — Enterprise Fintech Infrastructure
   Design system: clean, white, technical, minimal gradients
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-deep: #0a1733;        /* deep navy for footer / dark blocks */
  --surface: #ffffff;

  /* Text */
  --ink: #0b1b34;            /* headings */
  --text: #3a4760;           /* body */
  --muted: #6b7790;          /* secondary */
  --on-dark: #c7d2e6;

  /* Brand */
  --brand: #1d4ed8;          /* primary blue */
  --brand-700: #1742a8;
  --brand-50: #eef3ff;
  --accent: #0ea5e9;         /* used sparingly */

  /* Lines & states */
  --border: #e6ebf3;
  --border-strong: #d4dcea;
  --ring: rgba(29, 78, 216, .16);
  --ok: #0f9d6b;

  --shadow-xs: 0 1px 2px rgba(11, 27, 52, .05);
  --shadow-sm: 0 4px 14px rgba(11, 27, 52, .06);
  --shadow-md: 0 14px 40px rgba(11, 27, 52, .09);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --maxw: 1200px;
  --nav-h: 70px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
ul { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

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

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; letter-spacing: -0.018em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { color: var(--text); }

.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .85rem;
}
.lead { font-size: 1.12rem; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .85rem 1.45rem; border-radius: 10px; border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--brand-700); box-shadow: 0 8px 22px var(--ring); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--brand); }
.btn-on-dark { background: #fff; color: var(--ink); }
.btn-on-dark:hover { background: var(--brand-50); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { padding: .6rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,.88); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand .logo-img { height: 34px; width: auto; display: block; }
.footer-brand .logo-img { height: 32px; }

.nav-menu { display: flex; align-items: center; gap: .2rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem .85rem; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: .95rem;
}
.nav-link:hover { background: var(--bg-soft); color: var(--brand); }
.nav-link .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: .6; transition: transform .2s; }
.nav-item:hover .nav-link .caret { transform: rotate(45deg) translate(1px,1px); opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* Dropdown / mega menu */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 300px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: .55rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown.wide { min-width: 540px; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: .6rem .7rem; border-radius: 8px; color: var(--ink); }
.dropdown a:hover { background: var(--bg-soft); }
.dropdown a .d-title { display: block; font-weight: 600; font-size: .92rem; }
.dropdown a .d-desc { display: block; font-size: .8rem; color: var(--muted); margin-top: 1px; }
.dropdown .group-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .6rem .7rem .25rem; }

/* Mobile nav */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--border); background: #fff; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% -8%, rgba(29,78,216,.08), transparent 62%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: clamp(48px, 7vw, 96px) 0;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { font-size: 1.18rem; max-width: 560px; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.trust-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 500; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .4rem .8rem;
}
.trust-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* 3D canvas mount */
.hero-visual { position: relative; min-height: 420px; }
#net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual-frame {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, #ffffff, #f7faff);
  box-shadow: var(--shadow-md); overflow: hidden; min-height: 440px;
}
.hero-visual-frame .vf-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,.7); backdrop-filter: blur(4px);
  font-size: .8rem; color: var(--muted); font-weight: 600;
}
.vf-dot { width: 9px; height: 9px; border-radius: 50%; background: #d6deeb; }
.vf-dot.live { background: var(--ok); box-shadow: 0 0 0 4px rgba(15,157,107,.14); }
.vf-stats { position: absolute; bottom: 14px; left: 14px; right: 14px; z-index: 2; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.vf-stat { background: rgba(255,255,255,.82); backdrop-filter: blur(4px); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.vf-stat b { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 700; }
.vf-stat span { font-size: .72rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section.soft { background: var(--bg-soft); }
.section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: .7rem; }

/* Grids */
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-xs);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.card h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.card p { font-size: .92rem; color: var(--muted); }
.card .card-ic {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); margin-bottom: 1rem;
}
.card .card-ic svg { width: 22px; height: 22px; }

/* feature list (key capabilities) */
.feature {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center;
  padding: clamp(40px,5vw,64px) 0; border-top: 1px solid var(--border);
}
.feature:first-child { border-top: 0; }
.feature.flip .feature-media { order: -1; }
.feature h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .7rem; }
.cap-list { display: grid; gap: 14px; margin-top: 1.4rem; }
.cap-item { display: flex; gap: 12px; }
.cap-item .tick {
  flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center; margin-top: 2px;
}
.cap-item .tick svg { width: 13px; height: 13px; }
.cap-item b { color: var(--ink); font-weight: 600; display: block; font-size: .96rem; }
.cap-item span { font-size: .88rem; color: var(--muted); }

/* dashboard-style mock visual */
.mock {
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.mock-head { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.mock-head .d { width: 9px; height: 9px; border-radius: 50%; background: #d6deeb; }
.mock-head .t { margin-left: 8px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.mock-body { padding: 18px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.mock-row:last-child { border-bottom: 0; }
.mock-row .ml { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--ink); font-weight: 500; }
.mock-row .pin { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.mock-badge { font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: rgba(15,157,107,.12); color: var(--ok); }
.mock-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-top: 8px; }
.mock-bars i { flex: 1; background: linear-gradient(180deg, var(--brand), #5b8af0); border-radius: 5px 5px 0 0; opacity: .85; }

/* flow pipeline visual */
.flow-pipe { display: flex; flex-direction: column; gap: 0; padding: 4px 2px; }
.flow-node { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: .7rem .9rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.flow-node .fn-dot { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.flow-arrow { align-self: center; color: var(--muted); font-size: 1.05rem; line-height: 1; padding: 5px 0; }

/* grid tiles visual */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tg-item { display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: .7rem .75rem; font-size: .82rem; font-weight: 600; color: var(--ink); }
.tg-ic { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }

/* ---------- Interactive polish ---------- */
/* card cursor-follow spotlight + icon pop */
.card > * { position: relative; z-index: 1; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, -30%), rgba(29,78,216,.12), transparent 62%);
  opacity: 0; transition: opacity .25s ease;
}
.card:hover::before { opacity: 1; }
.card::after { z-index: 2; }
.card-ic { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover .card-ic { transform: translateY(-2px) scale(1.08); box-shadow: 0 6px 16px rgba(29,78,216,.18); }

/* visual cards feel interactive */
.mock, .code-block, .hero-visual-frame { transition: transform .25s ease, box-shadow .25s ease; }
.feature-media:hover .mock,
.feature-media:hover .code-block { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* small interactive bits */
.tg-item { transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.tg-item:hover { transform: translateY(-2px); border-color: var(--brand); background: #fff; }
.flow-node { transition: transform .2s ease, border-color .2s ease; }
.flow-node:hover { transform: translateX(4px); border-color: var(--brand); }
.trust-chip { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.trust-chip:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.tag { transition: transform .15s ease, background .2s ease, color .2s ease; }
.tag.brand:hover { transform: translateY(-1px); background: var(--brand); color: #fff; }
.mock-row { transition: background .2s ease; border-radius: 8px; padding-inline: 6px; }
.mock-row:hover { background: var(--bg-soft); }
.cap-item { transition: transform .2s ease; }
.cap-item:hover { transform: translateX(3px); }
.cap-item:hover .tick { background: var(--brand); color: #fff; }
.m-chip { transition: transform .2s ease, border-color .2s ease, color .2s ease; }
.m-chip:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.step-link { transition: gap .2s ease, color .2s ease; }
.step-link:hover { gap: .65rem; }
.dropdown a, .footer-col a { transition: background .18s ease, color .18s ease, transform .18s ease; }
.dropdown a:hover { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

/* keyboard focus accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, .card:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px;
}

/* product illustration panel */
.viz { padding: 20px; display: grid; place-items: center; background: linear-gradient(180deg, #fbfcff, #f5f8fd); }
.viz svg { width: 100%; height: auto; max-height: 300px; }

/* ---------- Mobile responsiveness refinements ---------- */
body { overflow-x: clip; }
img, svg, canvas { max-width: 100%; }

@media (max-width: 1000px) {
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 640px) {
  :root { --nav-h: 62px; }
  .brand .logo-img { height: 30px; }
  h1 { font-size: clamp(1.9rem, 7.5vw, 2.4rem); }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero .lead, .subhero .lead { font-size: 1.02rem; }
  .section { padding: 44px 0; }
  .container { padding-inline: 18px; }
  /* full-width stacked CTAs on small screens */
  .hero-cta, .cta-actions { width: 100%; }
  .hero-cta .btn, .cta-actions .btn { flex: 1 1 100%; }
  .trust-chip { font-size: .78rem; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .viz svg { max-height: 230px; }
  .breadcrumb { font-size: .78rem; }
}
@media (max-width: 380px) {
  .cols-2, .cols-4, .stat-band, .form-grid { grid-template-columns: 1fr; }
}

/* code / api block */
.code-block {
  background: var(--bg-deep); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.code-block .cb-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-block .cb-head .d { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); }
.code-block .cb-head .t { margin-left: 8px; font-size: .78rem; color: var(--on-dark); font-family: ui-monospace, monospace; }
.code-block pre { margin: 0; padding: 18px; overflow-x: auto; }
.code-block code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .82rem; line-height: 1.7; color: #d7e2f7; white-space: pre; }
.code-block .k { color: #7cb3ff; }
.code-block .s { color: #8fe3b0; }
.code-block .c { color: #6b7aa0; }

/* logos / industries strip */
.logo-strip { display: flex; flex-wrap: wrap; gap: 14px 38px; align-items: center; justify-content: center; }
.logo-strip span { color: var(--muted); font-weight: 600; font-size: 1rem; opacity: .8; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(700px 360px at 85% -20%, rgba(14,165,233,.25), transparent 60%),
    linear-gradient(120deg, #0a1733 0%, #14306e 100%);
  border-radius: var(--radius-lg);
}
.cta-band .container { padding-block: clamp(44px, 6vw, 72px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark); max-width: 620px; margin: .8rem auto 1.8rem; }
.cta-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* page sub-hero (interior pages) */
.subhero { background: linear-gradient(180deg, #fbfcff, #fff); border-bottom: 1px solid var(--border); }
.subhero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; padding: clamp(40px,6vw,80px) 0; }
.subhero h1 { margin-bottom: 1rem; }
.subhero .lead { margin-bottom: 1.6rem; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

/* stat band */
.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat-band .s b { display: block; font-size: clamp(1.8rem,3vw,2.4rem); color: var(--ink); font-weight: 800; }
.stat-band .s span { color: var(--muted); font-size: .9rem; }

/* feature-tags (developer features chips) */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.tag {
  font-size: .85rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: .5rem .8rem;
}
.tag.brand { background: var(--brand-50); border-color: transparent; color: var(--brand-700); }

/* contact form */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--border-strong); border-radius: 9px; padding: .75rem .9rem;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.field textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-note { margin-top: .8rem; font-weight: 600; color: var(--ok); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: var(--on-dark); padding: clamp(48px,6vw,72px) 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: var(--on-dark); font-size: .9rem; margin-top: .9rem; max-width: 260px; }
.footer-addr { font-style: normal; color: var(--on-dark); font-size: .82rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-addr strong { color: #fff; font-weight: 600; }
.footer-addr span { color: #8a93a8; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--on-dark); font-size: .9rem; padding: .3rem 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: var(--on-dark); flex-wrap: wrap; }
.footer-bottom .heart { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--on-dark); transition: background .2s, color .2s, transform .2s; }
.footer-social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }

/* Active nav highlight */
.nav-link.active { color: var(--brand); }
.nav-link.active .caret { opacity: 1; }

/* Back-to-top button */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--brand); color: #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { background: var(--brand-700); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* Ecosystem strip (home) */
.eco-label { text-align: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 1.3rem; }

/* ---------- Isometric hero scene ---------- */
.iso-wrap { position: relative; width: 100%; }
.iso { width: 100%; height: auto; overflow: visible; display: block; }
@keyframes isoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes isoBob   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes isoSpin  { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes isoGlow  { 0%,100% { opacity: .22; } 50% { opacity: .5; } }
@keyframes isoDash  { to { stroke-dashoffset: -24; } }
.iso-hub  { animation: isoFloat 5.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.iso-tile { animation: isoBob 4.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.iso-spin { animation: isoSpin 18s linear infinite; transform-box: fill-box; transform-origin: center; }
.iso-glow { animation: isoGlow 4.5s ease-in-out infinite; }
.iso-link { stroke-dasharray: 5 7; animation: isoDash 1.3s linear infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .55; } 70% { opacity: 0; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes isoRingRot { to { transform: rotate(360deg); } }
@keyframes isoFadeIn { from { opacity: 0; } to { opacity: 1; } }
.ping { transform-box: fill-box; transform-origin: center; animation: ping 4.2s ease-out infinite; }
.iso-ringrot { transform-box: fill-box; transform-origin: center; animation: isoRingRot 24s linear infinite; }
.iso { animation: isoFadeIn 1s ease-out both; }

/* ---------- Capability marquee ---------- */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.m-chip { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; font-size: .9rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .55rem 1rem; box-shadow: var(--shadow-xs); }
.m-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ---------- How it works steps ---------- */
.steps .step { position: relative; }
.step .num { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), #5b8af0); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 1.1rem; font-size: 1.05rem; }
.step h3 { margin-bottom: .45rem; }
.step p { color: var(--muted); font-size: .92rem; }
.step .step-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 600; font-size: .9rem; color: var(--brand); }

/* ---------- Hero depth polish ---------- */
.hero-grid { position: relative; z-index: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(29,78,216,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,78,216,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask: radial-gradient(72% 62% at 72% 32%, #000 0%, transparent 76%);
  mask: radial-gradient(72% 62% at 72% 32%, #000 0%, transparent 76%);
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.hero h1 .grad {
  background: linear-gradient(120deg, #2fc6d6 0%, #2f6bf0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.iso-wrap { perspective: 1300px; }
.iso { transition: transform .3s ease-out; will-change: transform; }
.iso-tile { cursor: pointer; transition: transform .18s ease; }
.iso-tile:hover { animation-play-state: paused; transform: scale(1.14); }
.iso-tile:hover > rect:first-of-type { stroke: #1d4ed8; stroke-width: 2.5; }

/* hero cursor glow */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 72%) var(--my, 30%), rgba(47,107,240,.12), transparent 72%);
}

/* card top-accent on hover */
.card { position: relative; overflow: hidden; }
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.card:hover::after { transform: scaleX(1); }

/* interior subhero depth (premium) */
.subhero { position: relative; }
.subhero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(29,78,216,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,78,216,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask: radial-gradient(72% 70% at 78% 26%, #000 0%, transparent 78%);
  mask: radial-gradient(72% 70% at 78% 26%, #000 0%, transparent 78%);
}
.subhero-grid { position: relative; z-index: 1; }

/* footer visit counter */
.footer-visits strong { color: #fff; }

/* ---------- Reveal animation (subtle, professional) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .subhero-grid { grid-template-columns: 1fr; }
  .hero-visual, .subhero .feature-media { order: 2; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  /* backdrop-filter on the header would trap the fixed menu inside the header's
     box — disable it on mobile so the menu can cover the viewport */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .nav-menu, .nav-actions .btn-secondary { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 16px 20px; overflow-y: auto; border-top: 1px solid var(--border);
  }
  .nav-menu.open .nav-item { width: 100%; }
  .nav-menu.open .nav-link { width: 100%; justify-content: space-between; padding: .85rem .4rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-menu.open .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-bottom: 1px solid var(--border); border-radius: 0; min-width: 0; padding: .25rem .4rem .8rem; display: block;
  }
  .nav-menu.open .dropdown.wide { grid-template-columns: 1fr; }
  .feature, .feature.flip .feature-media { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .cols-2, .cols-3, .cols-4, .stat-band, .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cols-2, .cols-3, .cols-4, .stat-band, .form-grid, .vf-stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
