/* ============================================================
   VIGILIC — Design System v3
   Light-dominant. Indigo ink (#0E195E). Teal signal (#04C4B5).
   Geist throughout. Restraint is the aesthetic.
   ============================================================ */

:root {
  /* Brand — from the logo */
  --indigo: #0E195E;
  --indigo-600: #1A2680;
  --indigo-400: #5862A8;
  --indigo-200: #BEC3DC;
  --indigo-50:  #EEF0F7;

  /* Signal — from the logo (sparingly, only on detection moments) */
  --teal: #04C4B5;
  --teal-bright: #2EE0D1;
  --teal-dim: rgba(4, 196, 181, 0.12);
  --teal-wash: rgba(4, 196, 181, 0.06);

  /* Surfaces */
  --paper: #FFFFFF;
  --paper-50: #FAFBFD;
  --paper-100: #F3F5FA;
  --paper-200: #E6EAF2;

  /* Text */
  --text-strong: #0E195E;
  --text-body: #2A3370;
  --text-muted: #5A6389;
  --text-soft: #8A92B2;
  --text-on-ink: #FFFFFF;
  --text-on-ink-muted: #B8BDD8;

  /* Rules */
  --rule: rgba(14, 25, 94, 0.10);
  --rule-soft: rgba(14, 25, 94, 0.06);
  --rule-on-ink: rgba(255, 255, 255, 0.14);

  --warn: #D9433B;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 3vw, 2.25rem);

  --fs-micro: 0.6875rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.375rem, 1.1rem + 1.4vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.3rem + 2.2vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 1.4rem + 4vw, 3.75rem);
  --fs-4xl: clamp(2.75rem, 1.4rem + 6.5vw, 5.5rem);

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text-body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: 'Geist', ui-sans-serif, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1.08;
}
h1 { font-size: var(--fs-4xl); letter-spacing: -0.03em; line-height: 1.0; font-weight: 700; }
h2 { font-size: var(--fs-3xl); letter-spacing: -0.025em; line-height: 1.05; font-weight: 700; }
h3 { font-size: var(--fs-2xl); letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; }
h4 { font-size: var(--fs-lg); letter-spacing: -0.01em; line-height: 1.3; font-weight: 600; }

p { max-width: 68ch; }
.lead {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: -0.005em;
}
strong { font-weight: 600; color: var(--text-strong); }
em { font-style: italic; }

.label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--text-muted);
}
.mono { font-family: 'Geist Mono', ui-monospace, monospace; font-feature-settings: "tnum"; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: clamp(4rem, 7.5vw, 7rem); position: relative; }
.section-rule { border-top: 1px solid var(--rule); }

.surface-paper { background: var(--paper); }
.surface-paper-50 { background: var(--paper-50); }
.surface-paper-100 { background: var(--paper-100); }
.surface-ink { background: var(--indigo); color: var(--text-on-ink); }
.surface-ink h1, .surface-ink h2, .surface-ink h3, .surface-ink h4 { color: var(--text-on-ink); }
.surface-ink .label { color: var(--text-on-ink-muted); }
.surface-ink .lead { color: var(--text-on-ink-muted); }
.surface-ink p { color: var(--text-on-ink-muted); }
.surface-ink strong { color: var(--text-on-ink); }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 0.9rem;
  background: rgba(255, 255, 255, 0);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--rule-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { display: inline-flex; align-items: center; line-height: 0; flex-shrink: 0; }
.logo__svg { height: 108px; width: auto; display: block; }
@media (max-width: 600px) { .logo__svg { height: 48px; } }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.nav__links a { color: var(--text-body); position: relative; transition: color 0.2s; }
.nav__links a:hover { color: var(--indigo); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 1.5px;
  background: var(--teal);
  transition: right 0.3s var(--ease);
}
.nav__links a:hover::after { right: 0; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--paper);
  background: var(--indigo);
  border-radius: 2rem;
  transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.nav__cta:hover {
  background: var(--indigo-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px rgba(14, 25, 94, 0.45);
}

.nav__menu-btn { display: none; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    color: var(--indigo);
  }
  .nav__menu-btn span {
    width: 22px;
    height: 1.75px;
    background: currentColor;
    transition: transform 0.3s;
  }
  .nav--open .nav__menu-btn span:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
  .nav--open .nav__menu-btn span:nth-child(2) { opacity: 0; }
  .nav--open .nav__menu-btn span:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }
  .nav--open .nav__links,
  .nav--open .nav__cta {
    display: flex;
    position: fixed;
    left: 0; right: 0;
    top: 62px;
    flex-direction: column;
    padding: 1.5rem var(--gutter);
    background: var(--paper);
    border-bottom: 1px solid var(--rule-soft);
    gap: 1.25rem;
    z-index: 99;
  }
  .nav--open .nav__cta { top: auto; justify-content: center; margin-top: -1px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: 2.5rem;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, box-shadow 0.25s, border-color 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn__arrow { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

.btn--primary { background: var(--indigo); color: var(--paper); }
.btn--primary:hover { background: var(--indigo-600); box-shadow: 0 10px 28px -10px rgba(14, 25, 94, 0.55); }
.surface-ink .btn--primary { background: var(--paper); color: var(--indigo); }
.surface-ink .btn--primary:hover { background: var(--paper-50); box-shadow: 0 10px 28px -10px rgba(255, 255, 255, 0.35); }

.btn--ghost { background: transparent; color: var(--text-strong); border: 1px solid var(--rule); }
.btn--ghost:hover { background: var(--indigo); color: var(--paper); border-color: var(--indigo); }
.surface-ink .btn--ghost { color: var(--text-on-ink); border-color: var(--rule-on-ink); }
.surface-ink .btn--ghost:hover { background: var(--paper); color: var(--indigo); border-color: var(--paper); }

/* Hero */
.hero {
  padding-top: clamp(7.5rem, 14vh, 10rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 20%, var(--teal-wash) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 95%, rgba(14, 25, 94, 0.04) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.4fr 1fr; gap: 4.5rem; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: 2rem;
  background: var(--paper);
}
.hero__eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-dim);
  animation: blink 2.2s var(--ease) infinite;
}
@keyframes blink {
  0%, 55%, 100% { opacity: 1; }
  30% { opacity: 0.35; }
}
.hero__eyebrow .label { color: var(--text-muted); }

.hero h1 { margin-bottom: 1.75rem; color: var(--text-strong); }
.hero h1 .warn { color: var(--warn); font-style: italic; font-weight: 500; }

.hero__sub {
  font-size: var(--fs-lg);
  line-height: 1.55;
  max-width: 44ch;
  margin-bottom: 2.25rem;
  color: var(--text-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__meta {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  max-width: 560px;
}
.hero__meta .stat-num {
  font-family: 'Geist', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--indigo);
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.hero__meta .stat-num sup { font-size: 0.55em; font-weight: 600; vertical-align: super; top: -0.15em; position: relative; }
.hero__meta .stat-lab { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.35; }

/* Signal viz */
.signal-viz {
  position: relative;
  aspect-ratio: 5 / 6;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  max-width: 460px;
  margin-left: auto;
  box-shadow: 0 40px 80px -40px rgba(14, 25, 94, 0.25), 0 10px 30px -15px rgba(14, 25, 94, 0.15);
}
.signal-viz__header {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 0.9rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 3;
}
.signal-viz__label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.signal-viz__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--teal);
  font-weight: 500;
}
.signal-viz__live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: blink 1.6s infinite; }
.signal-viz__canvas { position: absolute; inset: 3rem 0 2.6rem; overflow: hidden; background: var(--paper-50); }
.signal-viz__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(14, 25, 94, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 25, 94, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
}
.tx {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(14, 25, 94, 0.35), transparent);
  border-radius: 2px;
  animation: tx-flow var(--dur, 3s) linear var(--delay, 0s) infinite;
}
.tx--case {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  box-shadow: 0 0 8px var(--teal);
}
@keyframes tx-flow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(calc(100vw + 100%)); }
}
.signal-viz__footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1.15rem;
  display: flex;
  justify-content: space-between;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.signal-viz__footer .count { color: var(--indigo); font-weight: 500; }
.signal-viz__footer .case-count { color: var(--teal); font-weight: 500; transition: opacity 0.25s; }

/* Section heads */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 820px) {
  .section-head { grid-template-columns: minmax(200px, 240px) 1fr; gap: 3rem; align-items: start; }
}
.section-head__num {
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 500;
}
.surface-ink .section-head__num { color: var(--text-on-ink-muted); }
.section-head h2 .slim { display: block; color: var(--text-muted); font-weight: 400; margin-top: 0.3rem; }
.surface-ink .section-head h2 .slim { color: var(--text-on-ink-muted); }

/* Problem grid */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 720px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .problem-grid { grid-template-columns: repeat(4, 1fr); } }
.problem-cell {
  padding: 2.25rem 1.75rem 2.25rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .problem-cell:not(:nth-child(2n)) { border-right: 1px solid var(--rule); padding-right: 2rem; }
  .problem-cell:nth-child(2n) { padding-left: 2rem; }
}
@media (min-width: 1060px) {
  .problem-cell { border-right: 1px solid var(--rule) !important; border-bottom: 0 !important; padding: 2.75rem 2rem; }
  .problem-cell:last-child { border-right: 0 !important; padding-right: 0; }
  .problem-cell:first-child { padding-left: 0; }
}
.problem-cell__num {
  font-family: 'Geist', sans-serif;
  font-size: clamp(2.5rem, 3.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--indigo);
  margin-bottom: 0.9rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.problem-cell__num sup { font-size: 0.5em; vertical-align: super; top: -0.2em; position: relative; }
.problem-cell__label {
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.problem-cell__desc { font-size: var(--fs-sm); line-height: 1.55; color: var(--text-muted); }

/* Solution */
.solution-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 960px) { .solution-layout { grid-template-columns: 1fr 1.05fr; gap: 5rem; align-items: center; } }
.solution-text p { margin-bottom: 1.25rem; font-size: var(--fs-lg); line-height: 1.55; color: var(--text-muted); }
.engine-diagram { position: relative; aspect-ratio: 1; max-width: 500px; margin-left: auto; }
.engine-diagram svg { width: 100%; height: 100%; }

/* Category overview */
.category-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
}
@media (min-width: 720px) { .category-overview { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .category-overview { grid-template-columns: repeat(4, 1fr); } }
.cat-cell {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
@media (min-width: 720px) {
  .cat-cell:not(:nth-child(2n)) { border-right: 1px solid var(--rule); }
}
@media (min-width: 1040px) {
  .cat-cell { border-right: 0; }
  .cat-cell:not(:nth-child(4n)) { border-right: 1px solid var(--rule); }
}
.cat-cell__num {
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  color: var(--teal);
  font-weight: 500;
}
.cat-cell__name { font-size: var(--fs-sm); font-weight: 600; color: var(--text-strong); letter-spacing: -0.005em; }
.surface-ink .cat-cell__name { color: var(--text-on-ink); }

.nda-callout {
  margin-top: 3rem;
  padding: 2rem 2.25rem;
  background: var(--paper-100);
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 720px) { .nda-callout { grid-template-columns: 1fr auto; gap: 2rem; } }
.nda-callout__text .label { margin-bottom: 0.5rem; display: block; }
.nda-callout__text h4 { font-size: var(--fs-lg); margin-bottom: 0.4rem; }
.nda-callout__text p { color: var(--text-muted); font-size: var(--fs-sm); max-width: 56ch; margin: 0; }

/* Audience cards */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 780px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
.aud-card {
  padding: 2.25rem 2rem;
  background: var(--paper-50);
  border: 1px solid var(--rule);
  border-radius: 6px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.aud-card:hover {
  transform: translateY(-3px);
  border-color: var(--indigo-200);
  box-shadow: 0 20px 50px -30px rgba(14, 25, 94, 0.25);
}
.aud-card__label {
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 1rem;
}
.aud-card h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); margin-bottom: 1rem; font-weight: 600; }
.aud-card p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; margin-bottom: 1.5rem; }
.aud-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: var(--fs-sm); }
.aud-card ul li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule-soft);
  color: var(--text-muted);
  display: flex;
  gap: 0.7rem;
}
.aud-card ul li::before { content: "→"; color: var(--indigo-400); }
.aud-card__link {
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--indigo);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--indigo);
  transition: gap 0.2s;
}
.aud-card__link:hover { gap: 0.85rem; }

/* Differentiators */
.diff-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-block: 2.75rem;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.diff-row:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 860px) {
  .diff-row { grid-template-columns: 80px 1fr 1fr; gap: 3rem; padding-block: 3.5rem; }
}
.diff-row__num {
  font-family: 'Geist Mono', monospace;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.diff-row h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); margin-bottom: 0.75rem; font-weight: 600; }
.diff-row__body p { color: var(--text-muted); font-size: var(--fs-base); line-height: 1.6; margin-bottom: 1rem; }
.diff-row__body .callout {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.3rem 0.75rem;
  background: var(--teal-dim);
  color: var(--indigo);
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 3px;
  font-weight: 500;
}

/* Comparison */
.compare {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-sm); }
.compare th, .compare td {
  padding: 1.1rem 1.5rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule-soft);
}
.compare th {
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.compare td:first-child { font-weight: 600; color: var(--text-strong); }
.compare tr:last-child td { border-bottom: 0; }
.compare .col-vigilic { background: var(--paper-50); }
.compare th.col-vigilic { background: var(--indigo); color: var(--paper); }

/* Partners */
.partners-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.partner-cell {
  padding: 1.75rem 1rem;
  text-align: center;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: background 0.2s;
}
.partner-cell:hover { background: var(--paper-50); }
.partner-cell:last-child { border-right: 0; }
.partner-cell__name { font-size: var(--fs-base); font-weight: 600; color: var(--text-strong); letter-spacing: -0.01em; }
.surface-ink .partner-cell__name { color: var(--text-on-ink); }
.surface-ink .partner-cell:hover { background: rgba(255, 255, 255, 0.04); }
.partner-cell__role {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.surface-ink .partner-cell__role { color: var(--text-on-ink-muted); }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.person {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.person:hover {
  transform: translateY(-2px);
  border-color: var(--indigo-200);
  box-shadow: 0 20px 40px -25px rgba(14, 25, 94, 0.2);
}
.person__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--indigo);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--paper);
  letter-spacing: -0.02em;
}
.person__name { font-size: var(--fs-lg); font-weight: 600; color: var(--text-strong); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.person__role {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.person__bio { font-size: var(--fs-sm); line-height: 1.55; color: var(--text-muted); }

/* CTA block */
.cta-block {
  padding: clamp(3rem, 6vw, 5rem);
  background: var(--indigo);
  color: var(--text-on-ink);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 75% 30%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 30%, black, transparent 70%);
  pointer-events: none;
}
.cta-block__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .cta-block__grid { grid-template-columns: 1.5fr 1fr; align-items: end; gap: 4rem; }
}
.cta-block h2 { margin-bottom: 1.25rem; color: var(--text-on-ink); }
.cta-block h2 .teal { color: var(--teal); font-style: italic; font-weight: 500; }
.cta-block p { color: var(--text-on-ink-muted); font-size: var(--fs-lg); line-height: 1.55; max-width: 42ch; }
.cta-block__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Footer */
.footer {
  padding: 5rem 0 2rem;
  background: var(--paper-100);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  border-top: 1px solid var(--rule);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: 2fr repeat(3, 1fr); gap: 4rem; } }
.footer__brand { max-width: 340px; }
.footer__brand .logo { margin-bottom: 1.25rem; }
.footer__brand p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.55; }
.footer__col h5 {
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.footer__col a { color: var(--text-body); transition: color 0.2s; }
.footer__col a:hover { color: var(--indigo); }
.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

/* Page heads */
.page-head {
  padding-top: clamp(8rem, 14vh, 11rem);
  padding-bottom: clamp(3rem, 5.5vw, 4.5rem);
}
.page-head__eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.page-head h1 { font-size: var(--fs-3xl); max-width: 22ch; margin-bottom: 1.25rem; }
.page-head .lead { max-width: 62ch; }

/* Prose */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.25rem; line-height: 1.65; color: var(--text-body); font-size: var(--fs-base); }
.prose h3 { font-size: 1.5rem; margin: 2.5rem 0 0.9rem; font-weight: 600; }
.prose h4 { margin: 1.75rem 0 0.6rem; font-weight: 600; }
.prose ul { margin: 0 0 1.5rem 0; padding-left: 1.25rem; }
.prose ul li { margin-bottom: 0.5rem; line-height: 1.6; color: var(--text-body); }
.prose a { color: var(--indigo); border-bottom: 1px solid var(--indigo-200); }
.prose a:hover { border-bottom-color: var(--indigo); }
.prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--paper-50);
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-body);
}
.prose blockquote p { margin: 0; }

/* Insights */
.insight-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.insight-item {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  transition: padding 0.3s var(--ease), background 0.3s;
}
@media (min-width: 820px) {
  .insight-item {
    grid-template-columns: 180px 1fr 120px;
    gap: 2.5rem;
    align-items: baseline;
  }
}
.insight-item:hover { padding-inline: 0.5rem; background: var(--paper-50); }
.insight-item__meta {
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 500;
}
.insight-item__title h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-strong);
  letter-spacing: -0.015em;
  transition: color 0.2s;
}
.insight-item:hover .insight-item__title h3 { color: var(--indigo); }
.insight-item__title p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; margin: 0; max-width: 60ch; }
.insight-item__link {
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--indigo);
  font-weight: 500;
}

/* Article */
.article-header {
  padding-top: clamp(7.5rem, 13vh, 10rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}
.article-header__meta {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.article-header__meta .dot { width: 4px; height: 4px; background: var(--text-soft); border-radius: 50%; }
.article-header__meta .tag { color: var(--teal); }
.article-header h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  max-width: 22ch;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.article-header .lead { max-width: 60ch; font-size: var(--fs-lg); }
.article-header__byline {
  margin-top: 2rem;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  font-size: var(--fs-sm);
}
.article-header__byline .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}
.article-header__byline .name { color: var(--text-strong); font-weight: 500; }
.article-header__byline .role { color: var(--text-muted); }

.article-body { padding-block: 4rem; }
.article-body .prose { max-width: 66ch; margin: 0 auto; }
.article-body .prose h2 { font-size: 1.75rem; margin: 3rem 0 1rem; font-weight: 700; }

.article-footer {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  max-width: 66ch;
  margin: 3rem auto 0;
}
.article-footer__bio {
  padding: 1.75rem;
  background: var(--paper-50);
  border-radius: 6px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.55;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.25fr 1fr; gap: 5rem; } }
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-family: 'Geist', sans-serif;
  font-size: var(--fs-base);
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 5px;
  color: var(--text-strong);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px var(--indigo-50);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* Honeypot — invisible */
.field--honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.form__status {
  font-size: var(--fs-sm);
  padding: 0.75rem 1rem;
  border-radius: 5px;
  display: none;
}
.form__status--success { display: block; background: var(--teal-dim); color: var(--indigo); }
.form__status--error { display: block; background: rgba(217, 67, 59, 0.1); color: var(--warn); }

.contact-card {
  padding: 1.75rem 1.75rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  margin-bottom: 1rem;
  background: var(--paper);
}
.contact-card__label {
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.contact-card__value { font-size: 1.125rem; font-weight: 600; color: var(--text-strong); letter-spacing: -0.01em; }
.contact-card__value a { transition: color 0.2s; }
.contact-card__value a:hover { color: var(--teal); }
.contact-card__desc { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 0.5rem; line-height: 1.55; }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .tx { animation: none; opacity: 0.2; }
}

.skip {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--indigo);
  color: var(--paper);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  z-index: 200;
}
.skip:focus { top: 1rem; }

.center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; } .mt-8 { margin-top: 4rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; } .mb-6 { margin-bottom: 3rem; } .mb-8 { margin-bottom: 4rem; }

.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 2rem;
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

/* ============================================================
   V3.1 — DARK/LIGHT ALTERNATION SYSTEM
   Full dark-mode variants for every component.
   ============================================================ */

/* ---------- Logo dual-img system ---------- */
/* Default (nav at top over dark hero): show reversed (white) logo */
.logo__svg--dark { display: none; }
.logo__svg--light { display: block; }
/* When nav is scrolled (white blur bg), show indigo logo */
.nav--scrolled .logo__svg--light { display: none; }
.nav--scrolled .logo__svg--dark { display: block; }
/* In surface-ink footer / surface-ink contexts, always show reversed */
.surface-ink .logo__svg--light { display: block; }
.surface-ink .logo__svg--dark { display: none; }

/* ---------- Nav: dark-at-top, light-when-scrolled ---------- */
.nav:not(.nav--scrolled) .nav__links a {
  color: var(--text-on-ink-muted);
}
.nav:not(.nav--scrolled) .nav__links a:hover {
  color: var(--teal);
}
.nav:not(.nav--scrolled) .nav__links a::after {
  background: var(--teal);
}
.nav:not(.nav--scrolled) .nav__cta {
  background: var(--teal);
  color: var(--indigo);
}
.nav:not(.nav--scrolled) .nav__cta:hover {
  background: var(--teal-bright);
  box-shadow: 0 6px 20px -8px rgba(4, 196, 181, 0.55);
}
.nav:not(.nav--scrolled) .nav__menu-btn {
  color: var(--paper);
}

/* ---------- Hero dark variant ---------- */
.hero.surface-ink {
  background: var(--indigo);
}
.hero.surface-ink::before {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(4, 196, 181, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 95%, rgba(4, 196, 181, 0.06) 0%, transparent 55%);
}
.hero.surface-ink h1 { color: var(--text-on-ink); }
.hero.surface-ink h1 .warn {
  color: #FF7A6E;  /* slightly lighter warn for readability on dark */
}
.hero.surface-ink .hero__sub { color: var(--text-on-ink-muted); }
.hero.surface-ink .hero__eyebrow {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--rule-on-ink);
}
.hero.surface-ink .hero__eyebrow .label { color: var(--text-on-ink-muted); }
.hero.surface-ink .hero__meta { border-top-color: var(--rule-on-ink); }
.hero.surface-ink .hero__meta .stat-num { color: var(--teal); }
.hero.surface-ink .hero__meta .stat-lab { color: var(--text-on-ink-muted); }
.hero.surface-ink .btn--primary {
  background: var(--teal);
  color: var(--indigo);
}
.hero.surface-ink .btn--primary:hover {
  background: var(--teal-bright);
  box-shadow: 0 10px 28px -10px rgba(4, 196, 181, 0.45);
}
.hero.surface-ink .btn--ghost {
  color: var(--text-on-ink);
  border-color: var(--rule-on-ink);
}
.hero.surface-ink .btn--ghost:hover {
  background: var(--paper);
  color: var(--indigo);
  border-color: var(--paper);
}

/* Signal viz on dark */
.hero.surface-ink .signal-viz {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--rule-on-ink);
  box-shadow:
    0 40px 80px -40px rgba(0, 0, 0, 0.6),
    0 0 60px -20px rgba(4, 196, 181, 0.15);
}
.hero.surface-ink .signal-viz__header {
  background: rgba(14, 25, 94, 0.9);
  border-bottom-color: var(--rule-on-ink);
}
.hero.surface-ink .signal-viz__label { color: var(--text-on-ink-muted); }
.hero.surface-ink .signal-viz__canvas {
  background: rgba(0, 0, 0, 0.15);
}
.hero.surface-ink .signal-viz__grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}
.hero.surface-ink .tx {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}
.hero.surface-ink .tx--case {
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  box-shadow: 0 0 12px var(--teal);
}
.hero.surface-ink .signal-viz__footer {
  background: rgba(14, 25, 94, 0.9);
  border-top-color: var(--rule-on-ink);
  color: var(--text-on-ink-muted);
}
.hero.surface-ink .signal-viz__footer .count { color: var(--teal-bright); }
.hero.surface-ink .signal-viz__footer .case-count { color: var(--teal-bright); }

/* ---------- Page head dark variant ---------- */
.page-head.surface-ink {
  background: var(--indigo);
  position: relative;
  overflow: hidden;
}
.page-head.surface-ink::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(4, 196, 181, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.page-head.surface-ink > .container { position: relative; z-index: 1; }
.page-head.surface-ink h1 { color: var(--text-on-ink); }
.page-head.surface-ink .lead { color: var(--text-on-ink-muted); }
.page-head.surface-ink .page-head__eyebrow { color: var(--teal); }

/* ---------- Article header dark variant ---------- */
.article-header.surface-ink {
  background: var(--indigo);
  border-bottom-color: var(--rule-on-ink);
  position: relative;
  overflow: hidden;
}
.article-header.surface-ink::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 25%, rgba(4, 196, 181, 0.10) 0%, transparent 55%);
  pointer-events: none;
}
.article-header.surface-ink > .container { position: relative; z-index: 1; }
.article-header.surface-ink h1 { color: var(--text-on-ink); }
.article-header.surface-ink .lead { color: var(--text-on-ink-muted); }
.article-header.surface-ink .article-header__meta { color: var(--text-on-ink-muted); }
.article-header.surface-ink .article-header__meta .tag { color: var(--teal); }
.article-header.surface-ink .article-header__meta .dot { background: var(--text-on-ink-muted); opacity: 0.5; }
.article-header.surface-ink .article-header__byline .name { color: var(--text-on-ink); }
.article-header.surface-ink .article-header__byline .role { color: var(--text-on-ink-muted); }
.article-header.surface-ink .article-header__byline .avatar {
  background: var(--teal);
  color: var(--indigo);
}

/* ---------- Problem stats on dark ---------- */
.surface-ink .problem-grid { border-top-color: var(--rule-on-ink); }
.surface-ink .problem-cell { border-color: var(--rule-on-ink) !important; }
.surface-ink .problem-cell__num { color: var(--teal); }
.surface-ink .problem-cell__label { color: var(--text-on-ink-muted); }
.surface-ink .problem-cell__desc { color: var(--text-on-ink-muted); }

/* ---------- Solution layout on dark ---------- */
.surface-ink .solution-text p { color: var(--text-on-ink-muted); }
.surface-ink .solution-text p strong { color: var(--text-on-ink); }

/* Engine diagram on dark */
.surface-ink .engine-diagram svg circle[stroke="rgba(14,25,94,0.08)"],
.surface-ink .engine-diagram svg circle[stroke="rgba(14,25,94,0.12)"] {
  stroke: rgba(255, 255, 255, 0.1);
}
.surface-ink .engine-diagram svg text[fill="#5A6389"] { fill: var(--text-on-ink-muted); }
.surface-ink .engine-diagram svg g[fill="rgba(14,25,94,0.25)"] circle { fill: rgba(255, 255, 255, 0.3); }

/* ---------- Category overview on dark ---------- */
.surface-ink .category-overview { border-top-color: var(--rule-on-ink); }
.surface-ink .cat-cell { border-color: var(--rule-on-ink) !important; }
.surface-ink .cat-cell__name { color: var(--text-on-ink); }

/* ---------- NDA callout on dark ---------- */
.surface-ink .nda-callout {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--rule-on-ink);
}
.surface-ink .nda-callout__text .label { color: var(--teal); }
.surface-ink .nda-callout__text h4 { color: var(--text-on-ink); }
.surface-ink .nda-callout__text p { color: var(--text-on-ink-muted); }
.surface-ink .nda-callout .btn--primary {
  background: var(--teal);
  color: var(--indigo);
}
.surface-ink .nda-callout .btn--primary:hover {
  background: var(--teal-bright);
}

/* ---------- Audience cards on dark ---------- */
.surface-ink .aud-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--rule-on-ink);
}
.surface-ink .aud-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(4, 196, 181, 0.4);
  box-shadow: 0 20px 50px -30px rgba(4, 196, 181, 0.3);
}
.surface-ink .aud-card h3 { color: var(--text-on-ink); }
.surface-ink .aud-card p { color: var(--text-on-ink-muted); }
.surface-ink .aud-card ul li {
  color: var(--text-on-ink-muted);
  border-top-color: var(--rule-on-ink);
}
.surface-ink .aud-card ul li::before { color: var(--teal); }
.surface-ink .aud-card__link {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* ---------- Differentiators on dark ---------- */
.surface-ink .diff-row { border-color: var(--rule-on-ink); }
.surface-ink .diff-row:last-child { border-bottom-color: var(--rule-on-ink); }
.surface-ink .diff-row__num { color: var(--text-on-ink-muted); }
.surface-ink .diff-row h3 { color: var(--text-on-ink); }
.surface-ink .diff-row__body p { color: var(--text-on-ink-muted); }
.surface-ink .diff-row__body .callout {
  background: rgba(4, 196, 181, 0.15);
  color: var(--teal);
}

/* ---------- Comparison table on dark ---------- */
.surface-ink .compare {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--rule-on-ink);
}
.surface-ink .compare th,
.surface-ink .compare td {
  border-bottom-color: var(--rule-on-ink);
  color: var(--text-on-ink-muted);
}
.surface-ink .compare th { color: var(--text-on-ink-muted); }
.surface-ink .compare td:first-child { color: var(--text-on-ink); }
.surface-ink .compare .col-vigilic { background: rgba(4, 196, 181, 0.08); }
.surface-ink .compare th.col-vigilic { background: var(--teal); color: var(--indigo); }

/* ---------- Partners strip on dark ---------- */
.surface-ink .partners-strip {
  border-top-color: var(--rule-on-ink);
  border-bottom-color: var(--rule-on-ink);
}
.surface-ink .partner-cell {
  border-right-color: var(--rule-on-ink);
}

/* ---------- Team/person on dark ---------- */
.surface-ink .person {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--rule-on-ink);
}
.surface-ink .person:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(4, 196, 181, 0.4);
  box-shadow: 0 20px 40px -25px rgba(4, 196, 181, 0.25);
}
.surface-ink .person__avatar {
  background: var(--teal);
  color: var(--indigo);
}
.surface-ink .person__name { color: var(--text-on-ink); }
.surface-ink .person__role { color: var(--text-on-ink-muted); }
.surface-ink .person__bio { color: var(--text-on-ink-muted); }

/* ---------- Story timeline on dark ---------- */
/* (Uses inline styles for borders in current HTML; surface-ink overrides needed) */
.surface-ink [style*="border-bottom:1px solid var(--rule)"] {
  border-bottom-color: var(--rule-on-ink) !important;
}

/* ---------- Insights list on dark ---------- */
.surface-ink .insight-list { border-top-color: var(--rule-on-ink); }
.surface-ink .insight-item {
  border-bottom-color: var(--rule-on-ink);
}
.surface-ink .insight-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.surface-ink .insight-item__meta { color: var(--text-on-ink-muted); }
.surface-ink .insight-item__title h3 { color: var(--text-on-ink); }
.surface-ink .insight-item:hover .insight-item__title h3 { color: var(--teal); }
.surface-ink .insight-item__title p { color: var(--text-on-ink-muted); }
.surface-ink .insight-item__link { color: var(--teal); }

/* ---------- Footer dark variant ---------- */
.footer.surface-ink {
  background: var(--indigo);
  border-top: 0;
  color: var(--text-on-ink-muted);
  position: relative;
  overflow: hidden;
}
.footer.surface-ink::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 85% 30%, black, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 85% 30%, black, transparent 65%);
  pointer-events: none;
  opacity: 0.6;
}
.footer.surface-ink > .container { position: relative; z-index: 1; }
.footer.surface-ink .footer__brand p { color: var(--text-on-ink-muted); }
.footer.surface-ink .footer__col h5 { color: var(--text-on-ink-muted); opacity: 0.7; }
.footer.surface-ink .footer__col a { color: var(--text-on-ink-muted); }
.footer.surface-ink .footer__col a:hover { color: var(--teal); }
.footer.surface-ink .footer__bottom {
  border-top-color: var(--rule-on-ink);
  color: var(--text-on-ink-muted);
  opacity: 0.7;
}
.footer.surface-ink .badge {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--rule-on-ink);
  color: var(--text-on-ink-muted);
}

/* ---------- Section head on dark ---------- */
.surface-ink .section-head h2 { color: var(--text-on-ink); }
.surface-ink .section-head h2 .slim { color: var(--text-on-ink-muted); }

/* ---------- Prose on dark ---------- */
.surface-ink .prose p { color: var(--text-on-ink-muted); }
.surface-ink .prose p strong { color: var(--text-on-ink); }
.surface-ink .prose h3, .surface-ink .prose h4 { color: var(--text-on-ink); }
.surface-ink .prose a { color: var(--teal); border-bottom-color: rgba(4, 196, 181, 0.3); }
.surface-ink .prose a:hover { border-bottom-color: var(--teal); }
.surface-ink .prose blockquote {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--teal);
  color: var(--text-on-ink);
}

/* ---------- Badges on dark ---------- */
.surface-ink .badge {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--rule-on-ink);
  color: var(--text-on-ink-muted);
}

/* ---------- Section dividers ---------- */
.section-rule.surface-ink { border-top-color: var(--rule-on-ink); }

/* ---------- The small dark→light transition spacer (optional accent) ---------- */
.transition-accent {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.4;
}
