/* © TechNext Pte. Ltd. (technext.asia). All rights reserved. */
/* /odoo/erp-system (22 Oct 2026): glass layer stack in the hero (requirements climbing from standard to a custom module), the one-system
   blocks, the climb and the hosting list. Builds on home-fx.css and svc-fx.css. Transform/opacity motion, paused off-screen. */

/* ---------------------------------------------------------------- hero panel */
.cst-panel { gap: 14px; }
.cst-req { display: flex; align-items: baseline; gap: 10px; margin: -4px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(240,245,254,.7); border: 1px solid var(--fx-line); min-width: 0; }
.cst-req span { flex: none; font: 700 12.5px/1.2 var(--font-body); color: var(--blue-700); }
.cst-req b { min-width: 0; font: 700 14px/1.3 var(--font-body); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cst-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; }
.cst-stack > li { --t: 255, 255, 255; display: grid; grid-template-columns: 150px minmax(0,1fr) 98px; gap: 10px; align-items: center; padding: 8px 12px; min-height: 54px; border-radius: 12px; background: #fff; border: 1px solid #E6ECF7;
  transition: border-color .4s var(--fx-ease), box-shadow .4s var(--fx-ease), background-color .4s var(--fx-ease); }
.cst-stack > li[data-l="int"] { background: rgba(236,242,252,.95); } .cst-stack > li[data-l="mod"] { background: rgba(240,245,253,.95); } .cst-stack > li[data-l="stu"] { background: rgba(244,248,254,.95); }
.cst-stack > li[data-l="cfg"] { background: rgba(248,250,254,.95); }
.cst-stack > li.is-hit { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,103,202,.12), 0 14px 26px -18px rgba(49,103,202,.7); }
.cst-stack > li.is-no { border-color: #E6ECF7; box-shadow: none; }
.cst-lh { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cst-lh > .ic, .cst-lh > .oi { width: 22px; height: 22px; flex: none; }
.cst-lh > .ic { color: var(--blue); }
.cst-lh b { font: 700 13.5px/1.2 var(--font-body); color: var(--ink); }
.cst-slot { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; min-height: 28px; align-items: center; }
.cst-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 10px; border-radius: 999px; background: var(--blue-050); color: var(--blue-700); font: 650 12.5px/1.15 var(--font-body); }
.cst-pill.is-new { animation: svIn .5s var(--fx-ease); }
.cst-pill.is-ok::after { content: ""; flex: none; width: 5px; height: 9px; margin: -2px 1px 0 2px; border-right: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(45deg); }
.cst-gate { display: flex; justify-content: flex-end; min-width: 0; }
.cst-gate em { font: 600 12.5px/1.25 var(--font-body); font-style: normal; color: var(--body); text-align: right; transition: color .3s; overflow-wrap: anywhere; }
.cst-gate em.is-yes { color: var(--ok); font-weight: 700; }
.cst-gate em.is-no { color: var(--body); }

.cst-meters { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid #EEF1F7; }
.cst-m p { display: flex; justify-content: space-between; gap: 6px; margin: 0 0 7px; font: 600 12.5px/1.2 var(--font-body); color: var(--body); }
.cst-m p b { font: 700 12.5px/1.2 var(--font-body); color: var(--ink); }
.cst-m p em { font-style: normal; font-weight: 700; color: var(--blue-700); }
.cst-bar { position: relative; display: block; height: 8px; border-radius: 4px; background: #E3E9F5; overflow: hidden; }
.cst-bar i { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, #3FAF7B, var(--blue)); transform-origin: left; transform: scaleX(var(--w, 0)); transition: transform .8s var(--fx-ease); }
.cst-verdict { display: flex; align-items: flex-start; gap: 8px; margin: 0; font: 600 13px/1.45 var(--font-body); color: var(--body); transition: color .4s var(--fx-ease); }
.cst-verdict .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #B7BCCB; transition: color .4s var(--fx-ease); }
.cst-verdict.is-on { color: var(--ok); }
.cst-verdict.is-on .ic { color: var(--ok); }

/* ---------------------------------------------------------------- one system, tailored where it counts */
.cst-bento { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 16px; }
.cst-b { grid-column: span 2; padding: 28px 28px 30px; transition: transform .4s var(--fx-ease), box-shadow .4s var(--fx-ease); }
.cst-b--wide { grid-column: span 4; }
.cst-b:nth-child(6) { grid-column: span 6; }
.cst-b:hover { transform: translateY(-3px); box-shadow: var(--fx-depth-h), inset 0 1px 0 #fff; }
.cst-b h3 { margin: 0 0 10px; font: 800 22px/1.2 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.cst-b p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--body); max-width: 40.38em; }
.cst-apps { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--fx-line); display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cst-apps li { display: inline-flex; align-items: center; gap: 8px; font: 650 14.5px/1 var(--font-body); color: var(--ink); }
.cst-apps .oi { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- the climb */
.cst-climb { position: relative; list-style: none; margin: 0; padding: 0 0 12px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; align-items: start; }
.cst-climb::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent) -30% 0 / 24% 100% no-repeat, var(--fx-line); animation: svPath 4.2s var(--fx-ease) infinite; }
.cst-climb.is-off::before { animation-play-state: paused; }
.cst-climb li { position: relative; 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); transform: translateY(calc((3 - var(--k)) * 34px)); }
.cst-climb li:last-child { border-color: rgba(49,103,202,.35); box-shadow: 0 0 0 1px rgba(49,103,202,.12), var(--fx-depth-h); }
.cst-kn { 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); }
.cst-climb h3 { margin: 0 0 8px; font: 800 19px/1.25 var(--font-display); color: var(--ink); letter-spacing: -.015em; }
.cst-climb p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.cst-climb { padding-bottom: 36px; }
.cst-climb::before { bottom: 12px; }

/* ---------------------------------------------------------------- where it runs */
.cst-host { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.cst-host li { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--fx-glass); border: 1px solid var(--fx-edge); box-shadow: 0 1px 2px rgba(31,31,61,.04), 0 14px 28px -22px rgba(30,70,145,.4); }
.cst-host .ic { width: 24px; height: 24px; color: var(--blue); }
.cst-host b { display: block; font: 800 16px/1.25 var(--font-display); color: var(--ink); }
.cst-host small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--body); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .cst-bento { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cst-b, .cst-b--wide { grid-column: span 1; }
  .cst-b--wide, .cst-b:nth-child(6) { grid-column: 1 / -1; }
  .cst-climb { grid-template-columns: repeat(2, minmax(0,1fr)); padding-bottom: 12px; }
  .cst-climb li { transform: none; }
  .cst-climb::before { display: none; }
}
@media (max-width: 760px) {
  .cst-bento { grid-template-columns: 1fr; }
  .cst-climb { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cst-stack > li { grid-template-columns: minmax(0,1fr) auto; gap: 6px 10px; }
  .cst-stack .cst-slot { grid-column: 1 / -1; grid-row: 2; min-height: 0; }
  .cst-slot:empty { display: none; }
  .cst-gate { grid-column: 2; grid-row: 1; }
  .cst-gate em { max-width: 110px; }
  .cst-meters { grid-template-columns: 1fr; gap: 10px; }
  .cst-b { padding: 22px 20px 24px; }
  .cst-req { flex-direction: column; gap: 2px; }
  .cst-req b { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .cst-pill.is-new, .cst-climb::before { animation: none; }
  .cst-stack > li, .cst-bar i, .cst-b, .cst-verdict, .cst-verdict .ic { transition: none; }
  .cst-b:hover { transform: none; }
}
