/* © TechNext Pte. Ltd. (technext.asia). All rights reserved. */
/* /odoo/integration (22 Oct 2026): glass connections panel in the hero (four connectors syncing into Odoo), the system ledger, the BIR block
   and the connector flow. Builds on home-fx.css and svc-fx.css. Transform/opacity motion, paused off-screen. */

/* ---------------------------------------------------------------- hero panel */
.itg-panel { gap: 14px; }
.itg-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.itg-rows li { display: grid; grid-template-columns: 22px minmax(0,1.15fr) minmax(36px,.55fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #EEF1F7;
  transition: border-color .4s var(--fx-ease), background-color .4s var(--fx-ease); }
.itg-rows li.is-run { border-color: var(--blue-300); background: rgba(240,245,254,.8); }
.itg-rows li.is-retry { border-color: #F0D7A8; background: rgba(253,247,236,.9); }
.itg-rows li > .ic, .itg-rows li > .oi { width: 22px; height: 22px; }
.itg-rows li > .ic { color: var(--blue); }
.itg-n { display: grid; gap: 1px; min-width: 0; }
.itg-n b { font: 700 13.5px/1.25 var(--font-body); color: var(--ink); }
.itg-n small { font: 500 12.5px/1.3 var(--font-body); color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.itg-beam { position: relative; height: 2px; border-radius: 2px; background: var(--fx-line); overflow: hidden; }
.itg-beam i { position: absolute; top: 0; left: 0; width: 34%; height: 100%; background: linear-gradient(90deg, transparent, var(--blue), transparent); transform: translateX(-100%); opacity: 0; }
.itg-rows li.is-run .itg-beam i { opacity: 1; animation: igBeam 1.1s linear infinite; }
.itg-rows li.is-retry .itg-beam i { opacity: 1; background: linear-gradient(90deg, transparent, #D97B12, transparent); animation: igBeam 1.6s linear infinite; }
@keyframes igBeam { to { transform: translateX(300%); } }
.itg-panel.fx-off .itg-beam i { animation-play-state: paused; }
.itg-end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.itg-end em { min-width: 2ch; text-align: right; font: 800 14px/1 var(--font-display); font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; }
.itg-end .sv-st { min-width: 84px; justify-content: center; }
.itg-hub { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: -4px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--blue-300); background: rgba(240,245,254,.7); }
.itg-hub .oi { width: 22px; height: 22px; }
.itg-hub b { margin-left: 6px; font: 800 14px/1.2 var(--font-display); color: var(--ink); }
.itg-hub small { font: 500 12.5px/1.2 var(--font-body); color: var(--body); }
.itg-rec .sv-h { margin-bottom: 8px; }
.itg-bar { position: relative; display: block; height: 8px; border-radius: 4px; background: #E3E9F5; overflow: hidden; }
.itg-bar i { position: absolute; inset: 0; border-radius: 4px; background: var(--blue); box-shadow: 0 0 10px rgba(49,103,202,.55); transform-origin: left; transform: scaleX(.927); transition: transform .9s var(--fx-ease); }
.itg-feed { min-height: 0; }

/* ---------------------------------------------------------------- the six systems */
.itg-sys { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); overflow: hidden; }
.itg-sys article { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 18px; align-content: start; padding: 28px 32px; }
.itg-sys article:nth-child(even) { border-left: 1px solid var(--fx-line); }
.itg-sys article:nth-child(n+3) { border-top: 1px solid var(--fx-line); }
.itg-sys article > .ic, .itg-sys article > .oi { width: 28px; height: 28px; margin-top: 2px; }
.itg-sys article > .ic { color: var(--blue); }
.itg-sys h3 { margin: 0 0 8px; font: 800 20px/1.25 var(--font-display); color: var(--ink); letter-spacing: -.015em; }
.itg-sys p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--body); }
.itg-sys ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.itg-sys li { padding: 6px 12px; border-radius: 999px; background: var(--blue-050); color: var(--blue-700); font: 650 12.5px/1 var(--font-body); }

/* ---------------------------------------------------------------- connector flow */
.itg-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 40px; counter-reset: igf; }
.itg-flow li { position: relative; counter-increment: igf; padding: 24px 22px 26px; border-radius: 22px; background: var(--fx-glass); border: 1px solid var(--fx-edge); box-shadow: var(--fx-depth);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.itg-flow li::before { content: counter(igf); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); color: var(--blue); font: 800 14px/1 var(--font-display);
  box-shadow: 0 0 0 5px rgba(49,103,202,.1); }
.itg-flow li:not(:last-child)::after { content: ""; position: absolute; left: calc(100% + 4px); top: 50%; width: 32px; height: 2px; margin-top: -1px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent) -60% 0 / 60% 100% no-repeat, var(--fx-line); animation: igConn 2.4s linear infinite; }
.itg-flow li:nth-child(2)::after { animation-delay: .5s; } .itg-flow li:nth-child(3)::after { animation-delay: 1s; }
@keyframes igConn { to { background-position: 160% 0, 0 0; } }
.itg-flow.is-off li::after { animation-play-state: paused; }
.itg-flow b { display: block; margin: 0 0 8px; font: 800 19px/1.25 var(--font-display); color: var(--ink); letter-spacing: -.015em; }
.itg-flow p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }

/* ---------------------------------------------------------------- in short */
.itg-short { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.itg-short li { display: flex; align-items: baseline; gap: 8px; padding: 12px 18px; border-radius: 16px; background: var(--fx-glass); border: 1px solid var(--fx-edge); box-shadow: var(--fx-depth); }
.itg-short b { font: 800 26px/1 var(--font-display); color: var(--blue); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.itg-short span { font: 600 14px/1.3 var(--font-body); color: var(--body); }

/* ---------------------------------------------------------------- sync map demo (kept) extras */
.svc-fx .smap-wrap { min-height: 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .itg-flow { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
  .itg-flow li::after { display: none; }
}
@media (max-width: 760px) {
  .itg-sys { grid-template-columns: 1fr; }
  .itg-sys article:nth-child(even) { border-left: 0; }
  .itg-sys article:nth-child(n+2) { border-top: 1px solid var(--fx-line); }
  .itg-sys article { padding: 22px 18px; gap: 14px; }
}
@media (max-width: 600px) {
  .itg-rows li { grid-template-columns: 22px minmax(0,1fr) auto; gap: 4px 10px; }
  .itg-rows .itg-beam { grid-column: 2 / -1; grid-row: 2; }
  .itg-end .sv-st { min-width: 0; }
  .itg-flow { grid-template-columns: 1fr; }
  .itg-short li { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .itg-rows li.is-run .itg-beam i, .itg-rows li.is-retry .itg-beam i, .itg-flow li::after { animation: none; }
  .itg-rows li, .itg-bar i { transition: none; }
}
