/* ========================================
   Metagraph — Enhanced Scale Style
   Deep Space Command Center Aesthetic
   ======================================== */

:root {
  --color-deep-space: #000508;
  --color-ghost-white: #ffffff;
  --color-iron-slate: #8a9ab0;
  --color-halo-pale: #e8f0ff;
  --color-shadow-tint: #020a12;
  --color-subtle-gray: #e5e5e5;
  --color-iridescent-glow: #bbdef2;
  --color-spectrum-flare: #d1aad7;
  --color-vivid-crimson: #ff6467;
  --color-goldenrod: #ffd600;
  --color-emerald-green: #72ce7b;
  --color-accent-blue: #4ca8ff;
  --color-accent-violet: #9b6fff;

  --font-inter: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-aeonik: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --font-geist: 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1180px;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-18: clamp(4.5rem, 8vw, 7rem);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 60px rgba(187, 222, 242, 0.06);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--color-deep-space);
}

body {
  margin: 0;
  color: var(--color-ghost-white);
  background: var(--color-deep-space);
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(187, 222, 242, 0.14);
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(187, 222, 242, 0.12), transparent 65%),
    rgba(187, 222, 242, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 30px rgba(0, 0, 0, 0.18);
}

.section-icon svg,
.section-icon i[data-lucide] {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: var(--color-iridescent-glow);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Lucide Icons ---- */
i[data-lucide] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: var(--color-iridescent-glow);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-agent-icon i[data-lucide],
.trust-summary-check i[data-lucide],
.decision-core i[data-lucide] {
  width: 1.3rem;
  height: 1.3rem;
  stroke: currentColor;
}

/* ---- Global Particle Canvas ---- */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

/* ---- Global Background Effects ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(76, 168, 255, 0.055) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(155, 111, 255, 0.045) 0%, transparent 55%),
    radial-gradient(ellipse 100% 40% at 50% 50%, rgba(187, 222, 242, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.03) 3px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
}

/* ---- Ambient Floating Orbs ---- */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.ambient-orb-1 {
  width: 700px;
  height: 500px;
  top: -150px;
  left: -200px;
  background: radial-gradient(circle, rgba(76, 168, 255, 0.05) 0%, transparent 70%);
  animation: orbFloat1 16s ease-in-out infinite;
}

.ambient-orb-2 {
  width: 600px;
  height: 600px;
  top: 35%;
  right: -250px;
  background: radial-gradient(circle, rgba(155, 111, 255, 0.04) 0%, transparent 70%);
  animation: orbFloat2 20s ease-in-out infinite;
}

.ambient-orb-3 {
  width: 800px;
  height: 400px;
  bottom: 5%;
  left: 15%;
  background: radial-gradient(circle, rgba(187, 222, 242, 0.03) 0%, transparent 70%);
  animation: orbFloat3 24s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(40px, -30px) scale(1.08); }
  70% { transform: translate(-20px, 20px) scale(0.96); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  35% { transform: translate(-30px, 25px) scale(1.06); }
  65% { transform: translate(20px, -15px) scale(0.94); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -20px) scale(1.04); }
}

/* ---- Layout ---- */
.site-header,
.section {
  position: relative;
  z-index: 10;
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 1rem 0;
  background: rgba(0, 5, 8, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(187, 222, 242, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(187, 222, 242, 0.4) 30%, rgba(155, 111, 255, 0.3) 60%, transparent 100%);
  animation: headerGlow 5s ease-in-out infinite;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -56px;
  right: -56px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 5, 8, 0) 0%, rgba(0, 5, 8, 0.88) 56px, rgba(0, 5, 8, 0.88) calc(100% - 56px), rgba(0, 5, 8, 0) 100%);
  z-index: -1;
}

@keyframes headerGlow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

.brand, .nav-links, .hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: var(--space-3);
  font-family: var(--font-aeonik);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-ghost-white);
}

.brand-mark {
  width: 36px;
  height: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  gap: var(--space-6);
  color: var(--color-iron-slate);
  font-family: var(--font-inter);
  font-size: 0.875rem;
  font-weight: 400;
}

.nav-links a,
.nav-cta,
.button,
.system-stage {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms var(--ease-out-quart),
    box-shadow 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--color-ghost-white); }

.nav-cta, .button { border-radius: 999px; }

.nav-cta {
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(187, 222, 242, 0.18);
  background: rgba(187, 222, 242, 0.04);
  font-family: var(--font-inter);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-ghost-white);
}

.nav-cta:hover {
  border-color: rgba(187, 222, 242, 0.45);
  background: rgba(187, 222, 242, 0.08);
  box-shadow: 0 0 20px rgba(187, 222, 242, 0.1);
}

/* ---- Sections ---- */
.section { padding: var(--space-18) 0; }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-copy, .section-heading, .system-points, .cta-panel { max-width: 70ch; }
.hero-copy { max-width: 62ch; }

.eyebrow,
.kicker,
.system-kicker,
.system-focus-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-iron-slate);
  font-family: var(--font-geist);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before, .kicker::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-iridescent-glow);
  box-shadow: 0 0 8px rgba(187, 222, 242, 0.7);
  flex-shrink: 0;
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(187, 222, 242, 0.6); }
  50% { box-shadow: 0 0 12px rgba(187, 222, 242, 1), 0 0 20px rgba(187, 222, 242, 0.4); }
}

.eyebrow, .kicker { margin-bottom: var(--space-4); }

h1, h2 {
  font-family: var(--font-aeonik);
  font-weight: 300;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--color-ghost-white);
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  background: linear-gradient(145deg, #ffffff 0%, rgba(187, 222, 242, 0.9) 55%, rgba(155, 111, 255, 0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.11;
}

h3 {
  font-family: var(--font-aeonik);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--color-ghost-white);
}

.hero-lede,
.governance-grid p,
.system-points p,
.workflow-list p,
.outcomes-row p,
.cta-panel p,
.system-focus-card p {
  color: var(--color-iron-slate);
  font-family: var(--font-inter);
  font-size: 1.05rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-lede { max-width: 58ch; margin-top: 1.5rem; }

.hero-actions { gap: 0.85rem; margin-top: var(--space-8); }

.hero-rail {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
  color: var(--color-iron-slate);
  font-family: var(--font-geist);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-rail span { display: inline-flex; align-items: center; gap: 0.65rem; }
.hero-rail span:not(:last-child)::after {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(187, 222, 242, 0.5), transparent);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  font-family: var(--font-inter);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.button-primary {
  background: var(--color-ghost-white);
  color: var(--color-deep-space);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.button-primary:hover, .button-primary:focus-visible {
  background: var(--color-subtle-gray);
  color: var(--color-deep-space);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15), 0 16px 40px rgba(0, 0, 0, 0.4);
}

.button-secondary {
  border-color: rgba(187, 222, 242, 0.2);
  background: rgba(187, 222, 242, 0.04);
  color: var(--color-ghost-white);
}

.button-secondary:hover, .button-secondary:focus-visible {
  border-color: rgba(187, 222, 242, 0.45);
  background: rgba(187, 222, 242, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(187, 222, 242, 0.1);
}

.hero-notes {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding: 0;
  list-style: none;
}

.hero-notes li,
.workflow-list li,
.governance-grid article,
.system-points article,
.outcomes-row article,
.cta-panel,
.system-focus-card,
.system-proof,
.system-stage {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(2, 8, 15, 0.92);
}

.hero-notes li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 1.3rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-inter);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--color-halo-pale);
  overflow: hidden;
}

.hero-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-iridescent-glow), var(--color-spectrum-flare));
  border-radius: 0 2px 2px 0;
}

.hero-notes li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(187, 222, 242, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-system { width: 100%; }

.system-viewport {
  display: grid;
  gap: var(--space-5);
  width: 100%;
}

.system-heading { display: grid; gap: 0.65rem; }
.system-heading h2 {
  max-width: 12ch;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.system-stage-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.system-stage {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--color-iron-slate);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-inter);
  background: rgba(2, 8, 15, 0.85);
}

.system-stage span {
  color: var(--color-iron-slate);
  font-family: var(--font-geist);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.083em;
}

.system-stage strong {
  font-family: var(--font-aeonik);
  font-size: 0.9rem;
  font-weight: 500;
}

.system-stage:hover,
.system-stage:focus-visible,
.system-stage.is-active {
  border-color: rgba(187, 222, 242, 0.22);
  color: var(--color-ghost-white);
  background: rgba(187, 222, 242, 0.04);
  box-shadow: inset 0 0 0 1px rgba(187, 222, 242, 0.06), 0 0 20px rgba(187, 222, 242, 0.05);
}

.system-stage.is-active span { color: var(--color-iridescent-glow); }

/* ---- Canvas Wrap ---- */
.system-canvas-wrap {
  position: relative;
  display: block;
  min-height: 520px;
  border: 1px solid rgba(187, 222, 242, 0.09);
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    radial-gradient(circle at 50% 10%, rgba(187, 222, 242, 0.09), transparent 40%),
    radial-gradient(circle at 18% 74%, rgba(155, 111, 255, 0.05), transparent 30%),
    radial-gradient(circle at 82% 30%, rgba(76, 168, 255, 0.04), transparent 35%),
    linear-gradient(180deg, rgba(2, 8, 15, 0.9), rgba(0, 0, 0, 0.95));
  box-shadow: var(--shadow), var(--shadow-glow), inset 0 1px 0 rgba(187, 222, 242, 0.08);
  overflow: hidden;
}

/* Top glow edge */
.system-canvas-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(187, 222, 242, 0.4), transparent);
  animation: canvasTopGlow 4s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
}

@keyframes canvasTopGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.system-canvas-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  pointer-events: none;
  z-index: 10;
}

#knowledge-graph {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.system-fallback,
.graph-annotations,
.system-focus-card,
.system-proof { z-index: 3; }

.system-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ---- System Noise ---- */
.system-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

/* Static dot grid texture */
.system-noise::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(187, 222, 242, 0.26) 0 1.2px, transparent 1.5px),
    radial-gradient(circle, rgba(209, 170, 215, 0.18) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(76, 168, 255, 0.15) 0 0.8px, transparent 1.2px);
  background-size: 44px 44px, 68px 68px, 32px 32px;
  background-position: 0 0, 22px 22px, 11px 11px;
  opacity: 0.6;
  animation: noiseShift 20s linear infinite;
}

@keyframes noiseShift {
  0% { background-position: 0 0, 22px 22px, 11px 11px; }
  100% { background-position: 44px 44px, 90px 90px, 43px 43px; }
}

/* Scanning line */
.system-noise::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(187, 222, 242, 0.35), rgba(155, 111, 255, 0.2), transparent);
  animation: scanLine 5s linear infinite;
  opacity: 0.55;
}

@keyframes scanLine {
  0% { top: -2px; opacity: 0; }
  5% { opacity: 0.55; }
  90% { opacity: 0.45; }
  100% { top: 100%; opacity: 0; }
}

/* ---- Fallback ---- */
.fallback-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fallback-lines path {
  fill: none;
  stroke: rgba(187, 222, 242, 0.42);
  stroke-width: 0.45;
  stroke-linecap: round;
  stroke-dasharray: 3 5;
  opacity: 0.28;
}

.fallback-cluster {
  position: absolute;
  color: var(--color-iron-slate);
  transition: transform 260ms var(--ease-out-quart), opacity 260ms ease, color 260ms ease;
}
.fallback-cluster.is-active { color: var(--color-ghost-white); }

.fallback-tag {
  display: inline-flex;
  margin-top: 0.8rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(187, 222, 242, 0.2);
  border-radius: 999px;
  background: rgba(2, 8, 15, 0.92);
  font-family: var(--font-inter);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-halo-pale);
}

.fallback-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--color-iridescent-glow);
  box-shadow: 0 0 0 5px rgba(187, 222, 242, 0.16), 0 0 12px rgba(187, 222, 242, 0.35);
}

.fallback-document { top: 16%; left: 10%; }
.doc-a { left: 0; top: 0; }
.doc-b { left: 18px; top: 24px; width: 11px; height: 11px; }
.doc-c { left: 48px; top: 6px; width: 10px; height: 10px; }
.fallback-graph { top: 32%; left: 36%; }
.graph-a { left: 0; top: 10px; }
.graph-b { left: 30px; top: 0; width: 12px; height: 12px; }
.graph-c { left: 58px; top: 18px; width: 10px; height: 10px; }
.graph-d { left: 24px; top: 40px; width: 9px; height: 9px; }
.fallback-agent { top: 18%; right: 18%; }
.agent-a { left: 0; top: 12px; }
.agent-b { left: 34px; top: 0; width: 10px; height: 10px; }
.agent-c { left: 52px; top: 28px; width: 12px; height: 12px; }
.fallback-decision { right: 8%; top: 40%; }
.decision-a {
  left: 0; top: 0;
  width: 18px; height: 18px;
  background: var(--color-ghost-white);
  box-shadow: 0 0 0 7px rgba(187, 222, 242, 0.18), 0 0 20px rgba(187, 222, 242, 0.45);
}
.fallback-decision .fallback-tag { margin-top: 1rem; }
.system-canvas-wrap.is-graph-ready .system-fallback { opacity: 0.1; }

/* ---- Annotation Pills ---- */
.graph-annotations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.graph-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(2, 8, 15, 0.85);
  color: rgba(232, 240, 255, 0.68);
  font-family: var(--font-inter);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0.12;
  transform: translateY(8px) scale(0.97);
  transition: opacity 240ms ease, transform 240ms var(--ease-out-quart), box-shadow 240ms ease;
  backdrop-filter: blur(8px);
}

.graph-pill.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  color: var(--color-ghost-white);
}

.graph-pill b {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.graph-pill span { white-space: nowrap; }

.graph-pill.is-hot { background: rgba(52, 20, 20, 0.9); border-color: rgba(255, 100, 103, 0.28); }
.graph-pill.is-hot.is-active { box-shadow: 0 0 20px rgba(255, 100, 103, 0.18); }
.graph-pill.is-hot b { background: rgba(255, 100, 103, 0.9); color: rgba(32, 10, 10, 0.95); }

.graph-pill.is-coral { background: rgba(63, 28, 20, 0.9); border-color: rgba(255, 110, 77, 0.28); }
.graph-pill.is-coral b { background: rgba(255, 110, 77, 0.92); color: rgba(38, 16, 10, 0.96); }

.graph-pill.is-violet { background: rgba(40, 24, 72, 0.9); border-color: rgba(155, 111, 255, 0.3); }
.graph-pill.is-violet.is-active { box-shadow: 0 0 20px rgba(155, 111, 255, 0.18); }
.graph-pill.is-violet b { background: rgba(155, 111, 255, 0.9); color: rgba(22, 14, 40, 0.96); }

.graph-pill.is-olive { background: rgba(58, 52, 30, 0.9); border-color: rgba(216, 203, 127, 0.28); }
.graph-pill.is-olive b { background: rgba(216, 203, 127, 0.9); color: rgba(34, 30, 12, 0.96); }

.graph-pill.is-ice { background: rgba(16, 36, 64, 0.92); border-color: rgba(150, 196, 255, 0.35); }
.graph-pill.is-ice.is-active { box-shadow: 0 0 20px rgba(76, 168, 255, 0.18); }
.graph-pill.is-ice b { background: rgba(150, 196, 255, 0.9); color: rgba(10, 22, 42, 0.98); }

/* ---- Focus Card ---- */
.system-focus-card {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  max-width: 29ch;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(187, 222, 242, 0.14);
  background: rgba(2, 8, 20, 0.88);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.system-focus-card h3 {
  margin: 0.45rem 0 0.55rem;
  font-size: 1rem;
  color: var(--color-iridescent-glow);
}

.system-focus-label { font-size: 0.68rem; }

/* ---- Proof ---- */
.system-proof {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: min(240px, 34%);
  padding: 0.7rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow), 0 0 0 1px rgba(187, 222, 242, 0.09);
  backdrop-filter: blur(16px);
  background: rgba(2, 8, 15, 0.9);
}

.system-proof img { border-radius: 12px; opacity: 0.85; }
.system-proof figcaption {
  margin-top: 0.7rem;
  color: var(--color-iron-slate);
  font-family: var(--font-inter);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ---- Content Sections ---- */
.intro, .system, .workflow, .outcomes {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-heading { margin-bottom: var(--space-8); }

/* ---- Trusted Flow ---- */
.trust-flow {
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
}

.trust-flow-heading h2 {
  max-width: 12ch;
}

.trust-flow-intro {
  max-width: 56ch;
  color: var(--color-iron-slate);
  font-size: 1rem;
}

.trust-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.trust-step {
  position: relative;
  padding: 1rem 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(185, 214, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(8, 14, 24, 0.9), rgba(2, 8, 15, 0.94)),
    rgba(2, 8, 15, 0.92);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition:
    transform 240ms var(--ease-out-quart),
    border-color 240ms ease,
    box-shadow 240ms ease,
    background 240ms ease;
}

.trust-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(135, 187, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 36%);
  pointer-events: none;
}

.trust-step::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: -0.9rem;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(232, 240, 255, 0.72);
  font-size: 0.9rem;
  transform: translateY(-50%);
  z-index: 2;
}

.trust-step:last-child::after {
  display: none;
}

.trust-step:hover,
.trust-step:focus-visible,
.trust-step.is-active {
  transform: translateY(-4px);
  border-color: rgba(187, 222, 242, 0.24);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(187, 222, 242, 0.08),
    0 0 36px rgba(76, 168, 255, 0.08);
}

.trust-step-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.trust-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(188, 218, 255, 0.12);
  background: rgba(17, 24, 37, 0.88);
  color: rgba(232, 240, 255, 0.9);
  font-family: var(--font-geist);
  font-size: 0.72rem;
  font-weight: 600;
}

.trust-step-head h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.trust-step-head p {
  color: var(--color-iron-slate);
  font-size: 0.8rem;
  line-height: 1.5;
}

.trust-step-preview {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  min-height: 116px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  background: rgba(10, 16, 27, 0.7);
  overflow: hidden;
}

.trust-step-preview-doc {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 0.65rem;
}

.trust-step-preview-doc span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  color: rgba(232, 240, 255, 0.78);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(0);
  transition: transform 220ms ease, background 220ms ease;
}

.trust-step.is-active .trust-step-preview-doc span {
  animation: docRowDrift 2.8s ease-in-out infinite;
}

.trust-step-preview-doc span:nth-child(2) { animation-delay: 0.12s; }
.trust-step-preview-doc span:nth-child(3) { animation-delay: 0.24s; }
.trust-step-preview-doc span:nth-child(4) { animation-delay: 0.36s; }

.trust-step-preview-doc i {
  display: inline-block;
  width: 0.55rem;
  height: 0.7rem;
  border-radius: 0.12rem;
  background: linear-gradient(180deg, #ff7a7d, #7ab7ff);
  box-shadow: 0 0 12px rgba(122, 183, 255, 0.24);
  flex-shrink: 0;
}

.trust-step-preview-graph {
  position: relative;
}

.trust-step-preview-graph svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trust-step-preview-graph path {
  fill: none;
  stroke: rgba(177, 205, 244, 0.22);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 4 5;
}

.graph-node {
  position: absolute;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(232, 240, 255, 0.48);
  box-shadow: 0 0 10px rgba(232, 240, 255, 0.08);
}

.graph-node.node-a { top: 52%; left: 11%; }
.graph-node.node-b { top: 28%; left: 32%; }
.graph-node.node-c { top: 56%; left: 49%; width: 0.9rem; height: 0.9rem; background: #3f81ff; box-shadow: 0 0 18px rgba(63, 129, 255, 0.42); }
.graph-node.node-d { top: 26%; left: 72%; }
.graph-node.node-e { top: 58%; left: 86%; }
.graph-node.node-f { top: 72%; left: 40%; }
.graph-node.node-g { top: 78%; left: 64%; width: 0.55rem; height: 0.55rem; background: rgba(63, 129, 255, 0.92); }

.trust-step.is-active .graph-node {
  animation: graphPulse 3.2s ease-in-out infinite;
}

.graph-node.node-b { animation-delay: 0.18s; }
.graph-node.node-c { animation-delay: 0.28s; }
.graph-node.node-d { animation-delay: 0.4s; }
.graph-node.node-e { animation-delay: 0.55s; }
.graph-node.node-f { animation-delay: 0.68s; }
.graph-node.node-g { animation-delay: 0.82s; }

.trust-step-preview-agent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.7rem;
}

.trust-step-preview-agent span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  color: rgba(232, 240, 255, 0.8);
  font-size: 0.71rem;
  background: rgba(255, 255, 255, 0.03);
}

.trust-step-preview-agent span:nth-child(even) {
  color: rgba(188, 218, 255, 0.86);
}

.trust-step.is-active .trust-step-preview-agent span:nth-child(even) {
  animation: agentBlink 1.8s ease-in-out infinite;
}

.trust-step-preview-decision {
  display: grid;
  place-items: center;
}

.decision-rings {
  position: relative;
  width: 6rem;
  height: 6rem;
}

.decision-rings > span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(53, 110, 210, 0.22);
  background: radial-gradient(circle, rgba(39, 91, 184, 0.08), transparent 70%);
}

.decision-rings > span:nth-child(2) { inset: 0.7rem; }
.decision-rings > span:nth-child(3) { inset: 1.4rem; }

.decision-core {
  inset: 2rem !important;
  display: grid;
  place-items: center;
  border: 1px solid rgba(93, 150, 255, 0.26) !important;
  background: radial-gradient(circle at 30% 30%, rgba(105, 169, 255, 0.55), rgba(27, 64, 141, 0.95)) !important;
  box-shadow: 0 0 26px rgba(63, 129, 255, 0.35);
}

.decision-core svg,
.decision-core i[data-lucide] {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: white;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-step.is-active .decision-rings > span {
  animation: decisionRipple 2.6s ease-out infinite;
}

.trust-step.is-active .decision-rings > span:nth-child(2) {
  animation-delay: 0.22s;
}

.trust-step.is-active .decision-rings > span:nth-child(3) {
  animation-delay: 0.4s;
}

.trust-agent-strip {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr 1fr 1.1fr;
  gap: 0.9rem;
  margin-top: 0.85rem;
}

.trust-agent-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(185, 214, 255, 0.1);
  background: rgba(6, 12, 22, 0.88);
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.trust-agent-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(187, 222, 242, 0.2);
  background: rgba(12, 19, 33, 0.94);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(187, 222, 242, 0.05);
}

.trust-agent-card h3 {
  margin-bottom: 0.3rem;
  font-size: 0.84rem;
}

.trust-agent-card p {
  color: var(--color-iron-slate);
  font-size: 0.72rem;
  line-height: 1.55;
}

.trust-agent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-accent-blue);
}

.trust-agent-icon svg,
.trust-agent-icon i[data-lucide] {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-agent-dots {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.3rem;
  padding-top: 0.2rem;
}

.trust-agent-dots span {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(63, 129, 255, 0.32);
}

.trust-agent-card.is-active .trust-agent-dots span {
  animation: trustDotPulse 1.5s ease-in-out infinite;
}

.trust-agent-dots span:nth-child(2) { animation-delay: 0.1s; }
.trust-agent-dots span:nth-child(3) { animation-delay: 0.2s; }
.trust-agent-dots span:nth-child(4) { animation-delay: 0.3s; }
.trust-agent-dots span:nth-child(5) { animation-delay: 0.4s; }
.trust-agent-dots span:nth-child(6) { animation-delay: 0.5s; }

.trust-agent-card-summary {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.trust-summary-check {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(93, 150, 255, 0.2);
  background: radial-gradient(circle at 30% 30%, rgba(94, 155, 255, 0.18), rgba(16, 34, 70, 0.84));
}

.trust-summary-check svg,
.trust-summary-check i[data-lucide] {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: rgba(232, 240, 255, 0.96);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes docRowDrift {
  0%, 100% { transform: translateX(0); background: rgba(255, 255, 255, 0.03); }
  50% { transform: translateX(3px); background: rgba(187, 222, 242, 0.06); }
}

@keyframes graphPulse {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  45% { transform: scale(1.25); opacity: 1; }
}

@keyframes agentBlink {
  0%, 100% { opacity: 0.65; border-color: transparent; }
  50% { opacity: 1; box-shadow: inset 0 0 0 1px rgba(187, 222, 242, 0.12); }
}

@keyframes decisionRipple {
  0% { transform: scale(0.98); opacity: 0.52; }
  70% { transform: scale(1.08); opacity: 0.16; }
  100% { transform: scale(1.12); opacity: 0.04; }
}

@keyframes trustDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; background: rgba(63, 129, 255, 0.32); }
  50% { transform: scale(1.45); opacity: 1; background: rgba(95, 162, 255, 0.95); }
}

.governance-grid, .outcomes-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.governance-grid article, .outcomes-row article {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 8, 15, 0.7);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.governance-grid article::before, .outcomes-row article::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(187, 222, 242, 0.25), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.governance-grid article:hover, .outcomes-row article:hover {
  border-color: rgba(187, 222, 242, 0.14);
  background: rgba(187, 222, 242, 0.02);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(187, 222, 242, 0.04);
}

.governance-grid article:hover::before, .outcomes-row article:hover::before { opacity: 1; }

.governance-grid h3, .system-points h3, .workflow-list h3, .outcomes-row h3 { margin-bottom: 0.7rem; }
.governance-grid p, .outcomes-row p { color: var(--color-iron-slate); }

/* ---- System Layout ---- */
.system-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.diagram {
  border: 1px solid rgba(187, 222, 242, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  background: rgba(2, 8, 15, 0.7);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.system-points { display: grid; gap: 1.2rem; padding: 0; }

.system-points article {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.system-points .section-icon {
  margin-bottom: 0.85rem;
}

.system-points article:last-child { border-bottom: none; padding-bottom: 0; }
.system-points p { color: var(--color-iron-slate); }

/* ---- Graph Showcase ---- */
.graph-showcase {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.graph-showcase-heading {
  max-width: 72ch;
}

.graph-showcase-shell {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: center;
}

.graph-showcase-shell::before {
  content: "";
  position: absolute;
  inset: 6% 10% 2% 16%;
  background:
    radial-gradient(circle at 25% 20%, rgba(155, 111, 255, 0.08), transparent 28%),
    radial-gradient(circle at 72% 30%, rgba(76, 168, 255, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 55%);
  filter: blur(28px);
  pointer-events: none;
}

.graph-showcase-sidebar {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  padding: 1.1rem 0;
}

.graph-sidebar-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 10, 18, 0.75);
  color: rgba(232, 240, 255, 0.54);
  font-family: var(--font-inter);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.graph-sidebar-pill.is-active {
  color: var(--color-ghost-white);
  border-color: rgba(187, 222, 242, 0.14);
  background: rgba(187, 222, 242, 0.06);
}

.graph-showcase-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 1rem;
  border-radius: 1.8rem;
  border: 1px solid rgba(187, 222, 242, 0.08);
  background:
    linear-gradient(180deg, rgba(14, 18, 28, 0.96), rgba(6, 10, 18, 0.98)),
    rgba(2, 8, 15, 0.94);
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 60px rgba(76, 168, 255, 0.05);
  transform: perspective(1800px) rotateX(8deg) rotateY(-15deg) rotateZ(2deg);
  transform-origin: 50% 50%;
  transition: transform 420ms var(--ease-out-expo), box-shadow 320ms ease;
  overflow: hidden;
}

.graph-showcase-frame:hover {
  transform: perspective(1800px) rotateX(5deg) rotateY(-10deg) rotateZ(1deg) translateY(-4px);
  box-shadow:
    0 42px 120px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(187, 222, 242, 0.05),
    0 0 88px rgba(76, 168, 255, 0.08);
}

.graph-showcase-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.045), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.08), transparent 18%);
  pointer-events: none;
  z-index: 2;
}

.graph-showcase-frame img {
  width: 100%;
  border-radius: 1.15rem;
  opacity: 0.88;
  filter: saturate(0.95) contrast(1.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.graph-showcase-topbar {
  position: absolute;
  top: 1.1rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.graph-showcase-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.graph-showcase-tab {
  margin-left: 0.45rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 18, 0.72);
  color: rgba(232, 240, 255, 0.8);
  font-family: var(--font-geist);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.graph-showcase-overlay {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 20, 0.74);
  backdrop-filter: blur(18px);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.graph-showcase-overlay-metrics {
  top: 1.35rem;
  right: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  border-radius: 1rem;
  overflow: hidden;
}

.graph-showcase-overlay-metrics article {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem 0.8rem;
  text-align: center;
}

.graph-showcase-overlay-metrics article:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.graph-showcase-overlay-metrics strong {
  color: var(--color-ghost-white);
  font-family: var(--font-aeonik);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.graph-showcase-overlay-metrics article:nth-child(1) strong { color: #4f8dff; }
.graph-showcase-overlay-metrics article:nth-child(2) strong { color: #21dfb2; }
.graph-showcase-overlay-metrics article:nth-child(3) strong { color: #ff5d63; }

.graph-showcase-overlay-metrics span {
  color: rgba(232, 240, 255, 0.52);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.graph-showcase-overlay-focus {
  left: 1.4rem;
  bottom: 1.45rem;
  max-width: 320px;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  overflow: hidden;
}

.graph-showcase-overlay-focus::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at center, rgba(52, 211, 255, 0.18) 0%, rgba(52, 211, 255, 0.08) 18%, rgba(52, 211, 255, 0) 52%);
  opacity: 0.75;
  animation: aiInsightSweep 4.8s ease-in-out infinite;
  pointer-events: none;
}

.graph-showcase-ai-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.58rem 0.32rem 0.4rem;
  border: 1px solid rgba(86, 214, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 18, 30, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(86, 214, 255, 0.03),
    0 0 24px rgba(18, 133, 188, 0.18);
}

.graph-showcase-overlay-focus p {
  color: rgba(187, 222, 242, 0.62);
  font-family: var(--font-geist);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.graph-showcase-ai-label > span:last-child {
  display: inline-block;
  color: rgba(187, 222, 242, 0.8);
  font-size: 0.68rem;
  line-height: 1;
}

.graph-showcase-ai-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(91, 230, 255, 0.34), rgba(17, 85, 111, 0.1));
  box-shadow:
    inset 0 0 0 1px rgba(124, 228, 255, 0.22),
    0 0 18px rgba(33, 199, 255, 0.18);
}

.graph-showcase-ai-icon::before,
.graph-showcase-ai-icon::after {
  content: "";
  position: absolute;
  inset: -0.2rem;
  border: 1px solid rgba(92, 224, 255, 0.22);
  border-radius: inherit;
  opacity: 0;
  animation: aiInsightPing 2.8s ease-out infinite;
}

.graph-showcase-ai-icon::after {
  animation-delay: 1.15s;
}

.graph-showcase-ai-icon svg {
  width: 0.92rem;
  height: 0.92rem;
  stroke: #86ecff;
  stroke-width: 1.55;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(91, 230, 255, 0.28));
}

.graph-showcase-ai-loading {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.6rem;
  color: rgba(110, 217, 255, 0.9);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: aiLoadingEnter 0.55s ease-out 0.35s forwards;
}

.graph-showcase-ai-loading::after {
  content: "";
  width: 2.1rem;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(95, 231, 255, 0) 0%, rgba(95, 231, 255, 0.95) 48%, rgba(95, 231, 255, 0) 100%);
  background-size: 180% 100%;
  animation: aiLoadingScan 1.25s linear infinite;
}

.graph-showcase-overlay-focus h3,
.graph-showcase-ai-title {
  position: relative;
  z-index: 1;
  margin: 0.4rem 0 0.3rem;
  font-size: 1.05rem;
  color: var(--color-ghost-white);
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  filter: blur(8px);
}

.graph-showcase-overlay-focus.is-visible h3,
.graph-showcase-overlay-focus.is-visible .graph-showcase-ai-title {
  animation:
    aiInsightReveal 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards,
    aiInsightCaret 0.9s steps(1, end) 0.95s 3;
}

.graph-showcase-overlay-focus.is-visible-on-load h3,
.graph-showcase-overlay-focus.is-visible-on-load .graph-showcase-ai-title {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  filter: blur(0);
}

.graph-showcase-ai-copy {
  position: relative;
  z-index: 1;
  display: block;
  color: rgba(232, 240, 255, 0.68);
  font-size: 0.8rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(10px);
  clip-path: inset(0 0 100% 0);
}

.graph-showcase-overlay-focus.is-visible .graph-showcase-ai-copy {
  animation: aiInsightCopyReveal 0.95s cubic-bezier(0.2, 0.9, 0.2, 1) 1.45s forwards;
}

.graph-showcase-overlay-focus.is-visible-on-load .graph-showcase-ai-copy {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  clip-path: inset(0 0 0 0);
}

.graph-showcase-ai-copy::after {
  content: "";
  position: absolute;
  inset: -0.1rem 0;
  background: linear-gradient(90deg, rgba(95, 231, 255, 0) 0%, rgba(95, 231, 255, 0.18) 48%, rgba(95, 231, 255, 0) 100%);
  transform: translateX(-110%);
  pointer-events: none;
}

.graph-showcase-overlay-focus.is-visible .graph-showcase-ai-copy::after {
  animation: aiCopySweep 0.9s ease-out 1.65s forwards;
}

@keyframes aiInsightPing {
  0% {
    transform: scale(0.88);
    opacity: 0;
  }
  28% {
    opacity: 0.65;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

@keyframes aiInsightSweep {
  0%, 100% {
    transform: translate3d(-6%, -4%, 0) scale(0.94);
    opacity: 0.42;
  }
  50% {
    transform: translate3d(8%, 6%, 0) scale(1.08);
    opacity: 0.92;
  }
}

@keyframes aiLoadingEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes aiLoadingScan {
  from {
    background-position: 140% 0;
  }
  to {
    background-position: -40% 0;
  }
}

@keyframes aiInsightReveal {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: blur(0);
  }
}

@keyframes aiInsightCaret {
  0%, 100% {
    border-right: 1px solid rgba(134, 236, 255, 0);
  }
  50% {
    border-right: 1px solid rgba(134, 236, 255, 0.92);
  }
}

@keyframes aiInsightCopyReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(10px);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes aiCopySweep {
  from {
    transform: translateX(-110%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  to {
    transform: translateX(110%);
    opacity: 0;
  }
}

/* ---- Workflow ---- */
.workflow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

.workflow-list li {
  position: relative;
  padding: 1.4rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(2, 8, 15, 0.75);
  transition: border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
  overflow: hidden;
}

/* Top glow bar when linked */
.workflow-list li::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-iridescent-glow), var(--color-spectrum-flare), transparent);
  transform: scaleX(0);
  transition: transform 300ms var(--ease-out-quart);
}

.workflow-list li.is-linked {
  border-color: rgba(187, 222, 242, 0.22);
  background: rgba(187, 222, 242, 0.03);
  box-shadow: 0 0 30px rgba(187, 222, 242, 0.05), inset 0 0 0 1px rgba(187, 222, 242, 0.06);
}

.workflow-list li.is-linked::before { transform: scaleX(1); }

.workflow-list span {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--color-iridescent-glow);
  font-family: var(--font-geist);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.workflow-list h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.workflow-list p { color: var(--color-iron-slate); font-size: 0.93rem; }

/* ---- Bento Grid ---- */
.bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(280px, 0.92fr);
  grid-template-rows: minmax(300px, 320px) minmax(300px, 1fr);
  gap: var(--space-4);
}

.bento-card {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(129, 177, 230, 0.14);
  background:
    linear-gradient(180deg, rgba(8, 13, 24, 0.88), rgba(3, 7, 14, 0.96)),
    rgba(2, 8, 15, 0.85);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(205, 226, 255, 0.08);
  overflow: hidden;
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms var(--ease-out-quart);
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(176, 112, 255, 0.28), rgba(103, 195, 255, 0.34), rgba(255, 189, 153, 0.16));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  opacity: 0.85;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius-lg) - 10px);
  border: 1px solid rgba(151, 192, 255, 0.08);
  pointer-events: none;
}

.bento-card:hover {
  border-color: rgba(187, 222, 242, 0.24);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(187, 222, 242, 0.08),
    0 0 44px rgba(88, 160, 255, 0.1);
  transform: translateY(-4px);
}

.bento-card-feature { grid-column: 1 / span 2; grid-row: 1; }
.bento-card-tall { grid-column: 3; grid-row: 1 / span 2; min-height: 100%; }
.bento-card-graph { grid-column: 1; grid-row: 2; }
.bento-card-debate { grid-column: 2; grid-row: 2; }

.bento-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bento-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 16, 0.14) 0%, rgba(4, 8, 16, 0.28) 34%, rgba(4, 8, 16, 0.82) 100%),
    radial-gradient(circle at 12% 14%, rgba(205, 128, 255, 0.12), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(104, 195, 255, 0.12), transparent 28%);
  pointer-events: none;
}

.bento-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out-quart), opacity 240ms ease;
  opacity: 0.9;
}

.bento-card:hover .bento-image img {
  transform: scale(1.035);
  opacity: 1;
}

.bento-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.15rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 6, 12, 0.32) 18%, rgba(3, 6, 12, 0.94) 100%);
}

.bento-card-feature .bento-content { padding: 1.35rem 1.4rem 1.35rem; max-width: 56%; }
.bento-card-tall .bento-content { padding: 1.3rem 1.3rem 1.35rem; max-width: 100%; }

.bento-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 223, 255, 0.12);
  background: rgba(10, 17, 29, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: var(--font-geist);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-ghost-white);
  flex-shrink: 0;
}

.bento-content h3 {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 600;
  color: var(--color-ghost-white);
  line-height: 1.12;
  text-wrap: balance;
}

.bento-content p {
  color: rgba(232, 240, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 36ch;
}

.bento-card-feature .bento-image img {
  object-position: center center;
}

.bento-card-connector .bento-image img {
  object-position: left center;
}

.bento-card-graph .bento-image img {
  object-position: center 46%;
}

.bento-card-debate .bento-image img {
  object-position: center center;
}

@media (max-width: 1024px) {
  .graph-showcase-shell {
    grid-template-columns: 1fr;
  }

  .graph-showcase-sidebar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
  }

  .graph-showcase-frame {
    transform: none;
  }

  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(260px, auto));
  }
  .bento-card-feature {
    grid-column: 1 / span 2;
    grid-row: 1;
  }
  .bento-card-tall {
    grid-column: 1 / span 2;
    grid-row: 2;
    min-height: 320px;
  }
  .bento-card-graph {
    grid-column: 1;
    grid-row: 3;
  }
  .bento-card-debate {
    grid-column: 2;
    grid-row: 3;
  }
  .bento-card-feature .bento-content {
    max-width: 62%;
  }
}

@media (max-width: 640px) {
  .graph-showcase-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .graph-showcase-frame {
    padding: 0.8rem;
    border-radius: 1.2rem;
  }

  .graph-showcase-topbar {
    top: 0.95rem;
    left: 0.95rem;
    right: 0.95rem;
    gap: 0.38rem;
  }

  .graph-showcase-tab {
    max-width: 58%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .graph-showcase-overlay-metrics {
    top: auto;
    right: 0.95rem;
    bottom: 0.95rem;
    left: 0.95rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .graph-showcase-overlay-metrics article {
    padding: 0.7rem 0.55rem;
  }

  .graph-showcase-overlay-metrics strong {
    font-size: 1rem;
  }

  .graph-showcase-overlay-focus {
    left: 0.95rem;
    right: 0.95rem;
    bottom: 4.9rem;
    max-width: none;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .bento-card,
  .bento-card-feature,
  .bento-card-tall,
  .bento-card-graph,
  .bento-card-debate {
    grid-column: auto;
    grid-row: auto;
    min-height: 270px;
  }
  .bento-content,
  .bento-card-feature .bento-content,
  .bento-card-tall .bento-content {
    max-width: none;
    padding: 1.1rem;
  }
  .bento-content h3 {
    font-size: 1.35rem;
  }
}

/* ---- Final CTA ---- */
.final-cta { padding-bottom: clamp(5rem, 9vw, 8rem); }

.cta-panel {
  position: relative;
  max-width: 820px;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(187, 222, 242, 0.1);
  background: linear-gradient(135deg, rgba(2, 12, 30, 0.95) 0%, rgba(2, 8, 15, 0.95) 100%);
  overflow: hidden;
}

.section-icon-cta {
  width: 3.15rem;
  height: 3.15rem;
  margin-bottom: 1.15rem;
}

.cta-panel::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 168, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: ctaOrb 8s ease-in-out infinite;
}

@keyframes ctaOrb {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(187, 222, 242, 0.12);
  pointer-events: none;
}

.cta-panel h2 {
  max-width: 14ch;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.cta-panel p {
  max-width: 58ch;
  margin-bottom: 1.8rem;
}

/* ---- Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.hero-copy.reveal, .hero-system.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

/* ---- Focus States ---- */
:focus-visible {
  outline: 2px solid rgba(187, 222, 242, 0.72);
  outline-offset: 3px;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  h1 { -webkit-text-fill-color: var(--color-ghost-white); background: none; }
  #particle-canvas { display: none; }
}

/* ---- Responsive ---- */
@media (min-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 0.88fr) minmax(540px, 1.12fr);
    gap: clamp(2.5rem, 4vw, 4rem);
    align-items: start;
  }
  .hero-copy { max-width: 34rem; padding-top: 2rem; }
  h1 { max-width: 9ch; font-size: clamp(3.2rem, 4.5vw, 4.8rem); }
  .hero-lede { max-width: 48ch; }
  .hero-system { padding-top: 1rem; }
  .system-viewport { gap: 1rem; }
  .system-canvas-wrap { min-height: 540px; }
}

@media (max-width: 980px) {
  .trust-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-step:nth-child(2)::after {
    display: none;
  }

  .trust-agent-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-agent-card-summary {
    grid-column: 1 / -1;
  }

  .system-layout, .workflow-list { grid-template-columns: 1fr; }
  .site-header { flex-wrap: wrap; }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-top: 0.25rem;
    overflow-x: auto;
  }
  .system-stage-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-proof { width: min(220px, 38%); }
  h1 { max-width: 13ch; }
}

@media (max-width: 640px) {
  .trust-flow-grid,
  .trust-agent-strip {
    grid-template-columns: 1fr;
  }

  .trust-step::after {
    display: none;
  }

  .trust-step-preview {
    min-height: 104px;
  }

  .decision-rings {
    width: 5.25rem;
    height: 5.25rem;
  }

  .section-icon {
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 0.9rem;
  }

  .section-icon svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  .site-header, .section { width: min(calc(100% - 28px), var(--container)); }
  .nav-cta { display: none; }
  .hero { padding-top: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-rail { gap: 0.5rem; font-size: 0.68rem; }
  .hero-rail span { gap: 0.5rem; }
  .hero-rail span:not(:last-child)::after { width: 12px; }
  .button { width: 100%; }
  .system-stage-rail { grid-template-columns: 1fr; }
  .system-canvas-wrap { min-height: 460px; }
  #knowledge-graph { min-height: 460px; }
  .graph-pill { min-height: 30px; padding: 0.35rem 0.65rem; font-size: 0.72rem; }
  .system-proof { position: static; width: auto; margin: 0 1rem 1rem; }
  .system-focus-card { right: 1rem; left: 1rem; max-width: none; }
}
