/* ============================================================
   Valnex Global — Core Stylesheet
   Design system: navy / ocean-teal / cyan · meridian-globe motif
   Type: Sora (display) · Inter (body) · IBM Plex Mono (labels)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (sampled from logo reference) */
  --navy:        #16314F;
  --navy-deep:   #0F2438;
  --navy-700:    #1E4A6B;
  --teal:        #2C7DA0;
  --cyan:        #3FB6CE;
  --cyan-bright: #4FC4DB;

  /* Neutrals */
  --white:       #FFFFFF;
  --ground:      #F6F8FA;
  --ground-2:    #EEF3F7;
  --cyan-soft:   #E6F2F6;

  /* Text on light */
  --ink:         #16314F;
  --text:        #41566A;
  --muted:       #61768A;

  /* Text on dark */
  --on-dark:        #C9D7E3;
  --on-dark-muted:  #90A4B7;

  /* Lines */
  --line:        #E4EAF0;
  --line-2:      #D5DEE7;
  --line-dark:   rgba(255,255,255,0.12);

  /* Accent gradient + meridian texture */
  --grad: linear-gradient(135deg, #16314F 0%, #2C7DA0 55%, #3FB6CE 100%);
  --grad-soft: linear-gradient(135deg, #2C7DA0 0%, #3FB6CE 100%);

  /* Radius */
  --r-xs: 7px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --pill: 999px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(16,36,56,0.06);
  --shadow-sm: 0 2px 8px rgba(16,36,56,0.06), 0 1px 2px rgba(16,36,56,0.04);
  --shadow:    0 8px 26px -12px rgba(16,36,56,0.18), 0 2px 8px -4px rgba(16,36,56,0.10);
  --shadow-lg: 0 26px 60px -28px rgba(16,36,56,0.34), 0 8px 24px -16px rgba(16,36,56,0.18);
  --ring: 0 0 0 4px rgba(63,182,206,0.28);

  /* Type */
  --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Rhythm */
  --container: 1200px;
  --container-narrow: 880px;
  --gutter: clamp(1.15rem, 4vw, 2.25rem);
  --section-y: clamp(3.75rem, 8vw, 7rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--navy); }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(63,182,206,0.24); color: var(--navy); }

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 200;
  background: var(--navy); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm); font-weight: 600; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.h-display { font-size: clamp(2.55rem, 5.6vw, 4.3rem); line-height: 1.03; letter-spacing: -0.03em; }
h1, .h1 { font-size: clamp(2.15rem, 4.4vw, 3.35rem); }
h2, .h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3, .h3 { font-size: clamp(1.18rem, 1.5vw, 1.4rem); font-weight: 600; letter-spacing: -0.015em; }
h4, .h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }

p { text-wrap: pretty; }
.lead {
  font-size: clamp(1.08rem, 1.45vw, 1.32rem);
  line-height: 1.6; color: var(--muted); font-weight: 400;
  max-width: 60ch;
}
strong { font-weight: 600; color: var(--ink); }

/* Eyebrow / mono label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad-soft);
}
.eyebrow--plain::before { display: none; }
.on-dark .eyebrow { color: var(--cyan); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--ground { background: var(--ground); }
.section--ground-2 { background: var(--ground-2); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head .lead { margin-top: 0.25rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stack > * + * { margin-top: 1rem; }

/* Dark sections */
.on-dark { background: var(--navy-deep); color: var(--on-dark); position: relative; overflow: hidden; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .lead { color: var(--on-dark-muted); }
.on-dark a { color: var(--cyan); }
.on-dark a:hover { color: #fff; }
/* faint globe watermark in dark bands */
.on-dark .globe-mark-bg {
  position: absolute; pointer-events: none; opacity: 0.06;
  right: -8%; top: 50%; transform: translateY(-50%);
  width: min(560px, 60%); aspect-ratio: 1; color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.97rem;
  padding: 0.85rem 1.4rem; border-radius: var(--pill);
  transition: transform 0.16s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap; cursor: pointer; line-height: 1; border: 1px solid transparent;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow), var(--ring); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--navy); border-color: var(--teal); background: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-cyan { background: linear-gradient(135deg, #3FB6CE, #4FC4DB); color: #0F2438; font-weight: 700; box-shadow: var(--shadow-sm); }
.btn-cyan:hover { color: #0F2438; transform: translateY(-2px); box-shadow: var(--shadow), var(--ring); }
.on-dark .btn-cyan, .on-dark .btn-cyan:hover { color: #0F2438; }  /* beat .on-dark a (cyan-on-cyan) */

.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.28); }
.on-dark .btn-ghost:hover { border-color: var(--cyan); background: rgba(255,255,255,0.04); color: #fff; }

.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600;
  color: var(--teal); font-size: 0.96rem;
}
.arrow-link svg { width: 1em; height: 1em; transition: transform 0.18s var(--ease); }
.arrow-link:hover { color: var(--navy); }
.arrow-link:hover svg { transform: translateX(3px); }
.on-dark .arrow-link { color: var(--cyan); }
.on-dark .arrow-link:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(16,36,56,0.02), var(--shadow-xs); }
.site-header .container { max-width: 1320px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand svg { height: 38px; width: auto; }
.brand .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em; color: var(--ink); line-height: 1; }
.brand .wordmark b { color: var(--teal); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  color: var(--text); font-weight: 500; font-size: 0.9rem; white-space: nowrap;
  padding: 0.5rem 0.6rem; border-radius: var(--r-sm); position: relative;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.nav a:hover { color: var(--navy); background: var(--ground); }
.nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.15rem; height: 2px;
  background: var(--grad-soft); border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: 0.6rem; }

/* Mobile nav toggle */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); align-items: center; justify-content: center; color: var(--navy); }
.nav-toggle:hover { background: var(--ground); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1180px) {
  .nav, .header-cta .btn-text-hide { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav {
    position: fixed; inset: 72px 0 0 0; z-index: 99;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(8px);
    padding: 1.1rem var(--gutter) 2rem;
    display: flex; flex-direction: column; gap: 0.1rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
    overflow-y: auto;
  }
  body.nav-open .mobile-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-nav a:not(.btn) {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink);
    padding: 0.72rem 0.15rem; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
  }
  .mobile-nav a svg { width: 1.05em; height: 1.05em; flex-shrink: 0; color: var(--muted); opacity: 0.6; }
  .mobile-nav a[aria-current="page"] { color: var(--teal); }
  .mobile-nav .btn { margin-top: 1.1rem; }
  .mobile-nav .mnav-meta { margin-top: 1.6rem; font-size: 0.9rem; color: var(--muted); }
  .mobile-nav .mnav-meta a { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; padding: 0; border: 0; display: inline; }
}
@media (min-width: 1181px) { .mobile-nav { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--white); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 8%, rgba(63,182,206,0.10), transparent 70%),
    radial-gradient(50% 50% at 8% 100%, rgba(44,125,160,0.08), transparent 70%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding-block: clamp(3rem, 7vw, 6rem);
}
.hero-copy { max-width: 38rem; }
.hero-copy .eyebrow { margin-bottom: 1.35rem; }
.hero h1 { margin-bottom: 1.35rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.9rem; }
.hero-trust { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; color: var(--muted); }
.hero-trust .flags { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--teal); }

.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin-inline: auto; }

/* ---------- Meridian globe (animated SVG container) ---------- */
.globe { width: 100%; height: 100%; overflow: visible; }
.globe .g-sphere { stroke: var(--navy); stroke-opacity: 0.16; fill: none; }
.globe .g-spin { transform-origin: 50% 50%; animation: globe-spin 48s linear infinite; }
.globe .g-halo { fill: none; stroke: rgba(63,182,206,0.18); }
.globe .g-node { fill: var(--cyan); }
.globe .g-node-soft { fill: var(--teal); opacity: 0.7; }
.globe .v-stroke {
  fill: none; stroke: url(#heroGrad); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: v-draw 1.5s var(--ease-out) 0.25s forwards;
}
.globe .v-dot { fill: var(--cyan); opacity: 0; animation: v-dot-in 0.5s var(--ease) 1.5s forwards; }
.globe .arc-dash { stroke-dasharray: 3 6; stroke: rgba(44,125,160,0.4); fill: none; }

@keyframes globe-spin { to { transform: rotate(360deg); } }
@keyframes v-draw { to { stroke-dashoffset: 0; } }
@keyframes v-dot-in { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .globe .g-spin { animation: none; }
  .globe .v-stroke { stroke-dashoffset: 0; animation: none; }
  .globe .v-dot { opacity: 1; animation: none; }
}

/* ---------- Trust bar ---------- */
.trust-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.trust-bar-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 1.4rem clamp(0.75rem, 2vw, 1.5rem); border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: none; }
.trust-item .t-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; }
.trust-item .t-value { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); letter-spacing: -0.01em; line-height: 1.25; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  position: relative; height: 100%;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text); font-size: 0.98rem; }
.card .arrow-link { margin-top: 1.2rem; }

.card-icon {
  width: 50px; height: 50px; border-radius: var(--r); display: grid; place-items: center;
  background: var(--cyan-soft); color: var(--teal); margin-bottom: 1.25rem; flex-shrink: 0;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon--grad { background: var(--grad); color: #fff; }

.card-num {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em;
  color: var(--teal); margin-bottom: 0.9rem; display: block;
}

/* Service pillar (large) */
.pillar { display: grid; gap: 1.25rem; }
.pillar-head { display: flex; align-items: flex-start; gap: 1rem; }
.pillar ul.ticks { display: grid; gap: 0.7rem; margin-top: 0.5rem; }
.ticks li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.97rem; color: var(--text); }
.ticks li svg { width: 1.15em; height: 1.15em; color: var(--cyan); flex-shrink: 0; margin-top: 0.18em; }

/* Feature row (why) */
.feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature .feature-ic { width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; background: var(--cyan-soft); color: var(--teal); flex-shrink: 0; }
.on-dark .feature .feature-ic { background: rgba(63,182,206,0.14); color: var(--cyan); }
.feature h3 { margin-bottom: 0.4rem; }
.feature p { font-size: 0.96rem; }
.on-dark .feature p { color: var(--on-dark-muted); }

/* Stat */
.stat .stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .stat-label { margin-top: 0.55rem; font-size: 0.92rem; color: var(--muted); }
.on-dark .stat .stat-num { background: linear-gradient(135deg,#7fd3e6,#cdeef5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.on-dark .stat .stat-label { color: var(--on-dark-muted); }

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-2); border-radius: var(--pill); font-size: 0.85rem; color: var(--text);
  background: var(--white);
}
.chip svg { width: 0.95em; height: 0.95em; color: var(--cyan); }
.on-dark .chip { border-color: var(--line-dark); color: var(--on-dark); background: rgba(255,255,255,0.03); }

/* Logo grid (software) */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.logo-cell { background: var(--white); padding: 1.6rem 1rem; display: grid; place-items: center; min-height: 96px; box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line); transition: background 0.2s var(--ease); }
.logo-cell:hover { background: var(--ground); }
.logo-cell .logo-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--navy); letter-spacing: -0.01em; }
.logo-cell .logo-sub { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; text-align: center; }
.logo-cell .badge-core { display: inline-block; margin-top: 0.4rem; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; color: var(--teal); border: 1px solid var(--cyan); border-radius: var(--pill); padding: 0.12rem 0.5rem; }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.steps.steps-h { grid-template-columns: repeat(4, 1fr); }
.step { background: var(--white); padding: clamp(1.4rem,2.5vw,1.9rem); position: relative; }
.step .step-n { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em; color: var(--teal); margin-bottom: 0.85rem; display: block; }
.step h3 { margin-bottom: 0.5rem; font-size: 1.08rem; }
.step p { font-size: 0.94rem; color: var(--text); }

/* Split / editorial */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split--narrow { grid-template-columns: 1.1fr 0.9fr; }

/* Pull quote */
.pullquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.32; letter-spacing: -0.02em; color: var(--ink); }
.on-dark .pullquote { color: #fff; }
.pullquote .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Panels (jurisdictions / FAQ) */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem,2.6vw,2rem); }
.panel-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.1rem; }
.panel-flag { display: inline-block; width: 30px; height: 22px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(15,36,56,0.10); line-height: 0; flex-shrink: 0; }
.panel-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel h3 { margin: 0; }
.panel .panel-tz { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--teal); text-transform: uppercase; }
.panel dl { display: grid; gap: 0.9rem; margin-top: 0.4rem; }
.panel dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.panel dd { font-size: 0.95rem; color: var(--text); }

/* Accordion (FAQ) */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0.25rem; text-align: left; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink); letter-spacing: -0.01em;
}
.faq-q .faq-ic { flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; color: var(--teal); transition: transform 0.25s var(--ease); }
.faq-item[open] .faq-q .faq-ic { transform: rotate(45deg); }
.faq-a { padding: 0 0.25rem 1.4rem; color: var(--text); font-size: 0.98rem; max-width: 70ch; }
.faq-a p + p { margin-top: 0.8rem; }
details.faq-item summary { list-style: none; cursor: pointer; }
details.faq-item summary::-webkit-details-marker { display: none; }

/* Banded CTA */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 2; }
.cta-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; }
.cta-inner .btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: flex-end; }

/* Callout (claret-style rule, adapted to brand cyan) */
.callout { border-left: 3px solid var(--cyan); padding: 0.4rem 0 0.4rem 1.25rem; color: var(--text); font-size: 0.96rem; }
.on-dark .callout { color: var(--on-dark); }

/* Note / disclaimer */
.note {
  font-size: 0.82rem; color: var(--muted); line-height: 1.55;
}
.note code, .ph {
  font-family: var(--font-mono); font-size: 0.86em; background: var(--cyan-soft);
  color: var(--teal); padding: 0.08em 0.4em; border-radius: 5px; white-space: nowrap;
}

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--teal); }
.field .hint { font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink); font-size: 0.97rem;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2361768A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: var(--ring); }
.field input::placeholder, .field textarea::placeholder { color: #9aa9b6; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d9534f; }
.field .err-msg { font-size: 0.78rem; color: #c9302c; display: none; }
.field.invalid .err-msg { display: block; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.form-status { margin-top: 1.1rem; border-radius: var(--r-sm); padding: 0.9rem 1.1rem; font-size: 0.92rem; display: none; }
.form-status.is-success { display: block; background: #E8F6EF; color: #1C6B4A; border: 1px solid #B7E3CD; }
.form-status.is-error { display: block; background: #FCEEEE; color: #A23B38; border: 1px solid #F1C9C8; }

.btn .spinner { width: 1em; height: 1em; border: 2px solid rgba(255,255,255,0.45); border-top-color: #fff; border-radius: 50%; display: none; animation: spin 0.7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Contact meta cards */
.contact-meta { display: grid; gap: 1rem; }
.meta-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; background: var(--white); }
.meta-card .meta-ic { width: 40px; height: 40px; border-radius: var(--r); background: var(--cyan-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 0.9rem; }
.meta-card h4 { margin-bottom: 0.3rem; }
.meta-card p, .meta-card address { font-size: 0.93rem; color: var(--text); font-style: normal; line-height: 1.55; }
.meta-card a { font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark); padding-top: clamp(3rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: 2.75rem; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand .wordmark { color: #fff; }
.footer-brand .brand .wordmark b { color: var(--cyan); }
.footer-brand p { color: var(--on-dark-muted); font-size: 0.93rem; margin-top: 1.1rem; max-width: 34ch; }
.footer-brand .tagline-mono { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--cyan); text-transform: uppercase; margin-top: 1.2rem; }
.footer-col h4 { color: #fff; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { color: var(--on-dark-muted); font-size: 0.93rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2rem; }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-bottom .legal-links a { color: var(--on-dark-muted); font-size: 0.84rem; }
.footer-bottom .legal-links a:hover { color: #fff; }
.footer-bottom .copy { color: var(--on-dark-muted); font-size: 0.84rem; }
.footer-juris { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--on-dark-muted); padding: 1.4rem 0; border-bottom: 1px solid var(--line-dark); }
.footer-juris b { color: var(--cyan); font-weight: 500; }
.footer-disclaimer { color: var(--on-dark-muted); font-size: 0.78rem; line-height: 1.55; padding-top: 1.2rem; max-width: none; opacity: 0.85; }

.social-row { display: flex; gap: 0.6rem; }
.social-row a { width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line-dark); display: grid; place-items: center; color: var(--on-dark-muted); }
.social-row a:hover { color: #fff; border-color: var(--cyan); background: rgba(255,255,255,0.04); }
.social-row svg { width: 18px; height: 18px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150;
  max-width: 560px; margin-inline: auto;
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 1.2rem 1.3rem;
  display: none; align-items: center; gap: 1.1rem; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; animation: cookie-in 0.4s var(--ease-out); }
@keyframes cookie-in { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner p { font-size: 0.86rem; color: var(--text); flex: 1 1 240px; line-height: 1.5; }
.cookie-banner p a { font-weight: 600; }
.cookie-actions { display: flex; gap: 0.55rem; }
.cookie-actions .btn { padding: 0.6rem 1.05rem; font-size: 0.88rem; }
@media (prefers-reduced-motion: reduce) { .cookie-banner.show { animation: none; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; overflow: hidden; padding-top: clamp(2.75rem, 6vw, 5rem); padding-bottom: clamp(2.25rem, 5vw, 4rem); }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 92% 0%, rgba(63,182,206,0.09), transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: var(--line-2); }
.page-hero h1 { margin-bottom: 1.1rem; max-width: 20ch; }
.page-hero .lead { max-width: 64ch; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.07s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Misc utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mb-0 { margin-bottom: 0; }
.maxw-prose { max-width: 68ch; }
.divider { height: 1px; background: var(--line); border: 0; }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); background: var(--cyan-soft); border-radius: var(--pill); padding: 0.32rem 0.75rem; }

/* Prose (legal pages) */
.prose { max-width: 76ch; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin-top: 2.75rem; margin-bottom: 0.9rem; }
.prose h3 { font-size: 1.18rem; margin-top: 1.8rem; margin-bottom: 0.6rem; }
.prose p { margin-bottom: 1rem; color: var(--text); }
.prose ul { margin: 0 0 1rem 0; display: grid; gap: 0.55rem; }
.prose ul li { position: relative; padding-left: 1.35rem; color: var(--text); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.prose a { font-weight: 500; }
.prose .meta { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; max-width: 360px; }
  .split, .split--narrow, .cta-inner { grid-template-columns: 1fr; }
  .cta-inner .btn-row { justify-content: flex-start; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps.steps-h { grid-template-columns: repeat(2, 1fr); }
  .trust-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .steps.steps-h { grid-template-columns: 1fr; }
  .trust-bar-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand .wordmark { display: none; }
  .cookie-banner { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; }
}

/* ============================================================
   Logo refresh additions — hero emblem · testimonials · insights
   ============================================================ */

/* Hero brand emblem (the actual mark, floating with a soft glow) */
.brandmark { position: relative; display: grid; place-items: center; width: 100%; max-width: 480px; margin-inline: auto; aspect-ratio: 1 / 1; }
.brandmark .bm-glow { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle at 50% 42%, rgba(63,182,206,0.30), rgba(63,182,206,0) 62%); filter: blur(8px); animation: bm-pulse 6s ease-in-out infinite; }
.brandmark .bm-art { position: relative; width: 86%; height: auto; overflow: visible; filter: drop-shadow(0 20px 42px rgba(10,42,80,0.30)); animation: bm-float 7s ease-in-out infinite; }
@keyframes bm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bm-pulse { 0%, 100% { opacity: 0.62; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

/* Testimonials */
.testimonial-grid { align-items: stretch; }
.testimonial { position: relative; display: flex; flex-direction: column; gap: 0.85rem; }
.testimonial .t-mark { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 0.6; color: var(--cyan); opacity: 0.5; height: 1.3rem; }
.testimonial .t-quote { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.02rem, 1.5vw, 1.16rem); line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.testimonial .t-attr { margin-top: auto; padding-top: 0.55rem; display: flex; flex-direction: column; gap: 0.12rem; border-top: 1px solid var(--line); }
.testimonial .t-role { font-family: var(--font-mono); font-size: 0.73rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.testimonial .t-co { font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; color: var(--text); }

/* Insights — coming soon */
.coming-soon { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-sm); padding: clamp(2.2rem, 5vw, 3.6rem); text-align: center; display: grid; justify-items: center; gap: 1rem; }
.coming-soon .cs-mark { width: 78px; height: 78px; }
.coming-soon .cs-mark svg { width: 100%; height: 100%; overflow: visible; }
.coming-soon .cs-badge { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); background: var(--cyan-soft); padding: 0.4rem 0.85rem; border-radius: 100px; }
.coming-soon h2 { margin: 0; }
.coming-soon .lead { margin: 0; max-width: 52ch; }
.coming-soon .btn { margin-top: 0.5rem; }

/* small muted inline text */
.muted { color: var(--text); opacity: 0.82; font-size: 0.92em; }

@media (prefers-reduced-motion: reduce) {
  .brandmark .bm-art, .brandmark .bm-glow { animation: none; }
}

/* ---- emblem as raster image (real logo artwork) ---- */
.brand img.vx-mark { height: 38px; width: auto; display: block; }
.brandmark img.bm-art { display: block; object-fit: contain; }
.coming-soon .cs-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-brand .vx-mark { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.30)); }

/* ============================================================
   Consolidated revision — design-QA polish + mobile hardening
   (Appended last so these rules take precedence.)
   ============================================================ */

/* ---- Sticky-safe horizontal overflow control ----
   overflow-x: clip prevents sideways scroll WITHOUT creating a
   scroll container, so position:sticky keeps working on iOS Safari. */
html, body { overflow-x: clip; }

/* ---- Avoid orphaned single words in headings ---- */
h1, h2, h3, .h1, .h2, .h-display,
.section-head h2, .page-hero h1, .hero h1,
.coming-soon h2, .pullquote { text-wrap: balance; }

/* ---- Software logo wall: finished, recognisable wordmarks ---- */
.logo-cell .logo-wm {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(0.98rem, 1.5vw, 1.14rem); letter-spacing: -0.025em;
  line-height: 1.08; text-align: center; padding-inline: 0.25rem;
}

/* ---- Step numerals: intentional, well-proportioned display figures ---- */
.step { padding-top: clamp(1.5rem, 2.6vw, 2rem); }
.step .step-n {
  font-family: var(--font-display); font-weight: 700; font-size: 1.55rem;
  letter-spacing: -0.02em; line-height: 1; margin-bottom: 0.7rem; display: block;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---- Service-pillar numerals: large ghosted brand figures ---- */
.pillar { position: relative; }
.pillar > .card-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 0.35rem; display: block;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---- Closing CTA band: full, balanced, centred (no right-side fade) ---- */
.cta-inner {
  grid-template-columns: 1fr; justify-items: center; text-align: center;
  gap: 1.6rem; max-width: 760px; margin-inline: auto;
}
.cta-inner .lead { margin-inline: auto; }
.cta-inner .btn-row { justify-content: center; }
.cta-band .globe-mark-bg {
  right: auto; left: 50%; top: 50%;
  transform: translate(-50%, -50%); width: min(660px, 96%); opacity: 0.05;
}

/* ---- Button labels: keep label + arrow inline, never wrapping ---- */
.btn { white-space: nowrap; }
.btn-label { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.btn-label svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }

/* ============================================================
   Mobile end-to-end
   ============================================================ */

/* Tablet / small-laptop: ease the closing band watermark */
@media (max-width: 900px) {
  .cta-inner .btn-row { justify-content: center; }
}

/* Phones: free up the header bar, make primary actions full-width */
@media (max-width: 640px) {
  .header-cta .btn-primary { display: none; }     /* CTA still lives in the mobile menu */
  .header-inner { gap: 0.75rem; }
}

@media (max-width: 860px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .hero-actions { width: 100%; gap: 0.7rem; }
  .hero-actions .btn { width: 100%; }
  .cta-inner .btn-row { width: 100%; flex-direction: column; gap: 0.7rem; }
  .cta-inner .btn-row .btn { width: 100%; }
  .page-hero .hero-actions,
  section[style*="place-items"] .hero-actions { width: 100%; }   /* 404 + interior */
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-cell { padding: 1.3rem 0.75rem; min-height: 84px; }
  .testimonial .t-mark { font-size: 2.4rem; }
}

/* Very small phones: keep type and spacing comfortable, never clipped */
@media (max-width: 380px) {
  .brand svg, .brand img.vx-mark { height: 32px; }
  .logo-cell .logo-wm { font-size: 0.92rem; }
  .footer-juris { font-size: 0.62rem; letter-spacing: 0.04em; }
  .breadcrumb { font-size: 0.68rem; }
}

/* Guarantee comfortable tap targets on touch devices */
@media (hover: none) and (pointer: coarse) {
  .nav-toggle { width: 46px; height: 46px; }
  .footer-col a, .footer-bottom .legal-links a { padding-block: 0.15rem; display: inline-block; }
  .arrow-link { padding-block: 0.1rem; }
}
