/* DAIV proprietary AI and governed data-product stories */

.ai-foundation,
.ai-ops-product,
.ai-product-showcase {
  border: 1px solid #cad9e0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(20, 60, 84, .08);
}

/* Deep-linked product stories must be visible before the scroll observer runs. */
#ai .reveal,
#real-dcp.reveal,
#ai-operations-product .reveal {
  opacity: 1;
  transform: none;
}

#ai,
#real-dcp,
#ai-operations-product {
  scroll-margin-top: 92px;
}

.ai-foundation {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr);
  margin-top: 52px;
  overflow: hidden;
}

.ai-foundation-copy {
  padding: 38px;
  border-right: 1px solid #d8e3e7;
  background: #f7f9fa;
}

.intel-label,
.product-kicker,
.route-index,
.stage-index,
.engine-label {
  color: #075fca;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ai-foundation-copy h3,
.ai-product-copy h2 {
  margin: 22px 0 15px;
  color: #17364b;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 670;
  line-height: 1.16;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.ai-product-copy h2 {
  word-break: keep-all;
}


.ai-foundation-copy p,
.ai-product-copy > p {
  margin: 0;
  color: #536a78;
  font-size: 14px;
}

.ai-principles {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid #d8e3e7;
  list-style: none;
}

.ai-principles li {
  position: relative;
  padding-left: 17px;
  color: #365263;
  font-size: 12px;
}

.ai-principles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px;
  height: 6px;
  border: 1px solid #0b73ca;
  background: #fff;
}

.knowledge-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 44px 34px 34px;
  list-style: none;
  isolation: isolate;
}

.knowledge-route::before,
.knowledge-route::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 12%;
  right: 12%;
  top: 78px;
  height: 1px;
}

.knowledge-route::before {
  background: #b7ccd7;
}

.knowledge-route::after {
  width: 18%;
  right: auto;
  background: linear-gradient(90deg, transparent, #0875d1 35%, #42b9eb 68%, transparent);
  box-shadow: 0 0 12px rgba(21, 149, 219, .45);
  animation: knowledgeSignal 4.6s cubic-bezier(.42, 0, .58, 1) infinite;
}

.knowledge-node {
  position: relative;
  min-width: 0;
  padding: 58px 16px 10px;
}

.knowledge-node::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 16px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  outline: 1px solid #0b73ca;
  background: #0b73ca;
  box-shadow: 0 0 0 5px rgba(11, 115, 202, .08);
}

.knowledge-node strong,
.ai-stage strong,
.channel-node strong,
.engine-source strong,
.engine-output strong {
  display: block;
  margin-top: 9px;
  color: #17364b;
  font-size: 14px;
  line-height: 1.35;
}

.knowledge-node p,
.ai-stage p,
.channel-node p,
.engine-source span,
.engine-output span {
  margin: 9px 0 0;
  color: #6a7e8a;
  font-size: 11px;
  line-height: 1.55;
}

.knowledge-node.is-core::before {
  background: #074f9e;
  box-shadow: 0 0 0 5px rgba(7, 95, 202, .1), 0 0 18px rgba(7, 95, 202, .25);
}

.ai-ops-product {
  margin-top: 24px;
  padding: clamp(30px, 4vw, 52px);
}

.ai-ops-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .62fr);
  gap: 52px;
  align-items: end;
}

.ai-ops-head h3 {
  max-width: 680px;
  margin: 15px 0 0;
  color: #17364b;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.ai-ops-summary {
  margin: 0;
  padding-left: 22px;
  border-left: 2px solid #0b73ca;
  color: #526b79;
  font-size: 14px;
}

.ai-ops-loop {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 48px 0 0;
  padding: 0;
  border-top: 1px solid #aec6d1;
  border-bottom: 1px solid #d7e2e6;
  list-style: none;
  isolation: isolate;
}

.ai-ops-loop::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -1px;
  left: 0;
  width: 14%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0b73ca 45%, #42b9eb 75%, transparent);
  box-shadow: 0 0 12px rgba(21, 149, 219, .45);
  animation: opsSignal 5.4s linear infinite;
}

.ai-stage {
  min-height: 214px;
  padding: 24px 20px 22px;
  border-right: 1px solid #d7e2e6;
}

.ai-stage:last-child {
  border-right: 0;
}

.ai-stage strong {
  margin-top: 48px;
  font-size: 16px;
}

.ai-stage[data-ai-stage="optimize"] {
  background: #f0f6fb;
}

.ai-stage[data-ai-stage="govern"] {
  background: #f7f9fa;
}

.ops-guardrails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 26px;
  border: 1px solid #d3dfe4;
  background: #d3dfe4;
}

.guardrail {
  padding: 18px 20px;
  background: #f8fafb;
}

.guardrail b,
.guardrail span {
  display: block;
}

.guardrail b {
  color: #24485d;
  font-size: 12px;
}

.guardrail span {
  margin-top: 5px;
  color: #6b7f8b;
  font-size: 11px;
}

.ai-demo-trust {
  display: block;
  margin-top: 12px;
  color: #7694a4;
  font-size: 11px;
  line-height: 1.6;
}

.product-dcp {
  grid-column: 1 / -1;
}

.product-dcp .prod-detail {
  margin-top: 10px;
}

.channel-route {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #d3e0e5;
  border-radius: 8px;
  background: #f6f9fa;
  overflow: hidden;
}

.channel-route-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #496472;
  font-size: 11px;
}

.channel-route-head b {
  color: #17364b;
  font-size: 12px;
}

.channel-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  isolation: isolate;
}

.channel-nodes::before,
.channel-nodes::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 9%;
  right: 9%;
  top: 11px;
  height: 2px;
}

.channel-nodes::before {
  background: #afc7d2;
}

.channel-nodes::after {
  width: 16%;
  right: auto;
  background: linear-gradient(90deg, transparent, #0b73ca, #42b9eb, transparent);
  box-shadow: 0 0 12px rgba(11, 115, 202, .36);
  animation: channelSignal 4.2s linear infinite;
}

.channel-node {
  position: relative;
  min-width: 0;
  padding: 36px 12px 0;
}

.channel-node::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 12px;
  width: 13px;
  height: 13px;
  border: 3px solid #f6f9fa;
  outline: 1px solid #0b73ca;
  background: #0b73ca;
}

.channel-node[data-channel-node="security"]::before {
  background: #19845b;
  outline-color: #19845b;
  box-shadow: 0 0 0 5px rgba(25, 132, 91, .1);
}

.channel-node strong {
  font-size: 13px;
}

.ai-product-section {
  background: #edf2f4;
}

.ai-product-showcase {
  display: grid;
  grid-template-columns: minmax(330px, .8fr) minmax(560px, 1.2fr);
  overflow: hidden;
}

.ai-product-copy {
  padding: clamp(36px, 5vw, 66px);
  border-right: 1px solid #d5e1e5;
  background: #fff;
}

.ai-product-copy .tags {
  margin-top: 28px;
}

.ai-product-copy .tags span {
  background: #f5f8f9;
}

.ai-engine-diagram {
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, .8fr) minmax(190px, 1fr) minmax(140px, .8fr);
  gap: 18px;
  align-items: stretch;
  padding: clamp(32px, 4vw, 54px);
  background: #f7f9fa;
  isolation: isolate;
}

.ai-engine-diagram::before,
.ai-engine-diagram::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 15%;
  right: 15%;
  top: 50%;
  height: 1px;
}

.ai-engine-diagram::before {
  background: #b2c8d2;
}

.ai-engine-diagram::after {
  width: 14%;
  right: auto;
  background: linear-gradient(90deg, transparent, #0875d1, #3db8e9, transparent);
  animation: engineSignal 4.8s linear infinite;
}

.engine-sources,
.engine-outputs {
  display: grid;
  gap: 9px;
  align-content: center;
}

.engine-source,
.engine-output {
  padding: 16px;
  border: 1px solid #cfdee4;
  border-radius: 6px;
  background: #fff;
}

.engine-source strong,
.engine-output strong {
  margin: 0;
  font-size: 12px;
}

.engine-core {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border: 1px solid #93b7ca;
  border-radius: 8px;
  background: #eef5fa;
  box-shadow: 0 16px 34px rgba(22, 78, 110, .1);
}

.engine-core h3 {
  margin: 16px 0 18px;
  color: #17364b;
  font-size: 21px;
  line-height: 1.25;
}

.engine-core dl {
  margin: 0;
}

.engine-core dl > div {
  padding: 11px 0;
  border-top: 1px solid #ccdde5;
}

.engine-core dt {
  color: #31566a;
  font-size: 12px;
  font-weight: 700;
}

.engine-core dd {
  margin: 3px 0 0;
  color: #6a808c;
  font-size: 10px;
}

.ai-product-boundary {
  grid-column: 1 / -1;
  margin: 0;
  padding: 17px 20px;
  color: #536d7a;
  border: 1px solid #cddde4;
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
}

@keyframes knowledgeSignal {
  0% { transform: translateX(-20%); opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { transform: translateX(390%); opacity: 0; }
}

@keyframes opsSignal {
  0% { transform: translateX(-30%); opacity: 0; }
  10%, 90% { opacity: 1; }
  100% { transform: translateX(720%); opacity: 0; }
}

@keyframes channelSignal {
  0% { transform: translateX(-30%); opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { transform: translateX(520%); opacity: 0; }
}

@keyframes engineSignal {
  0% { transform: translateX(-30%); opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { transform: translateX(520%); opacity: 0; }
}

@media (max-width: 1080px) {
  .ai-foundation,
  .ai-product-showcase {
    grid-template-columns: 1fr;
  }

  .ai-foundation-copy,
  .ai-product-copy {
    border-right: 0;
    border-bottom: 1px solid #d8e3e7;
  }

  .ai-ops-loop {
    grid-template-columns: repeat(3, 1fr);
  }

  .ai-stage:nth-child(3) {
    border-right: 0;
  }

  .ai-stage:nth-child(-n+3) {
    border-bottom: 1px solid #d7e2e6;
  }
}

@media (max-width: 760px) {
  .ai-foundation-copy,
  .ai-ops-product,
  .ai-product-copy,
  .ai-engine-diagram {
    padding: 26px;
  }

  .knowledge-route,
  .ai-ops-loop,
  .channel-nodes,
  .ai-engine-diagram {
    grid-template-columns: 1fr;
  }

  .knowledge-route {
    padding: 28px 26px;
  }

  .knowledge-route::before,
  .knowledge-route::after,
  .channel-nodes::before,
  .channel-nodes::after,
  .ai-engine-diagram::before,
  .ai-engine-diagram::after {
    left: 32px;
    right: auto;
    top: 40px;
    bottom: 40px;
    width: 1px;
    height: auto;
  }

  .knowledge-route::after,
  .channel-nodes::after,
  .ai-engine-diagram::after {
    display: none;
  }

  .knowledge-node {
    padding: 12px 0 22px 48px;
  }

  .knowledge-node::before {
    top: 14px;
    left: 1px;
  }

  .ai-ops-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .ai-ops-summary {
    padding: 17px 0 0;
    border-left: 0;
    border-top: 2px solid #0b73ca;
  }

  .ai-ops-loop {
    border-bottom: 0;
  }

  .ai-stage,
  .ai-stage:nth-child(3),
  .ai-stage:last-child {
    min-height: 0;
    padding: 22px 18px;
    border-right: 0;
    border-bottom: 1px solid #d7e2e6;
  }

  .ai-stage strong {
    margin-top: 18px;
  }

  .ops-guardrails {
    grid-template-columns: 1fr;
  }

  .channel-route {
    padding: 20px;
  }

  .channel-route-head {
    display: block;
  }

  .channel-route-head span {
    display: block;
    margin-top: 6px;
  }

  .channel-node {
    padding: 8px 0 24px 42px;
  }

  .channel-node::before {
    top: 7px;
    left: 5px;
  }

  .engine-core {
    order: -1;
  }

  .page-products .group-title small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-route::after,
  .ai-ops-loop::after,
  .channel-nodes::after,
  .ai-engine-diagram::after {
    animation: none !important;
  }
}
