/* Page hero scenes (hero.js): one small animation per inner page, plus the key facts under the hero's button.
   Everything is scoped to .hx-scene so it can't clash with the rest of the site. */

/* ---------- Key facts under the button */
.hero__facts { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; font-size: 14px; color: var(--text-2); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero__facts b { font-weight: 600; color: var(--text); }

/* ---------- Shared */
.hx-scene { position: relative; min-height: 440px; display: grid; align-items: center; width: 100%; max-width: 460px; justify-self: end; }
.hx-scene.is-paused * { animation-play-state: paused !important; }
.hx-scene img { display: block; border-radius: 50%; object-fit: cover; }
.hx-scene .icon { width: 100%; height: 100%; }
.hx-panel { position: relative; border-radius: 20px; background: var(--panel-bg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hx-kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.hx-pair { display: flex; align-items: center; gap: 10px; font: 600 18px var(--font-display); }
.hx-pair img { width: 26px; height: 26px; box-shadow: 0 0 0 2px #0C1527; }
.hx-pair img + img { margin-left: -16px; }
.hx-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong); }
.hx-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hx-status.is-live, .lim .hx-status { color: var(--accent-2); border-color: rgba(56, 189, 248, .35); }
.hx-status.is-live::before, .lim .hx-status::before { animation: hx-blink 1.4s ease-in-out infinite; }
.hx-status.is-done { color: #34D399; border-color: rgba(52, 211, 153, .4); }
.hx-status.is-done::before { animation: none; }
.hx-pill { font-style: normal; font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--text-3); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); }
.hx-pill.is-done { color: #34D399; border-color: rgba(52, 211, 153, .4); }
.hx-pill.is-live { color: var(--accent-2); border-color: rgba(56, 189, 248, .4); animation: hx-blink 1.4s ease-in-out infinite; }
.hx-checks { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.hx-checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-3); transition: color .3s; }
.hx-checks li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background-color .3s, border-color .3s; }
.hx-checks li.is-done { color: var(--text); }
.hx-checks li.is-done::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.6 2.6L12 5.5' fill='none' stroke='%2304121A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.hx-toast { position: absolute; z-index: 3; display: grid; padding: 10px 16px; border-radius: 14px; font-size: 13px; color: var(--text-2); white-space: nowrap;
  background: var(--panel-bg); border: 1px solid rgba(52, 211, 153, .4); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; pointer-events: none; }
.hx-toast.is-in { opacity: 1; transform: none; }
.hx-toast b { display: block; color: #34D399; font-size: 14px; }
.hx-toast small { display: block; font-size: 11.5px; color: var(--text-3); }

/* ---------- network (Payments) */
.net { position: relative; height: 460px; }
.net-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.net-ring { fill: none; stroke: var(--line-strong); }
.net-ring--outer { stroke: var(--line); stroke-dasharray: 4 7; }
.net-link { stroke: rgba(148, 163, 184, .13); stroke-width: 1; transition: stroke .4s; }
.net-link.is-live { stroke: rgba(45, 212, 191, .5); }
.net-pulse { fill: #E6FBFF; filter: drop-shadow(0 0 5px #2DD4BF) drop-shadow(0 0 10px rgba(56, 189, 248, .8)); }
.net-pulse--in { fill: #7DD3FC; }
.net-node { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.net-node img { width: 100%; height: 100%; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line-strong); }
.net-node.is-swapping img { animation: hx-swap .7s ease-in-out; }
.net-node.is-hit::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--accent); animation: hx-ripple .9s ease-out forwards; }
.net-core { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px; padding: 27px; border-radius: 50%; z-index: 1; color: #04121A;
  background: radial-gradient(circle at 35% 30%, #5EEAD4, #0EA5E9 70%); box-shadow: 0 0 60px rgba(56, 189, 248, .45), 0 0 0 10px rgba(45, 212, 191, .08); }
.net-core .icon { stroke-width: 1.8; }
.net-core.is-hit { animation: hx-glow .8s ease-out; }
.net-chip { position: absolute; left: 0; top: 0; z-index: 2; padding: 6px 12px; border-radius: 999px; white-space: nowrap; font-size: 12.5px; font-weight: 600;
  background: var(--panel-bg); border: 1px solid var(--accent-border); box-shadow: var(--shadow-lg); animation: hx-fade-in .3s ease-out; transition: opacity .35s; }
.net-chip b { color: var(--accent); margin-right: 6px; }
.net-chip.is-gone { opacity: 0; }

/* ---------- accounts (Global business accounts) */
.acc { position: relative; perspective: 1200px; }
.acc-card { transition: transform .32s ease-in; }
.acc-card.is-flipping { transform: rotateY(90deg); }
.acc-face { padding: 24px 24px 20px; border-radius: 20px; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
  background: radial-gradient(circle at 100% 0%, rgba(56, 189, 248, .22), transparent 55%), radial-gradient(circle at 0% 100%, rgba(45, 212, 191, .14), transparent 50%), #0C1527; }
.acc-top { display: flex; align-items: center; gap: 12px; }
.acc-top img { width: 40px; height: 40px; box-shadow: 0 0 0 1px var(--line-strong); }
.acc-top span { display: grid; font-size: 13.5px; color: var(--text-2); }
.acc-top b { font: 600 20px/1.1 var(--font-display); color: var(--text); letter-spacing: .01em; }
.acc-top em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--accent-border); background: var(--accent-soft); white-space: nowrap; }
.acc-name { margin-top: 20px; font: 600 18px/1.3 var(--font-display); }
.acc-name small, .acc-face dt { display: block; font: 500 11.5px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.acc-face dl { margin: 16px 0 0; display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.acc-face dd { margin: 3px 0 0; white-space: nowrap; font: 600 15px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; }
.acc-rails { margin-top: 16px; font-size: 13px; color: var(--text-2); }
.acc-strip { display: flex; gap: 7px; justify-content: center; margin-top: 18px; }
.acc-strip span { flex: none; width: 20px; height: 20px; border-radius: 50%; opacity: .35; transition: opacity .3s, transform .3s, box-shadow .3s; }
.acc-strip img { width: 100%; height: 100%; }
.acc-strip .is-on { opacity: 1; transform: scale(1.25); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent); }
.acc-toast { right: -10px; top: -50px; display: flex; gap: 10px; align-items: center; color: var(--text); font-weight: 600; font-size: 14px; }
.hx-plus { width: 30px; height: 30px; border-radius: 9px; display: grid !important; place-items: center; background: #34D399; color: #04121A !important; font-size: 18px; }

/* ---------- limit (Limit orders) */
.lim { padding: 20px 20px 12px; }
.lim-head, .cov-head, .flp-head, .cal-head, .gau-head, .scl-head, .bal-head, .jar-head, .crl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lim-chart { display: block; width: 100%; height: auto; margin-top: 12px; overflow: visible; }
.lim-grid line { stroke: var(--line); }
.lim-target { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 5; }
.lim-tlabel { fill: var(--accent); font: 600 11.5px var(--font); }
.lim-stop { stroke: rgba(248, 113, 113, .55); stroke-width: 1.2; stroke-dasharray: 3 5; }
.lim-slabel { fill: rgba(248, 113, 113, .8); font: 600 11px var(--font); }
.lim-line { fill: none; stroke: #E6FBFF; stroke-width: 2; stroke-linejoin: round; }
.lim-area { fill: url(#lim-fill); }
.lim-dot { fill: #E6FBFF; filter: drop-shadow(0 0 6px #38BDF8); }
.lim-ping { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; }
.lim.is-filled .lim-ping { animation: hx-ping 1.2s ease-out 2; transform-box: fill-box; transform-origin: center; }
.lim.is-filled .lim-line { stroke: var(--accent); }
.lim-toast { left: 50%; bottom: -26px; text-align: center; translate: -50% 0; }

/* ---------- escrow (Escrow) */
.esc { padding: 22px; }
.esc-deal { text-align: center; }
.esc-row { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 10px; margin-top: 16px; }
.esc-party { display: grid; justify-items: center; gap: 4px; text-align: center; }
.esc-party img { width: 52px; height: 52px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line-strong); transition: box-shadow .3s; }
.esc-party b { margin-top: 6px; font-size: 14.5px; }
.esc-party small { font-size: 12.5px; color: var(--text-3); }
.esc-seller.is-paid img { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #34D399, 0 0 30px rgba(52, 211, 153, .5); }
.esc-vault { display: grid; justify-items: center; gap: 8px; padding: 14px 18px; border-radius: 18px; border: 1px dashed var(--line-strong); min-width: 128px; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.esc-safe { width: 58px; height: 58px; padding: 14px; border-radius: 16px; background: #0B1A2A; color: var(--text-3); transition: color .3s, background .3s; }
.esc-state { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.esc-vault.is-held { border-style: solid; border-color: var(--accent-border); background: var(--accent-soft); box-shadow: 0 0 40px rgba(45, 212, 191, .18); }
.esc-vault.is-held .esc-safe { color: #04121A; background: var(--grad); animation: hx-breathe 1.6s ease-in-out infinite; }
.esc-vault.is-held .esc-state { color: var(--accent); }
.esc-vault.is-open { border-style: solid; border-color: rgba(52, 211, 153, .45); }
.esc-vault.is-open .esc-state { color: #34D399; }
.esc-coin, .ref-token { position: absolute; left: 0; top: 0; z-index: 2; display: grid; place-items: center; border-radius: 50%; color: #04121A;
  background: radial-gradient(circle at 35% 30%, #E6FBFF, #38BDF8); box-shadow: 0 0 18px rgba(56, 189, 248, .7); transition: opacity .3s; }
.esc-coin { width: 28px; height: 28px; font: 700 8.5px var(--font); letter-spacing: .02em; }
.esc-coin.is-moving, .ref-token.is-moving { transition: transform 1s cubic-bezier(.6, 0, .3, 1), opacity .3s; }
.esc-coin.is-out { opacity: 0; }

/* ---------- platform (Business banking platform) */
.pf { overflow: hidden; }
.pf-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pf-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.pf-top span { margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.pf-body { display: grid; grid-template-columns: 112px 1fr; min-height: 300px; }
.pf-nav { display: grid; align-content: start; gap: 4px; padding: 12px 8px; border-right: 1px solid var(--line); }
.pf-nav span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 13px; color: var(--text-3); transition: background-color .3s, color .3s; }
.pf-nav .icon { width: 16px; height: 16px; flex: none; }
.pf-nav b { font-weight: 500; }
.pf-nav .is-on { color: var(--text); background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.pf-panes { position: relative; }
.pf-pane { position: absolute; inset: 0; padding: 16px 18px; opacity: 0; transform: translateX(10px); transition: opacity .4s, transform .4s; }
.pf-pane.is-on { opacity: 1; transform: none; }
.pf-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.pf-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.pf-list img { width: 24px; height: 24px; flex: none; }
.pf-list b { font-weight: 600; min-width: 38px; }
.pf-list em { margin-left: auto; }
.pf-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pf-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.pf-fx { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.pf-fx span { display: grid; justify-items: center; gap: 4px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); flex: 1; }
.pf-fx img { width: 34px; height: 34px; }
.pf-fx small { font-size: 11.5px; color: var(--text-3); }
.pf-swap { width: 22px; height: 22px; color: var(--accent); flex: none; }
.pf-note { margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.pf-btn { display: inline-block; margin-top: 12px; padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #04121A; background: var(--grad); transition: background .3s; }
.pf-btn.is-done { background: #34D399; }
.pf-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.pf-months span { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.pf-months .icon { width: 16px; height: 16px; opacity: .25; }
.pf-months .is-locked { color: var(--text); border-color: var(--accent-border); background: var(--accent-soft); }
.pf-months .is-locked .icon { opacity: 1; color: var(--accent); }

/* ---------- brand (Embedded finance) */
.brd { display: grid; justify-items: center; gap: 16px; }
.brd-phone { --brand: #38BDF8; width: 250px; padding: 18px 16px 20px; border-radius: 34px; background: #0C1527; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(148, 163, 184, .06), 0 0 60px color-mix(in srgb, var(--brand) 25%, transparent); transition: box-shadow .5s; }
.brd-phone > * { transition: opacity .35s; }
.brd-phone.is-switching > * { opacity: 0; }
.brd-head { display: flex; align-items: center; gap: 10px; }
.brd-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 12.5px var(--font-display); color: #04121A; background: var(--brand); transition: background .5s; }
.brd-name { font: 600 15px var(--font-display); }
.brd-hello { margin-top: 18px; font-size: 12.5px; color: var(--text-3); }
.brd-acct { margin-top: 8px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 30%, #0C1527), #0C1527); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); transition: background .5s, border-color .5s; }
.brd-acct div { display: flex; align-items: center; gap: 10px; }
.brd-acct img { width: 28px; height: 28px; }
.brd-acct span { display: grid; font-size: 13px; }
.brd-acct small { font-size: 11px; color: var(--text-3); }
.brd-acct p { margin-top: 12px; font: 600 12.5px ui-monospace, Consolas, monospace; letter-spacing: .06em; color: var(--text-2); }
.brd-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.brd-actions span { display: grid; justify-items: center; gap: 6px; font-size: 11.5px; color: var(--text-2); }
.brd-actions .icon { width: 38px; height: 38px; padding: 10px; border-radius: 12px; color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); transition: color .5s, background .5s; }
.brd-recent { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.brd-recent li { display: flex; align-items: center; gap: 10px; }
.brd-recent i { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); }
.brd-recent span { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); }
.brd-recent em { width: 40px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 40%, transparent); transition: background .5s; }
.brd-caption { font-size: 13px; color: var(--text-2); text-align: center; }
.brd-caption b { color: var(--text); }

/* ---------- referral (Partnerships) */
.ref { padding: 24px 20px 20px; }
.ref-row { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.ref-row::before { content: ""; position: absolute; left: 16%; right: 16%; top: 31px; border-top: 1px dashed var(--line-strong); }
.ref-node { position: relative; display: grid; justify-items: center; gap: 3px; }
.ref-node > span { position: relative; width: 62px; height: 62px; padding: 17px; border-radius: 50%; color: var(--accent); background: #0B1A2A; box-shadow: 0 0 0 1px var(--line-strong); }
.ref-bbp > span { color: #04121A; background: var(--grad); }
.ref-node b { margin-top: 8px; font-size: 14.5px; }
.ref-node small { font-size: 12px; color: var(--text-3); }
.ref-ring { box-shadow: none !important; }
.ref-ring svg { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); fill: none; stroke-width: 3; }
.ref-ring svg circle { stroke: var(--line-strong); }
.ref-ring svg .ref-fill { stroke: #34D399; stroke-linecap: round; transition: stroke-dashoffset .8s ease-out; }
.ref-node > span.is-hit { animation: hx-glow .8s ease-out; }
.ref-token { width: 30px; height: 30px; padding: 7px; font: 700 13px var(--font); }
.ref-token.is-coin { background: radial-gradient(circle at 35% 30%, #D1FAE5, #34D399); box-shadow: 0 0 18px rgba(52, 211, 153, .7); padding: 0; }
.ref-toast { left: 50%; bottom: -24px; translate: -50% 0; text-align: center; }
.ref-token.is-out { opacity: 0; }

/* ---------- fan (Banking solutions) */
.fan { position: relative; height: 400px; }
.fan-item { position: absolute; left: 6%; right: 6%; top: 160px; min-height: 170px; padding: 20px 22px; display: grid; align-content: start; gap: 10px; background: #0D1729;
  transform-origin: 50% 0; transition: transform .7s cubic-bezier(.3, .7, .2, 1), opacity .7s, filter .7s; }
.fan-item[data-pos="0"] { transform: none; z-index: 4; }
.fan-item[data-pos="1"] { transform: translate(14px, -46px) scale(.95) rotate(3deg); z-index: 3; filter: brightness(.75); }
.fan-item[data-pos="2"] { transform: translate(-12px, -88px) scale(.9) rotate(-3deg); z-index: 2; filter: brightness(.6); }
.fan-item[data-pos="3"] { transform: translate(6px, -124px) scale(.85) rotate(1.5deg); z-index: 1; opacity: .8; filter: brightness(.5); }
.fan-item > b { font: 600 18px var(--font-display); }
.fan-item small { font-size: 12.5px; color: var(--text-3); }
.fan-item .hx-kicker { display: flex; justify-content: space-between; align-items: center; }
.fan-flags { display: flex; }
.fan-flags img { width: 32px; height: 32px; box-shadow: 0 0 0 2px #0C1527; }
.fan-flags img + img { margin-left: -10px; }
.fan-flags--many img { width: 26px; height: 26px; }
.fan-line { display: flex; align-items: center; gap: 10px; }
.fan-line img { width: 30px; height: 30px; }
.fan-line span { display: grid; flex: 1; font-size: 13.5px; }
.fan-progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.fan-progress i { display: block; width: 72%; height: 100%; border-radius: inherit; background: var(--grad); }
.fan-card { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; aspect-ratio: 1.9; align-content: end; background: linear-gradient(135deg, #0E7490, #1E3A8A 60%, #0C1527); }
.fan-card b { font: 600 16px ui-monospace, Consolas, monospace; letter-spacing: .1em; }
.fan-card small { color: rgba(232, 237, 245, .7) !important; letter-spacing: .08em; }
.fan-chip { width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #FDE68A, #D97706); margin-bottom: auto; }

/* ---------- batch (Mass payments) */
.bat { padding: 18px; }
.bat-file { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px dashed var(--accent-border); background: var(--accent-soft); }
.bat-file > .icon { width: 36px; height: 36px; padding: 7px; flex: none; border-radius: 10px; color: #04121A; background: var(--grad); }
.bat-file span { display: grid; flex: 1; font-size: 14px; }
.bat-file small { font-size: 12px; color: var(--text-3); }
.bat-rows { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; min-height: 236px; align-content: start; }
.bat-rows li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; animation: hx-slide-in .35s ease-out; }
.bat-rows img { width: 24px; height: 24px; flex: none; }
.bat-rows b { font-weight: 500; flex: 1; }
.bat-rows small { font-size: 12px; color: var(--text-3); }
.bat-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.bat-progress span { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bat-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--grad); transition: width .35s; }
.bat-progress small { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.bat-toast { left: 50%; bottom: -24px; translate: -50% 0; text-align: center; }

/* ---------- cards (Corporate cards) */
.crd { display: grid; gap: 14px; perspective: 900px; }
.crd-card { position: relative; display: grid; align-content: end; gap: 4px; padding: 20px 22px; border-radius: 18px; aspect-ratio: 1.7; color: var(--text);
  background: radial-gradient(circle at 85% 15%, rgba(94, 234, 212, .45), transparent 45%), linear-gradient(135deg, #0E7490, #1E3A8A 55%, #0B1220);
  box-shadow: 0 30px 60px -25px rgba(14, 165, 233, .55), inset 0 0 0 1px rgba(255, 255, 255, .12); animation: hx-tilt 7s ease-in-out infinite; }
.crd-card b { font: 600 17px ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.crd-card small { font-size: 12px; letter-spacing: .1em; color: rgba(232, 237, 245, .75); }
.crd-brand { position: absolute; left: 22px; top: 18px; font: 700 18px var(--font-display); letter-spacing: .02em; }
.crd-chip { position: absolute; left: 22px; top: 54px; width: 40px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #FDE68A, #D97706); }
.crd-card em { position: absolute; right: 20px; top: 18px; font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.crd-limit { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.crd-limit > span:first-child { display: grid; font-size: 13.5px; }
.crd-limit small { font-size: 11.5px; color: var(--text-3); }
.crd-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.crd-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .6s ease-out; }
.crd-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.crd-feed li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; animation: hx-slide-in .4s ease-out; }
.crd-feed img { width: 28px; height: 28px; flex: none; }
.crd-feed span { display: grid; flex: 1; font-size: 13.5px; }
.crd-feed small { font-size: 12px; color: var(--text-3); }
.crd-feed em { font-style: normal; font-size: 11.5px; color: var(--text-3); }

/* ---------- cover (Currency hedging) */
.cov { padding: 20px; }
.cov-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 220px; margin-top: 18px; align-items: end; }
.cov-col { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; text-align: center; }
.cov-col small { font-size: 11px; color: var(--text-3); }
.cov-bar { position: relative; }
.cov-need { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 6px; border: 1px dashed var(--line-strong); }
.cov-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 6px; transition: height .6s cubic-bezier(.2, .8, .2, 1); }
.cov-fill.is-forward, .cov-key .is-forward i { background: var(--grad); }
.cov-fill.is-option, .cov-key .is-option i { background: #818CF8; }
.cov-fill.is-limit, .cov-key .is-limit i { background: #F5B544; }
.cov-key { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 12.5px; color: var(--text-2); }
.cov-key span { display: inline-flex; align-items: center; gap: 6px; }
.cov-key i { width: 10px; height: 10px; border-radius: 3px; }
.cov-key .is-open i { border: 1px dashed var(--text-3); }

/* ---------- flipboard (Spot) */
.flp { padding: 20px; }
.flp-head b { font: 600 16px var(--font-display); }
.flp-rows { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.flp-rows li { display: flex; align-items: center; gap: 10px; }
.flp-flags { display: flex; flex: none; }
.flp-flags img { width: 24px; height: 24px; box-shadow: 0 0 0 2px #0C1527; }
.flp-flags img + img { margin-left: -9px; }
.flp-cells { display: flex; gap: 2px; }
.flp-cells i { width: 19px; height: 28px; display: grid; place-items: center; border-radius: 4px; font: 700 15px ui-monospace, Consolas, monospace; font-style: normal;
  color: #F8FAFC; background: linear-gradient(#162236 50%, #111B2C 50%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }
.flp-cells i.is-flip { animation: hx-flap .07s linear; }
.flp-state { margin-left: auto; }
.flp-state i { color: var(--accent-2); }
.is-settled .flp-state i { color: #34D399; }
.flp-note { margin-top: 16px; font-size: 12.5px; color: var(--text-3); }

/* ---------- calendar (Forward contracts) */
.cal { padding: 20px; }
.cal-head b { font: 600 16px var(--font-display); }
.cal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.cal-m { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; color: var(--text-3); transition: background-color .4s, border-color .4s, color .4s; }
.cal-m b { font-weight: 600; }
.cal-lock { width: 18px; height: 18px; color: var(--accent); opacity: 0; transform: translateY(-14px); transition: opacity .35s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.cal-draw { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #818CF8; transition: width .5s; }
.cal-m.is-fixed { color: var(--text); border-color: var(--accent-border); background: var(--accent-soft); }
.cal-m.is-fixed .cal-lock, .cal-m.is-window .cal-lock { opacity: 1; transform: none; }
.cal-m.is-window { color: var(--text); border-color: rgba(56, 189, 248, .45); background: rgba(56, 189, 248, .1); }
.cal-m.is-window .cal-lock { color: var(--accent-2); }
.cal-m.is-flexi { color: var(--text); border-color: rgba(129, 140, 248, .5); background: rgba(129, 140, 248, .1); }
.cal-caption { margin-top: 16px; min-height: 44px; font-size: 13.5px; color: var(--text-2); }
.cal-caption b { display: block; color: var(--text); font-size: 14.5px; }
.cal-caption.is-in { animation: hx-fade-in .4s ease-out; }

/* ---------- gauge (FX options) */
.gau { padding: 20px; }
.gau-dial { display: block; width: 100%; margin-top: 10px; overflow: visible; }
.gau-track, .gau-safe, .gau-up { fill: none; stroke-width: 14; stroke-linecap: round; }
.gau-track { stroke: var(--surface-2); }
.gau-safe { stroke: rgba(56, 189, 248, .5); }
.gau-up { stroke: rgba(52, 211, 153, .55); }
.gau-floor { stroke: #E6FBFF; stroke-width: 2.5; stroke-linecap: round; }
.gau-needle { transform-box: view-box; transform-origin: 100px 100px; }
.gau-needle line { stroke: #E6FBFF; stroke-width: 3; stroke-linecap: round; }
.gau-needle circle { fill: #E6FBFF; }
.gau-labels { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12.5px; color: var(--text-2); }
.gau-labels span { display: inline-flex; align-items: center; gap: 6px; }
.gau-labels i { width: 10px; height: 10px; border-radius: 3px; }
.gau-labels .is-safe { background: rgba(56, 189, 248, .7); }
.gau-labels .is-up { background: rgba(52, 211, 153, .75); }
.gau-say { margin-top: 14px; min-height: 22px; font-size: 13.5px; color: var(--text-2); text-align: center; }
.gau-say b { color: var(--text); margin-right: 4px; }
.gau.is-safe .gau-safe { animation: hx-flash-blue .9s ease-out; }
.gau.is-up .gau-up { animation: hx-flash-green .9s ease-out; }

/* ---------- scale (NDFs) */
.scl { padding: 20px; }
.scl-rig { position: relative; height: 210px; margin-top: 10px; }
.scl-beam { position: absolute; left: 8%; right: 8%; top: 40px; height: 4px; border-radius: 4px; background: var(--text-2); transition: transform .6s cubic-bezier(.4, 1.6, .5, 1); }
.scl-pan { position: absolute; top: 4px; width: 110px; display: grid; justify-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.scl-l { left: -40px; }
.scl-r { right: -40px; }
.scl-pan i { width: 90px; height: 54px; border-radius: 0 0 40px 40px; border: 1px solid var(--line-strong); border-top: 2px solid var(--text-2); background: var(--accent-soft); }
.scl-r i { background: rgba(56, 189, 248, .1); }
.scl-post { position: absolute; left: 50%; top: 40px; width: 4px; height: 150px; margin-left: -2px; background: var(--text-3); border-radius: 2px; }
.scl-post::after { content: ""; position: absolute; left: -30px; bottom: 0; width: 64px; height: 6px; border-radius: 3px; background: var(--text-3); }
.scl-coin { position: absolute; left: 50%; top: 30px; width: 46px; height: 46px; margin-left: -23px; display: grid; place-items: center; border-radius: 50%; font: 700 12px var(--font); color: #04121A;
  background: radial-gradient(circle at 35% 30%, #D1FAE5, #34D399); box-shadow: 0 0 22px rgba(52, 211, 153, .6); opacity: 0; }
.scl-coin.is-drop { animation: hx-drop 1.4s cubic-bezier(.5, 0, .7, 1) forwards; }
.scl-say { min-height: 40px; font-size: 13.5px; color: var(--text-2); text-align: center; }
.scl-say b { color: var(--text); }

/* ---------- policy (Hedging policies) */
.pol { position: relative; padding: 22px; }
.pol-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pol-head > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: #04121A; background: var(--grad); }
.pol-head span { display: grid; font: 600 16px var(--font-display); }
.pol-head small { font: 400 12.5px var(--font); color: var(--text-3); }
.pol-lines { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.pol-lines li { display: grid; grid-template-columns: 20px 1fr; column-gap: 10px; font-size: 13.5px; }
.pol-lines li::before { content: ""; grid-row: span 2; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 1.5px solid var(--line-strong); transition: background-color .3s, border-color .3s; }
.pol-lines b { font-weight: 600; }
.pol-lines span { color: var(--text-2); min-height: 1.4em; }
.pol-lines li.is-typing span::after { content: "|"; margin-left: 1px; color: var(--accent); animation: hx-blink .8s steps(1) infinite; }
.pol-lines li.is-done::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.6 2.6L12 5.5' fill='none' stroke='%2304121A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pol-stamp { position: absolute; right: 18px; top: 22px; padding: 6px 14px; border-radius: 8px; border: 2px solid #34D399; color: #34D399; font: 800 15px var(--font-display); letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transform: rotate(-10deg) scale(1.8); transition: opacity .25s, transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.pol-stamp.is-in { opacity: 1; transform: rotate(-10deg) scale(1); }

/* ---------- credit (Financing) */
.crl { padding: 22px; }
.crl-head > span:first-child { display: grid; font: 600 16px var(--font-display); }
.crl-head small { font: 400 12.5px var(--font); color: var(--text-3); }
.crl-track { display: flex; gap: 3px; height: 52px; margin-top: 22px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.crl-seg { width: 0; height: 100%; overflow: hidden; display: flex; align-items: center; padding-left: 8px; border-radius: 10px; background: var(--grad); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.crl-seg img { width: 26px; height: 26px; flex: none; box-shadow: 0 0 0 2px rgba(4, 18, 26, .4); }
.crl-key { display: flex; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.crl-key span { display: inline-flex; align-items: center; gap: 6px; }
.crl-key i { width: 10px; height: 10px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line-strong); }
.crl-key i.is-used { background: var(--grad); border: 0; }
.crl-toast { position: relative; margin-top: 18px; text-align: center; justify-self: center; }
.crl { display: grid; }

/* ---------- ship (Trade finance) */
.shp { padding: 20px; }
.shp-map { display: block; width: 100%; overflow: visible; }
.shp-route { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.shp-done { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.shp-port { position: absolute; display: grid; justify-items: center; gap: 4px; font-size: 11.5px; color: var(--text-3); }
.shp-port img { width: 34px; height: 34px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line-strong); }
.shp-from { left: 8%; top: 118px; }
.shp-to { right: 6%; top: 106px; }
.shp-boat { position: absolute; left: 0; top: 0; z-index: 2; width: 34px; height: 34px; padding: 7px; border-radius: 50%; color: #04121A; background: var(--grad); box-shadow: 0 0 20px rgba(56, 189, 248, .6); }
.shp .hx-checks { margin-top: 48px; }

/* ---------- dial (Supplier payment finance) */
.dia { padding: 22px; }
.dia-wrap { position: relative; width: 230px; margin: 0 auto; }
.dia-svg { display: block; width: 100%; overflow: visible; }
.dia-track, .dia-fill { fill: none; stroke-width: 12; }
.dia-track { stroke: var(--surface-2); }
.dia-fill { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 90px 90px; }
.dia-svg text { fill: var(--text-3); font: 600 10px var(--font); }
.dia-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dia-mid small { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.dia-mid b { font: 700 48px/1 var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dia-mid span { font-size: 12px; color: var(--text-3); }

/* ---------- balances (Cash management) */
.bal { padding: 20px; }
.bal-head b { font: 600 16px var(--font-display); }
.bal-rows { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.bal-rows li { display: flex; align-items: center; gap: 10px; font-size: 14px; border-radius: 10px; }
.bal-rows li.is-hit { animation: hx-row .9s ease-out; }
.bal-rows img { width: 28px; height: 28px; flex: none; }
.bal-rows b { min-width: 38px; }
.bal-bar { flex: 1; height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bal-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.bal-rows em { width: 14px; font-style: normal; font-size: 11px; }
.bal-rows em.is-up { color: #34D399; }
.bal-rows em.is-down { color: #F87171; }
.bal-toast { left: 50%; bottom: -24px; translate: -50% 0; text-align: center; }

/* ---------- jars (Cashback) */
.jar { padding: 20px; }
.jar-head b { font: 600 16px var(--font-display); }
.jar-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; text-align: center; }
.jar-one { display: grid; justify-items: center; gap: 6px; font-size: 14px; }
.jar-one small { font-size: 11.5px; color: var(--text-3); margin-top: -4px; }
.jar-one img { width: 26px; height: 26px; margin-top: 6px; }
.jar-glass { position: relative; width: 82px; height: 150px; border-radius: 14px 14px 26px 26px; border: 1.5px solid var(--line-strong); border-top-width: 4px; overflow: hidden; background: rgba(255, 255, 255, .02); }
.jar-fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(94, 234, 212, .85), rgba(14, 165, 233, .55)); transition: height .9s cubic-bezier(.2, .8, .2, 1); }
.jar-fill::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 6px; border-radius: 50%; background: rgba(230, 251, 255, .5); }
.jar-coin { position: absolute; left: 50%; top: -30px; width: 26px; height: 26px; margin-left: -13px; display: grid; place-items: center; border-radius: 50%;
  font: 700 12px var(--font); color: #04121A; background: radial-gradient(circle at 35% 30%, #FEF3C7, #F5B544); opacity: 0; }
.jar-coin.is-drop { animation: hx-coin 1s cubic-bezier(.5, 0, .8, 1); }
.jar-note { margin-top: 16px; font-size: 12.5px; color: var(--text-3); text-align: center; }

/* ---------- map (About us) */
.map { padding: 14px; }
.map-svg { display: block; width: 100%; height: auto; border-radius: 12px; }
.map-arc { fill: none; stroke: rgba(45, 212, 191, .35); stroke-width: 1.2; }
.map-pulse { fill: #E6FBFF; filter: drop-shadow(0 0 4px #2DD4BF); }
.map-home { fill: var(--accent); }
.map-ping { fill: none; stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: hx-ping 2s ease-out infinite; }
.map-label { fill: var(--text); font: 600 11px var(--font); }
.map-toast { position: relative; margin: 14px auto 2px; width: max-content; text-align: center; }
.map { display: grid; }

/* ---------- keyframes */
@keyframes hx-blink { 50% { opacity: .3; } }
@keyframes hx-swap { 40%, 60% { opacity: 0; transform: scale(.35) rotateY(90deg); } }
@keyframes hx-ripple { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
@keyframes hx-glow { 30% { box-shadow: 0 0 90px rgba(56, 189, 248, .75), 0 0 0 16px rgba(45, 212, 191, .16); } }
@keyframes hx-fade-in { from { opacity: 0; } }
@keyframes hx-ping { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(4); } }
@keyframes hx-breathe { 50% { box-shadow: 0 0 26px rgba(45, 212, 191, .6); } }
@keyframes hx-slide-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes hx-tilt { 0%, 100% { transform: rotateX(8deg) rotateY(-12deg); } 50% { transform: rotateX(-4deg) rotateY(10deg); } }
@keyframes hx-flap { 50% { transform: scaleY(.2); } }
@keyframes hx-flash-blue { 30% { stroke: rgba(56, 189, 248, 1); filter: drop-shadow(0 0 8px #38BDF8); } }
@keyframes hx-flash-green { 30% { stroke: rgba(52, 211, 153, 1); filter: drop-shadow(0 0 8px #34D399); } }
@keyframes hx-drop { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: translateY(120px); } }
@keyframes hx-row { 30% { background: var(--accent-soft); } }
@keyframes hx-coin { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 80% { opacity: 1; transform: translateY(110px); } 100% { opacity: 0; transform: translateY(120px); } }

/* ---------- smaller screens: the scene sits under the text */
@media (max-width: 960px) {
  .hx-scene { justify-self: center; min-height: 0; }
  .net { height: 400px; }
}
@media (max-width: 420px) {
  .hx-pair { font-size: 16px; }
  .pf-body { grid-template-columns: 1fr; }
  .pf-nav { grid-auto-flow: column; overflow: hidden; border-right: 0; border-bottom: 1px solid var(--line); }
  .pf-nav b { display: none; }
  .pf-panes { min-height: 250px; }
  .flp-cells i { width: 16px; height: 25px; font-size: 13px; }
  .acc-face dl { grid-template-columns: 1fr; }
  .acc-toast { right: 0; }
  .scl-l { left: -20px; } .scl-r { right: -20px; }
}
@media (prefers-reduced-motion: reduce) { .hx-scene *, .hx-scene { transition: none !important; animation: none !important; } }
