@import url('./ops-motion.css');

.ops-summary {
  --ops-line: #90b784;
  --ops-accent: #c3ee90;
  --ops-muted: #a9c0b7;
  color: #e8efe9;
  scroll-margin-top: 100px;
}
.ops-summary-diagram {
  padding: 0 28px 22px;
  border: 1px solid #2b3c35;
  border-top: 0;
  background: radial-gradient(ellipse at 50% 61%, #29493a45, transparent 72%);
}
.ops-system-bridge {
  position: relative;
  height: 88px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 48px 48px minmax(0,1fr);
  align-items: center;
  color: #c5dfb8;
  font-size: 14px;
}
.ops-system-bridge > span:first-child { text-align: right; padding-right: 16px; }
.ops-system-bridge > span:last-child { padding-left: 16px; }
.ops-system-bridge i { position: relative; display: block; height: 100%; width: 2px; margin: auto; }
.ops-bridge-down { background: #bbe2b5; box-shadow: 0 0 9px #b0de9d40; }
.ops-bridge-up { background: repeating-linear-gradient(to bottom,#c6e58a 0 8px,transparent 8px 13px); }
.ops-system-bridge i::before { content: ''; position: absolute; top: -5px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: #c3ee90; box-shadow: 0 0 0 5px #c3ee9018, 0 0 15px #c3ee9040; }
.ops-system-bridge i::after { content: ''; position: absolute; width: 9px; height: 9px; left: -3.5px; border-right: 2px solid #c3ee90; border-bottom: 2px solid #c3ee90; }
.ops-bridge-down::after { bottom: 15px; transform: rotate(45deg); }
.ops-bridge-up::after { top: 18px; transform: rotate(225deg); }
.ops-summary-model {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  max-width: 780px;
  min-height: 110px;
  margin-inline: auto;
  padding: 15px 25px;
  border: 1px solid #68895b;
  background: linear-gradient(110deg,#142b21,#1a3528,#142b21);
}
.ops-summary-model-image, .ops-summary-system-image { display: block; width: 280px; height: auto; aspect-ratio: 3 / 2; object-fit: contain; flex-shrink: 0; border-radius: 3px; }
.ops-summary-model-image { width: 320px; }
.ops-summary-model h4 { font-size: 24px; line-height: 1.5; font-weight: 400; margin: 0; color: #d4e7c7; }
.ops-summary-model p { color: #a9c1ac; font-size: 13px; line-height: 1.65; margin: 5px 0 0; }
.ops-summary-distribution { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; height: 44px; }
.ops-summary-distribution::before { content: ''; position: absolute; width: 1px; height: 17px; background: var(--ops-line); left: 50%; top: 0; }
.ops-summary-distribution::after { content: ''; position: absolute; height: 1px; background: var(--ops-line); left: 16.6667%; right: 16.6667%; top: 17px; }
.ops-summary-distribution span { position: relative; }
.ops-summary-distribution span::before { content: ''; position: absolute; width: 1px; background: var(--ops-line); top: 17px; bottom: 0; left: 50%; }
.ops-summary-distribution span::after { content: ''; position: absolute; width: 6px; height: 6px; border-right: 1px solid var(--ops-accent); border-bottom: 1px solid var(--ops-accent); bottom: 8px; left: calc(50% - 3px); transform: rotate(45deg); }
.ops-summary-agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0 0 25px; position: relative; }
.ops-summary-agents::after { content: ''; position: absolute; bottom: 0; left: 16.6667%; right: 16.6667%; height: 1px; background: var(--ops-line); }
.ops-summary-agents > li { position: relative; min-width: 0; padding-inline: 8px; }
.ops-summary-agents > li::after { content: ''; position: absolute; width: 1px; height: 25px; background: var(--ops-line); bottom: -25px; left: 50%; }
.ops-agent-card { height: 100%; padding: 16px 12px 20px; text-align: center; border: 1px solid #68895b; border-top: 2px solid var(--ops-accent); background: linear-gradient(145deg,#183326,#10231d); }
.ops-agent-code { display: block; color: #b9d69d; font: 10px/1.5 var(--mono); letter-spacing: .1em; }
.ops-agent-visual { display: block; width: min(240px,100%); height: 144px; margin: 12px auto; overflow: visible; }
.ops-summary-agents h4 { font-weight: 400; font-size: 24px; line-height: 1.5; margin: 0 0 5px; color: #ecf5e8; }
.ops-summary-agents p { color: #c9dfa8; font-size: 15px; line-height: 1.65; margin: 0; }
.ops-summary-flow-arrow { position: relative; height: 28px; }
.ops-summary-flow-arrow::before { content: ''; position: absolute; top: 0; bottom: 6px; width: 1px; left: 50%; background: var(--ops-line); }
.ops-summary-flow-arrow::after { content: ''; position: absolute; bottom: 6px; left: calc(50% - 3px); width: 6px; height: 6px; border-right: 1px solid var(--ops-line); border-bottom: 1px solid var(--ops-line); transform: rotate(45deg); }
.ops-summary-system { display: flex; align-items: center; justify-content: center; gap: 13px; max-width: 780px; min-height: 72px; margin-inline: auto; padding: 18px; border: 1px solid #547347; background: #172c22; color: #c6ddb9; }
.ops-summary-system h3 { font-size: 21px; line-height: 1.6; font-weight: 400; margin: 0; }
.ops-summary-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 12px; }
.ops-summary-footer .text-link { color: #cfdfc1; font-size: 14px; }
@media (max-width: 1000px) {
  .ops-summary-diagram { padding-inline: 16px; }
  .ops-agent-card { padding-inline: 10px; }
  .ops-summary-agents h4 { font-size: 22px; }
  .ops-summary-agents p { font-size: 14px; }
}
@media (max-width: 600px) {
  .ops-summary-diagram { padding: 0 10px 16px; }
  .ops-system-bridge { height: 68px; font-size: 11px; grid-template-columns: minmax(0,1fr) 28px 28px minmax(0,1fr); }
  .ops-system-bridge > span:first-child { padding-right: 10px; }
  .ops-system-bridge > span:last-child { padding-left: 10px; }
  .ops-summary-model { gap: 8px; padding: 12px 9px; min-height: 85px; }
  .ops-summary-model-image, .ops-summary-system-image { width: 100%; }
  .ops-summary-model h4 { font-size: 17px; }
  .ops-summary-model p { font-size: 10px; }
  .ops-summary-distribution { height: 35px; }
  .ops-summary-agents > li { padding-inline: 3px; }
  .ops-agent-card { padding: 14px 5px 17px; }
  .ops-agent-code { font-size: 8px; letter-spacing: 0; }
  .ops-agent-visual { height: auto; aspect-ratio: 3 / 2; margin: 12px auto; }
  .ops-summary-agents h4 { font-size: 18px; line-height: 1.5; }
  .ops-summary-agents h4 span { display: block; white-space: nowrap; font-size: 14px; }
  .ops-summary-agents p { font-size: 12px; }
  .ops-summary-system { gap: 8px; padding: 13px 10px; min-height: 65px; }
  .ops-summary-system h3 { font-size: 15px; }
  html[lang="en"] .ops-summary-agents h4 { font-size: 16px; }
}
