/* =============================================================================
   Digital Business Flow — Premium B2B Design System v2
   ============================================================================= */

/* ------------------------------- Tokens ---------------------------------- */
:root {
  /* Neutrals — near-mono for editorial feel */
  --ink-050: #f7f8fb;
  --ink-100: #eef1f6;
  --ink-150: #e5e9f0;
  --ink-200: #d5dbe6;
  --ink-300: #b3bccc;
  --ink-400: #7d8699;
  --ink-500: #5b6478;
  --ink-600: #3e485b;
  --ink-700: #262f42;
  --ink-800: #131b2e;
  --ink-900: #0a1122;
  --ink-950: #060a17;

  /* One brand accent */
  --brand-400: #6796ff;
  --brand-500: #3b7bff;
  --brand-600: #1e5fea;
  --brand-700: #1a4cc4;
  --brand-050: #eef3ff;

  /* Sparing secondary */
  --teal-500: #12b3a2;
  --teal-050: #e6f8f5;

  /* Semantic */
  --success: #12a45a;
  --danger:  #d63a5a;

  /* Surfaces */
  --paper:   #ffffff;
  --paper-2: #fafbfd;
  --paper-3: #f4f6fb;
  --border:   #eaecf3;
  --border-2: #f0f2f7;
  --border-strong: #dbe0eb;

  /* Elevation — subtle, editorial */
  --shadow-xs: 0 1px 2px rgba(15, 22, 40, .04);
  --shadow-sm: 0 4px 14px rgba(15, 22, 40, .05);
  --shadow-md: 0 12px 32px rgba(15, 22, 40, .07);
  --shadow-lg: 0 28px 60px rgba(15, 22, 40, .10);
  --shadow-xl: 0 40px 90px rgba(15, 22, 40, .14);

  /* Radii */
  --r-xs: 8px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;

  /* Layout */
  --container: 1240px;
  --container-narrow: 920px;
  --gutter: 28px;

  /* Type */
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Manrope", "Inter", var(--font-body);

  /* Motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease:     cubic-bezier(.35, .05, .25, 1);

  /* Header height */
  --header-h: 76px;
  --header-h-stuck: 62px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv02","cv03","cv04","cv11","ss01";
}
body.no-scroll { overflow: hidden; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color .18s var(--ease-out);
}
a:hover { color: var(--brand-700); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.4rem, 4.4vw + 0.6rem, 4.6rem);
  letter-spacing: -0.032em;
  line-height: 1.03;
}
h2 {
  font-size: clamp(1.85rem, 2vw + 1rem, 2.85rem);
  letter-spacing: -0.028em;
  line-height: 1.08;
}
h3 { font-size: clamp(1.2rem, .5vw + 1rem, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-500); }
strong { color: var(--ink-800); }

ul, ol { padding-left: 1.15em; margin: 0 0 1em; }

hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

::selection { background: rgba(59,123,255,.18); color: var(--ink-900); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink-900); color: #fff;
  padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

section { padding: clamp(70px, 8vw, 130px) 0; }

/* --------------------------- Utility helpers ----------------------------- */
.text-center { text-align: center; }
.mt-0{margin-top:0!important} .mb-0{margin-bottom:0!important}
.mt-1{margin-top:10px} .mt-2{margin-top:20px} .mt-3{margin-top:30px} .mt-4{margin-top:48px}
.two-col-list { display: grid; gap: 4px 32px; grid-template-columns: 1fr 1fr; padding-left: 1.1rem; }
@media (max-width: 640px) { .two-col-list { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand-600);
  font-family: var(--font-body);
  font-weight: 600; font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase;
  padding: .34rem .8rem;
  background: var(--brand-050);
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow-on-dark {
  color: #b6c9ff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.eyebrow::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%; background: currentColor;
  opacity: .8;
}

/* ----------------------------- Icons ------------------------------------- */
.icon    { display: inline-flex; width: 22px; height: 22px; }
.icon svg{ width: 100%; height: 100%; }
.icon-sm { display: inline-flex; width: 16px; height: 16px; color: var(--ink-400); }
.icon-sm svg{ width: 100%; height: 100%; }
.icon-lg { display: inline-flex; width: 30px; height: 30px; }
.icon-lg svg{ width: 100%; height: 100%; }

/* ----------------------------- Buttons ---------------------------------- */
.btn {
  --btn-bg:  var(--ink-900);
  --btn-fg:  #fff;
  --btn-brd: var(--ink-900);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  padding: .82rem 1.25rem;
  font: 600 .93rem/1 var(--font-body);
  letter-spacing: -0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-brd);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s var(--ease-out),
              background .2s var(--ease-out),
              color .2s var(--ease-out),
              border-color .2s var(--ease-out),
              box-shadow .2s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(59,123,255,.35); outline-offset: 2px; }
.btn .icon { transition: transform .2s var(--ease-out); }
.btn:hover .icon { transform: translateX(2px); }
.btn-lg { padding: 1rem 1.55rem; font-size: .98rem; }
.btn-sm { padding: .58rem .95rem; font-size: .82rem; }
.btn-block { width: 100%; }

.btn-primary {
  --btn-bg:  var(--ink-900);
  --btn-brd: var(--ink-900);
  box-shadow: 0 6px 24px rgba(10,17,34,.15);
}
.btn-primary:hover { --btn-bg: var(--ink-800); --btn-brd: var(--ink-800); }

.btn-accent {
  --btn-bg:  var(--brand-600);
  --btn-brd: var(--brand-600);
  box-shadow: 0 6px 22px rgba(30,95,234,.25);
}
.btn-accent:hover { --btn-bg: var(--brand-700); --btn-brd: var(--brand-700); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-900);
  --btn-brd: var(--ink-200);
}
.btn-ghost:hover { --btn-bg: var(--ink-050); --btn-brd: var(--ink-300); }

.btn-outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-brd: rgba(255,255,255,.28);
}
.btn-outline-light:hover { --btn-bg: rgba(255,255,255,.08); --btn-brd: rgba(255,255,255,.5); }

.arrow-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600;
  color: var(--ink-900);
  font-size: .95rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: gap .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.arrow-link:hover { gap: .6rem; color: var(--brand-600); border-color: currentColor; }
.arrow-link .icon { width: 16px; height: 16px; }

/* ---------------------------- Site header ------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,.80);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .2s var(--ease-out),
              border-color .2s var(--ease-out),
              box-shadow .2s var(--ease-out);
}
.site-header.is-stuck {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(15,22,40,.02), 0 8px 22px rgba(15,22,40,.04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
  transition: min-height .2s var(--ease-out);
}
.site-header.is-stuck .header-inner { min-height: var(--header-h-stuck); }

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(10,17,34,.15);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display); font-weight: 800;
  color: var(--ink-900); font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: .72rem;
  color: var(--ink-400);
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 1px;
}
@media (max-width: 480px) { .brand-sub { display: none; } }

/* Desktop nav */
.main-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 4px;
}
.main-nav a,
.main-nav .nav-item-toggle {
  color: var(--ink-600);
  font-weight: 500;
  padding: .55rem .85rem;
  border-radius: 8px;
  font-size: .93rem;
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent;
  border: none; cursor: pointer;
  transition: color .16s var(--ease-out), background .16s var(--ease-out);
}
.main-nav a:hover,
.main-nav .nav-item-toggle:hover { color: var(--ink-900); background: var(--ink-050); }
.main-nav a.is-active,
.main-nav .nav-item.is-active > .nav-item-toggle {
  color: var(--ink-900);
  background: var(--ink-050);
}
.main-nav .nav-cta { margin-left: 10px; }
.main-nav .nav-cta .btn { padding: .68rem 1.1rem; font-size: .88rem; }

.nav-item-toggle .icon { width: 14px; height: 14px; margin-top: 1px; }

/* Mega menu */
.mega {
  position: absolute;
  left: 50%; top: calc(100% - 6px);
  transform: translate(-50%, -6px);
  width: min(1080px, calc(100vw - 40px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility .18s;
  z-index: 90;
}
.nav-item { position: relative; }
.nav-item.is-open .mega,
.nav-item:hover .mega,
.nav-item:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.mega-col {
  padding: 6px 4px;
  border-radius: var(--r-sm);
}
.mega-col-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
}
.mega-col-head .mc-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink-050); color: var(--ink-800);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.mega-col-head .mc-title {
  font-family: var(--font-display); font-weight: 700;
  color: var(--ink-900); font-size: .97rem; letter-spacing: -0.01em;
}
.mega-col-lede {
  padding: 0 10px 8px;
  font-size: .82rem; color: var(--ink-500);
  line-height: 1.45;
}
.mega-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; }
.mega-col li a {
  display: block;
  padding: 7px 10px;
  font-size: .87rem; color: var(--ink-600);
  border-radius: 8px;
}
.mega-col li a:hover { background: var(--ink-050); color: var(--ink-900); }
.mega-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 10px 10px 2px;
  font-weight: 600; color: var(--brand-600); font-size: .87rem;
}
.mega-cta:hover { color: var(--brand-700); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--ink-900);
  cursor: pointer;
}
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }

/* Mobile nav */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  }
  .site-header.is-stuck ~ * .main-nav,
  .main-nav.is-open { pointer-events: auto; }
  .main-nav.is-open { opacity: 1; transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; }
  .main-nav a, .main-nav .nav-item-toggle {
    padding: 14px 16px; font-size: 1rem; border-radius: 12px; width: 100%; justify-content: space-between;
  }
  .main-nav .nav-cta { margin: 10px 4px 4px; }
  .main-nav .nav-cta a { display: inline-flex; width: 100%; justify-content: center; padding: 14px 16px; }
  .nav-item { position: static; }
  .mega {
    position: static;
    transform: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    width: auto;
    box-shadow: none;
    border-color: var(--border);
    padding: 12px;
    margin: 4px 0 4px;
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease-out), padding .3s var(--ease-out), border-color .2s;
    padding-block: 0; border: none;
  }
  .nav-item.is-open .mega {
    max-height: 1400px;
    padding: 12px;
    border: 1px solid var(--border);
    background: var(--paper-2);
  }
  .mega-grid { grid-template-columns: 1fr; gap: 8px; }
  .main-nav .nav-item-toggle .icon { transition: transform .2s var(--ease-out); }
  .nav-item.is-open .nav-item-toggle .icon { transform: rotate(180deg); }
}

/* -------------------------- Hero (home) --------------------------------- */
.hero {
  position: relative;
  padding: clamp(70px, 9vw, 120px) 0 clamp(56px, 8vw, 110px);
  background:
    radial-gradient(1100px 500px at 100% -10%, rgba(59,123,255,.09), transparent 60%),
    radial-gradient(700px 460px at 0% 100%, rgba(18,179,162,.06), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,22,40,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,22,40,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(closest-side at 30% 50%, #000 45%, transparent 100%);
  pointer-events: none;
  opacity: .7;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.hero h1 {
  max-width: 16ch;
  margin-bottom: .35em;
  color: var(--ink-900);
}
.hero-sub {
  font-size: clamp(1.02rem, .35vw + .95rem, 1.18rem);
  color: var(--ink-500);
  max-width: 56ch;
  margin-bottom: 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta-row {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 22px 32px;
  color: var(--ink-500); font-size: .87rem;
}
.hero-meta-row .hm { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta-row .hm .icon { color: var(--ink-900); }

/* Hero visual — custom SVG-based flow composition */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-left: auto;
  justify-self: end;
}
@media (max-width: 920px) { .hero-visual { max-width: 480px; margin: 0 auto; } }

.hv-frame {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #fff, #f4f6fb);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hv-frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,22,40,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,22,40,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  opacity: .6;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .06s; }
.reveal-delay-2 { transition-delay: .12s; }
.reveal-delay-3 { transition-delay: .18s; }
.reveal-delay-4 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hv-node, .hv-line, .btn .icon { animation: none !important; transition: none !important; }
}

/* ----------------- Section head ----------------- */
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-head.left { text-align: left; margin-inline: 0; }
.section-head p { font-size: 1.06rem; color: var(--ink-500); }

/* Alternating section surfaces */
.surface-1 { background: var(--paper); }
.surface-2 { background: var(--paper-2); }
.surface-3 { background: var(--paper-3); }
.surface-1 + .surface-1, .surface-2 + .surface-2, .surface-3 + .surface-3 { border-top: 1px solid var(--border-2); }

/* ----------------- Service cards (home + services) ----------------- */
.services-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr; } }

.svc-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 30px 30px;
  min-height: 340px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .35s var(--ease-out),
              border-color .3s var(--ease-out),
              box-shadow .35s var(--ease-out);
}
.svc-card::before {
  content: "";
  position: absolute; inset: auto -30% -60% -30%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(59,123,255,.08), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  pointer-events: none;
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.svc-card:hover::before { opacity: 1; }

.svc-num {
  font-family: var(--font-display); font-weight: 800;
  color: transparent; -webkit-text-stroke: 1.1px var(--ink-200);
  font-size: 1.15rem; letter-spacing: .05em;
  margin-bottom: 18px;
}
.svc-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-900);
  background: var(--paper-2); border: 1px solid var(--border);
  margin-bottom: 22px;
  transition: color .3s var(--ease-out), background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.svc-card:hover .svc-icon { color: var(--brand-600); background: var(--brand-050); border-color: rgba(59,123,255,.25); }
.svc-icon .icon { width: 24px; height: 24px; }
.svc-card h3 { margin-bottom: .5em; }
.svc-card p { color: var(--ink-500); margin-bottom: 22px; flex-grow: 1; }
.svc-card .arrow-link { margin-top: auto; }

/* ----------------- Editorial split ----------------- */
.split {
  display: grid; gap: 60px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.split.wide-left  { grid-template-columns: 1.15fr 1fr; }
.split.wide-right { grid-template-columns: 1fr 1.15fr; }
.split.reverse .split-media { order: -1; }
@media (max-width: 920px) {
  .split, .split.wide-left, .split.wide-right { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
}
.split-content h2 { margin-bottom: .35em; }
.split-content p  { font-size: 1.05rem; color: var(--ink-500); }
.split-list {
  list-style: none; padding: 0; margin: 20px 0 26px;
  display: grid; gap: 10px;
}
.split-list li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--ink-700);
  font-size: .96rem;
}
.split-list li .icon { color: var(--brand-600); flex-shrink: 0; margin-top: 3px; width: 18px; height: 18px; }

.split-media {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(160deg, #fff, #f4f6fb);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 4;
  padding: 24px;
  display: flex; align-items: center; justify-content: center;
}
.split-media::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,22,40,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,22,40,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  opacity: .5;
}
.split-media > * { position: relative; z-index: 1; }

/* HRMS module tiles inside split media */
.hrms-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 380px;
}
.hrms-mosaic .tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out);
}
.hrms-mosaic .tile:hover { transform: translateY(-2px); border-color: var(--brand-500); }
.hrms-mosaic .tile .icon { color: var(--ink-800); width: 22px; height: 22px; margin: 0 auto 8px; }
.hrms-mosaic .tile span { display: block; font-size: .78rem; color: var(--ink-600); font-weight: 500; }

/* Website mock (redesigned) */
.mock-window {
  width: 100%; max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.mock-topbar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--border);
}
.mock-topbar i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-200);
}
.mock-topbar .title {
  flex: 1; text-align: center;
  font-size: .72rem; color: var(--ink-400);
  font-family: var(--font-body); font-weight: 500;
}
.mock-body { padding: 22px 20px; display: grid; gap: 12px; }
.mock-h { height: 12px; background: var(--ink-100); border-radius: 4px; }
.mock-h.w60 { width: 60%; } .mock-h.w80 { width: 80%; } .mock-h.w40 { width: 40%; }
.mock-h.dark { background: var(--ink-800); }
.mock-row {
  display: grid; gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 6px;
}
.mock-tile {
  aspect-ratio: 1/1;
  background: var(--paper-2);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.mock-cta {
  display: inline-flex;
  padding: 8px 14px;
  background: var(--ink-900); color: #fff;
  border-radius: 999px;
  font-size: .72rem; font-weight: 600;
  margin-top: 6px;
  width: max-content;
}

/* Digital marketing visualization */
.viz-card {
  width: 100%; max-width: 380px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.viz-card .viz-head { display: flex; justify-content: space-between; margin-bottom: 14px; }
.viz-card .viz-head .lbl { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); font-weight: 600; }
.viz-card .viz-head .val { font-family: var(--font-display); font-weight: 700; color: var(--ink-900); font-size: 1.1rem; }
.viz-bars { display: grid; grid-auto-flow: column; gap: 10px; height: 120px; align-items: end; }
.viz-bars i {
  display: block; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
}
.viz-bars i.alt { background: linear-gradient(180deg, var(--brand-500), var(--brand-700)); }
.viz-legend { display: flex; gap: 18px; margin-top: 14px; font-size: .78rem; color: var(--ink-500); }
.viz-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 2px; background: var(--ink-800); }
.viz-legend span.alt::before { background: var(--brand-600); }

/* ----------------- Business-first flow (5 steps) ----------------- */
.bf-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: 30px;
}
.bf-flow::before {
  content: "";
  position: absolute; top: 30px;
  left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
}
.bf-step {
  position: relative; z-index: 1;
  text-align: center;
  padding: 0 12px;
}
.bf-step .dot {
  width: 60px; height: 60px; margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-900);
  box-shadow: var(--shadow-xs);
  position: relative;
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.bf-step:hover .dot { transform: translateY(-3px); border-color: var(--brand-500); color: var(--brand-600); }
.bf-step .dot span {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.bf-step h4 { margin: 4px 0 6px; font-size: .98rem; }
.bf-step p { color: var(--ink-500); font-size: .84rem; margin: 0; line-height: 1.55; }
@media (max-width: 820px) {
  .bf-flow { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .bf-flow::before { display: none; }
}
@media (max-width: 460px) {
  .bf-flow { grid-template-columns: 1fr; }
}

/* ----------------- Numbered "how we work" ----------------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
}
.process-list .p-item {
  padding: 30px 26px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .25s var(--ease-out);
}
.process-list .p-item:hover { background: var(--paper-2); }
.process-list .p-item:nth-child(3n) { border-right: none; }
.process-list .p-item:nth-last-child(-n+3) { border-bottom: none; }
@media (max-width: 900px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-list .p-item { border-right: 1px solid var(--border) !important; border-bottom: 1px solid var(--border) !important; }
  .process-list .p-item:nth-child(2n) { border-right: none !important; }
  .process-list .p-item:nth-last-child(-n+2) { border-bottom: none !important; }
}
@media (max-width: 540px) {
  .process-list { grid-template-columns: 1fr; }
  .process-list .p-item { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .process-list .p-item:last-child { border-bottom: none !important; }
}
.p-num {
  font-family: var(--font-display); font-weight: 800;
  color: transparent; -webkit-text-stroke: 1.1px var(--ink-300);
  font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1;
  margin-bottom: 14px;
}
.p-item h4 { margin: 0 0 8px; font-size: 1.05rem; }
.p-item p  { color: var(--ink-500); margin: 0; font-size: .94rem; }

/* ----------------- Chips (HRMS areas) ----------------- */
.chip-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 22px;
}
.chip {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  transition: transform .18s var(--ease-out), border-color .18s var(--ease-out);
}
.chip:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.chip .d {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-500);
  flex-shrink: 0;
}
.chip span { color: var(--ink-700); font-weight: 500; font-size: .89rem; }

.callout {
  margin-top: 26px;
  padding: 22px 26px;
  border-radius: var(--r);
  background: var(--paper-2);
  border: 1px solid var(--border);
  color: var(--ink-700);
  font-size: .98rem;
  display: flex; gap: 14px; align-items: flex-start;
}
.callout .icon { color: var(--brand-600); flex-shrink: 0; margin-top: 3px; }
.callout strong { color: var(--ink-900); }

/* ----------------- Reasons ----------------- */
.reasons {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.reason {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out);
}
.reason:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.reason .r-num {
  font-family: var(--font-display); font-weight: 800;
  color: var(--brand-600);
  font-size: 1.15rem; letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.reason h4 { margin: 6px 0 10px; font-size: 1.1rem; }
.reason p { margin: 0; color: var(--ink-500); }

/* ----------------- Who we help ----------------- */
.who-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.who-item {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform .18s var(--ease-out), border-color .18s var(--ease-out);
}
.who-item:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.who-item .badge {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--paper-2); color: var(--ink-800);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.who-item span { color: var(--ink-800); font-weight: 500; }

/* ----------------- Final CTA ----------------- */
.cta-block { padding: clamp(60px, 8vw, 110px) 0; }
.cta-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0a1122 0%, #131b2e 100%);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: clamp(48px, 6vw, 88px) clamp(28px, 5vw, 72px);
  text-align: center;
  box-shadow: var(--shadow-xl);
}
.cta-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(closest-side at 50% 40%, #000 55%, transparent 100%);
  pointer-events: none;
}
.cta-card-glow {
  position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(closest-side, rgba(59,123,255,.35), transparent 70%);
  pointer-events: none;
}
.cta-card-inner { position: relative; }
.cta-card h2 { color: #fff; max-width: 24ch; margin: 6px auto .35em; }
.cta-card p  { color: #b7c1dc; max-width: 58ch; margin: 0 auto; }
.cta-buttons {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px;
}

/* ----------------- Page banner ----------------- */
.page-banner {
  padding: clamp(90px, 10vw, 150px) 0 clamp(56px, 6vw, 90px);
  background:
    radial-gradient(900px 400px at 100% -10%, rgba(59,123,255,.08), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-2);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,22,40,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,22,40,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(closest-side at 30% 50%, #000 40%, transparent 100%);
  opacity: .8;
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { max-width: 22ch; }
.page-banner p  { max-width: 62ch; font-size: 1.1rem; color: var(--ink-500); }

/* ----------------- Contact page ----------------- */
.contact-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block; font-weight: 600; color: var(--ink-800);
  margin-bottom: 6px; font-size: .87rem;
  letter-spacing: -0.005em;
}
.field .req { color: var(--danger); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-900);
  font: 400 .98rem/1.4 var(--font-body);
  transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out), background .15s var(--ease-out);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6478' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px rgba(59,123,255,.16);
}
.field .error { color: var(--danger); font-size: .78rem; margin-top: 6px; display: none; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error .error { display: block; }

.form-status {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: .95rem;
}
.form-status.success { background: #eaf7ef; color: #0b6b3a; border: 1px solid #bfe6cf; }
.form-status.error   { background: #fdecef; color: #8a1c2b; border: 1px solid #f4c8d1; }

.contact-side { display: flex; flex-direction: column; gap: 14px; }
.contact-side .info-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  padding: 22px 24px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: transform .2s var(--ease-out), border-color .2s var(--ease-out);
}
.contact-side .info-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.contact-side .info-card .badge {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--paper-2); color: var(--ink-800);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-side .info-card h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-side .info-card p, .contact-side .info-card a { margin: 0; color: var(--ink-500); font-size: .95rem; }

/* ----------------- About page bits ----------------- */
.about-values { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.about-values .svc-card { min-height: auto; padding: 28px; }

/* ----------------- FAQ ----------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 4px 22px;
  margin-bottom: 10px;
  transition: border-color .18s var(--ease-out);
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 18px 0; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; color: var(--ink-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px;
  border-right: 1.6px solid var(--ink-400); border-bottom: 1.6px solid var(--ink-400);
  transform: rotate(45deg); margin-right: 6px;
  transition: transform .2s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.faq p { color: var(--ink-500); padding-bottom: 18px; margin: 0; }

/* ----------------- Footer ----------------- */
.site-footer {
  background: #060a17;
  color: #a5b0cb;
  padding-top: 80px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(closest-side at 30% 0%, #000 50%, transparent 100%);
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub  { color: #7d89a8; }

.footer-grid {
  display: grid; gap: 44px;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  padding-bottom: 56px;
}
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-tag { color: #8b96b4; margin: 18px 0 22px; max-width: 42ch; }

.footer-col h4 {
  color: #fff; font-size: .84rem;
  font-family: var(--font-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a { color: #a5b0cb; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact .icon-sm { color: #5d6a8a; }
.footer-socials { display: flex; gap: 10px; margin-top: 4px; }
.footer-socials .social {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05);
  color: #c5cee1;
  border: 1px solid rgba(255,255,255,.08);
  transition: background .18s var(--ease-out), color .18s var(--ease-out);
}
.footer-socials .social:hover { background: rgba(255,255,255,.10); color: #fff; }
.footer-cta {
  display: inline-flex;
  padding: 12px 18px;
  background: #fff; color: var(--ink-900);
  border-radius: 999px;
  font-weight: 600; font-size: .88rem;
  margin-top: 12px;
  transition: transform .2s var(--ease-out), background .2s;
}
.footer-cta:hover { color: var(--ink-900); background: #eef1f6; transform: translateY(-1px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: .83rem; color: #6f7b9a; }
.footer-note { font-style: italic; }

/* ----------------- Floating dock ----------------- */
.floating-dock {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}
.floating-dock .fd-btn {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px 12px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600; font-size: .88rem;
  border: none; cursor: pointer;
  box-shadow: 0 12px 30px rgba(15,22,40,.18);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), background .22s;
}
.floating-dock .fd-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(15,22,40,.22); }
.floating-dock .fd-whatsapp { background: #22c65c; }
.floating-dock .fd-whatsapp:hover { background: #1eb454; color: #fff; }
.floating-dock .fd-contact  { background: var(--ink-900); }
.floating-dock .fd-contact:hover  { background: var(--ink-800); }
.floating-dock .fd-btn .icon { width: 20px; height: 20px; }
.floating-dock .fd-label { line-height: 1; }
@media (max-width: 640px) {
  .floating-dock { right: 14px; bottom: 14px; gap: 8px; }
  .floating-dock .fd-btn { padding: 12px; }
  .floating-dock .fd-label { display: none; }
}
@media (max-width: 380px) {
  .floating-dock { bottom: 10px; }
}

/* ----------------- Modal (Quick enquiry) ----------------- */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
}
.modal.is-open { display: block; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 10, 23, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: absolute;
  right: 20px; top: 20px; bottom: 20px;
  width: min(460px, calc(100vw - 40px));
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  padding: clamp(24px, 3vw, 34px);
  overflow-y: auto;
  transform: translateX(30px);
  opacity: 0;
  transition: transform .3s var(--ease-out), opacity .25s var(--ease-out);
}
.modal.is-open .modal-panel { transform: translateX(0); opacity: 1; }
@media (max-width: 560px) {
  .modal-panel {
    right: 0; left: 0; bottom: 0; top: auto;
    max-height: 92vh;
    width: 100%;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(40px);
  }
  .modal.is-open .modal-panel { transform: translateY(0); }
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: transparent; border: none; cursor: pointer;
  border-radius: 8px;
  color: var(--ink-500);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s;
}
.modal-close:hover { background: var(--ink-050); color: var(--ink-900); }
.modal-head { margin-bottom: 22px; }
.modal-head h2 { font-size: 1.4rem; margin-bottom: 8px; }
.modal-head p { color: var(--ink-500); font-size: .95rem; margin: 0; }
.modal-form { display: grid; gap: 14px; }
.modal-form .field-2col { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .modal-form .field-2col { grid-template-columns: 1fr; } }
.modal-note {
  color: var(--ink-400); font-size: .78rem; margin-top: 4px; text-align: center;
}

/* ----------------- Focus ring ----------------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(59,123,255,.35);
  outline-offset: 2px;
  border-radius: 6px;
}
