:root {
  --ink: #18212f;
  --muted: #5f6b7a;
  --line: #d9e0e8;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --blue: #2f66d5;
  --teal: #1f8a83;
  --red: #c9484f;
  --gold: #c9972b;
  --soft-blue: #eaf1ff;
  --soft-teal: #e9f6f4;
  --soft-red: #fff0f0;
  --shadow: 0 24px 70px rgba(24, 33, 47, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(47, 102, 213, 0.08), transparent 34%),
    radial-gradient(circle at 72% 12%, rgba(31, 138, 131, 0.12), transparent 28%),
    radial-gradient(circle at 14% 86%, rgba(201, 151, 43, 0.08), transparent 32%);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 36px;
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid rgba(217, 224, 232, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.contact-list a:hover {
  color: var(--blue);
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #edf1f5;
  border-radius: 8px;
}

.lang-btn {
  min-width: 38px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(24, 33, 47, 0.12);
}

.side-index {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 15;
  width: 170px;
  max-height: calc(100vh - 116px);
  overflow: auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(24, 33, 47, 0.1);
  backdrop-filter: blur(14px);
}

.side-index p {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.side-index a {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 9px 10px 9px 14px;
  border-radius: 7px;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.side-index a::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 15px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

.side-index a span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.2;
}

.side-index a small {
  font-size: 11px;
  line-height: 1.25;
}

.side-index a:hover,
.side-index a.active {
  background: rgba(47, 102, 213, 0.08);
  color: var(--blue);
  border-left-color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 80px 7vw 56px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: 0;
}

.subtitle {
  margin: 22px 0 0;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 750;
  color: var(--blue);
}

.intro {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 760;
}

.btn.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.btn.secondary {
  background: transparent;
}

.profile-panel {
  align-self: end;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.profile-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(24, 33, 47, 0.13);
}

.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 6px;
}

.profile-facts {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.profile-facts p {
  margin: 0;
}

.profile-facts strong {
  color: var(--ink);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.signal-strip div {
  min-height: 132px;
  padding: 28px 7vw;
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip strong {
  display: block;
  font-size: 34px;
  transition: color 220ms ease, transform 220ms ease;
}

.signal-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.signal-strip small {
  display: block;
  margin-top: 12px;
  color: #8b96a5;
  font-size: 12px;
  line-height: 1.35;
}

.signal-strip div:hover strong {
  color: var(--blue);
  transform: translateY(-2px);
}

.capability-strip {
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  align-items: stretch;
}

.signal-strip.capability-strip div {
  min-height: auto;
}

.capability-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.capability-intro strong {
  font-size: 24px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 10px;
}

.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  background: #f3f7fb;
  border: 1px solid rgba(47, 102, 213, 0.14);
  border-radius: 999px;
}

.tag-cloud span:nth-child(3n + 1) {
  background: var(--soft-blue);
}

.tag-cloud span:nth-child(3n + 2) {
  background: var(--soft-teal);
}

.tag-cloud span:nth-child(3n) {
  background: #fff8e7;
  border-color: rgba(201, 151, 43, 0.24);
}

.section {
  padding: 88px 7vw;
  border-bottom: 1px solid var(--line);
}

.section.compact {
  padding-top: 64px;
}

.section-head {
  max-width: 860px;
  margin-bottom: 38px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
}

.case-block {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 36px;
  align-items: stretch;
  margin-top: 24px;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(24, 33, 47, 0.05);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease, box-shadow 220ms ease;
}

.case-block.is-visible,
.note-block.is-visible,
.timeline.is-visible,
.contact-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.case-block:hover {
  box-shadow: 0 18px 46px rgba(24, 33, 47, 0.08);
}

.case-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.case-copy h3,
.note-block h3 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.12;
}

.case-copy p:not(.case-kicker),
.note-block p,
.contact-section p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.case-tags span {
  padding: 8px 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.25;
  background: var(--soft-blue);
  border: 1px solid rgba(47, 102, 213, 0.16);
  border-radius: 999px;
}

.compact-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  min-height: 116px;
  padding: 16px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-card strong,
.metric-card span {
  display: block;
}

.metric-card strong {
  color: var(--blue);
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.05;
}

.metric-card span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.primary-metric {
  background: linear-gradient(135deg, rgba(47, 102, 213, 0.1), rgba(31, 138, 131, 0.08));
  border-color: rgba(47, 102, 213, 0.18);
}

.phone-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  overflow: hidden;
}

.phone-gallery figure {
  position: relative;
  margin: 0;
  padding: 8px;
  background: #f3f6fa;
  border-radius: 8px;
  overflow: hidden;
}

.phone-gallery figure::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 48px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, rgba(246, 250, 253, 0.96), rgba(246, 250, 253, 0.78));
  backdrop-filter: blur(8px);
}

.phone-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.agent-visual {
  display: grid;
  grid-template-columns: minmax(230px, 0.82fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.expanded-visual {
  grid-template-columns: 1fr;
}

.agent-blueprint {
  display: grid;
  gap: 14px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(19, 31, 51, 0.96), rgba(8, 14, 26, 1)),
    #101827;
  border: 1px solid rgba(98, 167, 255, 0.18);
  border-radius: 8px;
  box-shadow: inset 0 0 42px rgba(98, 167, 255, 0.08);
}

.blueprint-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  color: #eff6ff;
}

.blueprint-title small {
  color: #7dd3c7;
  font-size: 11px;
  font-weight: 860;
  text-transform: uppercase;
}

.blueprint-title strong {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.25;
  text-align: right;
}

.blueprint-top {
  display: grid;
  grid-template-columns: 1fr 0.86fr 1fr;
  gap: 12px;
}

.bp-card {
  display: grid;
  gap: 9px;
  align-content: start;
  min-height: 240px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(220, 229, 241, 0.16);
  border-radius: 8px;
}

.bp-card p,
.knowledge-title {
  margin: 0;
  color: #7dd3c7;
  font-size: 12px;
  font-weight: 880;
  text-transform: uppercase;
}

.move-bp {
  background: rgba(201, 151, 43, 0.13);
  border-color: rgba(201, 151, 43, 0.24);
}

.bp-icon {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 9px 10px;
  color: #eef5ff;
  font-size: 12px;
  font-weight: 790;
  line-height: 1.2;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(220, 229, 241, 0.16);
  border-radius: 6px;
}

.bp-card > i {
  justify-self: center;
  width: 2px;
  height: 18px;
  background: rgba(125, 211, 199, 0.45);
}

.bp-card > i::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 12px 0 0 -3px;
  border-right: 2px solid rgba(125, 211, 199, 0.68);
  border-bottom: 2px solid rgba(125, 211, 199, 0.68);
  transform: rotate(45deg);
}

.bp-card b {
  align-self: end;
  padding: 9px 10px;
  color: #7fb6ff;
  font-size: 12px;
  text-align: center;
  background: rgba(47, 102, 213, 0.16);
  border: 1px solid rgba(98, 167, 255, 0.22);
  border-radius: 6px;
}

.bp-focus {
  display: grid;
  place-items: center;
  min-height: 90px;
  color: #f4c35a;
  font-size: 17px;
  font-weight: 870;
  line-height: 1.25;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(244, 195, 90, 0.34);
  border-radius: 8px;
}

.bp-mini-tags {
  display: grid;
  gap: 8px;
}

.bp-mini-tags span {
  padding: 8px 10px;
  color: rgba(238, 245, 255, 0.74);
  font-size: 12px;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(220, 229, 241, 0.13);
  border-radius: 6px;
}

.blueprint-knowledge {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(125, 211, 199, 0.16);
  border-radius: 8px;
}

.knowledge-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.knowledge-card {
  display: grid;
  gap: 8px;
  min-height: 176px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(220, 229, 241, 0.14);
  border-radius: 8px;
}

.knowledge-card strong {
  color: #eef5ff;
  font-size: 14px;
}

.blueprint-evidence {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 12px;
}

.before-after {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.comparison-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--muted);
}

.comparison-card.before {
  background: linear-gradient(135deg, #f8f9fb, #ffffff);
}

.comparison-card.before::before {
  background: #98a4b3;
}

.comparison-card.after {
  background: linear-gradient(135deg, rgba(47, 102, 213, 0.1), rgba(31, 138, 131, 0.08));
  border-color: rgba(47, 102, 213, 0.18);
}

.comparison-card.after::before {
  background: linear-gradient(var(--blue), var(--teal));
}

.comparison-card small {
  color: var(--teal);
  font-size: 11px;
  font-weight: 860;
  text-transform: uppercase;
}

.comparison-card.before small {
  color: #697483;
}

.comparison-card strong {
  font-size: 17px;
  line-height: 1.25;
}

.comparison-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.comparison-card b {
  align-self: end;
  color: var(--blue);
  font-size: 13px;
  line-height: 1.35;
}

.diagnosis-arrow {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 84px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.diagnosis-arrow::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  background: rgba(47, 102, 213, 0.34);
}

.diagnosis-arrow::after {
  content: "";
  position: absolute;
  right: 6px;
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(47, 102, 213, 0.7);
  border-right: 2px solid rgba(47, 102, 213, 0.7);
  transform: rotate(45deg);
}

.diagnosis-arrow span {
  position: relative;
  z-index: 1;
  padding: 4px 7px;
  background: var(--panel);
  border: 1px solid rgba(47, 102, 213, 0.18);
  border-radius: 999px;
}

.knowledge-stack {
  display: grid;
  gap: 16px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(19, 31, 51, 0.96), rgba(8, 14, 26, 1)),
    #101827;
  border: 1px solid rgba(98, 167, 255, 0.18);
  border-radius: 8px;
  box-shadow: inset 0 0 42px rgba(98, 167, 255, 0.08);
  overflow: hidden;
}

.stack-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  color: #eff6ff;
}

.stack-head small {
  color: #7dd3c7;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.stack-head strong {
  font-size: 20px;
}

.stack-flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 0.78fr) minmax(310px, 1.65fr) minmax(0, 0.78fr);
  gap: 14px;
  align-items: stretch;
}

.stack-flow::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(98, 167, 255, 0.2), rgba(71, 197, 164, 0.72), rgba(98, 167, 255, 0.2));
}

.stack-node,
.knowledge-layers {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 185px;
  padding: 16px;
  color: #eef5ff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(220, 229, 241, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.stack-node small {
  color: #7fb6ff;
  font-size: 11px;
  font-weight: 850;
}

.stack-node strong {
  font-size: 16px;
}

.stack-node span,
.knowledge-layers span {
  color: rgba(238, 245, 255, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.knowledge-layers p {
  margin: 0;
  color: #7dd3c7;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.knowledge-layers div {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(125, 211, 199, 0.18);
  border-radius: 8px;
}

.knowledge-layers strong {
  font-size: 14px;
}

.knowledge-layers .car-graph-mini,
.knowledge-layers .kb-tree-mini,
.knowledge-layers .content-mini,
.knowledge-card .car-graph-mini,
.knowledge-card .kb-tree-mini,
.knowledge-card .content-mini {
  min-height: 112px;
}

.car-graph-mini {
  position: relative;
  overflow: hidden;
}

.car-graph-mini::before,
.car-graph-mini::after {
  content: "";
  position: absolute;
  inset: 50% 18px auto;
  height: 1px;
  background: rgba(125, 211, 199, 0.38);
  transform: rotate(18deg);
}

.car-graph-mini::after {
  transform: rotate(-18deg);
}

.car-node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 28px;
  padding: 5px 8px;
  color: #eef5ff;
  font-size: 10px;
  font-weight: 820;
  text-align: center;
  background: rgba(47, 102, 213, 0.34);
  border: 1px solid rgba(98, 167, 255, 0.28);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(98, 167, 255, 0.16);
}

.car-node.center {
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  min-width: 78px;
  background: rgba(31, 138, 131, 0.44);
}

.car-node.n1 { left: 7%; top: 25%; }
.car-node.n2 { right: 10%; top: 18%; }
.car-node.n3 { left: 12%; bottom: 16%; }
.car-node.n4 { right: 7%; bottom: 18%; }

.kb-tree-mini {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.kb-tree-mini strong,
.content-mini strong {
  grid-column: 1 / -1;
}

.kb-tree-mini::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 36px;
  bottom: 22px;
  width: 1px;
  background: rgba(125, 211, 199, 0.34);
}

.kb-tree-mini span,
.content-mini span {
  display: grid;
  place-items: center;
  min-height: 26px;
  padding: 4px 7px;
  color: rgba(238, 245, 255, 0.82);
  font-size: 10px;
  font-weight: 760;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(220, 229, 241, 0.13);
  border-radius: 6px;
}

.content-mini {
  align-content: start;
}

.content-mini span {
  justify-self: stretch;
  margin-left: calc(var(--stack-offset, 0) * 8px);
}

.content-mini span:nth-child(2) { --stack-offset: 0; }
.content-mini span:nth-child(3) { --stack-offset: 1; }
.content-mini span:nth-child(4) { --stack-offset: 2; }

.agent-before-after .comparison-card {
  min-height: 170px;
}

.process-board {
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.board-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.board-title small {
  color: var(--teal);
  font-size: 11px;
  font-weight: 860;
  text-transform: uppercase;
}

.board-title strong {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.25;
  text-align: right;
}

.process-lanes {
  display: grid;
  grid-template-columns: 1fr 0.78fr 1fr;
  gap: 12px;
}

.lane,
.scenario-lane,
.lead-lane {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.lane p,
.scenario-lane p,
.lead-lane p,
.tag-before p,
.tag-after p {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 880;
  text-transform: uppercase;
}

.lane-before,
.before-scenario,
.before-lead,
.tag-before {
  background: linear-gradient(135deg, #ffffff, #f4f6f8);
}

.lane-after,
.after-scenario,
.after-lead,
.tag-after {
  background: linear-gradient(135deg, rgba(47, 102, 213, 0.08), rgba(31, 138, 131, 0.08));
  border-color: rgba(47, 102, 213, 0.18);
}

.lane-diagnosis {
  background: #fff8e7;
  border-color: rgba(201, 151, 43, 0.28);
}

.mini-flow,
.scenario-chain,
.lead-map {
  position: relative;
  display: grid;
  gap: 10px;
}

.diagram-node,
.mini-flow span,
.scenario-chain span,
.lead-map span,
.tag-stack span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 790;
  line-height: 1.25;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(24, 33, 47, 0.04);
}

.icon-node::before,
.bp-icon::before,
.value-tile::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 7px;
  background: currentColor;
  opacity: 0.84;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.user-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-7 8c.7-3.8 3.2-6 7-6s6.3 2.2 7 6H5Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-7 8c.7-3.8 3.2-6 7-6s6.3 2.2 7 6H5Z'/%3E%3C/svg%3E");
}

.platform-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5h16v4H4V5Zm0 6h7v8H4v-8Zm9 0h7v8h-7v-8Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5h16v4H4V5Zm0 6h7v8H4v-8Zm9 0h7v8h-7v-8Z'/%3E%3C/svg%3E");
}

.dealer-icon::before,
.route-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 11 7.4 6h9.2L19 11l1 1v5h-2a2 2 0 0 1-4 0h-4a2 2 0 0 1-4 0H4v-5l1-1Zm3.3-3-1.4 3h10.2l-1.4-3H8.3ZM8 15.8a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4Zm8 0a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 11 7.4 6h9.2L19 11l1 1v5h-2a2 2 0 0 1-4 0h-4a2 2 0 0 1-4 0H4v-5l1-1Zm3.3-3-1.4 3h10.2l-1.4-3H8.3ZM8 15.8a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4Zm8 0a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4Z'/%3E%3C/svg%3E");
}

.score-icon::before,
.predict-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9h-2a7 7 0 1 1-7-7V3Zm1 1v9H4v-2h7V4h2Zm3 3 1.4 1.4-3 3L13 10l3-3Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9h-2a7 7 0 1 1-7-7V3Zm1 1v9H4v-2h7V4h2Zm3 3 1.4 1.4-3 3L13 10l3-3Z'/%3E%3C/svg%3E");
}

.segment-icon::before,
.allocate-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h7v7H4V4Zm9 0h7v7h-7V4ZM4 13h7v7H4v-7Zm9 0h7v7h-7v-7Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h7v7H4V4Zm9 0h7v7h-7V4ZM4 13h7v7H4v-7Zm9 0h7v7h-7v-7Z'/%3E%3C/svg%3E");
}

.reduce-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9h-2a7 7 0 1 1-2.05-4.95L14 10h7V3l-2.6 2.6A8.96 8.96 0 0 0 12 3Zm-1 5h2v4h4v2h-6V8Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9h-2a7 7 0 1 1-2.05-4.95L14 10h7V3l-2.6 2.6A8.96 8.96 0 0 0 12 3Zm-1 5h2v4h4v2h-6V8Z'/%3E%3C/svg%3E");
}

.model-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 4 6v12l8 4 8-4V6l-8-4Zm0 2.2L17.8 7 12 9.8 6.2 7 12 4.2ZM6 8.7l5 2.5v7.9l-5-2.5V8.7Zm7 10.4v-7.9l5-2.5v7.9l-5 2.5Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 4 6v12l8 4 8-4V6l-8-4Zm0 2.2L17.8 7 12 9.8 6.2 7 12 4.2ZM6 8.7l5 2.5v7.9l-5-2.5V8.7Zm7 10.4v-7.9l5-2.5v7.9l-5 2.5Z'/%3E%3C/svg%3E");
}

.intent-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4a8 8 0 0 0-8 8h3l-4 4-4-4h3a10 10 0 1 1 3 7.1l1.4-1.4A8 8 0 1 0 12 4Zm-1 4h2v5h4v2h-6V8Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4a8 8 0 0 0-8 8h3l-4 4-4-4h3a10 10 0 1 1 3 7.1l1.4-1.4A8 8 0 1 0 12 4Zm-1 4h2v5h4v2h-6V8Z'/%3E%3C/svg%3E");
}

.graph-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 6a3 3 0 1 1 1.8 2.75l2.1 3.15a3 3 0 0 1 2.2 0l2.1-3.15A3 3 0 1 1 17 10a3 3 0 0 1-.2 0l-2.1 3.15a3 3 0 1 1-5.4 0L7.2 10A3 3 0 0 1 7 10a3 3 0 0 1 0-4Zm10 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM7 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm5 8a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 6a3 3 0 1 1 1.8 2.75l2.1 3.15a3 3 0 0 1 2.2 0l2.1-3.15A3 3 0 1 1 17 10a3 3 0 0 1-.2 0l-2.1 3.15a3 3 0 1 1-5.4 0L7.2 10A3 3 0 0 1 7 10a3 3 0 0 1 0-4Zm10 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM7 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm5 8a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z'/%3E%3C/svg%3E");
}

.mini-flow i,
.scenario-chain i,
.lead-map i {
  justify-self: center;
  width: 2px;
  height: 18px;
  background: rgba(47, 102, 213, 0.42);
}

.mini-flow i::after,
.scenario-chain i::after,
.lead-map i::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 12px 0 0 -3px;
  border-right: 2px solid rgba(47, 102, 213, 0.62);
  border-bottom: 2px solid rgba(47, 102, 213, 0.62);
  transform: rotate(45deg);
}

.weak-node {
  color: #687486;
  background: #f2f4f7;
}

.danger-node {
  color: var(--red);
  background: var(--soft-red);
  border-color: #ffd4d7;
}

.strong-node {
  color: var(--blue);
  background: var(--soft-blue);
  border-color: rgba(47, 102, 213, 0.24);
}

.success-node {
  color: var(--teal);
  background: var(--soft-teal);
  border-color: rgba(31, 138, 131, 0.26);
}

.lane b,
.scenario-lane b,
.lead-lane b,
.tag-after b {
  align-self: end;
  display: block;
  padding: 10px 12px;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  background: rgba(47, 102, 213, 0.08);
  border: 1px solid rgba(47, 102, 213, 0.14);
  border-radius: 6px;
}

.big-question {
  display: grid;
  place-items: center;
  min-height: 84px;
  color: var(--gold);
  font-size: 19px;
  font-weight: 870;
  text-align: center;
  background: var(--panel);
  border: 1px dashed rgba(201, 151, 43, 0.45);
  border-radius: 8px;
}

.diagnosis-list {
  display: grid;
  gap: 7px;
}

.diagnosis-list span {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(201, 151, 43, 0.18);
  border-radius: 6px;
}

.scenario-lanes,
.lead-lanes {
  display: grid;
  gap: 14px;
}

.scenario-chain,
.lead-map {
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
}

.scenario-chain i,
.lead-map i {
  width: auto;
  height: 2px;
}

.scenario-chain i::after,
.lead-map i::after {
  width: 8px;
  height: 8px;
  margin: -3px 0 0 auto;
  transform: rotate(-45deg);
}

.supplement-box,
.truth-box {
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
  border-radius: 6px;
}

.supplement-box {
  background: var(--soft-red);
  border: 1px dashed #ffc4c8;
}

.truth-box {
  color: var(--teal);
  background: var(--soft-teal);
  border: 1px dashed rgba(31, 138, 131, 0.32);
}

.knowledge-stack.process-board {
  background:
    linear-gradient(135deg, rgba(19, 31, 51, 0.96), rgba(8, 14, 26, 1)),
    #101827;
  border-color: rgba(98, 167, 255, 0.18);
}

.agent-architecture {
  position: relative;
  min-height: 260px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(47, 102, 213, 0.1), rgba(31, 138, 131, 0.1)),
    #f7fbff;
  border: 1px solid rgba(47, 102, 213, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.agent-architecture::before,
.agent-architecture::after {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px dashed rgba(47, 102, 213, 0.24);
  border-radius: 50%;
  animation: spinRing 14s linear infinite;
}

.agent-architecture::after {
  inset: 72px;
  border-color: rgba(31, 138, 131, 0.26);
  animation-duration: 18s;
  animation-direction: reverse;
}

.ai-core {
  position: absolute;
  inset: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  margin: -58px 0 0 -58px;
  color: white;
  font-weight: 850;
  text-align: center;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 50%;
  box-shadow: 0 18px 38px rgba(47, 102, 213, 0.24);
}

.orbit {
  position: absolute;
  z-index: 3;
  min-width: 80px;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.orbit-a { top: 28px; left: 50%; transform: translateX(-50%); }
.orbit-b { right: 18px; top: 50%; transform: translateY(-50%); }
.orbit-c { bottom: 28px; left: 50%; transform: translateX(-50%); }
.orbit-d { left: 18px; top: 50%; transform: translateY(-50%); }

.query-examples {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.query-examples p {
  margin: 0 0 2px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.query-examples div {
  padding: 12px 13px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  background: var(--panel);
  border: 1px solid rgba(217, 224, 232, 0.86);
  border-radius: 8px;
}

.compact-phone-gallery {
  grid-column: 1 / -1;
  gap: 10px;
}

.compact-phone-gallery figure {
  max-height: 250px;
}

.compact-phone-gallery img {
  height: 250px;
  object-fit: cover;
  object-position: top center;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.platform-visual {
  display: grid;
  gap: 14px;
}

.integrated-process {
  min-height: 100%;
}

.one-graph-table {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr 0.7fr;
  gap: 10px;
}

.graph-column,
.outcome-column {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 260px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.before-column {
  background: linear-gradient(135deg, #ffffff, #f4f6f8);
}

.move-column {
  background: #fff8e7;
  border-color: rgba(201, 151, 43, 0.25);
}

.after-column,
.outcome-column {
  background: linear-gradient(135deg, rgba(47, 102, 213, 0.08), rgba(31, 138, 131, 0.08));
  border-color: rgba(47, 102, 213, 0.18);
}

.graph-column p,
.outcome-column p {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 880;
  text-transform: uppercase;
}

.horizontal-flow {
  display: grid;
  gap: 9px;
}

.horizontal-flow span {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
  text-align: center;
  line-height: 1.25;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.horizontal-flow i {
  justify-self: center;
  width: 2px;
  height: 17px;
  background: rgba(47, 102, 213, 0.36);
}

.horizontal-flow i::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 11px 0 0 -3px;
  border-right: 2px solid rgba(47, 102, 213, 0.6);
  border-bottom: 2px solid rgba(47, 102, 213, 0.6);
  transform: rotate(45deg);
}

.config-console {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px dashed rgba(201, 151, 43, 0.28);
  border-radius: 8px;
}

.config-console span {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 8px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 790;
  text-align: center;
  background: var(--panel);
  border: 1px solid rgba(217, 224, 232, 0.84);
  border-radius: 6px;
}

.outcome-column strong {
  align-self: center;
  color: var(--blue);
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 0.95;
}

.outcome-column span {
  align-self: end;
  padding: 11px 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.3;
  text-align: center;
  background: var(--soft-teal);
  border: 1px solid rgba(31, 138, 131, 0.2);
  border-radius: 6px;
}

.request-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h12l4 4v12H4V4Zm11 1.8V9h3.2L15 5.8ZM7 11h10v2H7v-2Zm0 4h8v2H7v-2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h12l4 4v12H4V4Zm11 1.8V9h3.2L15 5.8ZM7 11h10v2H7v-2Zm0 4h8v2H7v-2Z'/%3E%3C/svg%3E");
}

.delivery-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: white;
  background: linear-gradient(135deg, var(--ink), #244b8f);
  border-radius: 8px;
}

.delivery-badge strong {
  white-space: nowrap;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

.delivery-badge span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.flow-diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-content: center;
  min-height: 240px;
  padding: 28px;
  background: linear-gradient(135deg, var(--soft-blue), var(--soft-teal));
  border-radius: 8px;
  overflow: hidden;
}

.flow-diagram::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 50%;
  height: 2px;
  background: rgba(47, 102, 213, 0.38);
}

.flow-node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(47, 102, 213, 0.18);
  border-radius: 8px;
  text-align: center;
  font-weight: 780;
  line-height: 1.35;
}

.flow-node i {
  display: inline-grid;
  place-items: center;
  justify-self: center;
  width: 34px;
  height: 34px;
  color: white;
  font-style: normal;
  font-size: 12px;
  background: var(--blue);
  border-radius: 50%;
}

.flow-node span {
  display: block;
}

.platform-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.platform-modules span {
  padding: 8px 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.graph-panel {
  min-height: 420px;
  background:
    linear-gradient(135deg, rgba(19, 31, 51, 0.96), rgba(8, 14, 26, 1)),
    #101827;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(98, 167, 255, 0.18);
  box-shadow: inset 0 0 42px rgba(98, 167, 255, 0.08);
}

.graph-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.1fr);
  gap: 12px;
  padding: 14px 14px 0;
  align-items: stretch;
}

.tag-before,
.tag-after {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 14px;
  border: 1px solid rgba(220, 229, 241, 0.15);
  border-radius: 8px;
}

.tag-before {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255, 116, 122, 0.08) 0 8px, rgba(255, 255, 255, 0.03) 8px 16px),
    rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 116, 122, 0.22);
  overflow: hidden;
}

.tag-before::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 78px;
  height: 54px;
  opacity: 0.38;
  background:
    linear-gradient(90deg, rgba(255, 116, 122, 0.6) 1px, transparent 1px) 0 0 / 19px 18px,
    linear-gradient(rgba(255, 116, 122, 0.55) 1px, transparent 1px) 0 0 / 19px 18px;
  transform: rotate(-6deg);
}

.tag-before p {
  color: #ffadb2;
}

.tag-after.graph-outcome {
  align-content: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(71, 197, 164, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(47, 102, 213, 0.24), rgba(31, 138, 131, 0.16));
  border-color: rgba(125, 211, 199, 0.26);
}

.graph-outcome strong {
  color: #eff6ff;
  font-size: 18px;
  line-height: 1.2;
}

.graph-proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.graph-proof span {
  display: block;
  padding: 9px 10px;
  color: #dffcf7;
  font-size: 12px;
  font-weight: 790;
  line-height: 1.25;
  background: rgba(71, 197, 164, 0.14);
  border: 1px solid rgba(125, 211, 199, 0.2);
  border-radius: 6px;
}

.graph-process p {
  color: #7dd3c7;
}

.graph-process .tag-before p {
  color: #ffadb2;
}

.tag-stack {
  display: grid;
  gap: 8px;
}

.tag-stack span {
  color: #eef5ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(220, 229, 241, 0.15);
}

.tag-stack .weak-node {
  color: #d8e0ea;
  background: rgba(255, 255, 255, 0.06);
}

.tag-stack .danger-node {
  color: #ffd9dc;
  background: rgba(201, 72, 79, 0.18);
  border-color: rgba(255, 116, 122, 0.22);
}

.tag-network {
  position: relative;
  min-height: 108px;
}

.tag-network::before {
  content: "";
  position: absolute;
  inset: 16px 26px;
  border: 1px dashed rgba(125, 211, 199, 0.32);
  border-radius: 50%;
}

.tag-network span {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 76px;
  min-height: 36px;
  padding: 7px 10px;
  color: #eef5ff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(47, 102, 213, 0.34);
  border: 1px solid rgba(98, 167, 255, 0.28);
  border-radius: 999px;
}

.tag-network span:nth-child(1) { left: 6%; top: 4px; }
.tag-network span:nth-child(2) { right: 8%; top: 10px; background: rgba(31, 138, 131, 0.34); }
.tag-network span:nth-child(3) { left: 36%; top: 42px; background: rgba(244, 195, 90, 0.28); }
.tag-network span:nth-child(4) { left: 4%; bottom: 0; background: rgba(255, 116, 122, 0.28); }
.tag-network span:nth-child(5) { right: 6%; bottom: 4px; }

.graph-transform-arrow {
  display: grid;
  place-items: center;
  min-width: 86px;
  color: #7fb6ff;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.graph-transform-arrow::before {
  content: "";
  width: 76px;
  height: 2px;
  margin-bottom: -20px;
  background: rgba(98, 167, 255, 0.36);
}

.graph-transform-arrow::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: -15px;
  border-top: 2px solid rgba(98, 167, 255, 0.68);
  border-right: 2px solid rgba(98, 167, 255, 0.68);
  transform: rotate(45deg);
  justify-self: end;
}

#knowledgeGraph {
  display: block;
  width: 100%;
  height: 420px;
}

.graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px 18px;
  color: #dce5f1;
  font-size: 13px;
}

.graph-legend span {
  display: inline-flex;
  align-items: center;
}

.graph-legend em {
  font-style: normal;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
}

.dot.topic { background: #62a7ff; }
.dot.scene { background: #47c5a4; }
.dot.entity { background: #f4c35a; }
.dot.weight { background: #ff747a; }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lead-chain {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-left: 0;
}

.vertical-comparison {
  grid-template-columns: 1fr;
  gap: 10px;
}

.lead-business-flow {
  display: grid;
  gap: 9px;
  padding: 14px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.flow-row::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 2px;
  background: rgba(152, 164, 179, 0.32);
}

.flow-row span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 780;
  line-height: 1.25;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.muted-flow span {
  color: #697483;
}

.active-flow span {
  color: var(--ink);
  background: var(--soft-teal);
  border-color: rgba(31, 138, 131, 0.22);
}

.muted-flow .chaos-box {
  color: var(--red);
  font-size: 22px;
  background: var(--soft-red);
  border-color: #ffd4d7;
}

.lead-chain::before {
  display: none;
}

.lead-stage {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lead-stage::before {
  display: none;
}

.lead-stage small {
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.lead-stage strong {
  font-size: 15px;
}

.lead-stage span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.decision-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.decision-strip .lead-stage {
  min-height: 92px;
  align-content: center;
  text-align: center;
}

.decision-strip .lead-stage strong {
  font-size: 13px;
}

.warning-stage {
  background: var(--soft-red);
  border-color: #ffd4d7;
}

.warning-stage::before {
  background: var(--red);
}

.highlight-stage {
  background: var(--soft-teal);
  border-color: rgba(31, 138, 131, 0.24);
}

.highlight-stage::before {
  background: var(--teal);
}

.impact-card {
  min-height: 148px;
  padding: 18px;
  background: linear-gradient(135deg, #fff4f4, #fffafa);
  border: 1px solid #ffd4d7;
  border-radius: 8px;
}

.impact-card.wide {
  grid-column: span 2;
}

.impact-card small,
.impact-card strong,
.impact-card span {
  display: block;
}

.impact-card small {
  color: var(--red);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.impact-card strong {
  margin-top: 8px;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.05;
  color: var(--red);
}

.impact-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.lead-case .impact-grid {
  align-content: start;
}

.lead-case .impact-card {
  min-height: 126px;
  padding: 16px;
}

.lead-case .impact-card strong {
  font-size: clamp(22px, 2.2vw, 31px);
}

.value-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
  background: linear-gradient(135deg, #f7fbff, #ffffff);
  border: 1px solid rgba(47, 102, 213, 0.16);
  border-radius: 8px;
  box-shadow: inset 0 0 34px rgba(47, 102, 213, 0.04);
}

.value-head {
  display: grid;
  gap: 8px;
}

.value-head small {
  color: var(--teal);
  font-size: 11px;
  font-weight: 860;
  text-transform: uppercase;
}

.value-head strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.12;
}

.value-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.value-tile {
  display: grid;
  align-content: start;
  min-height: 170px;
  padding: 16px;
  color: var(--blue);
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.value-tile strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.value-tile span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proof-row span {
  padding: 8px 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.25;
  background: var(--soft-teal);
  border: 1px solid rgba(31, 138, 131, 0.2);
  border-radius: 999px;
}

.case-note {
  grid-column: 2;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

#additional-work .two-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-block {
  min-height: 220px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease, box-shadow 220ms ease;
}

.note-block:hover {
  box-shadow: 0 16px 42px rgba(24, 33, 47, 0.07);
}

.timeline {
  display: grid;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.timeline > div,
.timeline details > div {
  display: grid;
  grid-template-columns: 180px 280px 1fr;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--teal);
  font-weight: 750;
}

.timeline strong {
  font-size: 17px;
}

.timeline span {
  color: var(--muted);
  line-height: 1.5;
}

.timeline details {
  border-bottom: 0;
}

.timeline summary {
  padding: 18px 24px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 760;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
  background: #f3f7f5;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 730;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 7vw 36px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1120px) {
  .side-index {
    display: none;
  }

  .hero,
  .case-block,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    max-width: 360px;
    align-self: start;
  }

  .signal-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-strip,
  .agent-visual,
  .before-after,
  .process-lanes,
  .stack-flow {
    grid-template-columns: 1fr;
  }

  .diagnosis-arrow {
    min-height: 42px;
  }

  .diagnosis-arrow::before {
    left: 50%;
    right: auto;
    top: 2px;
    bottom: 2px;
    width: 2px;
    height: auto;
  }

  .diagnosis-arrow::after {
    right: auto;
    left: calc(50% - 5px);
    top: auto;
    bottom: 0;
    transform: rotate(135deg);
  }

  .flow-diagram {
    grid-template-columns: 1fr;
  }

  .flow-diagram::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .nav {
    display: none;
  }

  .hero,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    gap: 30px;
    padding-top: 54px;
  }

  h1 {
    font-size: 48px;
  }

  .subtitle {
    font-size: 22px;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip div {
    min-height: 104px;
    padding: 22px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tag-cloud {
    gap: 8px;
  }

  .tag-cloud span {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .case-block {
    padding: 18px;
  }

  .case-note {
    grid-column: auto;
  }

  .phone-gallery,
  .impact-grid,
  .value-tiles,
  .two-col,
  .case-metrics,
  .compact-metrics {
    grid-template-columns: 1fr;
  }

  #additional-work .two-col,
  .knowledge-cards,
  .blueprint-top,
  .blueprint-evidence,
  .one-graph-table,
  .decision-strip {
    grid-template-columns: 1fr;
  }

  .compact-phone-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compact-phone-gallery figure {
    max-height: 190px;
  }

  .compact-phone-gallery img {
    height: 190px;
  }

  .delivery-badge {
    align-items: flex-start;
    flex-direction: column;
  }

  .knowledge-stack {
    padding: 16px;
  }

  .stack-head {
    display: grid;
  }

  .stack-flow::before {
    display: none;
  }

  .graph-story {
    grid-template-columns: 1fr;
  }

  .graph-transform-arrow {
    min-height: 42px;
  }

  .graph-transform-arrow::before,
  .graph-transform-arrow::after {
    display: none;
  }

  .flow-row {
    grid-template-columns: 1fr;
  }

  .flow-row::before {
    display: none;
  }

  .board-title {
    display: grid;
  }

  .board-title strong {
    text-align: left;
  }

  .scenario-chain,
  .lead-map {
    grid-template-columns: 1fr;
  }

  .scenario-chain i,
  .lead-map i {
    justify-self: center;
    width: 2px;
    height: 18px;
  }

  .scenario-chain i::after,
  .lead-map i::after {
    margin: 12px 0 0 -3px;
    transform: rotate(45deg);
  }

  .impact-card.wide {
    grid-column: auto;
  }

  .timeline > div,
  .timeline details > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer {
    display: grid;
    padding-left: 20px;
    padding-right: 20px;
  }
}
