/* The reference figures share a drafting surface and an accent for control points. */
.technical-figure {
  --diagram-ink: #edf6ff;
  --diagram-muted: #b1c6df;
  --diagram-blue: #9bc9ff;
  --diagram-teal: #83e4d4;
  --diagram-line: #537ca6;
  --diagram-surface: #101f34;
  --diagram-inset: #0d1b2e;
  --diagram-edge: #2e4a68;
  margin: 0;
  min-width: 0;
  padding: clamp(18px, 2.1vw, 30px);
  background: linear-gradient(155deg, #152c47, var(--diagram-surface) 55%);
  border: 1px solid var(--diagram-edge);
  border-top-color: #537191;
  border-radius: 12px;
}

.figure-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.figure-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--diagram-blue);
  font-size: 12px;
  font-weight: 550;
}

.figure-eyebrow > span {
  padding: 2px 6px;
  border: 1px solid var(--diagram-line);
  border-radius: 3px;
  color: var(--diagram-ink);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  line-height: 1.4;
}

.figure-heading h2 {
  margin: 0;
  color: var(--diagram-ink);
  font-size: clamp(24px, 2.2vw, 33px);
  font-weight: 550;
  line-height: 1.13;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.figure-caption {
  margin-top: 17px;
  color: var(--diagram-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Branches from the three domains meet on a single identity bus. */
.architecture-board {
  position: relative;
  padding: 16px;
  border: 1px solid #4b777f;
  border-radius: 7px;
  background:
    linear-gradient(90deg, #7cabdb10 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(#7cabdb10 1px, transparent 1px) 0 0 / 16px 16px,
    var(--diagram-inset);
}

.security-label {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: -29px;
  padding: 3px 9px;
  color: var(--diagram-teal);
  background: #142c3a;
  border: 1px solid #4b777f;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
}

.security-label svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.architecture-domains {
  --branch-depth: 20px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.architecture-domains::after {
  content: "";
  position: absolute;
  inset: auto calc(100% / 6) calc(-1 * var(--branch-depth));
  border-top: 1px solid var(--diagram-line);
}

.architecture-domain {
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  padding: 0 7px 8px;
  text-align: center;
}

.architecture-domain::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--diagram-blue);
  box-shadow: 0 0 0 3px #16314e;
}

.architecture-domain::after {
  content: "";
  position: absolute;
  bottom: calc(-1 * var(--branch-depth));
  left: 50%;
  height: calc(var(--branch-depth) - 3px);
  border-left: 1px solid var(--diagram-line);
}

.architecture-domain img {
  width: 100%;
  max-width: 160px;
  height: auto;
  justify-self: center;
  margin-bottom: 5px;
}

.architecture-domain h3,
.identity-foundation h3,
.flow-diagram h3 {
  color: var(--diagram-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.architecture-domain p,
.identity-foundation p,
.flow-diagram p {
  margin-top: 4px;
  color: var(--diagram-muted);
  font-size: 13px;
  line-height: 1.4;
}

.architecture-trunk {
  position: relative;
  height: 40px;
}

.architecture-trunk::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 20px;
  bottom: 0;
  border-left: 1px solid var(--diagram-teal);
}

.architecture-trunk::after {
  content: "";
  position: absolute;
  left: calc(50% - 3px);
  top: 17px;
  width: 7px;
  height: 7px;
  background: var(--diagram-teal);
  transform: rotate(45deg);
}

.identity-foundation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #589d9e;
  border-radius: 5px;
  background: linear-gradient(110deg, #173d49, #152e40);
}

.identity-emblem {
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--diagram-teal);
  stroke-width: 1.5;
}

.identity-emblem > rect { fill: #204b58; }
.identity-emblem .chip-shield { fill: #0e2a37; }
.identity-foundation h3 { font-size: 17px; }
.identity-foundation p { color: #bedbdc; }

/* Two automated steps feed a human decision with three possible outcomes. */
.workflow-figure .figure-heading { margin-bottom: 20px; }
.flow-diagram { --flow-gap: 16px; }

.flow-input {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  margin-bottom: var(--flow-gap);
  padding: 10px 12px;
  border-bottom: 1px solid var(--diagram-line);
  background: #132941;
}

.flow-input > svg {
  width: 24px;
  height: 24px;
  color: var(--diagram-blue);
  flex: none;
}

.flow-input::after,
.flow-prepare::after {
  content: "";
  position: absolute;
  bottom: calc(-1 * var(--flow-gap));
  height: var(--flow-gap);
  border-left: 1px solid var(--diagram-line);
}

.flow-input::after { left: calc(25% - var(--flow-gap) / 4); }

.flow-process {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--flow-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  position: relative;
  gap: 9px;
  padding: 12px 10px;
  border: 1px solid var(--diagram-edge);
  border-radius: 5px;
  background: var(--diagram-inset);
}

.flow-marker {
  flex: none;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--diagram-line);
  border-radius: 4px;
  color: var(--diagram-blue);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.flow-step:first-child::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: var(--flow-gap);
  border-top: 1px solid var(--diagram-line);
}

.flow-step:first-child::before {
  content: "";
  position: absolute;
  left: calc(100% + var(--flow-gap) - 6px);
  top: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--diagram-blue);
  border-right: 1px solid var(--diagram-blue);
  transform: rotate(45deg);
}

.flow-prepare::after { left: 50%; }

.flow-review {
  grid-column: 1 / -1;
  align-items: center;
  padding: 12px;
  border-color: #589d9e;
  background: linear-gradient(110deg, #173d49, #152e40);
}

.flow-review .flow-marker {
  width: 34px;
  height: 34px;
  color: var(--diagram-teal);
  border-color: #589d9e;
  background: #102b38;
}

.flow-review .flow-marker svg { width: 21px; height: 21px; }
.flow-review h3 { font-size: 17px; }
.flow-review p { color: #bedbdc; }

.flow-decisions {
  --decision-depth: 22px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: var(--decision-depth) 0 0;
  list-style: none;
}

.flow-decisions::before,
.flow-decisions::after {
  content: "";
  position: absolute;
}

.flow-decisions::before {
  top: 0;
  left: 50%;
  height: calc(var(--decision-depth) / 2);
  border-left: 1px solid var(--diagram-line);
}

.flow-decisions::after {
  top: calc(var(--decision-depth) / 2);
  inset-inline: calc((100% - 16px) / 6);
  border-top: 1px solid var(--diagram-line);
}

.flow-decisions li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  position: relative;
  padding: 9px 8px;
  border: 1px solid var(--diagram-edge);
  border-radius: 5px;
  background: var(--diagram-inset);
}

.flow-decisions li::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--decision-depth) / 2);
  left: 50%;
  height: calc(var(--decision-depth) / 2);
  border-left: 1px solid var(--diagram-line);
}

.flow-decisions svg {
  width: 17px;
  height: 17px;
  color: var(--diagram-blue);
  flex: none;
}

.flow-decisions .flow-approve { border-color: #589d9e; }
.flow-approve svg { color: var(--diagram-teal); }
.flow-decisions h3 { font-size: 14px; }
.flow-decisions p { font-size: 12px; }

@media (min-width: 1051px) {
  .hero-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: 54px; }
}

@media (max-width: 960px) {
  .hero-grid, .ai-grid { display: grid; grid-template-columns: 1fr; gap: 38px; }
  .hero-copy, .ai-copy { max-width: 660px; }
  .hero h1 { font-size: clamp(52px, 8.5vw, 76px); }
  .technical-figure { width: 100%; max-width: 640px; }
  .ai-copy { grid-row: 1; }
}

@media (max-width: 700px) {
  .hero h1 { font-size: clamp(43px, 11.6vw, 72px); }
}

@media (max-width: 520px) {
  .architecture-board { padding: 16px 12px 12px; }
  .architecture-domains { grid-template-columns: 1fr; margin-top: 8px; }
  .architecture-domains::after {
    inset: 32px auto 0 5px;
    border: 0;
    border-left: 1px solid var(--diagram-line);
  }

  .architecture-domain {
    grid-template: auto auto / 74px minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;
    padding: 0 0 2px 20px;
    text-align: left;
  }

  .architecture-domain img { grid-row: span 2; margin: 0; }
  .architecture-domain h3 { align-self: end; }
  .architecture-domain p { margin-top: 2px; }
  .architecture-domain::before { left: 2px; top: 29px; z-index: 1; }
  .architecture-domain::after {
    left: 5px;
    top: 32px;
    bottom: auto;
    width: 15px;
    height: auto;
    border: 0;
    border-top: 1px solid var(--diagram-line);
  }

  .architecture-trunk { height: 23px; }
  .architecture-trunk::before {
    inset: 0 50% 0 5px;
    border: 0;
    background:
      linear-gradient(var(--diagram-line), var(--diagram-line)) left top / 1px 50% no-repeat,
      linear-gradient(90deg, var(--diagram-line), var(--diagram-teal)) center / 100% 1px no-repeat,
      linear-gradient(var(--diagram-teal), var(--diagram-teal)) right bottom / 1px 50% no-repeat;
  }

  .architecture-trunk::after { top: 8px; }
  .identity-foundation { justify-content: flex-start; }
  .identity-emblem { width: 35px; height: 35px; }
  .flow-step { flex-direction: column; }
  .flow-review { flex-direction: row; }
  .flow-decisions li { flex-direction: column; }
}
