/* ==========================================================================
   sgcHTML product page showcase (products/sgchtml/index.html)
   Builds on css/home-sgcui.css (.uix-* hero, buttons, sections) and adds
   .shx-* blocks: proof strip, video theatre, live demo bento, filmstrip,
   code + result split, family tiles, closing band. Loaded only by this page.
   ========================================================================== */

:root {
  --shx-violet: #7C3AED;
  --shx-teal:   #14B8A6;
  --shx-card:   #fff;
  --shx-shadow: 0 1px 2px rgba(7,22,48,.06), 0 18px 40px -24px rgba(7,22,48,.35);
}

.shx-page .allaccess-bar { margin: 0; }

/* Hero --------------------------------------------------------------------- */
.shx-crumb { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: #8FA3C0; margin: 0 0 18px; }
.shx-crumb a { color: #B7C6DC; text-decoration: none; }
.shx-crumb a:hover { color: #fff; }
.shx-crumb svg { opacity: .6; }
.shx-brand { display: block; font-size: .32em; letter-spacing: .02em; font-weight: 800; color: var(--uix-amber); margin-bottom: .5em; }
.shx-hero .uix-h1 .uix-line--soft { color: #8FB8F0; }
.shx-hero-more { display: inline-block; margin: -10px 0 26px; color: #B7C6DC; font-weight: 600; font-size: .95rem; }
.shx-hero-more:hover { color: #fff; }
.shx-hero .uix-win--hero .uix-media { background: #050B16; }

/* Proof strip ------------------------------------------------------------- */
.shx-proof { background: var(--uix-ink); color: #fff; padding: 0 0 56px; }
.shx-proof ul {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px;
  background: rgba(255,255,255,.1); border-radius: 16px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.shx-proof li { background: #0A1C3D; padding: 22px 20px; }
.shx-proof strong { display: block; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; color: #fff; }
.shx-proof strong em { font-style: normal; color: var(--uix-amber); }
.shx-proof span { display: block; margin-top: 8px; font-size: .875rem; color: #A9BAD3; line-height: 1.4; }

/* Section label ------------------------------------------------------------ */
.shx-eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--uix-blue); margin-bottom: 14px;
}
.uix-sec--ink .shx-eyebrow { color: var(--uix-amber); }
.shx-more { margin: 36px 0 0; text-align: center; }
.shx-more a { font-weight: 700; }

/* Video theatre ------------------------------------------------------------ */
.shx-theatre { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 28px; align-items: start; }
.shx-player { margin: 0; }
.shx-player-frame {
  border-radius: 14px; overflow: hidden; background: #050B16; aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 50px 100px -40px rgba(0,0,0,.8);
}
.shx-player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #050B16; }
.shx-player figcaption { padding: 18px 2px 0; }
.shx-player figcaption h3 { margin: 0 0 6px; color: #fff; font-size: 1.25rem; letter-spacing: -.02em; }
.shx-player figcaption p { margin: 0; color: #A9BAD3; line-height: 1.55; }
.shx-list {
  list-style: none; margin: 0; padding: 4px; display: grid; gap: 6px; max-height: 620px; overflow-y: auto;
  border-radius: 14px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
.shx-clip {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 8px; border-radius: 10px; color: #DCE6F5; text-decoration: none; transition: background-color .2s;
}
.shx-clip:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.shx-clip[aria-current="true"] { background: rgba(90,162,255,.16); box-shadow: inset 3px 0 0 var(--uix-amber); color: #fff; }
.shx-clip img { display: block; width: 112px; height: 63px; object-fit: cover; border-radius: 6px; background: #0F1B2E; }
.shx-clip b { display: block; font-size: .9rem; line-height: 1.3; }
.shx-clip small { display: block; font-size: .78rem; color: #8FA3C0; margin-top: 2px; }
.shx-thumb { position: relative; display: block; }
.shx-thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  background: rgba(7,22,48,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23fff'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Live demo bento ---------------------------------------------------------- */
.shx-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.shx-demo {
  position: relative; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: var(--shx-card); box-shadow: var(--shx-shadow), 0 0 0 1px var(--uix-line);
  color: var(--uix-ink); text-decoration: none; transition: transform .25s var(--uix-ease), box-shadow .25s;
}
.shx-demo:hover { transform: translateY(-4px); text-decoration: none; color: var(--uix-ink); box-shadow: 0 30px 60px -30px rgba(0,87,184,.45), 0 0 0 1px var(--uix-sky); }
.shx-demo--wide { grid-column: span 2; grid-row: span 2; }
.shx-demo-media { aspect-ratio: 1100 / 715; overflow: hidden; background: var(--uix-mist); border-bottom: 1px solid var(--uix-line); }
.shx-demo-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s var(--uix-ease); }
.shx-demo:hover .shx-demo-media img { transform: scale(1.04); }
.shx-demo-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shx-demo-body h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.01em; }
.shx-demo--wide .shx-demo-body h3 { font-size: 1.35rem; }
.shx-demo-body p { margin: 0; color: var(--uix-slate); font-size: .9rem; line-height: 1.5; }
.shx-demo-go { margin-top: auto; padding-top: 6px; font-size: .85rem; font-weight: 700; color: var(--uix-blue); }
.shx-live {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(7,22,48,.82); padding: 5px 9px; border-radius: 999px;
}
.shx-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.3); }
.shx-extra-title { margin: 56px 0 18px; font-size: 1.35rem; letter-spacing: -.02em; color: var(--uix-ink); text-align: center; }
.shx-extra { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.shx-extra .shx-demo { padding: 18px; gap: 8px; }
.shx-extra .shx-demo h3 { margin: 0; font-size: 1rem; }
.shx-extra .shx-demo p { margin: 0; color: var(--uix-slate); font-size: .85rem; line-height: 1.5; }
.shx-extra .shx-demo .shx-demo-go { padding-top: 4px; }
.shx-dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--uix-blue), var(--shx-violet)); }
.shx-dot svg { width: 18px; height: 18px; }

/* Filmstrip ---------------------------------------------------------------- */
.shx-strip { position: relative; overflow-x: auto; padding: 6px 0 18px; scrollbar-width: thin; }
.shx-strip--run { overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.shx-strip-track { display: flex; gap: 20px; width: max-content; list-style: none; margin: 0; padding: 0; }
.shx-strip-track li { flex: none; width: 420px; }
.shx-strip-track figure { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shx-shadow), 0 0 0 1px var(--uix-line); }
.shx-strip-track img { display: block; width: 100%; height: auto; }
.shx-strip-track figcaption { padding: 10px 14px; font-size: .85rem; font-weight: 600; color: var(--uix-ink); }
@media (prefers-reduced-motion: no-preference) {
  .shx-strip--run .shx-strip-track { animation: shx-marquee 70s linear infinite; }
  .shx-strip--run:hover .shx-strip-track, .shx-strip--run:focus-within .shx-strip-track { animation-play-state: paused; }
}
@keyframes shx-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }

/* Story rows --------------------------------------------------------------- */
.shx-rows { display: grid; gap: 72px; margin-top: 88px; }
.shx-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.shx-row:nth-child(even) .shx-row-media { order: 2; }
.shx-row-media { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shx-shadow), 0 0 0 1px var(--uix-line); background: #fff; }
.shx-row-media img { display: block; width: 100%; height: auto; }
.shx-row-media--phone { max-width: 420px; justify-self: center; }
.shx-row h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 14px; color: var(--uix-ink); }
.shx-row p { margin: 0; color: var(--uix-slate); font-size: 1.05rem; line-height: 1.65; }

/* Code + result ------------------------------------------------------------ */
.shx-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.shx-code { min-width: 0; }
.shx-code .tabs { margin: 0 0 14px; }
.shx-code .code-block { margin: 0; max-height: 560px; overflow: auto; }
.shx-code .code-block pre { margin: 0; }
.uix-sec--ink .shx-code .tab-btn { color: #A9BAD3; }
.uix-sec--ink .shx-code .tab-btn.active { color: #fff; }
.shx-steps { list-style: none; counter-reset: shx; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.shx-steps li { counter-increment: shx; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.shx-steps li::before {
  content: counter(shx); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 900; color: #1A1200; background: var(--uix-amber);
}
.shx-steps b { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.shx-steps span { color: #A9BAD3; line-height: 1.55; font-size: .95rem; }
.shx-result { margin: 0; }
.shx-result .uix-win { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 40px 80px -30px rgba(0,0,0,.8); }
.shx-result figcaption { margin-top: 12px; font-size: .85rem; color: #8FA3C0; }

/* Feature cards ------------------------------------------------------------ */
.shx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.shx-card {
  background: var(--shx-card); border-radius: 16px; padding: 26px; box-shadow: var(--shx-shadow), 0 0 0 1px var(--uix-line);
  display: flex; flex-direction: column; gap: 10px;
}
.shx-card h3 { margin: 0; font-size: 1.125rem; letter-spacing: -.015em; color: var(--uix-ink); }
.shx-card p { margin: 0; color: var(--uix-slate); line-height: 1.6; font-size: .95rem; }
.shx-card code { font-size: .82em; background: var(--uix-mist); padding: 1px 5px; border-radius: 4px; color: #0B3B7A; word-break: break-word; }
.shx-card a.shx-link { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: .9rem; }
.shx-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--uix-blue);
  background: linear-gradient(135deg, #E8F1FB, #F3EEFF);
}
.shx-ico svg { width: 22px; height: 22px; }
.shx-card--new { position: relative; }
.shx-card--new::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--uix-blue), var(--shx-violet), var(--uix-amber));
}

/* Component families ------------------------------------------------------- */
.shx-families { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.shx-family {
  background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: 0 0 0 1px var(--uix-line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline;
}
.shx-family h3 { margin: 0; font-size: 1.1rem; color: var(--uix-ink); letter-spacing: -.015em; }
.shx-family > a { font-weight: 700; font-size: .85rem; white-space: nowrap; }
.shx-family ul { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.shx-family li { font-size: .78rem; font-weight: 600; color: #0B3B7A; background: #EAF2FC; padding: 4px 9px; border-radius: 6px; }
.shx-family p { grid-column: 1 / -1; margin: 6px 0 0; font-size: .875rem; color: var(--uix-slate); line-height: 1.5; }

/* Razor ------------------------------------------------------------------- */
.shx-razor-note { margin: 28px 0 0; color: #A9BAD3; line-height: 1.65; max-width: 90ch; }
.shx-razor-note code, .uix-sec--ink .uix-lede code { color: #FDE68A; background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px; font-size: .88em; }
.shx-cards--ink .shx-card { background: #0A1C3D; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.shx-cards--ink .shx-card h3 { color: #fff; }
.shx-cards--ink .shx-card p { color: #A9BAD3; }
.shx-cards--ink .shx-card code { background: rgba(255,255,255,.08); color: #FDE68A; }
.shx-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; }

/* Paths in (migrate, WebBroker, customization) ----------------------------- */
.shx-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.shx-path {
  position: relative; border-radius: 18px; padding: 30px; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--uix-ink); display: flex; flex-direction: column; gap: 12px;
}
.shx-path::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 90% at 100% 0%, rgba(0,87,184,.6), transparent 70%); }
.shx-path:nth-child(2)::before { background: radial-gradient(80% 90% at 100% 0%, rgba(124,58,237,.55), transparent 70%); }
.shx-path:nth-child(3)::before { background: radial-gradient(80% 90% at 100% 0%, rgba(240,164,0,.45), transparent 70%); }
.shx-path h3 { margin: 0; font-size: 1.3rem; letter-spacing: -.02em; color: #fff; }
.shx-path p { margin: 0; color: #B7C6DC; line-height: 1.6; font-size: .95rem; }
.shx-path-links { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.shx-path-links a { color: #fff; font-weight: 700; font-size: .9rem; padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); text-decoration: none; }
.shx-path-links a:hover { box-shadow: inset 0 0 0 1.5px #fff; text-decoration: none; }

/* Closing band ------------------------------------------------------------- */
.shx-final { position: relative; overflow: hidden; isolation: isolate; background: var(--uix-ink); color: #fff; padding: 110px 0; text-align: center; }
.shx-final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 50% 0%, rgba(0,87,184,.6), transparent 70%), radial-gradient(40% 60% at 90% 100%, rgba(240,164,0,.18), transparent 70%);
}
.shx-final .uix-h2 { color: #fff; margin: 0 auto 18px; max-width: 20ch; }
.shx-final .uix-lede { color: #B7C6DC; margin: 0 auto 34px; }
.shx-final .uix-cta { justify-content: center; margin: 0; }
.shx-final-links { margin: 26px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; }
.shx-final-links a { color: #B7C6DC; font-weight: 600; }
.shx-final-links a:hover { color: #fff; }

/* Code tabs on a light section keep the site look; on ink they sit on a dark panel */
.uix-sec--ink .code-block { box-shadow: 0 0 0 1px rgba(255,255,255,.1); }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .shx-theatre, .shx-split, .shx-row { grid-template-columns: minmax(0, 1fr); }
  .shx-row:nth-child(even) .shx-row-media { order: 0; }
  .shx-list { max-height: 360px; }
  .shx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shx-extra { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shx-cards, .shx-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shx-paths { grid-template-columns: minmax(0, 1fr); }
  .shx-proof ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shx-families { grid-template-columns: minmax(0, 1fr); }
  .shx-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shx-proof ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shx-rows { margin-top: 56px; gap: 48px; }
}
@media (max-width: 640px) {
  .shx-bento, .shx-extra, .shx-cards, .shx-cards--4 { grid-template-columns: minmax(0, 1fr); }
  .shx-demo--wide { grid-column: auto; grid-row: auto; }
  .shx-strip-track li { width: 280px; }
  .shx-clip { grid-template-columns: 88px minmax(0, 1fr); }
  .shx-clip img { width: 88px; height: 50px; }
  .shx-final { padding: 72px 0; }
  .shx-path { padding: 24px; }
  .shx-card { padding: 22px; }
  .shx-proof li { padding: 18px 16px; }
  .shx-hero .uix-stage { margin-bottom: 8px; }
  .shx-hero .uix-float--b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .shx-demo, .shx-demo-media img { transition: none; }
}

/* Layout refinements ------------------------------------------------------- */
.shx-page .uix-h2 { max-width: 22ch; }
.shx-proof + .uix-sec { padding-top: 72px; }
.shx-demo-media { position: relative; display: block; }
.shx-demo-media picture { display: block; height: 100%; }
.shx-demo--wide .shx-demo-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 240px; }
.shx-demo--wide .shx-demo-media img { position: absolute; inset: 0; }
.shx-demo--wide .shx-demo-body { flex: none; }
.shx-family { align-items: center; }
@media (max-width: 640px) {
  .shx-demo--wide .shx-demo-media { aspect-ratio: 1100 / 715; min-height: 0; }
  .shx-proof + .uix-sec { padding-top: 56px; }
}
@media (max-width: 760px) {
  .shx-proof li:last-child { grid-column: 1 / -1; }
}
