/* ════════════════════════════════════════════════════════════════
   aiGUARD Systems — Master Stylesheet
   Used by every page on aiguard.systems
   Single file, no external dependencies, system fonts only
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Master brand palette */
  --navy-deep: #061727;
  --navy: #0A2540;
  --navy-mid: #0E2E54;
  --teal: #00C2C7;
  --teal-soft: #4DD8DC;
  --teal-deep: #04CFB4;        /* Synapse-ID accent */
  --teal-dim: rgba(0, 194, 199, 0.18);

  --ink: #E8EEF2;
  --ink-mid: #B8C5D1;
  --ink-dim: #6B7E91;
  --ink-faint: #3A4A5C;

  --bg: #050D17;
  --bg-card: #0A1929;
  --bg-card-hover: #0E2236;
  --bg-band: #061523;

  --rule: rgba(0, 194, 199, 0.15);
  --rule-strong: rgba(0, 194, 199, 0.4);

  --serif: Georgia, "Times New Roman", "Iowan Old Style", "Apple Garamond", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;

  --content-max: 1180px;
  --content-narrow: 880px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--teal); color: var(--navy-deep); }

a { color: var(--teal-soft); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--teal); }

main { flex: 1; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.container-narrow { max-width: var(--content-narrow); margin: 0 auto; padding: 0 32px; }

/* ─────────────────────────────────────────────────────────────
   NAV
   ───────────────────────────────────────────────────────────── */
nav.site-nav {
  position: sticky;
  top: 0;
  padding: 16px 0;
  background: rgba(5, 13, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
}
nav.site-nav .nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav.site-nav .brand {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.2px;
  color: var(--ink);
}
nav.site-nav .brand .ai { font-weight: 700; color: var(--teal); font-style: italic; }
nav.site-nav .brand .sys { color: var(--ink-dim); font-weight: 300; margin-left: 6px; }

nav.site-nav .links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
nav.site-nav .links a {
  color: var(--ink-dim);
  position: relative;
  padding: 4px 0;
}
nav.site-nav .links a:hover { color: var(--teal); }
nav.site-nav .links a.current {
  color: var(--teal);
}
nav.site-nav .links a.current::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--teal);
}
@media (max-width: 760px) {
  nav.site-nav .links { gap: 14px; font-size: 10px; letter-spacing: 1.5px; }
  nav.site-nav .brand { font-size: 16px; }
}
@media (max-width: 540px) {
  nav.site-nav .brand .sys { display: none; }
  nav.site-nav .links a:nth-child(n+3) { display: none; }
  nav.site-nav .links { gap: 12px; }
}

/* ─────────────────────────────────────────────────────────────
   HERO (used by all pages, sized differently)
   ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 120px 0 100px;
  background:
    radial-gradient(ellipse at 85% 50%, rgba(0, 194, 199, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 30%, rgba(0, 194, 199, 0.04) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-large { min-height: 88vh; display: flex; align-items: center; }

/* ─────────────────────────────────────────────────────────────
   EYEBROW
   ───────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 28px;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  margin-right: 14px;
  vertical-align: middle;
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────
   HEADINGS
   ───────────────────────────────────────────────────────────── */
h1 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -1.4px;
  color: var(--ink);
  margin-bottom: 28px;
}
h1.h1-display {
  font-size: clamp(44px, 7vw, 76px);
}
h1.h1-large {
  font-size: clamp(36px, 5.5vw, 60px);
}
h1 .em { color: var(--teal-soft); font-style: italic; }

h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 820px;
}
h2 .em { color: var(--teal-soft); font-style: italic; }

h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 16px;
}

h4 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink);
  margin-bottom: 12px;
}

/* ─────────────────────────────────────────────────────────────
   COPY
   ───────────────────────────────────────────────────────────── */
.lead {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-mid);
  max-width: 720px;
  margin-bottom: 24px;
}
p, .body-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-mid);
  margin-bottom: 20px;
}
p strong, .body-text strong { color: var(--ink); font-weight: 600; }

/* ─────────────────────────────────────────────────────────────
   RULE
   ───────────────────────────────────────────────────────────── */
.divider {
  width: 80px; height: 2px;
  background: var(--teal);
  margin: 36px 0;
}
.divider-mini {
  width: 40px; height: 1px;
  background: var(--teal);
  margin: 24px 0;
}

/* ─────────────────────────────────────────────────────────────
   META STRIP (used in hero and elsewhere)
   ───────────────────────────────────────────────────────────── */
.meta-strip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mid);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.meta-strip strong { color: var(--teal); font-weight: 700; }
.meta-strip .pipe { color: var(--teal); opacity: 0.4; }

/* ─────────────────────────────────────────────────────────────
   SECTION FRAMING
   ───────────────────────────────────────────────────────────── */
section {
  padding: 100px 0;
  position: relative;
}
section.band { background: var(--bg-band); }
section + section.no-border { border-top: none; }
section:not(.band) + section:not(.band) { border-top: 1px solid var(--rule); }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--teal);
}

/* ─────────────────────────────────────────────────────────────
   CARDS
   ───────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 36px 40px;
  transition: all 0.25s ease;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--rule-strong);
  transform: translateY(-2px);
}
a.card { display: block; color: inherit; }

/* Product cards */
.product-card {
  position: relative;
}
.product-card .layer-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.product-card .product-name {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}
.product-card .product-name .ai { font-weight: 700; color: var(--teal); font-style: italic; }
.product-card .product-name .syn-low { color: var(--teal-deep); font-weight: 500; }
.product-card .product-name .syn-up { color: var(--ink); font-weight: 500; }
.product-card .product-name .tm {
  font-size: 14px; font-weight: 500; color: var(--ink-dim);
  vertical-align: super; margin-left: 2px;
}
.product-card .product-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--teal-soft);
  margin-bottom: 16px;
}
.product-card .product-desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-mid);
  margin-bottom: 20px;
}
.product-card .product-desc strong { color: var(--ink); font-weight: 600; }
.product-card .product-meta {
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.product-card .product-meta strong { color: var(--teal); font-weight: 700; }
.product-card .product-meta .pipe { color: var(--teal); opacity: 0.4; }

.product-card.identity {
  background: linear-gradient(135deg, rgba(4, 207, 180, 0.05) 0%, var(--bg-card) 60%);
  border-color: rgba(4, 207, 180, 0.25);
}
.product-card.identity:hover { border-color: rgba(4, 207, 180, 0.45); }
.product-card.identity .layer-tag { color: var(--teal-deep); }

.product-card.governance {
  border-color: rgba(0, 194, 199, 0.45);
  border-left: 4px solid var(--teal);
  padding-left: 36px;
}

.product-card .product-link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}
.product-card .product-link::after { content: " →"; }

/* ─────────────────────────────────────────────────────────────
   GRIDS
   ───────────────────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   COUNTER STRIP
   ───────────────────────────────────────────────────────────── */
.counter-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 56px 0;
}
@media (max-width: 640px) {
  .counter-strip { grid-template-columns: 1fr 1fr; }
}
.counter-cell {
  padding: 32px 24px;
  border-left: 1px solid var(--rule);
}
.counter-cell:first-child { border-left: none; }
@media (max-width: 640px) {
  .counter-cell:nth-child(3) { border-left: none; }
}
.counter-num {
  font-family: var(--serif);
  font-size: 56px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 400;
}
.counter-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ─────────────────────────────────────────────────────────────
   REGULATORY CHIPS
   ───────────────────────────────────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 8px 16px;
  border: 1px solid var(--rule);
  background: var(--bg-card);
}
.chip strong { color: var(--teal); font-weight: 700; }

/* ─────────────────────────────────────────────────────────────
   CTA / CONTACT
   ───────────────────────────────────────────────────────────── */
.contact-band {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 194, 199, 0.08) 0%, transparent 60%),
    var(--bg);
  padding: 120px 0;
  text-align: center;
}
.contact-band .section-label,
.contact-band h2 { margin-left: auto; margin-right: auto; }
.contact-band .section-label { justify-content: center; }
.contact-band .lead { margin-left: auto; margin-right: auto; text-align: center; }

.btn-primary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  padding: 18px 36px;
  border: 1px solid var(--teal);
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 20px;
}
.btn-primary:hover {
  background: var(--teal);
  color: var(--navy-deep);
}

/* ─────────────────────────────────────────────────────────────
   PATENT TABLE
   ───────────────────────────────────────────────────────────── */
.patent-table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
}
.patent-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--rule-strong);
  font-weight: 700;
}
.patent-table td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-mid);
  vertical-align: top;
}
.patent-table td:first-child {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
}
.patent-table td .product-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--bg-card);
  padding: 4px 10px;
  border: 1px solid var(--rule);
  margin-right: 6px;
}
.patent-table .status-pending {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal-soft);
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
footer.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
  margin-top: auto;
}
footer.site-footer .footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) {
  footer.site-footer .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  footer.site-footer .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
footer .col-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  font-weight: 700;
}
footer .col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
footer .col-links a { color: var(--ink-mid); }
footer .col-links a:hover { color: var(--teal); }
footer .col-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--ink-dim);
  line-height: 1.9;
}
footer .col-text strong { color: var(--ink-mid); font-weight: 700; }
footer .footer-base {
  max-width: var(--content-max);
  margin: 48px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--ink-faint);
}

/* ─────────────────────────────────────────────────────────────
   FOOTER TM NOTICE — global trademark notice on every page
   ───────────────────────────────────────────────────────────── */
footer .footer-tm-notice {
  max-width: var(--content-max);
  margin: 40px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-dim);
  letter-spacing: 0.3px;
}
footer .footer-tm-notice strong {
  color: var(--ink-mid);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 10px;
}

/* ─────────────────────────────────────────────────────────────
   DRAFT BANNER — for unpublished/draft pages
   ───────────────────────────────────────────────────────────── */
.draft-banner {
  background: rgba(196, 162, 74, 0.12);
  border-bottom: 1px solid rgba(196, 162, 74, 0.4);
  padding: 14px 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C4A24A;
  text-align: center;
  position: sticky;
  top: 60px;
  z-index: 90;
}
.draft-banner strong { font-weight: 700; color: #E8C46A; }

/* ─────────────────────────────────────────────────────────────
   WHITE-PAPER STYLES — for Gap Analysis page
   ───────────────────────────────────────────────────────────── */
.whitepaper {
  font-family: var(--serif);
}
.whitepaper .container-narrow { max-width: 760px; }

.whitepaper h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-top: 64px;
  margin-bottom: 24px;
}
.whitepaper h3 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--ink);
}
.whitepaper h4 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 700;
}
.whitepaper p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-mid);
  margin-bottom: 20px;
}
.whitepaper p strong { color: var(--ink); font-weight: 600; }
.whitepaper p em { color: var(--ink); font-style: italic; }

.whitepaper .paper-meta {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  margin-bottom: 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.whitepaper .paper-meta strong {
  display: block;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 4px;
}
.whitepaper .paper-meta span { color: var(--ink-mid); }

.whitepaper ol, .whitepaper ul {
  margin: 16px 0 24px 24px;
  font-family: var(--serif);
}
.whitepaper li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-mid);
  margin-bottom: 10px;
}
.whitepaper blockquote {
  border-left: 3px solid var(--teal);
  padding: 8px 0 8px 24px;
  margin: 28px 0;
  font-style: italic;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.55;
}

.whitepaper .ref-list {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.whitepaper .ref-list h4 { margin-top: 0; }
.whitepaper .ref-list ol {
  font-family: var(--mono);
  margin-left: 28px;
}
.whitepaper .ref-list li {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-dim);
  margin-bottom: 8px;
}
.whitepaper .ref-list li strong { color: var(--ink-mid); font-weight: 700; }

/* Tier comparison table for licensing */
.tier-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
}
.tier-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--rule-strong);
  font-weight: 700;
  vertical-align: bottom;
}
.tier-table th.tier-free { color: var(--teal-deep); }
.tier-table th.tier-commercial { color: var(--teal); }
.tier-table td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mid);
  vertical-align: top;
}
.tier-table td:first-child {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 30%;
}
.tier-table td.tier-yes { color: var(--teal-deep); }
.tier-table td.tier-yes::before { content: "✓ "; font-weight: 700; }
.tier-table td.tier-paid { color: var(--teal); }

/* ─────────────────────────────────────────────────────────────
   REVEAL ON SCROLL
   ───────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────────────────────────
   UTILITIES
   ───────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-56 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }

.callout {
  background: var(--bg-card);
  border-left: 3px solid var(--teal);
  padding: 24px 28px;
  margin: 32px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .callout-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────
   TRUST STACK PIPELINE — animated visualisation
   ───────────────────────────────────────────────────────────── */
.pipeline {
  margin: 56px 0 0;
  padding: 56px 32px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 194, 199, 0.05) 0%, transparent 60%),
    var(--bg-card);
  border: 1px solid var(--rule);
  position: relative;
}

.pipeline-track {
  display: grid;
  grid-template-columns: 1fr 24px 1.1fr 24px 1.1fr 24px 1.1fr 24px 1fr;
  gap: 12px;
  align-items: stretch;
}

.pipeline-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.pipeline-stage-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin-bottom: 12px;
  transition: color 0.35s ease;
}
.pipeline-stage.active .pipeline-stage-label { color: var(--teal); }

.pipeline-node {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  transition: all 0.4s ease;
}
.pipeline-stage.active .pipeline-node {
  border-color: var(--teal);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 1px var(--teal-dim), 0 0 24px rgba(0, 194, 199, 0.18);
}
.pipeline-node-input,
.pipeline-node-output {
  background: transparent;
  border-style: dashed;
}
.pipeline-output.active .pipeline-node {
  border-style: solid;
  border-color: var(--teal-deep);
  background: rgba(4, 207, 180, 0.06);
  box-shadow: 0 0 0 1px rgba(4, 207, 180, 0.3), 0 0 24px rgba(4, 207, 180, 0.18);
}

.pipeline-node-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  margin-bottom: 12px;
  transition: all 0.4s ease;
}
.pipeline-stage.active .pipeline-node-icon,
.pipeline-output.active .pipeline-node-icon {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
}

.pipeline-node-name {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.pipeline-node-state {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.4s ease;
}
.pipeline-stage.active .pipeline-node-state { color: var(--teal-soft); }
.pipeline-output.active .pipeline-node-state { color: var(--teal-deep); }

.pipeline-property {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-faint);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  width: 100%;
  transition: color 0.4s ease;
}
.pipeline-stage.active .pipeline-property { color: var(--teal-soft); }

.pipeline-params {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 10px;
}
.pipeline-param {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--ink-faint);
  padding: 2px 6px;
  border: 1px solid var(--rule);
  transition: all 0.4s ease;
}
.pipeline-stage.active .pipeline-param {
  color: var(--teal);
  border-color: var(--rule-strong);
}

.pipeline-connector {
  position: relative;
  align-self: center;
  height: 1px;
  width: 100%;
  background: var(--rule);
  margin-top: 28px; /* aligns with vertical middle of node icon */
  overflow: visible;
}
.pipeline-packet {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  transform: translate(0, -50%);
  opacity: 0;
  pointer-events: none;
}
.pipeline-packet.travelling {
  animation: pipeline-packet-travel 0.8s ease-in-out forwards;
}
@keyframes pipeline-packet-travel {
  0%   { left: 0;    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.pipeline-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.pipeline-summary-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 0;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}
.pipeline-summary-item.active { opacity: 1; }
.pipeline-summary-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--ink-faint);
  margin-bottom: 6px;
  transition: color 0.4s ease;
}
.pipeline-summary-item.active .pipeline-summary-num { color: var(--teal); }
.pipeline-summary-word {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  transition: color 0.4s ease;
}
.pipeline-summary-item.active .pipeline-summary-word { color: var(--teal-soft); }
.pipeline-summary-detail {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-dim);
}

/* Mobile: stack vertically */
@media (max-width: 900px) {
  .pipeline-track {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pipeline-stage-label { text-align: left; }
  .pipeline-connector {
    width: 1px;
    height: 24px;
    margin: 0 auto;
  }
  .pipeline-packet {
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
  }
  .pipeline-packet.travelling {
    animation: pipeline-packet-travel-v 0.8s ease-in-out forwards;
  }
  @keyframes pipeline-packet-travel-v {
    0%   { top: 0;    opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
  .pipeline-summary { grid-template-columns: 1fr; gap: 20px; }
}
