/* NexumBit redesign — Home ("Recursive Ledger"). Requires rx-tokens.css. */
.hm { max-width: 1260px; margin: 0 auto; padding: 0 clamp(32px, 4.5vw, 72px); box-sizing: content-box; }
.hm h2, .hm h3, .hm p { margin: 0; }
.hm p { text-wrap: pretty; }
.hm-kicker { font: 500 13px/1.3 var(--rx-sans); color: var(--rx-bone-3); letter-spacing: -0.003em; }

/* ---------------- HERO ---------------- */
.home-hero.hm-hero {
  position: relative; isolation: isolate; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center; column-gap: clamp(48px, 6vw, 96px);
  min-height: min(calc(100dvh - 60px), 760px); padding: 72px 0; box-sizing: border-box; overflow: hidden;
}
.hx-art {
  position: absolute; z-index: -1; pointer-events: none;
  top: 50%; right: -40px; width: 720px; aspect-ratio: 1; transform: translateY(-50%);
}
.hx-art::before {
  content: ""; position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,31,.16), rgba(139,108,255,.08) 50%, transparent 72%);
  filter: blur(48px);
}
.hx-fractal { position: relative; display: block; width: 100%; height: 100%; }

.hm-hero__chip { margin-bottom: 28px; }
.hm-hero__copy { padding-inline: clamp(8px, 1.6vw, 28px); }
.hm-hero h1 {
  margin: 0; max-width: 14ch; color: var(--rx-bone);
  font: 500 clamp(44px, 4.6vw, 64px)/1.08 var(--rx-sans); letter-spacing: -0.04em;
  text-wrap: balance;
}
.hm-lead { max-width: 42ch; margin-top: 16px !important; font: 400 16px/1.55 var(--rx-sans); color: var(--rx-bone-2); }
.hm .home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hm-hero .home-go { min-width: 140px; }
.hm .home-note {
  margin-top: 20px !important; color: var(--rx-bone-3); font: 400 13px/1.5 var(--rx-sans);
  display: flex; align-items: flex-start; gap: 10px;
}
.hm .home-note::before { content: ""; width: 6px; height: 6px; flex: none; margin-top: 7px; border-radius: 1.5px; background: var(--rx-ok); }

/* live book card — markets list */
.hm-book { padding: 20px; display: grid; gap: 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(19,19,23,.72); }
.hm-book__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hm-book h2 { margin: 0; font: 600 15px/1.2 var(--rx-sans); letter-spacing: -0.01em; color: var(--rx-bone); }
.hm-book__stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rx-line); border-radius: 12px; }
.hm-book__stats > div { padding: 12px 12px 14px; min-width: 0; }
.hm-book__stats > div + div { border-left: 1px solid var(--rx-line); }
.hm-book__stats dt { font: 400 12px/1.3 var(--rx-sans); color: var(--rx-bone-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-book__stats dd { margin: 6px 0 0; font-size: 15px; color: var(--rx-bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-hero__copy .hm-kicker { margin: 0 0 10px; font: 500 12px/1.3 var(--rx-sans); letter-spacing: 0.02em; color: var(--rx-bone-3); }

/* ---------------- DOORS ---------------- */
.hm-doors { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: 16px; padding: 24px 0 0; align-items: stretch; }
.hm-door { display: grid; gap: 40px; align-content: space-between; padding: 32px; border-radius: 20px; border: 1px solid var(--rx-line); background: var(--rx-ink-1); box-shadow: var(--rx-hi); overflow: hidden; }
.hm-door--swap {
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.15fr);
  justify-content: center; align-content: center; align-items: center;
  column-gap: 40px;
  background: linear-gradient(180deg, rgba(255,138,31,.06), transparent 60%), var(--rx-ink-1);
}
.hm-door__text { display: grid; gap: 16px; justify-items: start; align-content: center; }
.hm-door h2 { font: 600 28px/1.15 var(--rx-sans); letter-spacing: -0.03em; color: var(--rx-bone); text-wrap: balance; }
.hm-door p { font: 400 15px/1.6 var(--rx-sans); color: var(--rx-bone-2); max-width: 44ch; }
.hm-door .rx-btn { margin-top: 8px; }
.hm-door--borrow {
  grid-template-columns: 1fr;
  align-content: space-between;
  background: linear-gradient(180deg, rgba(139,108,255,.10), transparent 58%), var(--rx-ink-2);
}
.hm-door--borrow .hm-door__text { height: 100%; align-content: space-between; }
.hm-door--borrow .rx-btn { margin-top: 8px; }

.hm-bridge { display: grid; gap: 14px; width: 100%; min-width: 0; }
.hm-bridge__stack { position: relative; display: grid; gap: 4px; }
.hm-bridge__panel { padding: 16px 16px 18px; border-radius: var(--rx-r-lg); background: var(--rx-ink-2); border: 1px solid transparent; }
.hm-bridge__panel--to { background: var(--rx-ink); border-color: var(--rx-line); }
.hm-bridge__label { display: block; margin: 0 0 10px; font: 500 13px/1 var(--rx-sans); color: var(--rx-bone-3); }
.hm-bridge__label em { font-style: normal; font-weight: 400; color: var(--rx-bone-4); }
.hm-bridge__row { display: flex; align-items: center; gap: 12px; }
.hm-bridge__amt { flex: 1; min-width: 0; font: 500 36px/1.15 var(--rx-sans); letter-spacing: -0.035em; color: var(--rx-bone); font-variant-numeric: tabular-nums; }
.hm-bridge__panel--to .hm-bridge__amt { color: var(--rx-bone-2); }
.hm-bridge__amt:empty::before { content: "0.00"; color: var(--rx-bone-4); }
.hm-bridge__chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: var(--rx-r-pill); background: var(--rx-ink-3); border: 1px solid var(--rx-line-2); color: var(--rx-bone); font: 600 15px/1 var(--rx-sans); box-shadow: var(--rx-hi); }
.hm-bridge__chip img { width: 28px; height: 28px; border-radius: 50%; display: block; }
.hm-bridge__dir { position: absolute; left: 50%; top: 50%; z-index: 2; width: 36px; height: 36px; margin: -18px 0 0 -18px; display: grid; place-items: center; border-radius: 10px; background: var(--rx-ink-3); color: var(--rx-bone-2); border: 4px solid var(--rx-ink-1); }
.hm-bridge__dir svg { width: 16px; height: 16px; }
.hm-bridge__meta { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rx-line); border-radius: var(--rx-r-lg); background: var(--rx-ink); overflow: hidden; }
.hm-bridge__meta > div { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 12px 14px; }
.hm-bridge__meta > div + div { border-left: 1px solid var(--rx-line); }
.hm-bridge__meta span { font: 500 12px/1.2 var(--rx-sans); color: var(--rx-bone-3); }
.hm-bridge__meta strong { font: 500 13px/1.45 var(--rx-sans); color: var(--rx-bone); font-variant-numeric: tabular-nums; }

.hm-ltv { padding: 20px; border-radius: 16px; background: var(--rx-ink); border: 1px solid var(--rx-line); display: grid; gap: 12px; }
.hm-ltv__top { display: flex; justify-content: space-between; align-items: baseline; font: 400 13px/1 var(--rx-sans); color: var(--rx-bone-3); }
.hm-ltv__top b { font: 500 22px/1 var(--rx-sans); letter-spacing: -0.02em; color: var(--rx-bone); font-variant-numeric: tabular-nums; }
.hm-ltv__bar { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(61,220,151,.16) 0 60%, rgba(245,196,81,.16) 60% 80%, rgba(255,107,107,.16) 80%); }
.hm-ltv__bar i { position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 4px; background: var(--rx-ok); }
.hm-ltv__bar em { position: absolute; top: -4px; bottom: -4px; left: var(--v); width: 2px; border-radius: 1px; background: var(--rx-bad); }
.hm-ltv__legend { display: flex; justify-content: space-between; font: 400 12px/1 var(--rx-sans); color: var(--rx-bone-3); }
.hm-ltv__legend > span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--rx-ok); }
.hm-ltv__legend i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hm-ltv__steps { list-style: none; margin: 8px 0 0; padding: 12px 0 0; border-top: 1px solid var(--rx-line); display: grid; gap: 10px; }
.hm-ltv__steps li { display: flex; align-items: center; gap: 10px; font: 400 13px/1.2 var(--rx-sans); color: var(--rx-bone-3); }
.hm-ltv__steps li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; border: 1px solid var(--rx-line-3); flex: none; }
.hm-ltv__steps li.done { color: var(--rx-bone-2); }
.hm-ltv__steps li.done::before { background: var(--rx-ok); border-color: var(--rx-ok); }
.hm-ltv__steps li.now { color: var(--rx-bone); }
.hm-ltv__steps li.now::before { background: var(--rx-sig); border-color: var(--rx-sig); box-shadow: 0 0 0 3px var(--rx-sig-wash); }

/* ---------------- FLOW ---------------- */
.hm-flow { padding: 128px 0 0; }
.hm-split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 40px; }
.hm-split-head h2, .hm-faq h2 { font: 600 var(--rx-t-48)/1.05 var(--rx-sans); letter-spacing: -0.04em; color: var(--rx-bone); }
.hm-split-head p, .hm-faq__head p { font: 400 17px/1.55 var(--rx-sans); color: var(--rx-bone-2); max-width: 44ch; }
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rx-line-2); }
.hm-step { position: relative; padding: 28px 28px 0 0; display: grid; gap: 12px; align-content: start; }
.hm-step + .hm-step { padding-left: 28px; border-left: 1px solid var(--rx-line); }
.hm-step h3 { font: 600 18px/1.3 var(--rx-sans); letter-spacing: -0.015em; color: var(--rx-bone); margin-top: 8px; }
.hm-step p { font: 400 15px/1.6 var(--rx-sans); color: var(--rx-bone-2); }
/* glyph: 2x2 block — state of the two locks across the flow */
.hm-glyph { display: grid; grid-template-columns: repeat(2, 14px); gap: 3px; }
.hm-glyph i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--rx-line-3); }
.hm-glyph--s1 i:nth-child(1) { border-color: var(--rx-sig); }
.hm-glyph--s2 i:nth-child(1) { background: var(--rx-sig); border-color: var(--rx-sig); }
.hm-glyph--s2 i:nth-child(4) { border-color: var(--rx-vio); }
.hm-glyph--s3 i:nth-child(1) { background: var(--rx-sig); border-color: var(--rx-sig); }
.hm-glyph--s3 i:nth-child(4) { background: var(--rx-vio); border-color: var(--rx-vio); }
.hm-glyph--s3 i:nth-child(2), .hm-glyph--s3 i:nth-child(3) { background: var(--rx-ok); border-color: var(--rx-ok); opacity: .9; }
.hm-glyph--s4 i:nth-child(1) { background: var(--rx-sig); border-color: var(--rx-sig); }
.hm-glyph--s4 i:nth-child(3) { border-color: var(--rx-sig); border-style: dashed; }

/* ---------------- FAQ ---------------- */
.hm-faq.home-ask { max-width: none; margin: 0; padding: 128px 0 0; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.hm-faq__head { position: sticky; top: 96px; display: grid; gap: 16px; }
.hm-faq__list { border-top: 1px solid var(--rx-line-2); }
.hm-q { border-bottom: 1px solid var(--rx-line); }
.hm-q summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 16px 0; cursor: pointer;
  font: 500 17px/1.4 var(--rx-sans); letter-spacing: -0.012em; color: var(--rx-bone); }
.hm-q summary::-webkit-details-marker { display: none; }
.hm-q summary svg { flex: none; width: 16px; height: 16px; color: var(--rx-bone-3); transition: transform var(--rx-med) var(--rx-ease), color var(--rx-fast); }
@media (hover: hover) { .hm-q summary:hover svg { color: var(--rx-bone); } }
.hm-q[open] summary svg { transform: rotate(180deg); color: var(--rx-sig); }
.hm-q p { padding: 0 48px 24px 0; font: 400 15px/1.65 var(--rx-sans); color: var(--rx-bone-2); max-width: 64ch; }

/* ---------------- CLOSE ---------------- */
.hm-close { padding: 128px 0 112px; display: grid; justify-items: center; text-align: center; }
.hm-close h2 { max-width: 18ch; font: 600 clamp(36px, 4.4vw, 60px)/1.02 var(--rx-sans); letter-spacing: -0.045em; color: var(--rx-bone); text-wrap: balance; }
.hm-close .home-actions { justify-content: center; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1080px) {
  .home-hero.hm-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 48px; }
  .hm-book { max-width: 440px; }
  .hm-doors { grid-template-columns: 1fr; }
  .hm-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .hm-step:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .hm { padding: 0 20px; }
  .home-hero.hm-hero { padding: 24px 0 64px; gap: 40px; }
  .hm-hero__copy { padding-inline: 4px; }
  .hx-art { position: relative; top: auto; right: auto; transform: none; width: calc(100% + 40px); max-width: none; margin: 0 -20px -120px; order: -1; height: 300px; aspect-ratio: auto; }
  .hm-hero__chip { margin-bottom: 20px; }
  .hm-hero h1 { font-size: clamp(36px, 9vw, 48px); max-width: none; text-wrap: wrap; }
  .hm-door--borrow .rx-btn { width: 100%; min-height: 52px; }
  .hm-bridge__amt { font-size: 30px; }
  .hm-lead { font-size: 15px; margin-top: 12px !important; }
  .hm .home-actions { margin-top: 28px; }
  .hm .home-actions .rx-btn { flex: 1 1 0; min-width: 0; padding: 0 14px; }
  .hm-book { max-width: none; padding: 16px; }
  .hm-book__stats dt { white-space: normal; line-height: 1.25; }
  .hm-doors { padding-top: 8px; }
  .hm-door { padding: 20px; gap: 28px; border-radius: 16px; }
  .hm-door--swap { grid-template-columns: 1fr; }
  .hm-door h2 { font-size: 24px; }
  .hm-flow, .hm-acct, .hm-cmp, .hm-faq.home-ask { padding-top: 96px; }
  .hm-split-head, .hm-faq.home-ask { grid-template-columns: 1fr; gap: 16px; }
  .hm-split-head h2, .hm-faq h2 { font-size: 34px; }
  .hm-steps { grid-template-columns: 1fr; border-top: 0; row-gap: 0; }
  .hm-step, .hm-step + .hm-step { padding: 24px 0; border-left: 0; border-top: 1px solid var(--rx-line); }
  .hm-backers { gap: 20px; margin-top: 40px; }
  .hm-backers ul { gap: 28px; }
  .hm-faq__head { position: static; }
  .hm-q p { padding-right: 0; }
  .hm-close { padding: 96px 0 80px; }
  .hm-mkt { grid-template-columns: auto 1fr auto; }
  .hm-mkt__terms { grid-column: 2 / -1; grid-row: 2; }
}

/* ---------------- MARKETS CARD (hero) ---------------- */
.hm-book__head { display: flex; align-items: center; justify-content: space-between; }
.hm-book h2 { font: 600 15px/1.2 var(--rx-sans); }
.hm-live { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--rx-sans); color: var(--rx-bone-3); }
.hm-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rx-ok); box-shadow: 0 0 0 3px rgba(61,220,151,.14); }
.hm-mkts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rx-line); }
.hm-mkt { display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rx-line); }
.hm-mkt__icons { grid-row: 1 / 3; display: flex; }
.hm-mkt__icons img { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 2px var(--rx-ink-2); }
.hm-mkt__icons > :nth-child(2) { margin-left: -6px; }
.hm-mkt__pair { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.hm-mkt__pair b { font: 600 14px/1.2 var(--rx-sans); color: var(--rx-bone); white-space: nowrap; }
.hm-mkt__pair small { font: 400 12px/1.2 var(--rx-sans); color: var(--rx-bone-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-mkt__terms { grid-column: 2; grid-row: 2; font: 400 12px/1.3 var(--rx-sans); color: var(--rx-bone-2); }
.hm-mkt .rx-chip { grid-column: 3; grid-row: 1 / 3; }
.hm-mkt.is-soon .hm-mkt__pair b, .hm-mkt.is-soon .hm-mkt__terms { color: var(--rx-bone-3); }
.hm-usdt { position: relative; display: inline-block; width: 24px; height: 24px; margin-left: -6px; }
.hm-usdt img:first-child { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 2px var(--rx-ink-2); }
.hm-usdt__on { position: absolute; right: -3px; bottom: -3px; width: 12px !important; height: 12px !important; border-radius: 50%; box-shadow: 0 0 0 2px var(--rx-ink-2) !important; }
.hm-book__stats dd { font-size: 14px; }

/* ---------------- ACCOUNT ---------------- */
.hm-acct { padding: 128px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.hm-acct__head { display: grid; gap: 20px; }
.hm-acct__head h2 { font: 600 var(--rx-t-48)/1.05 var(--rx-sans); letter-spacing: -0.04em; color: var(--rx-bone); text-wrap: balance; }
.hm .hm-acct .home-note { display: block; margin: 0 !important; font: 400 17px/1.55 var(--rx-sans); color: var(--rx-bone-2); max-width: 44ch; }
.hm .hm-acct .home-note::before { content: none; }
.hm-acct__list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rx-line-2); }
.hm-acct__list li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rx-line); }
.hm-acct__list b { font: 600 15px/1.5 var(--rx-sans); letter-spacing: -0.01em; color: var(--rx-bone); }
.hm-acct__list span { font: 400 15px/1.55 var(--rx-sans); color: var(--rx-bone-2); }

/* ---------------- COMPARISON ---------------- */
.hm-cmp { padding: 128px 0 0; }
.hm-cmp .hm-split-head { grid-template-columns: 1fr; }
.hm-cmp .hm-split-head h2 { max-width: 22ch; text-wrap: balance; }
.hm-cmp__scroll { overflow-x: auto; border: 1px solid var(--rx-line); border-radius: 20px; background: var(--rx-ink-1); box-shadow: var(--rx-hi); }
.hm-cmp__table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; font: 400 14px/1.45 var(--rx-sans); }
.hm-cmp__table th, .hm-cmp__table td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rx-line); }
.hm-cmp__table tbody tr:last-child > * { border-bottom: 0; }
.hm-cmp__table thead th { font: 600 14px/1.2 var(--rx-sans); color: var(--rx-bone-2); padding-top: 20px; padding-bottom: 16px; }
.hm-cmp__table thead th.is-us { color: var(--rx-sig); }
.hm-cmp__table tbody th { font: 500 13px/1.4 var(--rx-sans); color: var(--rx-bone-3); width: 22%; }
.hm-cmp__table td { color: var(--rx-bone-3); }
.hm-cmp__table td:nth-child(2) { color: var(--rx-bone); font-weight: 500; background: rgba(255,138,31,.045); box-shadow: inset 1px 0 0 rgba(255,138,31,.18), inset -1px 0 0 rgba(255,138,31,.18); }
.hm-cmp__table thead th.is-us { background: rgba(255,138,31,.045); box-shadow: inset 1px 0 0 rgba(255,138,31,.18), inset -1px 0 0 rgba(255,138,31,.18), inset 0 2px 0 var(--rx-sig); }
.hm-backers { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; margin-top: 32px; padding: 4px 4px 0; }
.hm-backers ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
.hm-backers img { display: block; width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: .55; transition: opacity var(--rx-fast); }
@media (hover: hover) { .hm-backers img:hover { opacity: .9; } }
@media (max-width: 760px) {
  .hm-acct { grid-template-columns: 1fr; gap: 32px; }
  .hm-acct__head h2 { font-size: 34px; }
  .hm-acct__list li { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .hm-cmp__scroll { border-radius: 16px; }
  .hm-backers { gap: 20px; } .hm-backers ul { gap: 28px; }
}
.hm-cmp__table tbody th, .hm-cmp__table thead td { position: sticky; left: 0; z-index: 1; background: var(--rx-ink-1); }
@media (max-width: 760px) { .hm-cmp__table { min-width: 640px; } .hm-cmp__table tbody th { width: 120px; } .hm-cmp__table th, .hm-cmp__table td { padding: 14px; } }
@media (max-width: 760px){ .hm-mkt__pair{flex-wrap:wrap;row-gap:2px} .hm-mkt__pair small{white-space:normal;overflow:visible} }
