/* ============================================================
   Verge Systems — global stylesheet
   Sections: tokens · base · nav · hero · buttons · sections ·
   products · services · innovation · stats · awards · clients ·
   testimonials · featured · integrations · CTA · footer ·
   inner pages · responsive
   ============================================================ */

/* ---- tokens ---- */
:root {
  --navy-900: #0b1f33;
  --navy-800: #16375a;
  --navy-700: #1b598d;
  --ink: #2b3440;
  --muted: #5b6472;
  --line: #e3e7ee;
  --bg: #f7f9fc;
  --bg-alt: #fafbfd;
  --card: #ffffff;
  --accent: #0e76b5;          /* Verge blue (pyramid) */
  --accent-dark: #0b5f92;
  --accent-soft: #e8f2fa;
  --accent-on-dark: #5fb0ea;  /* lightened for navy backgrounds */
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(11, 31, 51, .08), 0 10px 28px rgba(11, 31, 51, .07);
  --shadow-lg: 0 18px 48px rgba(11, 31, 51, .16);
  --nav-h: 76px;
  --announce-h: 0px;          /* set by .has-announce when a site shows the announcement bar */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: calc(var(--nav-h) + var(--announce-h) + 12px); }   /* anchors land below the fixed nav */
body { font-family: var(--font); color: var(--ink); background: var(--card); line-height: 1.6; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy-900); font-weight: 800; letter-spacing: -.02em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 820px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Font Awesome duotone icons in Verge blue */
.fa-duotone { --fa-primary-color: var(--accent); --fa-secondary-color: var(--accent); --fa-secondary-opacity: .32; }
.on-dark .fa-duotone, .btn .fa-duotone { --fa-primary-color: currentColor; --fa-secondary-color: currentColor; }

/* ---- reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy-900); color: #fff;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.nav-inner { display: flex; align-items: center; gap: 28px; min-height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.nav-logo:hover { color: #fff; }
.nav-logo img { height: 46px; width: auto; }
.nav-region { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: var(--accent); padding: 4px 9px; border-radius: 999px; margin-left: 6px; align-self: flex-end; margin-bottom: 4px; }
.nav-logo .wordmark { font-size: 1.28rem; display: flex; flex-direction: column; gap: 3px; }
.nav-logo .wordmark small { font-size: .62rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #b9cbe0; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 9px;
  color: #d6deea; font-size: .94rem; font-weight: 500; background: none; border: 0; cursor: pointer; font-family: inherit;
  transition: background .15s, color .15s;
}
.nav-links a, .nav-links button { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1180px) {
  .nav-inner { gap: 18px; }
  .nav-links { gap: 0; }
  .nav-links a, .nav-links button { padding: 10px 9px; font-size: .9rem; }
}
.nav-links a:hover, .nav-links button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-links a.active { color: #fff; font-weight: 600; }
.nav-links .has-dropdown.active > button { color: #fff; font-weight: 600; }
.dropdown a.active { color: var(--navy-900); background: var(--bg); }
.nav-links a.btn { margin-left: 8px; }
.nav-links .has-dropdown > button i { font-size: .7rem; transition: transform .2s; }
.nav-links .has-dropdown.open > button i { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--ink); border-radius: 9px; font-size: .92rem; text-shadow: none; }
.dropdown a:hover { background: var(--bg); color: var(--navy-900); }
.dropdown a i { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.dropdown a span { display: flex; flex-direction: column; line-height: 1.25; }
.dropdown a small { color: var(--muted); font-size: .76rem; font-weight: 400; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-size: 1.1rem; cursor: pointer; }

/* Transparent nav over the home hero; solid once the page scrolls */
.home .nav { background: transparent; }
.home .nav .nav-links a:not(.btn), .home .nav .nav-links button { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.nav.is-scrolled, .home .nav.is-scrolled { background: rgba(11, 31, 51, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.nav.is-scrolled .nav-inner { min-height: 64px; }
.nav.is-scrolled .nav-logo img { height: 40px; }
body:not(.home) { padding-top: calc(var(--nav-h) + var(--announce-h)); }

/* Announcement bar: first child of .nav on sites with <body class="has-announce"> */
.has-announce { --announce-h: 34px; }
.announce { height: var(--announce-h); overflow: hidden; background: linear-gradient(90deg, var(--navy-900), var(--accent-dark)); border-bottom: 1px solid rgba(255,255,255,.1); font-size: .8rem; font-weight: 500; color: #dbe7f5; }
.announce .container { height: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; }
.announce span + span::before { content: "•"; margin-right: 10px; color: var(--accent-on-dark); }

/* ============================================================
   HERO (video, dark scrim) — mirrors the Greeter landing hero
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background: var(--navy-900); color: #fff; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 120% at 80% 0%, #16375a 0%, #0b1f33 55%); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right top; filter: saturate(1.1) contrast(1.05); }
/* The film is bright and fades to white on the left. Multiplying navy over it
   turns the white into navy and tints the imagery — the same dark, moody
   frame as the Greeter hero — before the legibility scrim goes on top. */
.hero-tint { position: absolute; inset: 0; mix-blend-mode: multiply;
  background: linear-gradient(90deg, #0f2f4d 0%, #23547f 36%, #7aa5cb 64%, #c6dbec 100%); }
.hero-scrim { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11,31,51,.72) 0%, rgba(11,31,51,.5) 40%, rgba(11,31,51,.12) 70%, rgba(11,31,51,0) 100%),
  linear-gradient(180deg, rgba(11,31,51,.45) 0%, rgba(11,31,51,0) 24%, rgba(11,31,51,0) 70%, rgba(11,31,51,.6) 100%); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 150px 28px 110px; }
.hero-copy { max-width: 720px; text-shadow: 0 2px 16px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.45); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: #cfe1f4; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.hero-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-on-dark); box-shadow: 0 0 0 0 rgba(95,176,234,.6); animation: heroPulse 2s infinite; }
@keyframes heroPulse { 0% { box-shadow: 0 0 0 0 rgba(95,176,234,.55); } 70% { box-shadow: 0 0 0 9px rgba(95,176,234,0); } 100% { box-shadow: 0 0 0 0 rgba(95,176,234,0); } }
.hero-title { font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.08; font-weight: 800; margin: 22px 0 0; letter-spacing: -.025em; color: #fff; }
.hero-title .grad { color: #eef3f9; animation: gradGlow 3.2s ease-in-out infinite; }
@keyframes gradGlow {
  0%, 100% { text-shadow: 0 2px 12px rgba(0,0,0,.6), 0 0 14px rgba(95,176,234,.45); }
  50%      { text-shadow: 0 2px 12px rgba(0,0,0,.6), 0 0 30px rgba(122,199,255,.9), 0 0 60px rgba(95,176,234,.5); }
}
@media (prefers-reduced-motion: reduce) { .hero-title .grad { animation: none; text-shadow: 0 2px 12px rgba(0,0,0,.6), 0 0 20px rgba(122,199,255,.7); } .hero-pulse { animation: none; } }
.hero-lede { font-size: 1.12rem; line-height: 1.65; color: #d6e2ee; margin: 22px 0 0; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 28px 0 0; }
.hero-proof li { font-size: .92rem; color: #cfe1f4; display: flex; align-items: center; gap: 8px; }
.hero-proof i { color: var(--accent-on-dark); }
.hero-metrics { display: flex; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); max-width: 660px; }
.hero-metrics li { padding: 0 26px; border-left: 1px solid rgba(255,255,255,.16); }
.hero-metrics li:first-child { padding-left: 0; border-left: 0; }
.hero-metrics strong { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.15; }
.hero-metrics span { font-size: .84rem; color: #c3d5e8; }
.hero-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1; color: #9fb8d2; font-size: 1.1rem; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 11px; font-weight: 600;
  font-size: .96rem; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: transform .12s, box-shadow .12s, background .12s, color .12s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .88rem; border-radius: 9px; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(14, 118, 181, .32); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-white { background: #fff; color: var(--navy-900); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.btn-white:hover { background: #eaf2fb; color: var(--navy-900); }
.btn-ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--line); }
.btn-outline:hover { background: var(--bg); color: var(--accent-dark); }
.nav-links a.btn-primary { text-shadow: none; box-shadow: none; }
.nav-links a.btn-primary:hover { background: var(--accent-dark); }

/* ============================================================
   SECTION RHYTHM
   ============================================================ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--navy-900); color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 12px; }
.eyebrow.on-dark { color: var(--accent-on-dark); }
.title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.title.on-dark { color: #fff; }
.text-accent { color: var(--accent); }
.lede { font-size: 1.06rem; line-height: 1.62; color: var(--muted); margin-top: 14px; }
.lede.on-dark { color: #cbd8e6; }

/* ---- trust strip ---- */
.strip { background: #f4f7fb; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.strip .container { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.strip-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.strip-items { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.strip-items li { font-size: .93rem; font-weight: 600; color: var(--navy-800); display: flex; align-items: center; gap: 8px; }
.strip-items i { color: var(--accent); }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; min-height: 196px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfdbe8; color: var(--ink); }
.product-logo { height: 44px; display: flex; align-items: center; }
.product-logo img { max-height: 44px; max-width: 160px; width: auto; height: auto; object-fit: contain; }
.product-logo.icon { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); align-items: center; justify-content: center; font-size: 1.3rem; }
.product-card h3 { font-size: 1.08rem; }
.product-card p { font-size: .9rem; color: var(--muted); line-height: 1.5; flex: 1; }
.product-link { font-size: .84rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.product-card:hover .product-link { color: var(--accent-dark); }
.product-link i { transition: transform .15s; }
.product-card:hover .product-link i { transform: translateX(3px); }
.product-card.featured { grid-column: span 2; background: linear-gradient(135deg, var(--accent) 0%, var(--navy-800) 100%); color: #fff; border-color: transparent; }
.product-card.featured h3, .product-card.featured p, .product-card.featured .product-link { color: #fff; }
.product-card.featured p { color: #d6e2ee; }
.product-card.featured .product-logo { background: rgba(255,255,255,.92); border-radius: 10px; padding: 8px 14px; align-self: flex-start; height: auto; }
.product-card.featured .product-logo img { max-height: 36px; }
.product-badge { position: absolute; top: 16px; right: 16px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; }
@media (min-width: 701px) {
  .products-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .products-grid.cols-3 .product-card.featured { grid-column: span 2; }
}
.products-more { text-align: center; margin-top: 36px; color: var(--muted); font-size: .95rem; }

/* ============================================================
   SERVICES (home: 2x2 horizontal cards · inner pages: perks)
   ============================================================ */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.services-grid .service-card { display: flex; gap: 22px; align-items: flex-start; color: var(--ink); position: relative; overflow: hidden; }
.services-grid .service-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--accent), var(--navy-800)); opacity: 0; transition: opacity .2s; }
.services-grid .service-card:hover::before { opacity: 1; }
.services-grid .service-card:hover { color: var(--ink); border-color: #cfdbe8; box-shadow: var(--shadow-lg); }
.services-grid .service-icon { flex-shrink: 0; margin: 0; width: 60px; height: 60px; font-size: 1.5rem; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-soft), #d5e8f7); }
.service-body { display: flex; flex-direction: column; gap: 10px; }
.service-body h3 { margin: 0; }
.service-body p { margin: 0; }
.service-body .product-link { margin-top: 4px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon { width: 52px; height: 52px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 18px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card h3 small { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--accent); margin-left: 8px; letter-spacing: .06em; text-transform: uppercase; background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.service-card p { color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* ============================================================
   INNOVATION (image cards)
   ============================================================ */
.innovation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.innovation-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.innovation-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.innovation-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.innovation-body { padding: 22px; }
.innovation-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.innovation-body p { color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band { background: var(--navy-900); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 100% 0%, rgba(14,118,181,.35) 0%, transparent 60%); pointer-events: none; }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-n { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.stat-n span { color: var(--accent-on-dark); }
.stat-l { color: #b9cbe0; font-size: .92rem; margin-top: 6px; }

/* ============================================================
   AWARDS
   ============================================================ */
.awards-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.award { text-align: center; padding: 24px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.award img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 14px; }
.award-icon { width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 2.8rem; }
.awards-grid.five { grid-template-columns: repeat(5, 1fr); }
.award p { font-size: .84rem; font-weight: 600; color: var(--navy-800); line-height: 1.4; }

/* ============================================================
   LOGO MARQUEE (clients, integrations)
   ============================================================ */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 56px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.marquee-track img:hover { filter: none; opacity: 1; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee + .marquee { margin-top: 28px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }
.client-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.client-tabs button { font-family: inherit; font-size: .88rem; font-weight: 600; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: all .15s; }
.client-tabs button:hover { color: var(--navy-900); border-color: #cfdbe8; }
.client-tabs button.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 32px; position: relative; display: flex; flex-direction: column; }
.testimonial::before { content: "\201C"; position: absolute; top: 14px; right: 26px; font-size: 5rem; line-height: 1; color: var(--accent-soft); font-family: Georgia, serif; }
.testimonial p { font-size: 1rem; line-height: 1.7; color: var(--ink); flex: 1; position: relative; }
.testimonial-who { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.testimonial-who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial-who strong { display: block; color: var(--navy-900); font-size: .98rem; }
.testimonial-who span { font-size: .84rem; color: var(--muted); }
.stars { color: #f5a623; font-size: .85rem; margin-bottom: 14px; letter-spacing: 2px; }

/* ============================================================
   FEATURED ON / OFFICES
   ============================================================ */
.featured-row { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.featured-row img { height: 64px; width: auto; max-width: 260px; object-fit: contain; }
.offices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.office { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; gap: 14px; align-items: flex-start; position: relative; }
.office-badge { position: absolute; top: 14px; right: 14px; font-size: .66rem; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #fff; }
.office-flag { font-size: 1.9rem; line-height: 1; flex-shrink: 0; }
.office h3 { font-size: 1.05rem; margin-bottom: 6px; }
.office p { font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta { padding: 96px 0; text-align: center; background: radial-gradient(120% 120% at 50% 0%, var(--accent-soft) 0%, #fff 60%); border-top: 1px solid var(--line); }
.cta-title { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
.cta-lede { color: var(--muted); font-size: 1.08rem; margin: 14px auto 32px; max-width: 580px; }
.cta .hero-actions { justify-content: center; margin-top: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-900); color: #9fb0c6; padding: 64px 0 28px; font-size: .9rem; }
.footer-cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.footer-brand img { height: 42px; width: auto; }
.footer p { line-height: 1.65; max-width: 360px; }
.footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-links a { color: #9fb0c6; display: block; padding: 4px 0; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; padding: 4px 0; line-height: 1.5; }
.footer-contact i { color: var(--accent-on-dark); margin-top: 4px; width: 16px; text-align: center; }
.footer-contact a { color: #9fb0c6; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #d6deea; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.footer-social a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.footer-bottom a { color: #9fb0c6; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero { background: var(--navy-900); color: #fff; padding: 88px 0 72px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 100% 0%, rgba(14,118,181,.4) 0%, transparent 60%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-top: 14px; }
.page-hero .lede { color: #cbd8e6; max-width: 640px; }
.breadcrumb { display: flex; gap: 8px; font-size: .82rem; color: #9fb0c6; }
.breadcrumb a { color: #9fb0c6; }
.breadcrumb a:hover { color: #fff; }
.prose { max-width: 780px; }
.prose p { color: var(--ink); line-height: 1.75; margin-bottom: 18px; font-size: 1.02rem; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; }
.prose li { margin-bottom: 6px; line-height: 1.65; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); margin: 20px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col img { border-radius: var(--radius-lg); }
.checklist { display: grid; gap: 10px; margin-top: 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); line-height: 1.5; }
.checklist i { color: var(--accent); margin-top: 4px; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.team-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 16px; }
.team-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 4px solid var(--accent-soft); }
.team-card h3 { font-size: 1rem; }
.team-card span { font-size: .82rem; color: var(--muted); }

/* solution tiles */
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.solution { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; color: var(--navy-900); font-size: .94rem; line-height: 1.35; }
.solution i { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }

/* client logo grid (clients page) */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logo-grid div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; height: 110px; display: flex; align-items: center; justify-content: center; }
.logo-grid img { max-height: 64px; max-width: 100%; object-fit: contain; }

/* case studies + blog cards */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.post-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-body .meta { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.post-body h3 { font-size: 1.15rem; }
.post-body p { color: var(--muted); font-size: .92rem; line-height: 1.55; flex: 1; }
.post-body .product-link { margin-top: 6px; }

/* case study detail */
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: -40px 0 48px; position: relative; }
.cs-meta div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.cs-meta small { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 4px; }
.cs-meta strong { color: var(--navy-900); font-size: .98rem; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); margin: 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.alert { padding: 14px 16px; border-radius: 10px; font-size: .92rem; margin-bottom: 18px; }
.alert-success { background: #e6f6ec; color: #1f7a3d; border: 1px solid #bfe6cd; }
.alert-error { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c0; }
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; gap: 16px; }
.contact-card i { width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: .92rem; color: var(--muted); line-height: 1.55; }
.contact-card a:hover { color: var(--accent); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 48px; }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* careers iframe */
.careers-frame { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.careers-frame iframe { width: 100%; height: 900px; border: 0; display: block; }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* chips (banks, integrations) */
.chip-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; margin-top: 36px; }
.section-head + .chip-row { margin-top: 0; }
.chip-row-label { width: 100%; text-align: center; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--navy-800); }
.chip-lg { padding: 13px 22px; font-size: 1rem; }

/* product pages */
.product-hero-logo { display: flex; width: fit-content; align-items: center; margin-top: 24px; padding: 10px 16px; background: #fff; border-radius: 12px; }
.product-hero-logo img { height: 34px; width: auto; }
.product-hero .hero-actions { margin-top: 28px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* payroll preview calculator (PayDay) */
.calc { display: grid; grid-template-columns: 1fr 1.1fr; max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.calc-input { padding: 34px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.field .input-prefix input { padding-left: 52px; font-size: 1.35rem; font-weight: 700; color: var(--navy-900); }
.calc-assume { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.calc-note { display: flex; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); font-size: .84rem; color: var(--navy-800); line-height: 1.5; }
.calc-note i { margin-top: 3px; }
.calc-result { padding: 30px 34px; background: var(--navy-900); color: #cbd8e6; display: flex; flex-direction: column; justify-content: center; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.calc-row small, .calc-total small { display: block; font-size: .78rem; color: #8fa6bf; margin-top: 2px; font-weight: 400; }
.calc-row small b { font-weight: 600; color: #b9cbe0; }
.calc-row strong { color: #fff; font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 20px; color: #fff; font-weight: 600; }
.calc-total strong { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--accent-on-dark); font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.1; }
.footer-sub { margin-top: 24px; }
.footer-entity { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .products-grid, .innovation-grid, .solutions-grid, .perks { grid-template-columns: repeat(3, 1fr); }
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid, .awards-grid.five, .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .product-card.featured { grid-column: span 3; }
}
@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--navy-900); padding: 12px 20px 20px; border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 40px rgba(0,0,0,.3); margin: 0; max-height: calc(100vh - var(--nav-h) - var(--announce-h)); overflow-y: auto; }
  .nav.menu-open .nav-links { display: flex; }
  .nav.menu-open { background: var(--navy-900); }
  .nav-links a, .nav-links button { width: 100%; padding: 13px 12px; font-size: 1rem; text-shadow: none !important; }
  .nav-links .has-dropdown > button { justify-content: space-between; }
  .nav-links a.btn { margin: 10px 0 0; }
  .dropdown { position: static; box-shadow: none; border: 0; background: rgba(255,255,255,.05); border-radius: 10px; margin: 4px 0 6px; padding: 6px; display: none; opacity: 1; visibility: visible; transform: none; min-width: 0; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { color: #d6deea; }
  .dropdown a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .dropdown a small { color: #9fb0c6; }
  .dropdown a i { background: rgba(255,255,255,.1); color: var(--accent-on-dark); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .two-col, .contact-grid, .cards-3 { grid-template-columns: 1fr; }
  .stats-grid, .cs-meta { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 700px) {
  .products-grid, .innovation-grid, .solutions-grid, .perks, .testimonials, .cards-2, .team-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .service-card { flex-direction: column; gap: 14px; }
  .product-card.featured { grid-column: span 2; }
  .hero-inner { padding: 130px 22px 80px; }
  .hero-scrim { background: linear-gradient(180deg, rgba(11,31,51,.55) 0%, rgba(11,31,51,.75) 60%, rgba(11,31,51,.9) 100%); }
  .container { padding: 0 20px; }
  .form-row { grid-template-columns: 1fr; }
  .awards-grid, .awards-grid.five, .logo-grid { grid-template-columns: 1fr 1fr; }
  .hero-scroll { display: none; }
  .announce-wide { display: none; }
  .hero-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .hero-metrics li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .calc-input, .calc-result { padding: 26px 22px; }
}
@media (max-width: 520px) {
  .products-grid, .innovation-grid, .solutions-grid, .perks, .testimonials, .cards-2, .team-grid, .footer-cols, .stats-grid, .cs-meta, .offices-grid { grid-template-columns: 1fr; }
  .product-card.featured { grid-column: span 1; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-logo .wordmark small { display: none; }
  .btn-lg { width: 100%; }
  .hero-actions .btn { width: 100%; }
}
