/* ==========================================================================
   MeraUdyog — Design System
   One stylesheet for the entire site. No build step, no preprocessor.

   Contents
   01. Tokens (palette, type scale, 8px spacing grid, elevation)
   02. Reset & base
   03. Typography
   04. Layout primitives (container, grid, section rhythm)
   05. Buttons & links
   06. Header, mega-menu, mobile nav
   07. Footer
   08. Hero
   09. Cards & grids
   10. Tables (comparison matrices — real tables, never images)
   11. Data-viz mockups (dashboard, kanban, funnel, architecture)
   12. Accordions / FAQ
   13. Forms
   14. Callouts, badges, stats, testimonials
   15. Pricing
   16. Blog & article typography
   17. Motion & scroll reveal
   18. Dark mode
   19. Responsive breakpoints
   20. Print & utilities

   BRAND: primary #003ffc. Used for CTAs, links, active states, data
   highlights and accents only — never as a full-bleed background wash.
   ========================================================================== */

/* ---------- 01. TOKENS ---------------------------------------------------- */

:root {
  /* Brand */
  --brand: #003ffc;
  --brand-600: #0033d1;
  --brand-700: #0029a8;
  --brand-300: #6b8dff;
  --brand-100: #dbe4ff;
  --brand-50: #f0f4ff;

  /* Secondary accent — deep navy for dark sections */
  --navy: #061031;
  --navy-800: #0b1a45;
  --navy-700: #142359;
  --slate: #5b6b8c; /* soft blue-gray */

  /* Ink & neutrals (cool grays) */
  --ink: #0a0a0a;
  --ink-2: #22252d;
  --gray-700: #3d4351;
  --gray-600: #545c70;
  --gray-500: #6f778c;
  --gray-400: #98a0b3;
  --gray-300: #c9cfdc;
  --gray-200: #e2e6ee;
  --gray-100: #eef0f5;
  --gray-50: #f7f8fb;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--white);
  --bg-sunken: var(--gray-50);
  --bg-raised: var(--white);
  --text: var(--ink);
  --text-muted: var(--gray-600);
  --text-faint: var(--gray-500);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);
  --link: var(--brand);

  /* Data-viz accents (used sparingly in mockups/charts) */
  --dv-1: #003ffc;
  --dv-2: #00b8a9;
  --dv-3: #ff8a3d;
  --dv-4: #7c5cff;
  --dv-5: #e4405f;
  --ok: #0f9d58;
  --warn: #e8a400;
  --danger: #d92d20;

  /* Type — Inter first (widely installed), then platform UI stack.
     To self-host or use a CDN webfont, add the @font-face / <link> and keep
     "Inter" first in this stack. No external request is made by default. */
  --font-sans: "Inter", "Inter var", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Type scale — opinionated, fluid, mobile-first */
  --fs-display: clamp(2rem, 1.2rem + 4.2vw, 5rem);      /* 32 → 80 */
  --fs-h1: clamp(2rem, 1.4rem + 3vw, 3.5rem);           /* 32 → 56 */
  --fs-h2: clamp(1.625rem, 1.2rem + 1.9vw, 2.75rem);    /* 26 → 44 */
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);    /* 20 → 26 */
  --fs-h4: 1.125rem;                                     /* 18 */
  --fs-lead: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem);  /* 17 → 22 */
  --fs-body: 1.0625rem;                                  /* 17 */
  --fs-sm: 0.9375rem;                                    /* 15 */
  --fs-xs: 0.8125rem;                                    /* 13 */
  --fs-micro: 0.6875rem;                                 /* 11 */

  --lh-tight: 1.05;
  --lh-heading: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.65;
  --lh-loose: 1.75;

  --tracking-tight: -0.022em;
  --tracking-display: -0.032em;
  --tracking-wide: 0.08em;

  /* Spacing — strict 8px grid */
  --s-1: 4px;
  --s0: 8px;
  --s1: 16px;
  --s2: 24px;
  --s3: 32px;
  --s4: 40px;
  --s5: 48px;
  --s6: 64px;
  --s7: 80px;
  --s8: 96px;
  --s9: 120px;
  --s10: 160px;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Elevation — restrained, cool-toned */
  --sh-xs: 0 1px 2px rgba(10, 16, 40, 0.05);
  --sh-sm: 0 2px 8px rgba(10, 16, 40, 0.06);
  --sh-md: 0 8px 24px rgba(10, 16, 40, 0.08);
  --sh-lg: 0 20px 48px rgba(10, 16, 40, 0.12);
  --sh-brand: 0 8px 24px rgba(0, 63, 252, 0.18);

  /* Dimensional-layering elevation scale — used on hover/active states so
     depth changes read as physical lift rather than a flat opacity fade. */
  --elevation-1: 0 2px 6px rgba(10, 16, 40, 0.08);
  --elevation-2: 0 6px 16px rgba(10, 16, 40, 0.1);
  --elevation-3: 0 16px 32px rgba(10, 16, 40, 0.14);
  --elevation-4: 0 28px 56px rgba(10, 16, 40, 0.18);

  /* Layout */
  --container: 1200px;
  --container-wide: 1440px;
  --container-narrow: 760px;
  --header-h: 72px;
  --header-h-compact: 60px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur: 220ms;
  --dur-slow: 420ms;
}

/* ---------- 02. RESET & BASE --------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

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

/* Accessibility: visible focus everywhere, keyboard-only where supported */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute;
  left: var(--s1);
  top: -100px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: var(--s0) var(--s1);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s1); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 03. TYPOGRAPHY ------------------------------------------------ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 640;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-heading);
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

.display {
  font-size: var(--fs-display);
  font-weight: 680;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  color: var(--text-muted);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 680;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s1);
}
.eyebrow svg { width: 14px; height: 14px; flex: none; }
.eyebrow--muted { color: var(--gray-500); }

p { text-wrap: pretty; }
p + p { margin-top: var(--s1); }

strong, b { font-weight: 640; color: var(--text); }
em { font-style: italic; }

small { font-size: var(--fs-sm); }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--gray-100);
  padding: 0.15em 0.4em;
  border-radius: var(--r-xs);
}

/* The AEO-critical definitional sentence that leads key pages.
   One quotable sentence, visually distinct, first in the reading order. */
.definition {
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  color: var(--text);
  font-weight: 480;
  border-left: 3px solid var(--brand);
  padding: var(--s1) 0 var(--s1) var(--s2);
  margin: 0 0 var(--s2);
  max-width: 68ch;
  background: linear-gradient(90deg, var(--brand-50), transparent 70%);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.definition strong { font-weight: 680; }

/* ---------- 04. LAYOUT --------------------------------------------------- */

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

.section { padding-block: var(--s7); }
.section--tight { padding-block: var(--s5); }
.section--loose { padding-block: var(--s9); }
.section--sunken { background: var(--bg-sunken); }
.section--bordered { border-top: 1px solid var(--border); }

/* Full-bleed dark sections — Tesla-style conviction blocks */
.section--dark {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, 0.72); }
.section--dark .eyebrow { color: var(--brand-300); }
.section--dark p { color: rgba(255, 255, 255, 0.78); }
.section--dark a:not(.btn) { color: var(--brand-300); }

/* Subtle radial glow for dark sections — the only place brand goes big */
.section--dark::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 80%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(0, 63, 252, 0.28), transparent 70%);
  pointer-events: none;
}
.section--dark > * { position: relative; z-index: 1; }

.section-head {
  max-width: 780px;
  margin-bottom: var(--s5);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head p { margin-top: var(--s1); }

.grid { display: grid; gap: var(--s2); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--gap-lg { gap: var(--s3); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }
.split--40-60 { grid-template-columns: 4fr 6fr; }
.split--60-40 { grid-template-columns: 6fr 4fr; }

.stack > * + * { margin-top: var(--s1); }
.stack-lg > * + * { margin-top: var(--s2); }

.breadcrumbs {
  font-size: var(--fs-sm);
  color: var(--text-faint);
  padding-block: var(--s2) 0;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s0);
  align-items: center;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: var(--s0);
  color: var(--gray-300);
}
.breadcrumbs a { color: var(--text-faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current="page"] { color: var(--text-muted); }

/* ---------- 05. BUTTONS & LINKS ------------------------------------------ */

a {
  color: var(--link);
  text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent);
  text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--brand-600); text-decoration-color: currentColor; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s0);
  padding: 14px var(--s2);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 620;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn--primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 10px 28px rgba(0,63,252,.26); }

.btn--secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--sh-xs);
}
.btn--secondary:hover { border-color: var(--brand); color: var(--brand); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--gray-100); color: var(--ink); }

.btn--onDark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.btn--onDark:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.btn--lg { padding: 17px var(--s3); font-size: var(--fs-body); }
.btn--sm { padding: 9px var(--s1); font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  align-items: center;
}
.btn-row--center { justify-content: center; }

/* Inline "learn more" arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 620;
  font-size: var(--fs-sm);
  text-decoration: none;
}
.arrow-link::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- 06. HEADER / MEGA-MENU -------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: height var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
/* Morphing/compressing header on scroll — set by main.js */
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--sh-sm);
}
.header.is-scrolled .header__inner { height: var(--header-h-compact); }

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--s2);
  height: var(--header-h);
  transition: height var(--dur) var(--ease);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s0);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.logo:hover { color: var(--ink); }
.logo__mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  box-shadow: var(--sh-brand);
  flex: none;
  display: block;
  object-fit: contain;
}
.logo__text b { font-weight: 700; }
.logo__text span { color: var(--brand); }

.nav { margin-left: auto; }
.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.nav__item { position: relative; }

.nav__link,
.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px var(--s1);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 560;
  color: var(--gray-700);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav__link:hover,
.nav__trigger:hover { color: var(--ink); background: var(--gray-100); }
.nav__link[aria-current="page"] { color: var(--brand); }

.nav__trigger::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--dur) var(--ease);
  opacity: 0.6;
}
.nav__item.is-open .nav__trigger { color: var(--brand); background: var(--brand-50); }
.nav__item.is-open .nav__trigger::after { transform: rotate(-135deg) translateY(-1px); }

/* Mega-menu panel */
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 560px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--s2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav__item.is-open .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega--wide { min-width: 860px; }
.mega--right { left: auto; right: 0; transform: translateX(0) translateY(-6px); }
.nav__item.is-open .mega--right { transform: translateX(0) translateY(0); }

.mega__grid { display: grid; gap: var(--s2) var(--s3); }
.mega__grid--2 { grid-template-columns: 1fr 1fr; }
.mega__grid--3 { grid-template-columns: repeat(3, 1fr); }

.mega__title {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--s0);
  display: block;
}
.mega__list { list-style: none; }
.mega__link {
  display: block;
  padding: 7px var(--s0);
  margin-left: calc(var(--s0) * -1);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 540;
  color: var(--gray-700);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.mega__link:hover { background: var(--brand-50); color: var(--brand); }
.mega__link small {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 440;
  color: var(--text-faint);
  margin-top: 1px;
}
.mega__link:hover small { color: var(--slate); }

.mega__feature {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-md);
  padding: var(--s2);
}
.mega__feature h4 { font-size: var(--fs-h4); margin-bottom: 6px; }
.mega__feature p { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--s1); }

.header__cta {
  display: flex;
  align-items: center;
  gap: var(--s0);
  flex: none;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex: none;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.8px;
  background: var(--ink);
  position: relative;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 1.8px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--white);
  overflow-y: auto;
  padding: var(--s2) 0 var(--s7);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-out), visibility var(--dur-slow);
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav__group { border-bottom: 1px solid var(--border); }
.mobile-nav__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: var(--s2) 0;
  font-size: var(--fs-lead);
  font-weight: 600;
  text-align: left;
  color: var(--ink);
}
.mobile-nav__toggle::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--brand);
  transition: transform var(--dur) var(--ease);
}
.mobile-nav__toggle[aria-expanded="true"]::after { transform: rotate(45deg); }
.mobile-nav__panel { display: none; padding-bottom: var(--s2); }
.mobile-nav__panel.is-open { display: block; }
.mobile-nav__panel a {
  display: block;
  padding: 10px 0;
  font-size: var(--fs-sm);
  color: var(--gray-700);
  text-decoration: none;
}
.mobile-nav__panel a:hover { color: var(--brand); }
.mobile-nav__panel .mega__title { margin-top: var(--s1); }
.mobile-nav__cta { padding-top: var(--s3); display: grid; gap: var(--s0); }

body.nav-open { overflow: hidden; }

/* ---------- 07. FOOTER --------------------------------------------------- */

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding-block: var(--s7) var(--s3);
  font-size: var(--fs-sm);
}
.footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__top {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--s3);
  padding-bottom: var(--s5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__brand .logo { color: #fff; margin-bottom: var(--s1); }
.footer__brand p { color: rgba(255, 255, 255, 0.6); font-size: var(--fs-sm); max-width: 34ch; }
.footer__col h3 {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--s1);
}
.footer__col ul { list-style: none; display: grid; gap: 9px; }
.footer__bottom {
  padding-top: var(--s2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s2);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}
.footer__legal { display: flex; gap: var(--s2); flex-wrap: wrap; }

.newsletter {
  margin-top: var(--s2);
}
.newsletter form {
  display: flex;
  gap: var(--s0);
  margin-top: var(--s0);
  max-width: 380px;
}
.newsletter input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px var(--s1);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: var(--fs-sm);
}
.newsletter input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.4); }
.newsletter input[type="email"]:focus-visible { outline-color: var(--brand-300); }

/* ---------- 08. HERO ----------------------------------------------------- */

.hero {
  position: relative;
  padding-block: var(--s8) var(--s7);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto 40%;
  height: 90%;
  background: radial-gradient(45% 50% at 60% 30%, rgba(0, 63, 252, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
.hero__copy { max-width: 620px; }
.hero__title { margin-bottom: var(--s2); }
.hero__title em {
  font-style: normal;
  color: var(--brand);
}
.hero .lead { margin-bottom: var(--s3); max-width: 52ch; }
.hero__meta {
  margin-top: var(--s2);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  align-items: center;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta span::before {
  content: "";
  width: 14px; height: 14px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-100);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}

/* Compact page hero for interior pages */
.page-hero {
  padding-block: var(--s5) var(--s5);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -60% 55% auto -10%;
  height: 160%;
  background: radial-gradient(40% 40% at 40% 50%, rgba(0, 63, 252, 0.07), transparent 70%);
  pointer-events: none;
}
.page-hero > * { position: relative; }
.page-hero__inner { max-width: 820px; }
.page-hero h1 { margin-bottom: var(--s1); }
.page-hero .btn-row { margin-top: var(--s3); }

/* ---------- 09. CARDS & GRIDS -------------------------------------------- */

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s2);
  position: relative;
  transform-style: preserve-3d;
  perspective: 800px;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.card--link { text-decoration: none; color: inherit; display: block; }
/* Dimensional-layering hover: a fixed-angle 3D tilt + lift, not a full
   mouse-tracked tilt — cheaper, steadier on trackpads, identical on touch. */
.card--link:hover {
  border-color: var(--brand-300);
  box-shadow: var(--elevation-3), var(--sh-brand);
  transform: translateY(-6px) rotateX(2.5deg) rotateY(-2.5deg) scale(1.012);
  color: inherit;
}
.card--link:active { transform: translateY(-2px) scale(1.005); }
.card--link:hover h3 { color: var(--brand); }
.card--link:hover .icon-badge {
  transform: translateZ(18px) scale(1.06);
  box-shadow: var(--elevation-2), 0 0 0 5px var(--brand-50);
}
.card h3 { font-size: var(--fs-h4); margin-bottom: 6px; transition: color var(--dur) var(--ease); }
.card p { font-size: var(--fs-sm); color: var(--text-muted); }
.card__icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--brand-50);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: var(--s1);
  font-size: 18px;
  flex: none;
}

/* Icon badge — the primary icon container used on module/industry/feature
   cards, personas and stat tiles. Layered gradient + inset highlight reads
   as physically raised without needing a texture asset. */
.icon-badge {
  --badge-size: 46px;
  width: var(--badge-size);
  height: var(--badge-size);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex: none;
  margin-bottom: var(--s1);
  color: #fff;
  background: linear-gradient(155deg, var(--brand) 0%, var(--brand-700) 100%);
  box-shadow:
    var(--elevation-1),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -6px 10px rgba(0, 0, 0, 0.12);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
  will-change: transform;
}
.icon-badge svg { width: 22px; height: 22px; stroke: currentColor; }
.icon-badge--sm { --badge-size: 34px; }
.icon-badge--sm svg { width: 17px; height: 17px; }
.icon-badge--lg { --badge-size: 60px; border-radius: var(--r-lg); }
.icon-badge--lg svg { width: 28px; height: 28px; }
/* Neutral variant for use on light, non-brand surfaces (feature groups etc.) */
.icon-badge--soft {
  background: var(--brand-50);
  color: var(--brand);
  box-shadow: var(--elevation-1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.icon-badge--onDark {
  background: linear-gradient(155deg, rgba(0, 63, 252, 0.9), rgba(0, 41, 168, 0.9));
  box-shadow: var(--elevation-1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
/* Rotating accent hues for variety across a grid of many icon badges —
   applied by index (nth-child) so a wall of identical blue squares doesn't
   read as monotonous when there are fourteen of them in a row. */
.icon-badge--hue1 { background: linear-gradient(155deg, var(--dv-1), #0029a8); }
.icon-badge--hue2 { background: linear-gradient(155deg, var(--dv-4), #4a33c9); }
.icon-badge--hue3 { background: linear-gradient(155deg, var(--dv-2), #007566); }
.icon-badge--hue4 { background: linear-gradient(155deg, var(--dv-3), #c9601a); }
.card__tag {
  display: inline-block;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-50);
  padding: 4px 8px;
  border-radius: var(--r-xs);
  margin-bottom: var(--s0);
}
.card__meta {
  margin-top: var(--s1);
  padding-top: var(--s1);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-faint);
}
.card--dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.card--dark p { color: rgba(255, 255, 255, 0.66); }
.card--dark .card__icon { background: rgba(0, 63, 252, 0.28); color: #fff; }

/* Numbered problem-diagnosis grid — the "Five Failures" device */
.failure-grid { counter-reset: fail; }
.failure {
  position: relative;
  padding: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
  counter-increment: fail;
  overflow: hidden;
}
.failure::before {
  content: "0" counter(fail);
  position: absolute;
  top: var(--s1); right: var(--s2);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--gray-100);
  z-index: 0;
}
.failure > * { position: relative; z-index: 1; }
.failure h3 { font-size: var(--fs-h4); margin-bottom: 6px; padding-right: var(--s5); }
.failure p { font-size: var(--fs-sm); color: var(--text-muted); }
.failure__fix {
  margin-top: var(--s1);
  padding-top: var(--s1);
  border-top: 1px dashed var(--border-strong);
  font-size: var(--fs-xs);
  color: var(--brand);
  font-weight: 600;
}
.section--dark .failure {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.section--dark .failure::before { color: rgba(255, 255, 255, 0.07); }
.section--dark .failure__fix { color: var(--brand-300); border-top-color: rgba(255,255,255,.14); }

/* Feature list with checks */
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--s0);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  align-items: start;
}
.checklist li::before {
  content: "";
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--brand-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003ffc' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.checklist--dark li { color: rgba(255,255,255,.72); }
.checklist--dark li::before { background-color: rgba(0,63,252,.3); }

/* Feature chip cloud — for dense module feature inventories */
.chips { display: flex; flex-wrap: wrap; gap: var(--s0); }
.chip {
  display: inline-block;
  padding: 6px var(--s1);
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  font-size: var(--fs-xs);
  font-weight: 540;
  color: var(--gray-700);
}
.chip--brand { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand-700); }

.feature-group {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s2);
  background: var(--bg-raised);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.feature-group:hover {
  border-color: var(--brand-300);
  box-shadow: var(--elevation-2);
  transform: translateY(-3px);
}
.feature-group h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--s1);
  display: flex;
  align-items: center;
  gap: var(--s0);
}
.feature-group h3::before {
  display: none;
  content: "";
  width: 4px; height: 18px;
  border-radius: 2px;
  background: var(--brand);
  flex: none;
}

/* ---------- 10. TABLES --------------------------------------------------- */
/* Every comparison/feature matrix is a real <table> — accessible and
   parseable by AI answer engines. Never rendered as an image. */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 620px;
}
caption {
  text-align: left;
  padding: var(--s2) var(--s2) 0;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  caption-side: top;
}
thead th {
  text-align: left;
  padding: var(--s1) var(--s2);
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gray-600);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
thead th.is-highlight { background: var(--brand); color: #fff; }
tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}
td, tbody th {
  padding: var(--s1) var(--s2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-muted);
}
tbody tr:last-child td,
tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover td,
tbody tr:hover th { background: var(--gray-50); }
td.is-highlight {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 620;
}
tbody tr:hover td.is-highlight { background: var(--brand-100); }
td strong { color: var(--text); }

.table--compact td, .table--compact th { padding: 10px var(--s1); }
.table--sortable thead th { cursor: pointer; user-select: none; }
.table--sortable thead th[aria-sort]::after {
  content: " ↕";
  opacity: 0.35;
  font-size: 11px;
}
.table--sortable thead th[aria-sort="ascending"]::after { content: " ↑"; opacity: 1; }
.table--sortable thead th[aria-sort="descending"]::after { content: " ↓"; opacity: 1; }

/* Yes/No/Partial cell markers used across comparison matrices */
.mark { font-weight: 620; white-space: nowrap; }
.mark--yes { color: var(--ok); }
.mark--no { color: var(--gray-400); }
.mark--partial { color: var(--warn); }

/* ---------- 11. DATA-VIZ MOCKUPS ---------------------------------------- */
/* Pure CSS/SVG product mockups. These are the hero and section visuals —
   no stock photography anywhere on the site.
   Drop real product screenshots into /assets/images/ later and swap if
   preferred; these are intentionally schematic, not fake screenshots. */

.mockup {
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  position: relative;
}
.mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px var(--s1);
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}
.mockup__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-300); flex: none; }
.mockup__title {
  margin-left: var(--s0);
  font-size: var(--fs-micro);
  font-weight: 640;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.mockup__body { padding: var(--s2); }

/* Stat tiles inside mockups */
.mockup-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s0);
  margin-bottom: var(--s1);
}
.mockup-stat {
  padding: 10px;
  border-radius: var(--r-sm);
  background: var(--gray-50);
  border: 1px solid var(--border);
}
.mockup-stat__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.mockup-stat__value {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 2px;
}
.mockup-stat__delta { font-size: 10px; font-weight: 640; color: var(--ok); }
.mockup-stat__delta--down { color: var(--danger); }
.mockup-stat--brand { background: var(--brand-50); border-color: var(--brand-100); }
.mockup-stat--brand .mockup-stat__value { color: var(--brand); }

/* CSS bar chart */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 132px;
  padding: var(--s1) 0 0;
  border-bottom: 1px solid var(--border);
}
.bars__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; height: 100%; }
.bars__bar {
  border-radius: 3px 3px 0 0;
  background: var(--brand);
  min-height: 3px;
  transition: height var(--dur-slow) var(--ease-out);
}
.bars__bar--muted { background: var(--brand-100); }
.bars__labels {
  display: flex;
  gap: 8px;
  padding-top: 6px;
}
.bars__labels span {
  flex: 1;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.03em;
}

/* Kanban mockup */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s0);
}
.kanban__col {
  background: var(--gray-50);
  border-radius: var(--r-sm);
  padding: var(--s0);
  min-height: 190px;
}
.kanban__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: var(--s0);
}
.kanban__count {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 1px 6px;
  font-size: 9px;
  color: var(--gray-600);
}
.kanban__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-xs);
  padding: 8px;
  margin-bottom: 6px;
  box-shadow: var(--sh-xs);
}
.kanban__card--warn { border-left-color: var(--warn); }
.kanban__card--danger { border-left-color: var(--danger); }
.kanban__card--ok { border-left-color: var(--ok); }
.kanban__name { font-size: 11px; font-weight: 640; color: var(--ink); letter-spacing: -0.01em; }
.kanban__meta { font-size: 9px; color: var(--gray-500); margin-top: 2px; display: flex; gap: 6px; }
.kanban__pill {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--brand-50);
  color: var(--brand);
  margin-top: 5px;
}

/* Funnel mockup */
.funnel { display: grid; gap: 6px; }
.funnel__row { display: grid; grid-template-columns: 96px 1fr 52px; gap: var(--s0); align-items: center; }
.funnel__label { font-size: 10px; font-weight: 640; color: var(--gray-600); text-align: right; }
.funnel__track { height: 26px; background: var(--gray-100); border-radius: var(--r-xs); overflow: hidden; }
.funnel__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-300));
  border-radius: var(--r-xs);
  transition: width var(--dur-slow) var(--ease-out);
}
.funnel__value { font-size: 10px; font-weight: 700; color: var(--ink); }
.funnel__drop { font-size: 9px; color: var(--danger); font-weight: 640; }

/* Architecture layer diagram (product.html + homepage teaser) */
.layers { display: grid; gap: var(--s0); }
.layer {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s1) var(--s2);
  background: var(--bg-raised);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--s2);
  align-items: center;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.layer:hover { border-color: var(--brand-300); box-shadow: var(--sh-sm); }
.layer__no {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand);
}
.layer__name { font-weight: 640; font-size: var(--fs-sm); color: var(--ink); letter-spacing: -0.01em; }
.layer__items { font-size: var(--fs-xs); color: var(--text-faint); margin-top: 2px; }
.layer--top { background: var(--brand); border-color: var(--brand); }
.layer--top .layer__no { color: rgba(255,255,255,.7); }
.layer--top .layer__name { color: #fff; }
.layer--top .layer__items { color: rgba(255,255,255,.78); }
.layer--core { background: var(--navy); border-color: var(--navy); }
.layer--core .layer__no { color: var(--brand-300); }
.layer--core .layer__name { color: #fff; }
.layer--core .layer__items { color: rgba(255,255,255,.7); }
.section--dark .layer {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
}
.section--dark .layer__name { color: #fff; }
.section--dark .layer__items { color: rgba(255,255,255,.6); }
.section--dark .layer__no { color: var(--brand-300); }

/* Flow diagram: A → B → C automation chains */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s0);
}
.flow__node {
  padding: 10px var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-raised);
  font-size: var(--fs-xs);
  font-weight: 620;
  color: var(--ink);
  box-shadow: var(--sh-xs);
}
.flow__node--brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.flow__arrow { color: var(--brand); font-weight: 700; flex: none; }
.section--dark .flow__node { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #fff; }

/* Terminal / code block for MCP examples */
.terminal {
  background: var(--navy);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--navy-700);
  box-shadow: var(--sh-lg);
}
.terminal__bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px var(--s1);
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.terminal__bar .mockup__dot { background: rgba(255,255,255,.22); }
.terminal__bar .mockup__title { color: rgba(255,255,255,.5); }
.terminal pre {
  margin: 0;
  padding: var(--s2);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: rgba(255,255,255,.86);
}
.terminal code { background: none; padding: 0; font-size: inherit; }
.terminal .t-prompt { color: var(--brand-300); }
.terminal .t-user { color: #fff; font-weight: 600; }
.terminal .t-dim { color: rgba(255,255,255,.45); }
.terminal .t-ok { color: #4ade80; }

/* ---------- 12. ACCORDION / FAQ ----------------------------------------- */
/* Paired with FAQPage JSON-LD. Question is an <h2>/<h3> so answer engines
   read a clean question → answer pair. */

.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex;
  width: 100%;
  gap: var(--s2);
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--s2) 0;
  text-align: left;
  font-size: var(--fs-h4);
  font-weight: 620;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: var(--lh-snug);
}
.faq__q:hover { color: var(--brand); }
.faq__icon {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  position: relative;
  margin-top: 2px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 6px auto;
  height: 1.6px;
  background: var(--gray-600);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--brand); border-color: var(--brand); }
.faq__q[aria-expanded="true"] .faq__icon::before,
.faq__q[aria-expanded="true"] .faq__icon::after { background: #fff; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__a {
  display: none;
  padding-bottom: var(--s2);
  max-width: 76ch;
}
.faq__a.is-open { display: block; }
.faq__a p { color: var(--text-muted); }
.faq__a p + p { margin-top: var(--s1); }
.faq h2.faq__heading, .faq h3.faq__heading { margin: 0; }

/* ---------- 13. FORMS --------------------------------------------------- */

.field { display: grid; gap: 6px; margin-bottom: var(--s1); }
.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-700);
}
.field label .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px var(--s1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: var(--fs-sm);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-100);
  outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23545c70' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: var(--s5);
}
.field__hint { font-size: var(--fs-xs); color: var(--text-faint); }
.field__error {
  font-size: var(--fs-xs);
  color: var(--danger);
  font-weight: 600;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus { box-shadow: 0 0 0 3px rgba(217,45,32,.15); }
.field.has-error .field__error { display: block; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); }

.form-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s3);
  box-shadow: var(--sh-md);
}
.form-note {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  margin-top: var(--s1);
}
.form-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-top: var(--s1);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.form-trust span { display: inline-flex; align-items: center; gap: 5px; font-weight: 560; }
.form-trust span::before { content: "✓"; color: var(--ok); font-weight: 700; }

.form-status {
  display: none;
  padding: var(--s1) var(--s2);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 560;
  margin-bottom: var(--s1);
}
.form-status.is-success {
  display: block;
  background: #eaf7ef;
  border: 1px solid #bfe5cd;
  color: #12703c;
}
.form-status.is-error {
  display: block;
  background: #fdecea;
  border: 1px solid #f5c6c2;
  color: #a3160c;
}

.checkbox {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--s0);
  align-items: start;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }

.divider-or {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin: var(--s2) 0;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: 640;
}
.divider-or::before,
.divider-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.sso-row { display: grid; gap: var(--s0); }
.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s0);
  padding: 13px var(--s1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.sso-btn:hover { border-color: var(--brand); background: var(--brand-50); }

/* ---------- 14. CALLOUTS, BADGES, STATS, TESTIMONIALS ------------------- */

.callout {
  border: 1px solid var(--brand-100);
  background: var(--brand-50);
  border-radius: var(--r-lg);
  padding: var(--s2);
}
.callout h3 { font-size: var(--fs-h4); margin-bottom: 6px; }
.callout p { font-size: var(--fs-sm); color: var(--gray-700); }
.callout--neutral { background: var(--gray-50); border-color: var(--border); }
.callout--dark { background: var(--navy); border-color: var(--navy-700); }
.callout--dark h3 { color: #fff; }
.callout--dark p { color: rgba(255,255,255,.72); }

/* Persona callout — used on every module and industry page */
.persona {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s2);
  padding: var(--s2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  background: var(--bg-raised);
}
.persona__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), var(--brand-700));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  flex: none;
}
.persona__role {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand);
}
.persona h3 { font-size: var(--fs-h4); margin: 2px 0 var(--s0); }
.persona dl { display: grid; gap: var(--s0); margin-top: var(--s1); font-size: var(--fs-sm); }
.persona dt {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.persona dd { color: var(--text-muted); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
.stat { text-align: center; }
.stat__value {
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: var(--s0);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.section--dark .stat__value { color: #fff; }
.section--dark .stat__label { color: rgba(255,255,255,.62); }

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s2) var(--s5);
}
/* Placeholder customer wordmarks. Replace each .logo-chip with a real
   customer logo SVG in /assets/images/logos/ once permissions are in hand. */
.logo-chip {
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-400);
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.logo-chip:hover { color: var(--gray-600); }

.quote {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  height: 100%;
}
.quote blockquote {
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 480;
}
.quote blockquote::before { content: "“"; color: var(--brand); }
.quote blockquote::after { content: "”"; color: var(--brand); }
.quote__by { display: flex; align-items: center; gap: var(--s1); margin-top: auto; }
.quote__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  flex: none;
}
.quote__name { font-size: var(--fs-sm); font-weight: 640; color: var(--ink); }
.quote__meta { font-size: var(--fs-xs); color: var(--text-faint); }
.quote__metric {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-50);
  border-radius: var(--r-xs);
  padding: 4px 8px;
  align-self: flex-start;
}

/* Carousel (testimonials) */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--s1);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * {
  flex: 0 0 clamp(280px, 32%, 400px);
  scroll-snap-align: start;
}
.carousel__nav { display: flex; gap: var(--s0); justify-content: flex-end; margin-top: var(--s1); }
.carousel__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--gray-700);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.carousel__btn:hover { border-color: var(--brand); color: var(--brand); }
.carousel__btn:disabled { opacity: 0.35; cursor: default; }

/* CTA band — repeated mid-page and at the foot of every page */
.cta-band {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: var(--s6) var(--s5);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 140%;
  background: radial-gradient(50% 50% at 50% 100%, rgba(0,63,252,.4), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: var(--s1); max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,.7); max-width: 56ch; margin-inline: auto; margin-bottom: var(--s3); }
.cta-band .btn-row { justify-content: center; }
.cta-band__proof {
  margin-top: var(--s2);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.55);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  font-size: var(--fs-xs);
  font-weight: 620;
  color: var(--brand-700);
}
.badge--dark { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.badge--new::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,63,252,.2);
}

/* ---------- 15. PRICING ------------------------------------------------- */

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  margin-bottom: var(--s5);
}
.toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--gray-100);
  border-radius: var(--r-pill);
  gap: 2px;
}
.toggle button {
  padding: 9px var(--s2);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 620;
  color: var(--gray-600);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.toggle button[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--sh-sm);
}
.toggle-save {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ok);
  background: #eaf7ef;
  padding: 5px 10px;
  border-radius: var(--r-pill);
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s1);
  align-items: stretch;
}
.plan {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s2);
  background: var(--bg-raised);
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--sh-md);
  position: relative;
}
.plan__flag {
  position: absolute;
  top: -11px; left: var(--s2);
  background: var(--brand);
  color: #fff;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-xs);
}
.plan__name { font-size: var(--fs-h4); font-weight: 680; }
.plan__for { font-size: var(--fs-xs); color: var(--text-faint); margin-top: 2px; min-height: 34px; }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: var(--s1) 0 2px;
}
.plan__amount {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.plan__unit { font-size: var(--fs-xs); color: var(--text-faint); }
.plan__basis { font-size: var(--fs-xs); color: var(--text-faint); min-height: 32px; }
.plan .btn { margin: var(--s2) 0; }
.plan__features { list-style: none; display: grid; gap: 9px; font-size: var(--fs-xs); }
.plan__features li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; color: var(--text-muted); align-items: start; }
.plan__features li::before {
  content: "";
  width: 14px; height: 14px;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003ffc' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.plan__features .plan__group {
  grid-template-columns: 1fr;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-top: var(--s0);
}
.plan__features .plan__group::before { display: none; }

/* ---------- 16. BLOG & ARTICLE ------------------------------------------ */

.article { max-width: 720px; margin-inline: auto; }
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  margin-bottom: var(--s2);
}
.article__body { font-size: 1.125rem; line-height: var(--lh-loose); color: var(--gray-700); }
.article__body > * + * { margin-top: var(--s2); }
.article__body h2 {
  font-size: 1.75rem;
  margin-top: var(--s5);
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + var(--s2));
}
.article__body h3 {
  font-size: 1.3125rem;
  margin-top: var(--s3);
  color: var(--ink);
}
.article__body ul,
.article__body ol { padding-left: var(--s2); display: grid; gap: var(--s0); }
.article__body li { padding-left: 4px; }
.article__body li::marker { color: var(--brand); font-weight: 700; }
.article__body blockquote {
  border-left: 3px solid var(--brand);
  padding: var(--s0) 0 var(--s0) var(--s2);
  font-size: var(--fs-lead);
  color: var(--ink);
  font-weight: 480;
  line-height: var(--lh-snug);
}
.article__body .table-wrap { margin-block: var(--s3); }
.article__body a { font-weight: 560; }

.filter-row { display: flex; flex-wrap: wrap; gap: var(--s0); margin-bottom: var(--s3); }
.filter-btn {
  padding: 8px var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 620;
  color: var(--gray-600);
  background: var(--white);
  transition: all var(--dur) var(--ease);
}
.filter-btn:hover { border-color: var(--brand-300); color: var(--brand); }
.filter-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  margin: calc(var(--s2) * -1) calc(var(--s2) * -1) var(--s1);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background:
    linear-gradient(135deg, var(--brand-50), var(--gray-50)),
    var(--gray-50);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
/* Schematic thumbnail glyph — replace with real editorial art in
   /assets/images/blog/ (1600×900 WebP) when available. */
.post-card__thumb::after {
  content: "";
  position: absolute;
  inset: 22%;
  border: 2px solid var(--brand-300);
  border-radius: var(--r-sm);
  opacity: 0.5;
  background:
    linear-gradient(to right, transparent 48%, var(--brand-300) 48%, var(--brand-300) 52%, transparent 52%),
    linear-gradient(to bottom, transparent 48%, var(--brand-300) 48%, var(--brand-300) 52%, transparent 52%);
}
.post-card h3 { font-size: var(--fs-h4); line-height: var(--lh-snug); }
.post-card p { margin-top: 6px; font-size: var(--fs-sm); }
.post-card .card__meta { margin-top: auto; }

.link-cluster {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s2);
  background: var(--gray-50);
  margin-top: var(--s5);
}
.link-cluster h2 { font-size: var(--fs-h4); margin-bottom: var(--s1); }
.link-cluster ul { list-style: none; display: grid; gap: var(--s0); }
.link-cluster li { font-size: var(--fs-sm); }
.link-cluster strong { display: block; font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); }

.toc {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s2);
  background: var(--gray-50);
  font-size: var(--fs-sm);
}
.toc h2 { font-size: var(--fs-h4); margin-bottom: var(--s0); }
.toc ol { padding-left: var(--s2); display: grid; gap: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Glossary / definition pages */
.glossary-answer {
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  padding: var(--s3);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-lg);
  color: var(--ink);
}
.term-list { list-style: none; display: grid; gap: var(--s0); }
.term-list a {
  display: flex;
  justify-content: space-between;
  gap: var(--s1);
  padding: var(--s1) var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-raised);
  text-decoration: none;
  color: var(--ink);
  font-weight: 560;
  font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.term-list a:hover { border-color: var(--brand-300); background: var(--brand-50); }
.term-list span { color: var(--text-faint); font-weight: 440; font-size: var(--fs-xs); text-align: right; }

/* ROI calculator */
.calc {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: var(--s3);
  align-items: start;
}
.calc__inputs {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s3);
}
.calc__out {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: var(--s3);
  color: #fff;
  position: sticky;
  top: calc(var(--header-h) + var(--s2));
  overflow: hidden;
}
.calc__out::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 80%;
  background: radial-gradient(50% 50% at 50% 0%, rgba(0,63,252,.4), transparent 70%);
  pointer-events: none;
}
.calc__out > * { position: relative; }
.calc__headline {
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.calc__sub { font-size: var(--fs-xs); color: rgba(255,255,255,.6); margin-top: 6px; }
.calc__rows { display: grid; gap: var(--s0); margin-top: var(--s2); }
.calc__row {
  display: flex;
  justify-content: space-between;
  gap: var(--s1);
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.72);
}
.calc__row b { color: #fff; font-variant-numeric: tabular-nums; }
.calc__range { display: grid; gap: 6px; margin-bottom: var(--s2); }
.calc__range-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-700);
}
.calc__range-val {
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  font-weight: 700;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--gray-200);
  outline-offset: 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid #fff;
  box-shadow: var(--sh-sm);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: var(--sh-sm);
  cursor: grab;
}

/* Timeline (about page / case studies) */
.timeline { list-style: none; display: grid; gap: var(--s3); position: relative; padding-left: var(--s3); }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(var(--s3) * -1);
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--brand-100);
}
.timeline h3 { font-size: var(--fs-h4); }
.timeline time {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand);
}

/* Job listings (careers) */
.job {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  align-items: center;
  justify-content: space-between;
  padding: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-raised);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.job:hover { border-color: var(--brand-300); box-shadow: var(--sh-sm); }
.job h3 { font-size: var(--fs-h4); }
.job__meta { font-size: var(--fs-xs); color: var(--text-faint); margin-top: 3px; }

/* ---------- 17. MOTION & SCROLL REVEAL ---------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 70ms; }
[data-reveal-delay="2"] { transition-delay: 140ms; }
[data-reveal-delay="3"] { transition-delay: 210ms; }
[data-reveal-delay="4"] { transition-delay: 280ms; }
[data-reveal-delay="5"] { transition-delay: 350ms; }

/* Ambient gradient orbs — decorative, aria-hidden depth for dark sections
   and hero backdrops. Cheap (radial-gradient, no images) and give a section
   a sense of light/depth instead of a flat navy fill. */
.orb-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: orb-float 14s ease-in-out infinite;
}
.orb--a {
  width: 420px; height: 420px;
  top: -140px; right: -80px;
  background: radial-gradient(circle, rgba(0, 63, 252, 0.55), transparent 70%);
}
.orb--b {
  width: 320px; height: 320px;
  bottom: -120px; left: 8%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.4), transparent 70%);
  animation-delay: -6s;
  animation-duration: 18s;
}
.orb--c {
  width: 260px; height: 260px;
  top: 30%; left: 45%;
  background: radial-gradient(circle, rgba(0, 184, 169, 0.25), transparent 70%);
  animation-delay: -3s;
  animation-duration: 16s;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 18px) scale(1.08); }
}

/* Glass panel — frosted-glass surface for callouts/stat rails that sit on
   top of a dark or gradient background. */
.glass-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--elevation-2);
}

/* Live-metric pulse — a soft breathing ring behind a stat/number to signal
   "this is a real, moving figure" without being distracting. Used sparingly:
   one or two per section, never on body text. */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--ok);
  animation: pulse-ring 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Shine sweep on primary buttons — a single light pass on hover, not a
   looping animation, so it reads as a response rather than decoration. */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left var(--dur-slow) var(--ease-out);
}
.btn--primary:hover::after { left: 130%; }

/* Floating decorative shape used behind hero mockups / illustrations for a
   touch of dimensionality without a real image asset. */
.float-shape {
  position: absolute;
  border-radius: 32%;
  opacity: 0.5;
  animation: shape-drift 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shape-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .carousel__track { scroll-behavior: auto; }
  .orb, .float-shape, .pulse-dot::after { animation: none; }
  .card--link:hover { transform: translateY(-2px); }
}

/* ---------- 18. DARK MODE ----------------------------------------------- */
/* Optional, driven purely by prefers-color-scheme. The brand stays legible
   in both modes — on dark we lift it to --brand-300 for AA contrast. */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07091a;
    --bg-sunken: #0b0f24;
    --bg-raised: #0f1430;
    --ink: #f2f4f9;
    --text: #f2f4f9;
    --text-muted: #a9b2c9;
    --text-faint: #8b95b0;
    --border: #1e2547;
    --border-strong: #2b3358;
    --link: #7d9bff;
    --brand-50: rgba(0, 63, 252, 0.12);
    --brand-100: rgba(0, 63, 252, 0.26);
    --gray-50: #0b0f24;
    --gray-100: #141a38;
    --gray-200: #1e2547;
    --gray-300: #2b3358;
    --gray-400: #6f7a9b;
    --gray-500: #8b95b0;
    --gray-600: #a9b2c9;
    --gray-700: #c9d0e2;
    --white: #0f1430;
    --navy: #060a1c;
    --sh-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
    --sh-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --sh-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
  }
  .header { background: rgba(7, 9, 26, 0.86); }
  .logo, .logo:hover { color: var(--text); }
  .btn--secondary { background: var(--bg-raised); color: var(--text); }
  .btn--ghost { color: var(--text); }
  .sso-btn { background: var(--bg-raised); color: var(--text); }
  .field input, .field select, .field textarea { background: #0b0f24; color: var(--text); }
  .toggle button[aria-pressed="true"] { background: var(--bg-raised); color: var(--text); }
  .filter-btn { background: var(--bg-raised); color: var(--text-muted); }
  .carousel__btn { background: var(--bg-raised); color: var(--text-muted); }
  .definition { background: linear-gradient(90deg, rgba(0,63,252,.16), transparent 70%); }
  .eyebrow, .card__tag, .layer__no, .persona__role, .timeline time { color: var(--brand-300); }
  .stat__value, .calc__range-val { color: var(--brand-300); }
  .quote blockquote::before, .quote blockquote::after { color: var(--brand-300); }
  .quote__avatar, .quote__metric { color: var(--brand-300); }
  .mark--yes { color: #4ade80; }
  td.is-highlight { color: #a8bcff; }
  .form-status.is-success { background: rgba(15,157,88,.14); border-color: rgba(15,157,88,.4); color: #6ee7a0; }
  .form-status.is-error { background: rgba(217,45,32,.14); border-color: rgba(217,45,32,.4); color: #ff9d94; }
  .toggle-save { background: rgba(15,157,88,.16); color: #6ee7a0; }
  .checklist li::before { background-color: rgba(0,63,252,.3); }
  .post-card__thumb { background: linear-gradient(135deg, rgba(0,63,252,.18), var(--bg-sunken)); }
  .kanban__card, .mockup-stat, .flow__node { background: #141a38; }
  .kanban__col, .funnel__track { background: #0b0f24; }
  .kanban__name, .mockup-stat__value, .flow__node { color: var(--text); }
}

/* ---------- 19. RESPONSIVE ---------------------------------------------- */

@media (max-width: 1180px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .mega--wide { min-width: 720px; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 1024px) {
  :root { --s7: 64px; --s8: 72px; --s9: 88px; }
  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .hero__grid,
  .split,
  .split--40-60,
  .split--60-40,
  .calc { grid-template-columns: 1fr; gap: var(--s4); }
  .split--reverse > *:first-child { order: 0; }
  .grid--4, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc__out { position: static; }
  .hero { padding-block: var(--s6) var(--s6); }
  .stat-strip { gap: var(--s2); }
}

@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .mockup-stats { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: var(--s5) var(--s2); }
  .field-row { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; gap: var(--s3); }
  .form-card, .calc__inputs, .calc__out { padding: var(--s2); }
  table { min-width: 560px; }
  .persona { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --s6: 48px; --s7: 56px; --s8: 56px; --s9: 64px; }
  .container { padding-inline: var(--s1); }
  .grid--2, .grid--3, .grid--4, .grid--5, .plans { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; }
  .newsletter form .btn { width: 100%; }
  .funnel__row { grid-template-columns: 74px 1fr 44px; }
  .definition { padding-left: var(--s1); }
  .logo-row { gap: var(--s2) var(--s3); }
  .carousel__track > * { flex-basis: 84%; }
}

/* ---------- 20. UTILITIES & PRINT --------------------------------------- */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--s1); }
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--s2); }
.mb-3 { margin-bottom: var(--s3); }
.mb-5 { margin-bottom: var(--s5); }
.max-60 { max-width: 60ch; }
.max-68 { max-width: 68ch; }
.nowrap { white-space: nowrap; }
.full-width { width: 100%; }

@media print {
  .header, .footer, .mobile-nav, .cta-band, .nav-toggle, .carousel__nav { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  .section { padding-block: 12pt; }
  .table-wrap { overflow: visible; border: 0; }
  table { min-width: 0; page-break-inside: avoid; }
  .faq__a { display: block !important; }
}

/* --- Social links (footer) --------------------------------------------- */
.social-row { display:flex; align-items:center; gap:14px; margin-top:20px; }
.social-row__label { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.45); }
.social-row a { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:9px; color:rgba(255,255,255,.7); background:rgba(255,255,255,.06); transition:color .15s ease, background .15s ease, transform .15s ease; }
.social-row a:hover { color:#fff; background:var(--brand); transform:translateY(-1px); }

/* --- Responsive YouTube embeds ----------------------------------------- */
.video-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:26px; margin-top:8px; }
.video-embed { position:relative; width:100%; aspect-ratio:16/9; border-radius:14px; overflow:hidden; background:#07091a; box-shadow:0 10px 34px rgba(4,10,40,.28); }
.video-embed iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-card__title { margin:12px 2px 0; font-size:15px; font-weight:600; line-height:1.4; }
.video-single { max-width:760px; margin-inline:auto; }

/* --- Client logo tiles (trust bar) ------------------------------------- */
.logo-row .client-logo { display:inline-flex; align-items:center; justify-content:center; background:#fff; border:1px solid rgba(4,10,40,.08); border-radius:12px; padding:4px 8px; box-shadow:0 2px 12px rgba(4,10,40,.05); transition:transform .15s ease, box-shadow .15s ease; }
.logo-row a.client-logo:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(4,10,40,.12); }
.logo-row .client-logo img { height:60px; width:auto; display:block; object-fit:contain; }
/* --- Customer snapshot cards ------------------------------------------- */
.customer-logo { height:56px; width:auto; display:block; border:1px solid rgba(4,10,40,.08); border-radius:10px; background:#fff; }
