.brand-mark {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--tx);
  text-decoration: none;
}
.hero {
  padding: 140px 0 80px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 500px;
  background: linear-gradient(180deg, #edf7fb 0%, var(--bg) 100%);
  z-index: -1;
}
.h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: -1.5px;
  line-height: 1.15;
}
/* ── Architecture Diagram ─────────────────────── */
.arch-wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* Engine — top node */
.arch-engine {
  background: linear-gradient(
    135deg,
    rgba(202, 233, 245, 0.32) 0%,
    rgba(248, 254, 253, 0.6) 55%,
    rgba(250, 249, 246, 0) 100%
  );
  border: 1px solid var(--bd);
  border-top: 2.25px solid var(--hd);
  border-radius: 20px;
  padding: 36px 40px 30px;
  position: relative;
  box-shadow:
    0 6px 48px rgba(59, 160, 196, 0.11),
    0 1px 4px rgba(59, 160, 196, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.arch-engine:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 54px rgba(59, 160, 196, 0.16),
    0 2px 6px rgba(59, 160, 196, 0.1);
  border-left-color: var(--hover-ring);
  border-right-color: var(--hover-ring);
  border-bottom-color: var(--hover-ring);
}
.arch-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 160, 196, 0.08);
  border: 1px solid rgba(59, 160, 196, 0.22);
  border-radius: 20px;
  padding: 5px 14px 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--hd);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.arch-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hd);
  flex-shrink: 0;
  animation: archpulse 2s ease-in-out infinite;
}
@keyframes archpulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.75);
  }
}
.arch-eng-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--hd);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.arch-eng-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--tx);
  line-height: 1.2;
  margin-bottom: 12px;
}
.arch-eng-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--t2);
  max-width: 580px;
  margin-bottom: 26px;
}
.arch-flow-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(229, 226, 220, 0.9);
  border-radius: 12px;
  padding: 12px 18px;
}
.arch-flow-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--hd);
  padding: 5px 11px;
  background: rgba(59, 160, 196, 0.08);
  border-radius: 7px;
  border: 1px solid rgba(59, 160, 196, 0.18);
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.arch-flow-arrow {
  color: #c8c4bc;
  font-size: 12px;
  flex-shrink: 0;
}

/* Bridge connector — T-shape with dashed lines */
.arch-bridge {
  position: relative;
  height: 68px;
}
.arch-bridge-stem {
  position: absolute;
  top: 0;
  left: calc(50% - 1px);
  width: 2px;
  height: 34px;
  background: repeating-linear-gradient(
    180deg,
    var(--hd) 0,
    var(--hd) 5px,
    transparent 5px,
    transparent 11px
  );
}
.arch-bridge-bar {
  position: absolute;
  top: 33px;
  left: calc(25% - 1px);
  right: calc(25% - 1px);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--hd) 0,
    var(--hd) 5px,
    transparent 5px,
    transparent 11px
  );
}
.arch-bridge-drop-l {
  position: absolute;
  top: 33px;
  bottom: 0;
  left: calc(25% - 1px);
  width: 2px;
  background: repeating-linear-gradient(
    180deg,
    var(--hd) 0,
    var(--hd) 5px,
    transparent 5px,
    transparent 11px
  );
}
.arch-bridge-drop-r {
  position: absolute;
  top: 33px;
  bottom: 0;
  right: calc(25% - 1px);
  width: 2px;
  background: repeating-linear-gradient(
    180deg,
    var(--hd) 0,
    var(--hd) 5px,
    transparent 5px,
    transparent 11px
  );
}
.arch-bridge-arr-l,
.arch-bridge-arr-r {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--hd);
}
.arch-bridge-arr-l {
  left: calc(25% - 5px);
}
.arch-bridge-arr-r {
  right: calc(25% - 5px);
}
/* Data flow particles */
.arch-flow-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hd);
  box-shadow:
    0 0 10px rgba(59, 160, 196, 0.95),
    0 0 5px rgba(59, 160, 196, 0.7);
  pointer-events: none;
  opacity: 0;
}
.arch-flow-dot-l1 {
  animation: flowLeft 11s linear infinite;
}
.arch-flow-dot-l2 {
  animation: flowLeft 11s linear infinite;
  animation-delay: 3.67s;
}
.arch-flow-dot-l3 {
  animation: flowLeft 11s linear infinite;
  animation-delay: 7.33s;
}
.arch-flow-dot-r1 {
  animation: flowRight 11s linear infinite;
}
.arch-flow-dot-r2 {
  animation: flowRight 11s linear infinite;
  animation-delay: 3.67s;
}
.arch-flow-dot-r3 {
  animation: flowRight 11s linear infinite;
  animation-delay: 7.33s;
}
@keyframes flowLeft {
  0%,
  100% {
    top: 62px;
    left: calc(25% - 3.5px);
    opacity: 0;
  }
  3% {
    top: 62px;
    left: calc(25% - 3.5px);
    opacity: 1;
  }
  32% {
    top: 33px;
    left: calc(25% - 3.5px);
    opacity: 1;
  }
  60% {
    top: 31px;
    left: calc(50% - 3.5px);
    opacity: 1;
  }
  88% {
    top: 1px;
    left: calc(50% - 3.5px);
    opacity: 1;
  }
  93% {
    top: -3px;
    left: calc(50% - 3.5px);
    opacity: 0;
  }
}
@keyframes flowRight {
  0%,
  100% {
    top: 62px;
    left: calc(75% - 3.5px);
    opacity: 0;
  }
  3% {
    top: 62px;
    left: calc(75% - 3.5px);
    opacity: 1;
  }
  32% {
    top: 33px;
    left: calc(75% - 3.5px);
    opacity: 1;
  }
  60% {
    top: 31px;
    left: calc(50% - 3.5px);
    opacity: 1;
  }
  88% {
    top: 1px;
    left: calc(50% - 3.5px);
    opacity: 1;
  }
  93% {
    top: -3px;
    left: calc(50% - 3.5px);
    opacity: 0;
  }
}
/* Live Connectors active badge */
.arch-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 160, 196, 0.08);
  border: 1px solid rgba(59, 160, 196, 0.22);
  border-radius: 20px;
  padding: 4px 13px 4px 9px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--hd);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.arch-live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hd);
  flex-shrink: 0;
  animation: archpulse 1.6s ease-in-out infinite;
}
/* Vault spacer — matches badge height so both card headers align */
.arch-vault-badge-spacer {
  height: 33px;
}

/* Source cards */
.arch-sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 0;
  grid-template-rows: auto 1fr;
}
.arch-source {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 249, 246, 0.96) 100%);
  border: 1px solid var(--bd);
  border-top: 2.25px solid var(--hd);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
}
.arch-source:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(59, 160, 196, 0.09);
  border-left-color: rgba(59, 160, 196, 0.28);
  border-right-color: rgba(59, 160, 196, 0.28);
  border-bottom-color: rgba(59, 160, 196, 0.28);
}
.arch-source-hd {
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--bd);
}
.arch-vault .arch-source-hd {
  background: linear-gradient(135deg, #edf7fb 0%, #f8fefd 100%);
}
.arch-live .arch-source-hd {
  background: linear-gradient(135deg, #edf7fb 0%, #f8fefd 100%);
}
.arch-source-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.arch-vault .arch-source-label {
  color: var(--t2);
}
.arch-live .arch-source-label {
  color: var(--hd);
}
.arch-source-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--tx);
  margin-bottom: 7px;
  letter-spacing: -0.3px;
}
.arch-source-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--t2);
}
.arch-source-body {
  padding: 20px 26px;
}
.arch-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: #f3f1ec;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
}
.arch-tool {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: #f3f1ec;
  border-radius: 7px;
}
.arch-tool img {
  width: 15px;
  height: 15px;
  border-radius: 3px;
}
.arch-tool span {
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
}
@media (max-width: 768px) {
  .arch-engine {
    padding: 24px 20px;
  }
  .arch-bridge {
    display: none;
  }
  .arch-sources {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 20px;
  }
  .arch-source {
    grid-row: auto;
    grid-template-rows: auto auto;
  }
}
.back-btn {
  font-size: 13px;
  color: var(--t2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.back-btn:hover {
  color: var(--hd);
}

/* Solid white card surfaces, consistent with the landing page. */
.arch-engine,
.arch-source,
.arch-vault .arch-source-hd,
.arch-live .arch-source-hd,
.cd {
  background: #fff;
}

/* Match the anatomy sections on the other product deep dives. */
.sec {
  padding: 80px 0;
}
.arch-wrap {
  max-width: none;
}
.arch-engine,
.arch-source,
.stage-example {
  background: #fff;
  border: 1px solid #d8e5e9;
  border-top: 2.25px solid var(--hd);
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
}
.arch-engine {
  padding: 24px 28px;
}
.arch-vault .arch-source-hd,
.arch-live .arch-source-hd {
  background: #f3f9fb;
}
.arch-source-hd,
.arch-source-body {
  padding: 18px 28px;
}
.arch-eng-label,
.arch-source-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--tx);
}
.arch-vault .arch-source-label,
.arch-live .arch-source-label {
  color: var(--tx);
}
.arch-status {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.arch-eng-desc {
  max-width: none;
}
.stage-line-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--hd);
}
.arch-flow-step,
.arch-chip,
.arch-tool {
  font-size: 13px;
  line-height: 1.5;
  gap: 8px;
}
.stage-example {
  margin-top: 40px;
}
.stage-example header {
  padding: 24px 28px;
  border-bottom: 1px solid #d8e5e9;
  background: #f3f9fb;
}
.stage-example h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
}
.stage-example-body {
  padding: 16px 28px;
}
.stage-benefits {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 768px) {
  .sec {
    padding: 60px 0;
  }
  .ct {
    padding: 0 20px;
  }
  .stage-benefits {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .arch-engine,
  .arch-source-hd,
  .arch-source-body,
  .stage-example header,
  .stage-example-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .stage-example h3 {
    font-size: 19px;
  }
}
