/* inovasys.io — the hero map (from the previous prototype, direction-a): existing systems → connection layer → the seven
   capabilities you add one at a time. Links drawn by io-hero.js. */
.cap-map { position: relative; margin: 0; display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 1024px) { .cap-map { grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.35fr); gap: clamp(1.75rem, 3vw, 3rem); } }
.cm-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.cm-links path { fill: none; stroke: #00E2E0; stroke-width: 1.5; stroke-opacity: .55; transition: stroke-opacity 240ms ease, stroke-width 240ms ease; }
.cm-links path.is-on { stroke-opacity: 1; stroke-width: 2.5; }
.cap-map.has-pick .cm-links path.to-cap:not(.is-on) { stroke-opacity: .18; }
.mo .cm-links path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1200ms var(--mo-ease), stroke-opacity 240ms ease, stroke-width 240ms ease; transition-delay: calc(var(--i, 0) * 70ms + 300ms), 0ms, 0ms; }
.mo .cap-map.is-drawn .cm-links path { stroke-dashoffset: 0; }
.cm-systems, .cm-caps, .cm-hub { position: relative; z-index: 1; }
.cm-k { font: 600 .6875rem/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #A3AAB3; margin: 0 0 var(--space-3); }
.cm-systems ul, .cm-caps ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cm-systems li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #173049; border: 1px solid #2A4258; border-radius: 8px; color: #EEF0F2; }
.cm-systems li i { font-size: 1.375rem; color: #00E2E0; }
.cm-hub { justify-self: center; width: 9rem; height: 9rem; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #0F2740; border: 1px solid #2A4258; box-shadow: 0 0 0 10px rgba(0, 226, 224, .08), 0 0 0 22px rgba(0, 226, 224, .04); }
.cm-hub img { width: 6rem; height: auto; }
.cm-hub small { font: 600 .8125rem/1 var(--font-body); color: #00E2E0; }
.cm-cap { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 10px 8px 14px; background: #173049; border: 1px solid #2A4258; border-radius: 8px; color: #EEF0F2; font: inherit; text-align: left; cursor: pointer; transition: background 160ms ease, border-color 160ms ease; }
.cm-cap:hover { border-color: #00E2E0; }
.cm-cap:focus-visible { outline: 2px solid #00E2E0; outline-offset: 2px; }
.cm-cap i { font-size: 1.25rem; color: #00E2E0; flex: none; }
.cm-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: .9375rem; line-height: 1.25; }
.cm-name b { font-weight: 600; }
.cm-name span { color: #A3AAB3; font-size: .8125rem; }
.cm-plus { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(238, 240, 242, .5); display: grid; place-items: center; font-size: 1rem; line-height: 1; color: #EEF0F2; transition: background 160ms ease, border-color 160ms ease; }
.cm-plus::before { content: "+"; }
.cm-cap[aria-pressed="true"] { background: #1F3B57; border-color: #00E2E0; }
.cm-cap[aria-pressed="true"] .cm-plus { background: #00E2E0; border-color: #00E2E0; color: #0B1C2C; }
.cm-cap[aria-pressed="true"] .cm-plus::before { content: "✓"; font-weight: 700; font-size: .875rem; }
.cm-sum { margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: #A3AAB3; font-size: .875rem; }
.cm-count { color: #FFFFFF; font-weight: 600; }
.cm-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #00E2E0; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1023px) {
  .cm-links { display: none; }
  .cm-systems ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cm-systems li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
  .cm-hub { width: auto; height: auto; flex-direction: row; padding: 10px 18px; border-radius: 999px; box-shadow: none; justify-self: start; }
  .cm-hub img { width: 5rem; }
}
.cm-hub { text-align: center; padding: 0 12px; }
.cm-hub-t { font: 600 1rem/1.2 var(--font-body); color: #FFFFFF; }
.cm-hub-d { font: 500 .75rem/1.35 var(--font-body); color: #A3AAB3; max-width: 7.5rem; }
@media (min-width: 1024px) { .cm-hub { width: 10rem; height: 10rem; } }
@media (max-width: 1023px) { .cm-hub { gap: 8px; } .cm-hub-d { max-width: none; } }
.cm-pulse { fill: #FFFFFF; stroke: #00E2E0; stroke-width: 2; pointer-events: none; }
.mo .cm-hub.is-hit { animation: cm-hit 700ms ease-out 1; }
@keyframes cm-hit { 0% { box-shadow: 0 0 0 10px rgba(31,168,224,.08), 0 0 0 22px rgba(31,168,224,.04); } 40% { box-shadow: 0 0 0 14px rgba(31,168,224,.22), 0 0 0 30px rgba(31,168,224,.08); } 100% { box-shadow: 0 0 0 10px rgba(31,168,224,.08), 0 0 0 22px rgba(31,168,224,.04); } }
