/* =============================================================
   AISUS — Global stylesheet
   Sections:
     1. Fonts
     2. Tokens (colors, type, space, radius, shadow, motion)
     3. Reset & base
     4. Typography
     5. Layout primitives (container, grid, section)
     6. Buttons & forms
     7. Site header & navigation (incl. mobile drawer)
     8. Hero & product visual
     9. Feature/capability cards & grids
    12. CTA band
    14. Tables & prose
    15. Breadcrumbs, events, contact, 404, misc
    16. Footer
    17. Utilities
    18. Motion & reduced-motion
   ============================================================= */

/* ---------- 1. Fonts ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-var.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-var-roman.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-var.woff2") format("woff2");
}

/* ---------- 2. Tokens ---------- */
:root {
  /* Brand palette */
  --navy-950: #0A1024;
  --navy-900: #0F172E;
  --navy-800: #152040;
  --navy-700: #1E2D56;
  --brand-600: #3B5CB8;
  --brand-500: #4A6FCC;
  --brand-400: #6B8DDC;
  --brand-300: #9DB4E8;
  --brand-200: #C9DAF0;
  --brand-100: #E6EEF9;
  --accent-gold: #D4A84B;
  --ink-900: #0B1020;
  --ink-700: #2C3350;
  --ink-500: #5B6384;
  --ink-400: #8A92B2;
  --ink-300: #BFC5DC;
  --paper-50: #FAFBFE;
  --paper-100: #F3F5FB;
  --paper-200: #E7EBF4;
  --white: #FFFFFF;

  /* Semantic — light mode defaults */
  --bg: var(--paper-50);
  --bg-raised: var(--white);
  --bg-sunken: var(--paper-100);
  --surface: var(--white);
  --surface-muted: var(--paper-100);
  --border: var(--paper-200);
  --border-strong: #D4DBEB;
  --fg: var(--ink-900);
  --fg-muted: var(--ink-500);
  --fg-subtle: var(--ink-400);
  --link: var(--brand-600);
  --link-hover: var(--brand-500);

  /* Always-dark band (navy in both themes) */
  --band-bg: var(--navy-950);
  --band-fg: var(--white);
  --band-fg-muted: var(--ink-300);
  --band-border: rgba(255, 255, 255, 0.08);

  /* Focus ring */
  --focus: var(--brand-500);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-serif: "Fraunces", ui-serif, "Iowan Old Style", "Apple Garamond", Georgia, serif;

  --fs-display-2xl: clamp(2.75rem, 1.6rem + 5.4vw, 5.25rem);
  --fs-display-xl:  clamp(2.25rem, 1.5rem + 3.6vw, 4rem);
  --fs-display-lg:  clamp(1.875rem, 1.3rem + 2.6vw, 3rem);
  --fs-h1:          clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  --fs-h2:          clamp(1.5rem, 1.15rem + 1.4vw, 2rem);
  --fs-h3:          clamp(1.2rem, 1.05rem + 0.6vw, 1.375rem);
  --fs-body-lg:     clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-body:        1rem;
  --fs-body-sm:     0.9375rem;
  --fs-caption:     0.8125rem;

  /* Space scale — 4-based */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

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

  /* Shadow (layered, ink-tinted) */
  --shadow-xs: 0 1px 2px rgba(11, 16, 32, 0.04);
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.04), 0 2px 6px rgba(11, 16, 32, 0.04);
  --shadow-md: 0 1px 2px rgba(11, 16, 32, 0.04), 0 4px 12px rgba(11, 16, 32, 0.06), 0 24px 48px -16px rgba(11, 16, 32, 0.10);
  --shadow-lg: 0 2px 4px rgba(11, 16, 32, 0.05), 0 12px 24px rgba(11, 16, 32, 0.08), 0 36px 64px -20px rgba(11, 16, 32, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 320ms;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --measure: 65ch;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy-950);
    --bg-raised: var(--navy-900);
    --bg-sunken: #070B1A;
    --surface: var(--navy-900);
    --surface-muted: var(--navy-800);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --fg: #EEF1FA;
    --fg-muted: var(--ink-300);
    --fg-subtle: var(--ink-400);
    --link: var(--brand-300);
    --link-hover: var(--brand-200);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4), 0 32px 64px -20px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.5), 0 24px 48px rgba(0, 0, 0, 0.5), 0 48px 96px -24px rgba(0, 0, 0, 0.7);
  }
}

/* ---------- 3. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent); text-underline-offset: 3px; transition: color var(--dur) var(--ease-out); }
a:hover { color: var(--link-hover); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: color-mix(in srgb, var(--brand-400) 40%, transparent); color: var(--fg); }

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--r-md);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease-out);
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus-visible { transform: translateY(0); color: var(--white); }

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 var(--s-4); color: var(--fg); }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
em { font-style: italic; }

.display-2xl { font-size: var(--fs-display-2xl); font-family: var(--font-serif); line-height: 1.04; letter-spacing: -0.025em; }
.display-xl  { font-size: var(--fs-display-xl);  font-family: var(--font-serif); line-height: 1.06; letter-spacing: -0.022em; }
.display-lg  { font-size: var(--fs-display-lg);  font-family: var(--font-serif); line-height: 1.1;  letter-spacing: -0.02em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--s-4);
}
@media (prefers-color-scheme: dark) {
  .eyebrow { color: var(--brand-300); }
}
.eyebrow--on-dark { color: var(--brand-300); }

.lead {
  font-size: var(--fs-body-lg);
  color: var(--fg-muted);
  max-width: 58ch;
  line-height: 1.6;
}

.measure { max-width: var(--measure); }

/* Italic serif accent used inside headings */
.accent { font-style: italic; font-family: var(--font-serif); color: var(--brand-600); }
@media (prefers-color-scheme: dark) { .accent { color: var(--brand-300); } }
.accent--on-dark { color: var(--brand-200); }

/* ---------- 5. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--s-5);
  padding-right: var(--s-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(var(--s-8), 6vw + var(--s-6), var(--s-10)); }
.section--tight { padding-block: var(--s-8); }
.section--sunken { background: var(--bg-sunken); }

.section-head { margin-bottom: var(--s-7); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--6 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--6 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .grid--6 { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
}

.list-unstyled { list-style: none; padding: 0; margin: 0; }

/* ---------- 6. Buttons & forms ---------- */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: var(--white);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 18px;
  min-height: 44px;
  border-radius: var(--r-lg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  font-weight: 600;
  font-size: var(--fs-body-sm);
  letter-spacing: -0.005em;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); box-shadow: none; }

.btn--primary { --btn-bg: var(--brand-600); --btn-fg: var(--white); }
.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-border: var(--border-strong);
}
.btn--secondary:hover { background: var(--surface-muted); color: var(--fg); border-color: var(--brand-400); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-border: transparent;
  box-shadow: none;
}
.btn--ghost:hover { background: var(--surface-muted); color: var(--fg); }

.btn--on-dark.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.22);
}
.btn--on-dark.btn--secondary:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); border-color: rgba(255, 255, 255, 0.4); }

.btn--sm { padding: 8px 14px; min-height: 36px; font-size: var(--fs-caption); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}
.arrow-link::after { content: "→"; transition: transform var(--dur) var(--ease-out); }
.arrow-link:hover::after { transform: translateX(3px); }

/* Forms */
.form { display: grid; gap: var(--s-5); }
.form__grid-2 { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__grid-2 { grid-template-columns: 1fr 1fr; } }

.form__row { display: grid; gap: 6px; }
.form label { font-weight: 600; font-size: var(--fs-body-sm); color: var(--fg); }
.required-mark { color: var(--brand-600); }

.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: var(--fs-body);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.form textarea { min-height: 140px; resize: vertical; font-family: inherit; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--brand-400); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 18%, transparent);
}
.form__hint { color: var(--fg-muted); font-size: var(--fs-caption); margin: 0; }
.form__row--invalid input,
.form__row--invalid select,
.form__row--invalid textarea { border-color: #C7443C; }
.form__error { color: #C7443C; font-size: var(--fs-caption); font-weight: 500; margin: 0; }
.form__consent { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-body-sm); color: var(--fg-muted); }
.form__consent input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin-top: 3px; accent-color: var(--brand-600); }

.form__status { font-size: var(--fs-body-sm); font-weight: 500; min-height: 1.5em; }
.form__status--success { color: #2F8A4F; }
.form__status--error { color: #C7443C; }

/* ---------- 7. Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  color: var(--white);
  background: transparent;
  transition: background-color var(--dur) var(--ease-out), backdrop-filter var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: var(--header-h);
  padding-block: var(--s-3);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
  color: var(--fg);
  box-shadow: var(--shadow-xs);
}
.site-header.is-scrolled .primary-nav__link,
.site-header.is-scrolled .primary-nav__submenu-toggle { color: var(--fg); }
.site-header.is-scrolled .brand__mark--dark { opacity: 0; pointer-events: none; }
.site-header.is-scrolled .brand__mark--light { opacity: 1; }

/* Header variant for pages without a navy hero — start in scrolled style. */
.site-header--solid { background: var(--bg); color: var(--fg); border-bottom-color: var(--border); box-shadow: var(--shadow-xs); }
.site-header--solid .primary-nav__link,
.site-header--solid .primary-nav__submenu-toggle { color: var(--fg); }
.site-header--solid .brand__mark--dark { opacity: 0; pointer-events: none; }
.site-header--solid .brand__mark--light { opacity: 1; }

/* Brand lockup
   Two logo JPGs: --dark is the navy-bg white-wordmark (good on dark headers),
   --light is the white-bg blue-wordmark (good on light/frosted headers).
   The scrolled + solid variants show --light; the navy hero shows --dark.
   In dark mode we always use --dark because the header bg is navy.
*/
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: inherit; position: relative; min-width: 140px; }
.brand__mark { height: 34px; width: auto; display: block; transition: opacity var(--dur) var(--ease-out); }
.brand__mark--light { opacity: 0; position: absolute; left: 0; top: 0; pointer-events: none; }
.brand__mark--dark { opacity: 1; }
@media (prefers-color-scheme: dark) {
  /* Keep navy-background wordmark in both states under dark mode */
  .site-header.is-scrolled .brand__mark--dark,
  .site-header--solid .brand__mark--dark { opacity: 1; }
  .site-header.is-scrolled .brand__mark--light,
  .site-header--solid .brand__mark--light { opacity: 0; }
}

/* Primary nav */
.primary-nav { margin-left: auto; }
.primary-nav__list { display: flex; align-items: center; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.primary-nav__link,
.primary-nav__submenu-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-body-sm);
  border-radius: var(--r-md);
  position: relative;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1.5px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.primary-nav__link:hover::after,
.primary-nav__link[aria-current="page"]::after { opacity: 0.75; transform: scaleX(1); }
.primary-nav__chev { width: 10px; height: 10px; transition: transform var(--dur) var(--ease-out); }
[data-open="true"] .primary-nav__chev { transform: rotate(180deg); }

.primary-nav__item--has-menu { position: relative; }
.primary-nav__submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  padding: 6px;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  list-style: none; margin: 0;
  display: none;
  z-index: 10;
}
[data-open="true"] > .primary-nav__submenu { display: block; }
.primary-nav__submenu .primary-nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--fg);
}
.primary-nav__submenu .primary-nav__link:hover { background: var(--surface-muted); }
.primary-nav__submenu .primary-nav__link::after { display: none; }

.primary-nav__cta { margin-left: var(--s-2); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  margin-left: auto;
  border-radius: var(--r-md);
  color: inherit;
}
.nav-toggle:hover { background: rgba(127,127,160,0.12); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: "";
  display: block;
  width: 20px; height: 1.75px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle__bars::after  { position: absolute; top:  6px; left: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 88vw);
    background: var(--bg);
    color: var(--fg);
    padding: calc(var(--header-h) + var(--s-4)) var(--s-5) var(--s-6);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
    overflow-y: auto;
    z-index: 45;
    border-left: 1px solid var(--border);
  }
  .primary-nav[data-open="true"] { transform: translateX(0); }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__link,
  .primary-nav__submenu-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 10px;
    border-radius: var(--r-md);
    color: var(--fg);
    font-size: var(--fs-body-lg);
  }
  .primary-nav__link:hover,
  .primary-nav__submenu-toggle:hover { background: var(--surface-muted); }
  .primary-nav__link::after { display: none; }
  .primary-nav__submenu {
    position: static;
    display: none;
    border: 0; background: transparent;
    box-shadow: none;
    padding: 0 0 var(--s-3) var(--s-4);
  }
  [data-open="true"] > .primary-nav__submenu { display: block; }
  .primary-nav__cta { margin-top: var(--s-3); }
  .primary-nav__cta .btn { width: 100%; }
}

.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 16, 36, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease-out);
  z-index: 44;
}
.nav-backdrop.is-active { opacity: 1; pointer-events: auto; }

body.nav-locked { overflow: hidden; }

/* ---------- 8. Hero & product visual ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--brand-400) 30%, transparent), transparent 60%),
              linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: var(--white);
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + var(--s-8));
  padding-bottom: var(--s-9);
}
.hero__ellipse {
  position: absolute;
  left: -10%; bottom: -40%;
  width: 70%; aspect-ratio: 4 / 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-200) 40%, transparent), transparent 70%);
  pointer-events: none;
  opacity: 0.55;
}
.hero__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  mask-image: radial-gradient(1000px 500px at 25% 20%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(1000px 500px at 25% 20%, black, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative; z-index: 1;
  display: grid;
  gap: var(--s-8);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--s-7); }
}

.hero h1 { color: var(--white); font-size: var(--fs-display-2xl); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: var(--s-5); }
.hero .lead { color: var(--ink-300); font-size: var(--fs-body-lg); max-width: 55ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero--compact { padding-top: calc(var(--header-h) + var(--s-7)); padding-bottom: var(--s-8); }

/* Dashboard mockup */
.mockup {
  position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--navy-700) 60%, var(--navy-900)), var(--navy-900));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-2xl);
  padding: var(--s-5);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
  transform: translateZ(0);
}
.mockup__window-bar { display: flex; align-items: center; gap: 6px; margin-bottom: var(--s-4); }
.mockup__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.mockup__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.mockup__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  color: var(--ink-300);
  font-size: var(--fs-caption);
}
.mockup__card--wide { grid-column: 1 / -1; }
.mockup__label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-400); font-weight: 600; margin-bottom: 6px; }
.mockup__value { font-family: var(--font-serif); font-size: 28px; font-weight: 400; color: var(--white); letter-spacing: -0.02em; line-height: 1; margin-bottom: 2px; }
.mockup__sub { color: var(--brand-300); font-weight: 500; font-size: 11px; }
.mockup__bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin-top: var(--s-3); }
.mockup__bars span { flex: 1; background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); border-radius: 3px; opacity: 0.9; }
.mockup__row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.06); font-size: 12px; color: var(--ink-300); }
.mockup__row:first-child { border-top: 0; }
.mockup__pill { display: inline-block; padding: 2px 8px; border-radius: var(--r-pill); font-size: 10px; font-weight: 600; }
.mockup__pill--ok { background: rgba(85, 200, 140, 0.12); color: #7EDCA6; }
.mockup__pill--pending { background: rgba(212, 168, 75, 0.14); color: var(--accent-gold); }

.parallax { transition: transform 60ms linear; will-change: transform; }

/* ---------- 9. Feature cards & capability grid ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  display: flex; flex-direction: column; gap: var(--s-3);
  position: relative;
  overflow: hidden;
}
.card__icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: var(--brand-100);
  color: var(--brand-600);
  margin-bottom: var(--s-2);
}
@media (prefers-color-scheme: dark) {
  .card__icon { background: color-mix(in srgb, var(--brand-600) 20%, transparent); color: var(--brand-300); }
}
.card__icon svg { width: 22px; height: 22px; }
.card__title { margin: 0; font-family: var(--font-serif); font-size: var(--fs-h3); font-weight: 400; letter-spacing: -0.015em; }
.card__body { color: var(--fg-muted); margin: 0; font-size: var(--fs-body-sm); line-height: 1.6; }

.card--interactive:hover,
.card-link:hover .card {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand-500) 40%, var(--border));
}
.card-link { color: inherit; text-decoration: none; display: block; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible .card { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Product card */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s-7);
  display: flex; flex-direction: column; gap: var(--s-4);
  position: relative;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand-500) 40%, var(--border));
}
.product-card__badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--brand-100);
  color: var(--brand-600);
  border-radius: var(--r-pill);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.02em;
}
@media (prefers-color-scheme: dark) {
  .product-card__badge { background: color-mix(in srgb, var(--brand-600) 22%, transparent); color: var(--brand-200); }
}
.product-card h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 1.875rem); margin-bottom: 0; }
.product-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.product-card__list li {
  display: flex; align-items: flex-start; gap: var(--s-3);
  color: var(--fg-muted);
  font-size: var(--fs-body-sm);
}
.product-card__list li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px; margin-top: 9px;
  border-radius: 50%; background: var(--brand-500);
}
.product-card__cta { margin-top: var(--s-3); }

/* Step list */
.steps { display: grid; gap: var(--s-6); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: var(--s-6); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-serif); font-style: italic;
  font-size: 28px; color: var(--brand-500);
  letter-spacing: -0.02em;
}
.step h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.step p { color: var(--fg-muted); font-size: var(--fs-body-sm); }
.step__svg { width: 72px; height: 72px; margin-bottom: var(--s-3); color: var(--brand-500); }

/* ---------- 12. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--white);
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 90%; aspect-ratio: 5 / 1;
  transform: translate(-50%, -40%);
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-200) 30%, transparent), transparent 70%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  padding-block: var(--s-8);
  display: grid; gap: var(--s-5);
  align-items: center;
  text-align: center;
}
.cta-band__inner h2 { color: var(--white); font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); margin-bottom: var(--s-3); }
.cta-band__inner p { color: var(--ink-300); max-width: 60ch; margin-inline: auto; }
.cta-band__cta { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; margin-top: var(--s-3); }

/* ---------- 14. Tables & prose ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); font-size: var(--fs-h2); margin-bottom: var(--s-3); }
.prose h3 { margin-top: var(--s-6); margin-bottom: var(--s-2); }
.prose ul { padding-left: 1.15em; margin: 0; }
.prose li + li { margin-top: 6px; }
.prose a { font-weight: 500; }

.feature-list { list-style: none; padding: 0; display: grid; gap: var(--s-3); margin: 0; }
.feature-list li {
  display: grid; gap: 2px;
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.feature-list li strong { color: var(--fg); font-family: var(--font-serif); font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.01em; }
.feature-list li .fl-body { color: var(--fg-muted); font-size: var(--fs-body-sm); }

.feature-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: var(--s-5) 0;
}
.feature-table caption { text-align: left; padding: var(--s-3) var(--s-4); color: var(--fg-muted); font-size: var(--fs-body-sm); font-weight: 600; caption-side: top; }
.feature-table th, .feature-table td {
  text-align: left; padding: 12px 14px;
  font-size: var(--fs-body-sm);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.feature-table th { font-weight: 600; background: var(--surface-muted); color: var(--fg); }
.feature-table tr:last-child td { border-bottom: 0; }
.feature-table td:first-child, .feature-table th:first-child { font-weight: 600; }
.feature-table .check { color: #2F8A4F; font-weight: 700; }
.feature-table .dash { color: var(--fg-subtle); }

/* ---------- 15. Breadcrumbs / events / contact / 404 ---------- */
.breadcrumbs { padding: var(--s-4) 0; border-bottom: 1px solid var(--border); background: var(--bg); }
.breadcrumbs__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-caption); color: var(--fg-muted); }
.breadcrumbs__list li + li::before { content: "/"; color: var(--fg-subtle); margin-right: 6px; }
.breadcrumbs__list a { color: var(--fg-muted); text-decoration: none; }
.breadcrumbs__list a:hover { color: var(--fg); }
.breadcrumbs__list [aria-current="page"] { color: var(--fg); font-weight: 600; }

/* Events */
.events-empty {
  padding: var(--s-7) var(--s-6);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-xl);
  text-align: center;
  color: var(--fg-muted);
  font-size: var(--fs-body-lg);
}
.events-empty p { margin: 0; max-width: 60ch; margin-inline: auto; }

/* Contact */
.contact-layout {
  display: grid; gap: var(--s-7);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.4fr 1fr; gap: var(--s-8); } }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  display: grid; gap: var(--s-5);
  align-self: start;
}
.contact-card h2 { font-size: var(--fs-h3); margin-bottom: 0; }
.contact-item { display: grid; gap: 4px; }
.contact-item__label { font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.contact-item__value { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 400; letter-spacing: -0.01em; }
.contact-item a { text-decoration: none; color: var(--fg); }
.contact-item a:hover { color: var(--link); }

/* 404 */
.error-page {
  text-align: center;
  padding-block: var(--s-10);
  min-height: 60vh;
}
.error-page__code {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(5rem, 3rem + 8vw, 9rem);
  line-height: 1; letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--brand-500) 55%, transparent);
  margin: 0 0 var(--s-3);
}
.error-page h1 { font-size: var(--fs-display-lg); }
.error-page__lead { color: var(--fg-muted); max-width: 55ch; margin-inline: auto; font-size: var(--fs-body-lg); }
.error-page__links {
  display: grid; gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 640px; margin: var(--s-6) auto 0;
  text-align: left;
}
.error-page__links a {
  display: block;
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--fg);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  font-size: var(--fs-body-sm);
}
.error-page__links a:hover { border-color: var(--brand-500); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--fg); }
.error-page__links strong { font-family: var(--font-serif); font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.01em; display: block; margin-bottom: 2px; }

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--ink-300);
  padding-block: var(--s-8) var(--s-5);
  margin-top: 0;
  border-top: 1px solid var(--band-border);
}
.site-footer a { color: var(--ink-300); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-7); } }
.site-footer h2 { color: var(--white); font-family: var(--font-sans); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 var(--s-4); }
.footer-nav__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: var(--fs-body-sm); }
.site-footer__brand { display: grid; gap: var(--s-3); max-width: 320px; }
.site-footer__brand .brand__mark { height: 52px; }
.site-footer__blurb { color: var(--ink-400); font-size: var(--fs-body-sm); line-height: 1.6; }
.site-footer__meta {
  border-top: 1px solid var(--band-border);
  padding-top: var(--s-5);
  margin-top: var(--s-7);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3);
  color: var(--ink-400);
  font-size: var(--fs-caption);
}
.site-footer__meta ul { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--s-5); flex-wrap: wrap; }
.site-footer__meta a { color: var(--ink-400); }
.site-footer__meta a:hover { color: var(--white); }

/* ---------- 17. Utilities ---------- */
.mt-1 { margin-top: var(--s-3); }
.mt-2 { margin-top: var(--s-5); }
.mt-3 { margin-top: var(--s-6); }
.mt-4 { margin-top: var(--s-7); }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--fg-muted); }
.mockup__unit { font-size: 15px; opacity: 0.65; font-family: var(--font-serif); }
.mockup__label--spaced { margin-bottom: 8px; }
.breadcrumbs--hero { background: transparent; border: 0; padding: 0; margin-bottom: var(--s-5); color: var(--ink-300); }
.breadcrumbs--hero a { color: var(--ink-300); }
.breadcrumbs--hero a:hover { color: var(--white); }
.breadcrumbs--hero [aria-current="page"] { color: var(--white); }
.hero__body { max-width: 760px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- 18. Motion & reduced motion ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

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