/* ═══════════════════════════════════════════════════════════════
   TRAXIUM — Home overview (index.html)
   Built on the master tokens in assets/traxium/css/traxium.css.
   Loaded before traxium-app.css so the tx-platform-shell layer outranks it.
═══════════════════════════════════════════════════════════════ */

.hx-hero, .hx-flow-band, .hx-explore, .hx-swap, .hx-cta { --hx-radius: 28px; --hx-teal: var(--tx-side-bg, #0F4F4B); }

/* ── Shared type ── */
.hx-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px 8px 12px;
  border-radius: 999px; background: var(--tx-sage); color: var(--tx-on-sage); font-weight: 700;
}
.hx-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tx-apricot); box-shadow: 0 0 0 4px rgba(242, 166, 90, 0.25); }
.hx-kicker { margin: 0 0 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx-numbers); }
.hx-kicker--on-teal { color: var(--tx-apricot); }
.hx-h2 { margin: 0; line-height: 1.12; color: var(--tx-text); }
.hx-h2--on-teal { color: #fff; }
.hx-section-head { max-width: 760px; margin-bottom: 32px; }
.hx-lead { margin: 14px 0 0; line-height: 1.55; }
.hx-text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 800; color: var(--tx-numbers); }
.hx-text-link::after, .hx-card-links a::after {
  content: ''; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--hx-arrow) center / contain no-repeat; mask: var(--hx-arrow) center / contain no-repeat;
  transition: transform .18s;
}
.hx-text-link:hover::after, .hx-card-links a:hover::after { transform: translateX(4px); }
:root { --hx-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }

/* ── Hero ── */
.hx-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.hx-hero-title { margin: 0 0 22px; font-size: clamp(42px, 4.6vw, 66px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; color: var(--tx-text); }
.hx-accent { color: var(--tx-numbers); background: linear-gradient(transparent 78%, rgba(242, 166, 90, 0.45) 78%, rgba(242, 166, 90, 0.45) 94%, transparent 94%); }
.hx-hero-sub { max-width: 560px; margin: 0 0 30px; line-height: 1.55; }
.hx-hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hx-proof { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 14px clamp(24px, 3vw, 44px); list-style: none; margin: 40px 0 0; padding: 26px 0 0; border-top: 2px solid var(--tx-line); }
.hx-proof li { display: flex; flex-direction: column; gap: 2px; }
.hx-proof-number { font-family: var(--tx-font-numbers); font-size: 44px; line-height: 1; font-weight: 700; color: var(--tx-numbers); }

/* Product visual */
.hx-visual { position: relative; padding: 28px 0 76px 28px; }
.hx-visual::before {
  content: ''; position: absolute; inset: 0 20px 24px 0; border-radius: 36px; background: var(--tx-sage); transform: rotate(-3deg);
}
.hx-window {
  position: relative; overflow: hidden; border-radius: 24px; background: var(--tx-card);
  border: 1px solid var(--tx-line); box-shadow: 0 30px 60px -24px rgba(15, 79, 75, 0.35), 0 8px 18px rgba(15, 79, 75, 0.08);
}
.hx-window-bar { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--hx-teal); color: #fff; }
.hx-window-dots { display: inline-flex; gap: 6px; }
.hx-window-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.hx-window-dots i:first-child { background: var(--tx-apricot); }
.hx-window-title { flex: 1; font-weight: 700; }
.hx-live { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-weight: 700; }
.hx-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #8FE3B0; }
.hx-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 20px 20px 8px; }
.hx-kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: var(--tx-row-alt); }
.hx-kpi--apricot { background: var(--tx-pending-bg); }
.hx-kpi-number { font-family: var(--tx-font-numbers); font-size: clamp(30px, 2.6vw, 42px); line-height: 1; font-weight: 700; color: var(--tx-numbers); }
.hx-kpi--apricot .hx-kpi-number { color: var(--tx-pending-text); }
.hx-impact { --hx-before: rgba(120, 132, 130, 0.3); display: grid; gap: 10px; padding: 14px 20px 24px; }
.hx-impact-head { color: var(--tx-text); }
.hx-gains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hx-gain--time { --g: #12B886; --g-ink: #0B8A63; --g-soft: rgba(18, 184, 134, 0.13); }
.hx-gain--cost { --g: #F7882F; --g-ink: #C2600F; --g-soft: rgba(247, 136, 47, 0.14); }
.hx-gain--errors { --g: #F0506E; --g-ink: #CC2D4C; --g-soft: rgba(240, 80, 110, 0.12); }
.hx-gain--revenue { --g: #7B61FF; --g-ink: #5A3FE0; --g-soft: rgba(123, 97, 255, 0.12); }
.hx-gain { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px; border-radius: 18px; background: var(--g-soft); border: 1px solid color-mix(in srgb, var(--g) 22%, transparent); }
.hx-gain-tag { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--g-ink); }
.hx-gain-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--g); color: #fff; box-shadow: 0 6px 14px -6px var(--g); }
.hx-gain-icon svg { width: 19px; height: 19px; }
.hx-gain-kpi { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin-top: 4px; color: var(--g-ink); }
.hx-gain-kpi strong { font-family: var(--tx-font-numbers); font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.hx-gain-kpi span { font-weight: 800; }
.hx-gain-label, .hx-gain-why { margin: 0; line-height: 1.3; color: var(--tx-text); }
.hx-gain-label { font-weight: 700; }
.hx-gain-why { margin-top: auto; opacity: 0.75; }
.hx-gain-viz { display: grid; gap: 5px; margin: 4px 0 2px; }
.hx-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 8px; color: var(--tx-text); }
.hx-row span { opacity: 0.7; }
.hx-row em { font-style: normal; font-weight: 800; }
.hx-row b { display: flex; gap: 2px; width: var(--w); height: 8px; border-radius: 999px; background: var(--hx-before); transform-origin: left; overflow: hidden; }
.hx-row--now b { height: 12px; background: var(--g); }
.hx-row--now em { color: var(--g-ink); }
.hx-seg { background: transparent !important; }
.hx-seg i { flex: 1; background: var(--hx-before); }
.hx-spark { position: relative; }
.hx-spark svg { display: block; width: 100%; height: 44px; overflow: visible; }
.hx-spark-area { fill: var(--g); opacity: 0.16; }
.hx-spark-line { fill: none; stroke: var(--g); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hx-spark circle { fill: var(--g); }
.hx-spark-label { font-weight: 700; color: var(--g-ink); }
.hx-impact-note { margin: 2px 0 0; opacity: 0.6; color: var(--tx-text); }
:root[data-theme="dark"] .hx-gain, body.dark-mode .hx-gain { --g-ink: color-mix(in srgb, var(--g) 70%, #fff); }
@media (prefers-reduced-motion: no-preference) {
  .hx-row b { animation: hx-grow 1s cubic-bezier(.2, .8, .2, 1) both; }
  .hx-row--now b { animation-delay: .35s; }
  .hx-spark-line { stroke-dasharray: 400; animation: hx-draw 1.4s ease-out .2s both; }
}
@keyframes hx-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hx-draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
.hx-float {
  position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px;
  border-radius: 20px; background: var(--tx-card); border: 1px solid var(--tx-line); box-shadow: 0 18px 40px -16px rgba(15, 79, 75, 0.4);
}
.hx-float-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--tx-apricot); color: var(--tx-on-apricot); }
.hx-float-icon svg { width: 28px; height: 28px; }
.hx-float-copy { display: flex; flex-direction: column; }

/* ── Workflow band ── */
.hx-flow-inner { position: relative; overflow: hidden; padding: clamp(32px, 4vw, 52px); border-radius: var(--hx-radius); background: var(--hx-teal); color: #fff; }
.hx-flow-inner::before { content: ''; position: absolute; width: 420px; height: 420px; right: -140px; top: -200px; border-radius: 50%; border: 60px solid rgba(124, 196, 181, 0.12); }
.hx-flow-head { position: relative; max-width: 720px; margin-bottom: 36px; }
.hx-steps { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.hx-steps::before { content: ''; position: absolute; left: 6%; right: 6%; top: 40px; border-top: 2px dashed rgba(124, 196, 181, 0.55); }
.hx-steps a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 0 8px; color: #fff; text-align: center; }
.hx-step-icon {
  display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 10px; border-radius: 26px;
  background: #13605B; border: 2px solid rgba(255, 255, 255, 0.28); color: var(--tx-brand-mint, #7CC4B5); transition: transform .2s, background .2s, color .2s;
}
.hx-step-icon svg { width: 38px; height: 38px; }
.hx-steps a:hover .hx-step-icon { transform: translateY(-4px); background: var(--tx-apricot); border-color: var(--tx-apricot); color: var(--tx-on-apricot); }
.hx-step-number { font-family: var(--tx-font-numbers); font-weight: 700; color: var(--tx-apricot); }
.hx-step-title { font-weight: 800; }
.hx-flow-foot { position: relative; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.hx-flow-foot a { color: var(--tx-brand-mint, #7CC4B5); font-weight: 800; text-decoration: underline; text-decoration-color: rgba(124, 196, 181, 0.4); text-underline-offset: 4px; }
.hx-flow-foot a:hover { color: var(--tx-apricot); }

/* ── Explore grid ── */
.hx-explore { padding-top: clamp(56px, 6vw, 88px); }
.hx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hx-card {
  --c-bg: var(--tx-card); --c-text: var(--tx-text); --c-tile: var(--tx-sage); --c-icon: var(--tx-numbers);
  --c-link: var(--tx-numbers); --c-rule: var(--tx-line);
  display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: 24px;
  background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-rule);
  transition: transform .2s, box-shadow .2s;
}
.hx-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -24px rgba(15, 79, 75, 0.45); }
.hx-card--wide { grid-column: span 2; }
.hx-card--teal { --c-bg: var(--hx-teal); --c-text: #fff; --c-tile: rgba(255, 255, 255, 0.12); --c-icon: var(--tx-apricot); --c-link: #fff; --c-rule: rgba(255, 255, 255, 0.18); border-color: transparent; }
.hx-card--sage { --c-bg: var(--tx-sage); --c-text: var(--tx-on-sage); --c-tile: var(--tx-primary); --c-icon: #fff; --c-link: var(--tx-on-sage); --c-rule: rgba(16, 48, 44, 0.16); border-color: transparent; }
.hx-card--apricot { --c-tile: var(--tx-apricot); --c-icon: var(--tx-on-apricot); }
.hx-card--ivory { --c-bg: var(--tx-pending-bg); --c-tile: var(--tx-primary); --c-icon: #fff; --c-link: var(--tx-text); --c-rule: rgba(138, 74, 12, 0.18); border-color: transparent; }
.hx-card-main { display: flex; flex-direction: column; gap: 20px; color: inherit; }
.hx-card--wide .hx-card-main { flex-direction: row; align-items: flex-start; gap: 22px; }
.hx-card-icon {
  display: grid; place-items: center; flex: none; width: 76px; height: 76px; border-radius: 22px;
  background: var(--c-tile); color: var(--c-icon); border: 1px solid var(--c-rule);
}
.hx-card-icon svg { width: 40px; height: 40px; }
.hx-card-title { margin: 2px 0 8px; line-height: 1.15; color: inherit; }
.hx-card-desc { margin: 0; line-height: 1.5; }
.hx-card-links { display: grid; gap: 0; list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--c-rule); }
.hx-card-links--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.hx-card-links li { border-bottom: 1px solid var(--c-rule); }
.hx-card-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; font-weight: 700; color: var(--c-link); }
.hx-card-links a:hover { color: var(--tx-apricot); }
.hx-card--sage .hx-card-links a:hover, .hx-card--ivory .hx-card-links a:hover, .hx-card--apricot .hx-card-links a:hover { color: var(--tx-numbers); }
.hx-brands { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: auto 0 0; padding: 0; }
.hx-brands li { padding: 10px 18px; border-radius: 14px; background: var(--tx-row-alt); border: 1px solid var(--tx-line); font-weight: 800; }

/* ── Replace the patchwork ── */
.hx-swap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
.hx-swap-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.hx-swap-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: 20px; background: var(--tx-card); border: 1px solid var(--tx-line);
}
.hx-swap-list li::before {
  content: ''; grid-column: 2; grid-row: 1; justify-self: center; width: 22px; height: 22px; background: var(--tx-apricot);
  -webkit-mask: var(--hx-arrow) center / contain no-repeat; mask: var(--hx-arrow) center / contain no-repeat;
}
.hx-swap-old, .hx-swap-new { display: flex; align-items: center; gap: 12px; grid-row: 1; }
.hx-swap-old { grid-column: 1; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(184, 50, 42, 0.5); }
.hx-swap-new { grid-column: 3; font-weight: 800; }
.hx-swap-old::before, .hx-swap-new::before {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; font-weight: 900; text-decoration: none;
}
.hx-swap-old::before { content: '✕'; background: var(--tx-problem-bg); color: var(--tx-problem-text); }
.hx-swap-new::before { content: '✓'; background: var(--tx-good-bg); color: var(--tx-good-text); }

/* ── Closing band ── */
.hx-cta { padding-bottom: clamp(48px, 5vw, 72px); }
.hx-cta-inner {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: clamp(32px, 4vw, 56px); border-radius: var(--hx-radius); background: var(--hx-teal); color: #fff;
}
.hx-cta-inner::after { content: ''; position: absolute; width: 360px; height: 360px; left: -120px; bottom: -220px; border-radius: 50%; border: 50px solid rgba(242, 166, 90, 0.14); }
.hx-cta-inner > * { position: relative; }
.hx-cta-sub { max-width: 560px; margin: 12px 0 0; line-height: 1.55; }
.hx-cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hx-cta-price { margin: 0; }
.hx-cta-price-number { font-family: var(--tx-font-numbers); font-size: 28px; color: var(--tx-apricot); }

/* ── Overrides for traxium-app.css !important rules ── */
@layer tx-platform-shell {
  body.home-vision .hx-hero-title { font-size: clamp(42px, 4.6vw, 66px) !important; }
  body.home-vision .hx-h2 { font-size: clamp(30px, 3vw, 42px) !important; font-weight: 800 !important; letter-spacing: -0.025em !important; }
  body.home-vision .hx-card-title { font-size: 26px !important; }
  body.home-vision .hx-hero-sub { font-size: clamp(19px, 1.5vw, 22px) !important; }
  body.home-vision .hx-lead, body.home-vision .hx-cta-sub { font-size: 20px !important; }
  body.home-vision .hx-gain-tag, body.home-vision .hx-gain-label, body.home-vision .hx-gain-why, body.home-vision .hx-row :is(span, em), body.home-vision .hx-spark-label, body.home-vision .hx-gain-kpi span { font-size: 15px !important; }
  body.home-vision .hx-impact-note { font-size: 14px !important; }
  body.home-vision .hx-gain-kpi strong { font-size: 40px !important; line-height: 1 !important; }
  body.home-vision .hx-impact-head strong { font-size: 17px !important; }
  body.home-vision .hx-step-number, body.home-vision .hx-kpi-label,
  body.home-vision .hx-live, body.home-vision .hx-float-copy span { font-size: 16px !important; }
  body.home-vision .hx-kicker { font-size: 16px !important; }
  body.home-vision .hx-step-title { font-size: 20px !important; }
  body.home-vision .hx-proof-number { font-size: 44px !important; }
  body.home-vision .hx-kpi-number { font-size: clamp(30px, 2.6vw, 42px) !important; }
  body.home-vision .hx-cta-price-number { font-size: 28px !important; }
  body.home-vision :is(.hx-flow-inner, .hx-cta-inner, .hx-card--teal) :is(p, li, h2, h3) { color: #fff !important; }
  body.home-vision .hx-card--sage :is(p, li, h3) { color: var(--tx-on-sage) !important; }
  body.home-vision .hx-card--teal .hx-card-links a:hover { color: var(--tx-apricot) !important; }
  body.home-vision .hx-btn-lg { min-height: 58px !important; padding: 0 32px !important; font-size: 19px !important; }
  body.home-vision .hx-btn-apricot { background: var(--tx-apricot) !important; color: var(--tx-on-apricot) !important; }
  body.home-vision .hx-btn-on-teal { background: transparent !important; color: #fff !important; border-color: rgba(255, 255, 255, 0.6) !important; }
}

/* ── Responsive ── */
@media (max-width: 1180px) {
  .hx-hero { grid-template-columns: 1fr; }
  .hx-visual { width: 100%; max-width: 640px; justify-self: center; }
  .hx-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
  .hx-steps::before { display: none; }
  .hx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-swap { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hx-grid { grid-template-columns: 1fr; }
  .hx-card--wide { grid-column: auto; }
  .hx-card--wide .hx-card-main { flex-direction: column; }
  .hx-card-links--2col { grid-template-columns: 1fr; }
  .hx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-kpis { grid-template-columns: 1fr 1fr; }
  .hx-kpi:last-child { grid-column: span 2; }
  .hx-gains { grid-template-columns: 1fr; }
  .hx-visual { padding-left: 0; }
  .hx-swap-list li { grid-template-columns: 1fr; }
  .hx-swap-list li::before { display: none; }
  .hx-swap-old, .hx-swap-new { grid-column: 1; grid-row: auto; }
}

