:root {
  --portal-navy: #061b3a;
  --portal-ink: #11233d;
  --portal-muted: #5d6f87;
  --portal-blue: #0b64df;
  --portal-cyan: #0ea8d5;
  --portal-green: #12845e;
  --portal-orange: #d97b1e;
  --portal-soft: #f4f8fc;
  --portal-line: #dbe5f0;
  --portal-white: #fff;
}

.portal-demo-page {
  color: var(--portal-ink);
  background: #fff;
}

.portal-demo-page .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.draft-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #cbd8e7;
  border-radius: 999px;
  color: var(--portal-muted);
  background: #f7fafd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.portal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--portal-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--portal-cyan);
}

.portal-kicker--light {
  color: #bfe7ff;
}

.portal-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 0;
  color: #fff;
  background:
    radial-gradient(circle at 82% 15%, rgba(14,168,213,.24), transparent 28%),
    radial-gradient(circle at 18% 70%, rgba(11,100,223,.25), transparent 35%),
    linear-gradient(135deg, #061b3a 0%, #0a2d5f 62%, #063d61 100%);
}

.portal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.portal-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr);
  gap: 72px;
  align-items: center;
  padding-bottom: 70px;
}

.portal-hero .portal-kicker {
  color: #7ed8f4;
}

.portal-hero-copy h1 {
  max-width: 760px;
  margin: 20px 0 22px;
  color: #fff;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.portal-lead {
  max-width: 720px;
  margin: 0;
  color: #cbd9ea;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.65;
}

.portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.portal-text-button {
  padding: 10px 2px;
  border: 0;
  color: #dcedfa;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.portal-text-button span {
  margin-left: 6px;
  color: #7ed8f4;
}

.portal-method-note {
  max-width: 680px;
  margin: 28px 0 0;
  padding-left: 16px;
  border-left: 2px solid rgba(126,216,244,.55);
  color: #9fb2c9;
  font-size: 14px;
  line-height: 1.55;
}

.hero-system {
  position: relative;
  min-height: 520px;
  isolation: isolate;
}

.hero-system-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 158px;
  height: 158px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  text-align: center;
  background: rgba(6,27,58,.84);
  box-shadow: 0 24px 70px rgba(0,0,0,.28), inset 0 0 0 12px rgba(14,168,213,.08);
  backdrop-filter: blur(10px);
}

.hero-system-core span,
.hero-system-core strong {
  display: block;
}

.hero-system-core span {
  align-self: end;
  color: #7ed8f4;
  font-size: 32px;
  font-weight: 800;
}

.hero-system-core strong {
  align-self: start;
  margin-top: 3px;
  color: #fff;
  font-size: 13px;
}

.hero-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(126,216,244,.28);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.hero-orbit-a { width: 290px; height: 210px; }
.hero-orbit-b { width: 430px; height: 320px; }
.hero-orbit-c { width: 560px; height: 420px; opacity: .55; }

.hero-node {
  position: absolute;
  z-index: 5;
  min-width: 142px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(9,39,80,.88);
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
}

.hero-node::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48c8ee;
  box-shadow: 0 0 0 5px rgba(72,200,238,.14);
}

.hero-node span,
.hero-node strong { display: block; }
.hero-node span { color: #fff; font-weight: 800; }
.hero-node strong { margin-top: 4px; color: #a9bdd2; font-size: 12px; }
.hero-node-1 { left: 2%; top: 18%; }
.hero-node-1::before { right: -25px; bottom: -6px; }
.hero-node-2 { right: 0; top: 22%; }
.hero-node-2::before { left: -25px; bottom: -4px; }
.hero-node-3 { right: 4%; bottom: 17%; }
.hero-node-3::before { left: -24px; top: -5px; }
.hero-node-4 { left: 5%; bottom: 13%; }
.hero-node-4::before { right: -24px; top: -5px; }

.portal-metrics {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(3,20,45,.52);
  backdrop-filter: blur(12px);
}

.portal-metrics > div {
  padding: 24px 20px 26px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.portal-metrics > div:last-child { border-right: 0; }
.portal-metrics strong,
.portal-metrics span { display: block; }
.portal-metrics strong { color: #fff; font-size: clamp(23px, 2vw, 31px); line-height: 1.1; }
.portal-metrics span { margin-top: 6px; color: #9eb2c9; font-size: 13px; }

.portal-section {
  padding: 104px 0;
}

.portal-section--soft {
  background: var(--portal-soft);
}

.portal-section--map {
  padding-bottom: 90px;
  background: linear-gradient(180deg, #fff 0%, #f7fafd 100%);
}

.portal-section-heading {
  margin-bottom: 36px;
}

.portal-section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .68fr);
  gap: 56px;
  align-items: end;
}

.portal-section-heading h2,
.governance-grid h2,
.portal-cta h2 {
  margin: 15px 0 0;
  color: var(--portal-navy);
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.portal-section-heading > p,
.governance-grid > div > p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 18px;
  line-height: 1.65;
}

.portal-explorer {
  overflow: hidden;
  border: 1px solid #d7e2ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(21,55,91,.09);
}

.explorer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
  border-bottom: 1px solid #e0e8f0;
  background: #f8fafc;
}

.explorer-tabs,
.explorer-actions,
.funnel-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.explorer-tab,
.funnel-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--portal-muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.explorer-tab.is-active,
.funnel-tabs button.is-active {
  border-color: #bcd3ee;
  color: var(--portal-blue);
  background: #eef6ff;
}

.explorer-actions label {
  color: var(--portal-muted);
  font-size: 13px;
  font-weight: 700;
}

.explorer-actions select {
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid #cbd8e5;
  border-radius: 7px;
  color: var(--portal-ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.explorer-play,
.explorer-reset {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.explorer-play {
  border: 1px solid var(--portal-blue);
  color: #fff;
  background: var(--portal-blue);
}

.explorer-reset {
  border: 1px solid transparent;
  color: var(--portal-muted);
  background: transparent;
}

.portal-map {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #fbfdff;
}

.map-phase {
  position: absolute;
  top: 52px;
  bottom: 110px;
  padding: 14px 12px;
  border-right: 1px solid rgba(100,128,158,.12);
  color: #718399;
  background: rgba(231,239,247,.35);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.map-phase span {
  margin-right: 5px;
  color: #a0afbf;
}

.phase-channels { left: 0; width: 17%; }
.phase-routing { left: 17%; width: 15%; }
.phase-sales { left: 32%; width: 18%; }
.phase-service { left: 50%; width: 19%; }
.phase-quality { left: 69%; width: 20%; }
.phase-return { left: 89%; width: 11%; border-right: 0; }

.map-connections {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-edge {
  fill: none;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
  opacity: .66;
  transition: opacity .25s ease, stroke-width .25s ease;
}

.edge-sale { stroke: #2984e8; }
.edge-service { stroke: #df8126; }
.edge-quality { stroke: #1c9a71; }
.edge-system { stroke: #8fa0b2; stroke-dasharray: 5 6; opacity: .38; }
.map-edge.is-active { opacity: 1; stroke-width: 3.4; }
.map-edge.is-muted { opacity: .08; }

.flow-particle {
  stroke: #fff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 3px 6px rgba(6,27,58,.3));
}

.flow-particle.is-sale { fill: #2984e8; }
.flow-particle.is-service { fill: #df8126; }
.flow-particle.is-quality { fill: #1c9a71; }

.map-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  width: 14.5%;
  min-width: 132px;
  min-height: 62px;
  padding: 11px 13px 10px 15px;
  transform: translate(-50%, -50%);
  border: 1px solid #c8d7e7;
  border-radius: 8px;
  color: var(--portal-ink);
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 20px rgba(17,49,83,.08);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, opacity .22s ease, border-color .18s ease, box-shadow .18s ease;
}

.map-node::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #2984e8;
}

.map-node:nth-of-type(n+12)::before { background: #df8126; }
.map-node[data-node="quality"]::before,
.map-node[data-node="nps"]::before,
.map-node[data-node="repeat"]::before { background: #1c9a71; }
.map-node--system::before { background: #8fa0b2; }

.map-node strong,
.map-node small {
  display: block;
  overflow-wrap: normal;
  word-break: normal;
}

.map-node strong {
  padding-right: 25px;
  font-size: 13px;
  line-height: 1.2;
}

.map-node small {
  margin-top: 4px;
  color: #6f8195;
  font-size: 11px;
  line-height: 1.25;
}

.node-count {
  position: absolute;
  right: 9px;
  top: 10px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  color: #0758b3;
  background: #e5f2ff;
  font-size: 11px;
  font-weight: 900;
}

.map-node:hover,
.map-node:focus-visible,
.map-node.is-selected {
  border-color: #73afea;
  box-shadow: 0 12px 28px rgba(11,100,223,.16);
}

.map-node.is-muted { opacity: .24; }
.map-node--return { width: 11.5%; min-width: 106px; }
.map-node--system { width: 15.5%; min-height: 58px; background: #f2f6fa; }
.system-caption { position: absolute; left: 2%; bottom: 86px; z-index: 2; color: #7c8da0; font-size: 12px; font-weight: 800; text-transform: uppercase; }

.node-detail {
  padding: 24px 26px 26px;
  border-top: 1px solid #dde6ef;
  background: #fff;
}

.node-detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.node-detail-head span,
.node-detail-grid span,
.panel-label,
.funnel-summary span {
  display: block;
  color: #6d8095;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.node-detail-head h3 {
  margin: 5px 0 0;
  color: var(--portal-navy);
  font-size: 24px;
}

.node-detail-head > strong {
  padding: 7px 10px;
  border-radius: 999px;
  color: #0758b3;
  background: #e8f3ff;
  font-size: 12px;
}

.node-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 28px;
  margin-top: 20px;
}

.node-detail-grid p {
  margin: 6px 0 0;
  color: #354a63;
  font-size: 15px;
  line-height: 1.55;
}

.node-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.node-tags span {
  padding: 6px 9px;
  border: 1px solid #d9e4ef;
  border-radius: 999px;
  color: #52677e;
  background: #f8fafc;
  font-size: 12px;
}

.mobile-route { display: none; }

.portal-explorer[data-view="organization"] .map-edge,
.portal-explorer[data-view="organization"] .map-node[data-node="web"],
.portal-explorer[data-view="organization"] .map-node[data-node="phone"],
.portal-explorer[data-view="organization"] .map-node[data-node="chat"] { opacity: .12; }

.portal-explorer[data-view="organization"] .map-node:not([data-node="web"]):not([data-node="phone"]):not([data-node="chat"]):not(.map-node--system) {
  border-color: #9fb9d6;
  background: #f7fbff;
}

.portal-explorer[data-view="systems"] .map-node:not(.map-node--system),
.portal-explorer[data-view="systems"] .map-edge:not(.edge-system) { opacity: .12; }

.portal-explorer[data-view="systems"] .map-node--system {
  border-color: #7298be;
  background: #eef5fb;
}

.funnel-lab {
  overflow: hidden;
  border: 1px solid #d8e3ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(23,53,84,.07);
}

.funnel-tabs {
  padding: 16px 18px;
  border-bottom: 1px solid #e2e9f0;
  background: #f8fafc;
}

.funnel-summary {
  display: grid;
  grid-template-columns: 1.4fr .8fr .9fr;
  gap: 1px;
  background: #dfe7ef;
}

.funnel-summary > div {
  padding: 20px 22px;
  background: #fff;
}

.funnel-summary strong {
  display: block;
  margin-top: 7px;
  color: #263d58;
  font-size: 15px;
  line-height: 1.5;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(var(--stage-count, 6), minmax(150px, 1fr));
  gap: 10px;
  padding: 22px;
  overflow-x: auto;
  background: #f2f6fa;
}

.kanban-stage {
  min-height: 218px;
  padding: 13px;
  border-top: 3px solid var(--stage-color, #2984e8);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(21,51,84,.06);
}

.kanban-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.kanban-stage-head strong {
  color: var(--portal-ink);
  font-size: 13px;
  line-height: 1.35;
}

.kanban-stage-head span {
  color: #7890a7;
  font-size: 11px;
  font-weight: 800;
}

.kanban-card {
  margin-top: 13px;
  padding: 10px;
  border: 1px solid #e0e8f0;
  border-radius: 6px;
  background: #fbfdff;
}

.kanban-card span,
.kanban-card small { display: block; }
.kanban-card span { color: #405770; font-size: 12px; font-weight: 800; }
.kanban-card small { margin-top: 6px; color: #7890a7; font-size: 11px; line-height: 1.4; }

.funnel-inspector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid #dfe7ef;
}

.field-panel,
.robot-timeline {
  padding: 24px;
}

.field-panel { border-right: 1px solid #dfe7ef; }
.field-groups { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.field-group { padding: 12px; border: 1px solid #e0e8ef; border-radius: 7px; background: #fbfdff; }
.field-group strong,
.field-group span { display: block; }
.field-group strong { color: #2a425e; font-size: 13px; }
.field-group span { margin-top: 4px; color: #75889c; font-size: 12px; line-height: 1.4; }

.robot-timeline ol { list-style: none; padding: 0; margin: 14px 0 0; }
.robot-timeline li { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 0 0 14px; color: #40566f; font-size: 13px; line-height: 1.45; }
.robot-timeline li::before { content: ""; position: absolute; left: 8px; top: 21px; bottom: 0; width: 1px; background: #d8e3ed; }
.robot-timeline li:last-child::before { display: none; }
.robot-timeline li span { position: relative; z-index: 2; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #fff; background: var(--portal-blue); font-size: 9px; font-weight: 900; }

.automation-story {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) minmax(260px, .54fr);
  gap: 32px;
  align-items: stretch;
}

.automation-clock {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  color: #71849a;
  font-size: 13px;
  font-weight: 800;
}

.automation-clock span { display: flex; align-items: center; justify-content: flex-end; }
.automation-events { list-style: none; padding: 0; margin: 0; }
.automation-events li { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 16px; min-height: 96px; align-items: center; }
.automation-events li::before { content: ""; position: absolute; left: 22px; top: 64px; bottom: -32px; width: 2px; background: #cadbe9; }
.automation-events li:last-child::before { display: none; }
.event-icon { position: relative; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; background: var(--portal-blue); font-size: 12px; font-weight: 900; box-shadow: 0 0 0 8px #e7f2fe; }
.automation-events strong { color: var(--portal-navy); font-size: 17px; }
.automation-events p { margin: 4px 0 0; color: var(--portal-muted); font-size: 14px; line-height: 1.5; }

.automation-catalog {
  padding: 28px;
  border-radius: 8px;
  color: #dce9f8;
  background: var(--portal-navy);
}
.automation-catalog > span { color: #7ed8f4; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.automation-catalog ul { display: grid; gap: 12px; list-style: none; padding: 0; margin: 22px 0 0; }
.automation-catalog li { position: relative; padding-left: 20px; font-size: 14px; }
.automation-catalog li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--portal-cyan); }

.governance-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(380px, .72fr);
  gap: 90px;
  align-items: center;
}

.governance-grid > div > p { margin-top: 22px; }
.governance-rules { display: grid; gap: 18px; margin-top: 34px; }
.governance-rules article { display: grid; grid-template-columns: 42px 1fr; gap: 15px; }
.governance-rules article > span { color: var(--portal-blue); font-size: 13px; font-weight: 900; }
.governance-rules strong { color: var(--portal-navy); font-size: 17px; }
.governance-rules p { margin: 5px 0 0; color: var(--portal-muted); line-height: 1.5; }

.architecture-stack {
  position: relative;
  min-height: 520px;
  padding: 36px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #071e3e, #0b376a);
  box-shadow: 0 30px 70px rgba(6,27,58,.22);
  overflow: hidden;
}

.architecture-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 36px 36px;
}

.stack-title { position: relative; z-index: 2; color: #8fdff6; font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.architecture-stack > div { position: relative; z-index: 2; width: calc(100% - (var(--level) - 1) * 22px); margin: 24px auto 0; padding: 16px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.architecture-stack strong,
.architecture-stack span { display: block; }
.architecture-stack strong { color: #fff; }
.architecture-stack div span { margin-top: 4px; color: #b8cade; font-size: 13px; }

.portal-cta {
  padding: 82px 0;
  color: #fff;
  background: linear-gradient(120deg, #075dcc, #0b77de 55%, #099fc8);
}
.portal-cta-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 56px; align-items: center; }
.portal-cta h2 { max-width: 830px; color: #fff; }
.portal-cta p { max-width: 820px; margin: 18px 0 0; color: #dceeff; font-size: 18px; line-height: 1.6; }
.portal-cta-actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; min-width: 190px; text-align: center; }
.portal-cta-actions > a:last-child { color: #fff; font-weight: 800; }

@media (hover:hover) and (pointer:fine) {
  .portal-text-button:hover { color: #fff; }
  .explorer-tab:hover,
  .funnel-tabs button:hover,
  .explorer-reset:hover { color: var(--portal-blue); background: #edf5fd; }
  .map-node:hover { transform: translate(-50%, calc(-50% - 3px)); }
}

.portal-text-button:active,
.explorer-tab:active,
.funnel-tabs button:active,
.explorer-play:active,
.explorer-reset:active,
.map-node:active { transform: scale(.97); }

.map-node:active { transform: translate(-50%, -50%) scale(.97); }

@media (max-width: 1120px) {
  .portal-hero-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 38px; }
  .portal-metrics { grid-template-columns: repeat(3, 1fr); }
  .portal-metrics > div:nth-child(3) { border-right: 0; }
  .portal-metrics > div:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .map-node { width: 15.5%; min-width: 118px; padding-left: 12px; }
  .map-node strong { font-size: 12px; }
  .map-node small { font-size: 10px; }
  .node-count { right: 7px; }
}

@media (max-width: 900px) {
  .portal-hero { padding-top: 68px; }
  .portal-hero-grid { grid-template-columns: 1fr; }
  .hero-system { min-height: 410px; max-width: 620px; width: 100%; margin: 0 auto; }
  .portal-section-heading--split,
  .governance-grid { grid-template-columns: 1fr; gap: 24px; }
  .explorer-toolbar { align-items: flex-start; flex-direction: column; }
  .automation-story { grid-template-columns: 72px 1fr; }
  .automation-catalog { grid-column: 1 / -1; }
  .governance-grid { gap: 50px; }
  .architecture-stack { min-height: auto; }
  .portal-cta-inner { grid-template-columns: 1fr; }
  .portal-cta-actions { flex-direction: row; align-items: center; }
}

@media (max-width: 760px) {
  .draft-chip { display: none; }
  .portal-hero { padding-top: 54px; }
  .portal-hero-grid { padding-bottom: 44px; }
  .portal-hero-copy h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-system { min-height: 360px; transform: scale(.92); transform-origin: center; }
  .hero-orbit-c { width: 480px; }
  .portal-metrics { grid-template-columns: repeat(2, 1fr); }
  .portal-metrics > div { border-bottom: 1px solid rgba(255,255,255,.12); }
  .portal-metrics > div:nth-child(2n) { border-right: 0; }
  .portal-section { padding: 74px 0; }
  .portal-section-heading h2,
  .governance-grid h2,
  .portal-cta h2 { font-size: 34px; }
  .explorer-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .explorer-tab { padding-inline: 8px; }
  .explorer-actions { align-items: stretch; width: 100%; }
  .explorer-actions label { width: 100%; }
  .explorer-actions select { flex: 1 1 210px; }
  .portal-map { display: none; }
  .mobile-route { display: grid; gap: 9px; padding: 20px; background: #f6f9fc; }
  .mobile-route button { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; min-height: 54px; padding: 8px 13px; border: 1px solid #d5e1ec; border-radius: 7px; color: var(--portal-ink); background: #fff; text-align: left; font: inherit; }
  .mobile-route button span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--portal-blue); font-size: 12px; font-weight: 900; }
  .mobile-route button strong { font-size: 14px; }
  .node-detail-grid,
  .funnel-summary,
  .funnel-inspector { grid-template-columns: 1fr; }
  .node-detail-head { align-items: flex-start; flex-direction: column; }
  .field-panel { border-right: 0; border-bottom: 1px solid #dfe7ef; }
  .kanban { grid-template-columns: repeat(var(--stage-count, 6), 220px); }
  .automation-story { grid-template-columns: 1fr; }
  .automation-clock { display: none; }
  .portal-cta-actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 520px) {
  .portal-hero-actions { align-items: stretch; flex-direction: column; }
  .portal-text-button { text-align: left; }
  .hero-system { min-height: 330px; transform: scale(.78); margin: -25px auto; }
  .portal-metrics { margin-inline: 0; }
  .portal-metrics > div { padding: 19px 12px; }
  .portal-metrics strong { font-size: 23px; }
  .portal-section-heading--split { gap: 18px; }
  .explorer-toolbar { padding: 12px; }
  .explorer-tabs { grid-template-columns: 1fr; }
  .explorer-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .explorer-actions label,
  .explorer-actions select { grid-column: 1 / -1; width: 100%; }
  .node-detail { padding: 20px; }
  .field-groups { grid-template-columns: 1fr; }
  .funnel-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .automation-events li { grid-template-columns: 40px 1fr; }
  .event-icon { width: 40px; height: 40px; }
  .automation-events li::before { left: 19px; }
  .architecture-stack { padding: 25px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .map-node,
  .map-edge { transition: none; }
  .flow-particle { display: none; }
}

/* Page shell follows the existing CRMPro article patterns; scoped to this draft. */
.portal-demo-page { font-family: "Segoe UI", Arial, sans-serif; line-height: 1.6; --radius: 8px; }
.portal-demo-page [hidden] { display: none !important; }
.portal-demo-page .shell { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.portal-demo-page a { text-decoration: none; }
.portal-demo-page img { max-width: 100%; height: auto; }
.portal-demo-page button, .portal-demo-page input, .portal-demo-page select { font: inherit; }
.portal-demo-page button { cursor: pointer; }
.portal-demo-page main { width: 100%; max-width: none; padding: 0; margin: 0; }
.portal-demo-page section[id] { scroll-margin-top: 100px; }
.portal-demo-page :focus-visible { outline: 3px solid #e19a26; outline-offset: 4px; }
.portal-demo-page .site-header { border-bottom: 1px solid #dae4ee; background: rgba(255,255,255,.97); }
.portal-demo-page .header-inner { min-height: 80px; padding: 0; display: grid; grid-template-columns: 200px 1fr auto; gap: 26px; }
.portal-demo-page .brand { display: inline-flex; width: 182px; }
.portal-demo-page .brand img { display: block; width: 100%; }
.portal-demo-page .desktop-nav { display: flex; gap: 26px; justify-content: center; }
.portal-demo-page .desktop-nav a { font-size: 14px; font-weight: 600; color: #435971; }
.portal-demo-page .header-actions { display: flex; align-items: center; gap: 16px; }
.portal-demo-page .menu-button, .portal-demo-page .mobile-nav { display: none; }
.portal-demo-page .button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 23px; border: 0; border-radius: 8px; font-size: 15px; font-weight: 650; gap: 12px; }
.portal-demo-page .button--primary { color: #fff; background: #0b64df; }
.portal-demo-page .button--bright { color: #0758b3; background: #fff; }
.portal-demo-page .button:active { transform: scale(.97); }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 300; padding: 12px; background: #fff; }
.skip-link:focus { top: 8px; }
.portal-demo-page .portal-hero { padding-top: 78px; }
.portal-demo-page .portal-hero-grid { gap: 70px; grid-template-columns: 1.05fr .95fr; }
.portal-demo-page .portal-hero-copy h1 { font-size: clamp(46px,5vw,72px); line-height: 1.04; margin-bottom: 18px; font-weight: 680; }
.hero-subtitle { color: #e8f1fc; font-size: clamp(24px,2.5vw,34px); line-height: 1.28; letter-spacing: -.025em; margin: 0 0 25px; }
.portal-demo-page .portal-lead { font-size: 18px; }
.portal-demo-page .portal-metrics { grid-template-columns: repeat(4,1fr); }
.portal-demo-page .portal-metrics > div { border-bottom: 0; }
.portal-demo-page .portal-metrics strong { font-weight: 600; }
.hero-blueprint { position: relative; z-index: 2; padding: 27px; background: rgba(3,21,45,.56); border: 1px solid #426785; border-radius: 10px; transform: rotate(-1.5deg); }
.blueprint-top { display: flex; justify-content: space-between; color: #88b8d7; font-size: 11px; letter-spacing: .09em; margin-bottom: 34px; }
.blueprint-flow { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 30px; font-size: 12px; color: #d2e1ef; }
.blueprint-flow span { padding: 10px 12px; border: 1px solid #416789; border-radius: 5px; }
.blueprint-flow i { color: #42badf; font-style: normal; }
.blueprint-central { padding: 20px 18px; display: flex; gap: 18px; align-items: center; border: 1px solid #3f95c5; background: rgba(15,103,162,.16); border-radius: 8px; margin-bottom: 25px; }
.blueprint-mark { font-size: 19px; font-weight: 700; color: #63d1ef; }
.blueprint-central strong { color: #fff; display: block; font-size: 17px; }
.blueprint-central small { display: block; color: #99b1c8; font-size: 12px; margin-top: 5px; }
.blueprint-layers > div { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 17px 0; border-top: 1px solid #214563; }
.blueprint-layers b { font-size: 11px; color: #54b8d8; font-weight: 500; }
.blueprint-layers span { font-size: 14px; color: #dce9f8; }
.blueprint-layers small { font-size: 11px; color: #8cabc5; }
.blueprint-bottom { margin-top: 25px; font-size: 11px; color: #8daec7; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #42c9a6; margin-right: 6px; }
.portal-demo-page .portal-section-heading h2, .portal-demo-page .governance-grid h2, .portal-demo-page .portal-cta h2 { font-weight: 650; font-size: clamp(32px,3.7vw,47px); }
.portal-demo-page .portal-section { padding: 84px 0; }
.portal-demo-page .portal-section-heading > p { font-size: 17px; }
.scenario-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid #e0e8f0; }
.scenario-bar label { font-size: 13px; color: #60758e; }
.scenario-bar select, .catalog-controls input, .catalog-controls select { color: #213a56; background: #fff; border: 1px solid #cbd9e7; border-radius: 6px; min-height: 42px; padding: 9px 14px; font-size: 14px; max-width: 100%; }
.simulation-label { margin-left: auto; font-size: 12px; color: #687e94; }
.map-workspace { position: relative; background: #f7fafd; }
.map-viewport { height: 730px; position: relative; overflow: hidden; cursor: grab; touch-action: none; background-image: radial-gradient(#cddcea .8px, transparent .8px); background-size: 18px 18px; }
.map-viewport.is-dragging { cursor: grabbing; }
.map-world { position: absolute; transform-origin: 0 0; }
.world-label { position: absolute; top: 35px; font-size: 13px; color: #6d8299; letter-spacing: .06em; font-weight: 600; }
.network-lines { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.network-edge { fill: none; stroke-width: 2; opacity: .52; transition: opacity .2s; }
.network-edge.sale { stroke: #5b9fe4; }
.network-edge.service { stroke: #c69348; }
.network-edge.quality { stroke: #53a891; }
.network-edge.system { stroke: #889ab1; }
.network-edge.is-active { opacity: 1; stroke-width: 3.5; }
.network-edge.is-dim { opacity: .14; }
.arrow-fill.sale, .tour-particle.sale { fill: #3e8bdb; }
.arrow-fill.service, .tour-particle.service { fill: #bb8537; }
.arrow-fill.quality, .tour-particle.quality { fill: #359680; }
.arrow-fill.system, .tour-particle.system { fill: #7a8ea6; }
.tour-particle { stroke: white; stroke-width: 3; filter: drop-shadow(0 2px 4px #718ba0); }
.network-node { position: absolute; width: 190px; height: 108px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border: 1px solid #d0ddea; border-radius: 8px; padding: 10px; color: #18354f; text-align: left; background: #fff; box-shadow: 0 5px 12px #194f7d08; transition: opacity .2s, box-shadow .2s; }
.network-node-heading { display: flex; align-items: center; gap: 9px; }
.network-node strong { font-size: 17px; line-height: 1.25; font-weight: 600; }
.network-node small { font-size: 15px; color: #687e91; line-height: 1.2; }
.node-symbol { display: grid; place-items: center; width: 23px; height: 23px; flex-shrink: 0; border-radius: 5px; background: #eaf3ff; color: #317ccc; font-size: 16px; }
.network-node.service .node-symbol { color: #996018; background: #fff4e2; }
.network-node.quality .node-symbol { color: #137b62; background: #e5f4ee; }
.network-node.system .node-symbol { color: #5a708a; background: #eaf0f5; }
.network-node.is-selected { border-color: #4a95e2; box-shadow: 0 0 0 3px #d3e6fb,0 8px 15px #2d66ac12; }
.network-node.is-dim { opacity: .35; }
.network-node.is-travelling { border-color: #116de0; box-shadow: 0 0 0 5px #b4d7fa; opacity: 1; }
.map-zoom { display: flex; align-items: center; gap: 4px; position: absolute; bottom: 14px; right: 18px; padding: 4px; border: 1px solid #d4e0eb; background: #fff; border-radius: 8px; box-shadow: 0 3px 10px #1e48700a; }
.map-zoom button { border: 0; padding: 7px 12px; background: #f4f8fc; color: #23425f; border-radius: 4px; }
.map-zoom output { font-size: 12px; color: #6a7f91; min-width: 45px; text-align: center; }
.map-drag-hint { position: absolute; bottom: 21px; left: 20px; font-size: 12px; color: #6d8296; pointer-events: none; }
.map-sr-instructions { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.map-viewport:focus-visible { outline: 3px solid #3c8ddb; outline-offset: -3px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 13px 21px; border-top: 1px solid #dde7ef; font-size: 12px; color: #4e6781; }
.map-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { display: inline-block; width: 16px; height: 3px; background: #8093a9; }
.map-legend .legend-sale { background: #3e8bdb; }.map-legend .legend-service { background: #bb8537; }.map-legend .legend-quality { background: #359680; }
.legend-note { margin-left: auto; color: #758a9d; }
.simulation-status { padding: 12px 22px; background: #edf5fd; color: #365f87; font-size: 13px; min-height: 46px; }
.detail-type { padding: 7px 11px; background: #edf4fa; border-radius: 5px; color: #55748e; font-size: 12px; }
.detail-owner { display: flex; gap: 14px; margin-top: 20px; font-size: 13px; color: #456078; }
.detail-owner strong { font-weight: 600; }
.detail-link { display: inline-block; color: #0862cc; margin-top: 20px; font-size: 14px; font-weight: 600; }
.portal-demo-page .node-detail-grid span { font-size: 11px; }
.portal-demo-page .node-detail-head h3 { font-weight: 650; }
.model-note { font-size: 13px; color: #647b92; line-height: 1.6; max-width: 980px; margin: 18px 0 0; }
.portal-explorer:fullscreen, .portal-explorer.is-expanded { background: white; padding: 0; overflow: auto; border-radius: 0; }
.portal-explorer.is-expanded { position: fixed; inset: 0; z-index: 500; }
.portal-explorer:fullscreen .map-viewport, .portal-explorer.is-expanded .map-viewport { height: 68vh; }
.portal-demo-page .kanban-stage { display: block; width: 100%; border: 1px solid #dce7f0; border-top: 3px solid #75a8db; text-align: left; font: inherit; min-height: 210px; color: inherit; }
.portal-demo-page .kanban-stage.is-selected { border-color: #478ee0; background: #f7fbff; box-shadow: 0 0 0 2px #d7e9fc; }
.portal-demo-page .kanban-stage-head { display: flex; }
.portal-demo-page .kanban-card { display: block; }
.portal-demo-page .kanban-card small { font-size: 12px; color: #5f758a; }
.stage-open { display: block; margin-top: 18px; color: #547da5; font-size: 11px; }
.stage-caption { display: flex; align-items: baseline; gap: 18px; padding: 19px 24px; border-top: 1px solid #e0e9f2; }
.stage-caption strong { color: #123650; font-size: 18px; }
.stage-caption span { color: #5b7185; font-size: 14px; }
.catalog-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 18px; margin-bottom: 25px; }
.catalog-controls label { display: grid; gap: 8px; font-size: 12px; font-weight: 600; color: #546f88; flex: 0 1 280px; }
.catalog-controls label:first-child { flex-basis: 420px; }
.catalog-controls input, .catalog-controls select { width: 100%; }
.catalog-controls > span { margin-left: auto; padding-bottom: 12px; font-size: 13px; color: #6b8095; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.catalog-group { padding: 23px; background: #fff; border: 1px solid #dbe5ef; border-radius: 8px; min-width: 0; }
.catalog-group h3 { margin: 0; font-size: 22px; color: #102e4b; }
.catalog-group-meta { display: block; color: #7b8fa1; font-size: 12px; margin: 5px 0 17px; }
.catalog-item { border-top: 1px solid #e4ebf2; }
.catalog-item summary { cursor: pointer; padding: 13px 22px 13px 0; font-size: 14px; color: #294965; line-height: 1.4; }
.catalog-item p { font-size: 13px; color: #5c768d; margin: 0 0 10px; }
.catalog-item .catalog-owner { font-size: 12px; }
.catalog-open { padding: 7px 0 14px; border: 0; color: #0c64c9; background: transparent; font-size: 12px !important; text-align: left; }
.catalog-empty { grid-column: 1 / -1; padding: 24px 0; color: #637c91; }
.automation-footnote { font-size: 12px; line-height: 1.6; margin-top: 30px; color: #a3bdd7; }
.methodology h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; color: #11324d; margin: 20px 0 30px; }
.methodology-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 35px; }
.methodology-grid h3 { font-size: 17px; margin: 0 0 10px; color: #264964; }
.methodology-grid p { font-size: 14px; line-height: 1.8; color: #647c91; margin: 0; }
.portal-cta-actions { max-width: 260px; }
.portal-cta-actions > span { font-size: 12px; color: #e6f4ff; }
.portal-demo-page .site-footer { margin-top: 0; padding: 0; background: #fff; border: 0; border-radius: 0; }
.portal-demo-page .footer-main { display: grid; grid-template-columns: 1.2fr .75fr .8fr; gap: 64px; padding-block: 50px; }
.portal-demo-page .footer-brand img { width: 170px; margin-bottom: 18px; display: block; }
.portal-demo-page .footer-brand p { color: #667e94; font-size: 14px; max-width: 330px; }
.portal-demo-page .footer-main nav, .portal-demo-page .footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.portal-demo-page .footer-main strong { color: #163752; font-size: 14px; margin-bottom: 8px; }
.portal-demo-page .footer-main a, .portal-demo-page .footer-main span { font-size: 13px; color: #607b92; }
.portal-demo-page .footer-bottom { display: flex; justify-content: space-between; padding-block: 22px; border-top: 1px solid #e2ebf2; font-size: 12px; color: #6b8092; }
@media (hover:hover) and (pointer:fine) {
  .network-node:hover { border-color: #65a4e4; box-shadow: 0 8px 16px #2047691a; opacity: 1; }
  .portal-demo-page .desktop-nav a:hover, .catalog-item summary:hover { color: #0765d6; }
}
@media (max-width:1120px) {
  .portal-demo-page .header-inner { grid-template-columns: 170px 1fr auto; gap: 12px; }
  .portal-demo-page .desktop-nav { gap: 15px; }
  .portal-demo-page .portal-hero-grid { gap: 35px; }
  .hero-blueprint { padding: 20px; }
  .blueprint-layers > div { grid-template-columns: 25px 1fr; }
  .blueprint-layers small { grid-column: 2; }
}
@media (max-width:900px) {
  .portal-demo-page .portal-hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-blueprint { max-width: 570px; transform: none; }
  .portal-demo-page .desktop-nav { display: none; }
  .portal-demo-page .header-inner { grid-template-columns: 1fr auto; }
  .portal-demo-page .menu-button { display: block; border: 1px solid #dae5ef; border-radius: 6px; width: 44px; height: 44px; color: #264d71; background: #fff; }
  .portal-demo-page .mobile-nav.is-open { display: flex; flex-direction: column; padding: 18px 32px; gap: 15px; font-size: 14px; border-top: 1px solid #e3eaf2; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .methodology-grid { gap: 25px; }
}
@media (max-width:760px) {
  .portal-demo-page .shell { width: calc(100% - 32px); }
  .portal-demo-page .header-inner { min-height: 68px; }
  .portal-demo-page .brand { width: 153px; }
  .portal-demo-page .portal-hero { padding-top: 45px; }
  .portal-demo-page .portal-metrics { grid-template-columns: repeat(2,1fr); margin-inline: auto; }
  .portal-demo-page .portal-metrics > div { padding: 22px 14px; border-bottom: 1px solid #ffffff15; }
  .portal-demo-page .portal-hero-copy h1 { font-size: 49px; }
  .portal-demo-page .portal-section { padding: 62px 0; }
  .map-workspace { display: none; }
  .simulation-label { margin-left: 0; }
  .scenario-bar { padding: 14px; }
  .scenario-bar label { flex-basis: 100%; }
  .scenario-bar select { width: 100%; font-size: 16px; }
  .mobile-route { display: grid; }
  .mobile-route button.is-selected { border-color: #438ddb; background: #eaf4ff; }
  .mobile-route button.is-travelling { box-shadow: 0 0 0 3px #b5d6fa; }
  .detail-owner { flex-direction: column; gap: 5px; }
  .stage-caption { flex-direction: column; gap: 7px; align-items: flex-start; }
  .portal-demo-page .kanban { scroll-snap-type: x proximity; }
  .portal-demo-page .kanban-stage { scroll-snap-align: start; }
  .portal-explorer:fullscreen, .portal-explorer.is-expanded { overflow: auto; }
  .portal-explorer:fullscreen .mobile-route, .portal-explorer.is-expanded .mobile-route { display: grid; }
  .methodology-grid { grid-template-columns: 1fr; }
  .portal-demo-page .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .portal-demo-page .footer-bottom { flex-wrap: wrap; gap: 10px; }
}
@media (max-width:520px) {
  .portal-demo-page .portal-metrics strong { font-size: 27px; }
  .hero-blueprint { padding: 17px; }
  .blueprint-flow { gap: 5px; font-size: 10px; }
  .blueprint-flow span { padding: 9px 7px; }
  .blueprint-central { padding: 15px; gap: 12px; }
  .blueprint-central strong { font-size: 15px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-controls { flex-direction: column; align-items: stretch; }
  .catalog-controls label, .catalog-controls label:first-child { flex-basis: auto; }
  .catalog-controls > span { margin-left: 0; }
  .portal-demo-page .explorer-tabs { display: flex; flex-wrap: wrap; }
  .explorer-tab { font-size: 12px !important; }
  .catalog-controls input, .catalog-controls select { font-size: 16px; }
  .map-legend { gap: 9px 16px; }
  .legend-note { margin-left: 0; }
  .portal-demo-page .portal-kicker { font-size: 11px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .network-node, .network-edge { transition: none; }
  .tour-particle { display: none; }
}
