/* Relo how-it-works � Thayon-style track cards, dark */

.bb-zero {
  --bb-max: min(100% - 2rem, 1176px);
  --bb-card-bg: #0a1614;
  --bb-line: rgba(255, 255, 255, 0.12);
  --bb-ink: #f4f4f4;
  --bb-muted: rgba(244, 244, 244, 0.62);
  --bb-radius: 12px;
  --bb-header: var(--header-height, 64px);
  box-sizing: border-box;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #050a0a;
  color: var(--bb-ink);
  font-family: var(--font-sans), "PP Neue Montreal", sans-serif;
  border: 0;
}

.bb-zero *,
.bb-zero *::before,
.bb-zero *::after {
  box-sizing: border-box;
}

.bb-zero__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: calc(var(--bb-header) + 1.25rem) 0 2rem;
  overflow: hidden;
  background: #050a0a;
}

.bb-zero__intro {
  width: var(--bb-max);
  margin: 0 auto;
  padding: 0 1rem;
  flex-shrink: 0;
}

.bb-zero__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bb-muted);
}

.bb-zero__title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}

.bb-zero__subhead {
  margin: 0.9rem 0 0;
  max-width: 36rem;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 350;
  line-height: 1.45;
  color: var(--bb-muted);
}

.bb-zero__track-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.bb-zero__track {
  position: relative;
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding-inline: max(1rem, calc((100vw - 1176px) / 2 + 1rem));
  will-change: transform;
  overflow: visible;
}

.bb-zero__card {
  flex: 0 0 min(988px, calc(100vw - 2.5rem));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: clamp(400px, 48vh, 514px);
  margin: 0;
  background: var(--bb-card-bg);
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  overflow: hidden;
}

.bb-zero__media {
  position: relative;
  min-height: 100%;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(118, 232, 173, 0.05), transparent 70%),
    #071210;
  border-right: 1px solid var(--bb-line);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  overflow: hidden;
}

.bb-zero__media img {
  display: none;
}

/* ——— Live demos inside how-it-works media ——— */
.zd-stage {
  width: min(100%, 340px);
  display: grid;
  place-items: center;
}

.zd-term,
.zd-status,
.zd-rewards {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #0d1b18, #081311);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 48px -28px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.zd-term__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.zd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.zd-dot:nth-child(1) { background: #ff5f57; }
.zd-dot:nth-child(2) { background: #febc2e; }
.zd-dot:nth-child(3) { background: #28c840; }

.zd-term__title {
  margin-left: 0.45rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: rgba(244, 244, 244, 0.42);
}

.zd-term__body {
  padding: 0.95rem 0.95rem 1.05rem;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
}

.zd-line {
  margin: 0;
  color: rgba(244, 244, 244, 0.88);
}

.zd-line--muted { color: rgba(244, 244, 244, 0.4); }
.zd-line--dim {
  color: rgba(244, 244, 244, 0.38);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.zd-line--dim.is-in {
  opacity: 1;
  transform: none;
}

.zd-prompt { color: #f5a8c0; }

.zd-caret {
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin-left: 1px;
  vertical-align: -0.1em;
  background: rgba(244, 244, 244, 0.85);
  animation: zd-caret 1.05s steps(1) infinite;
}

.zd-caret.is-off { opacity: 0; animation: none; }

.zd-ad {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 90, 0.22);
  background: rgba(255, 196, 70, 0.07);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.zd-ad.is-in {
  opacity: 1;
  transform: none;
}

.zd-ad__mark {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

.zd-ad__copy {
  font-size: 0.68rem;
  color: rgba(255, 235, 180, 0.92);
}

.zd-ad__copy b {
  font-weight: 600;
  color: #ffe6a0;
}

.zd-term__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
}

.zd-earn-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 244, 244, 0.38);
}

.zd-earn {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: #76e8ad;
}

/* Status bar */
.zd-status {
  padding: 1rem;
}

.zd-status__label {
  margin: 0 0 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 244, 244, 0.35);
}

.zd-status__card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 12, 11, 0.72);
}

.zd-status__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: rgba(244, 244, 244, 0.72);
}

.zd-spin {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 244, 244, 0.2);
  border-top-color: #f5c542;
  animation: zd-spin 0.8s linear infinite;
}

.zd-status__think b {
  font-weight: 500;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.zd-timer {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: #76e8ad;
}

.zd-timer i {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(118, 232, 173, 0.45);
  animation: zd-pulse 1.4s ease-out infinite;
}

.zd-status__ad {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.zd-status__ad.is-in {
  opacity: 1;
  transform: none;
}

.zd-brand {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 1.3rem;
  padding: 0 0.35rem;
  border-radius: 4px;
  background: #f4f4f4;
}

.zd-brand img {
  display: block;
  width: auto;
  height: 0.72rem;
}

.zd-status__ad-copy {
  font-size: 0.72rem;
  color: rgba(244, 244, 244, 0.88);
}

.zd-bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.zd-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: #76e8ad;
  transition: width 0.05s linear;
}

.zd-status__hint {
  margin: 0;
  font-size: 0.68rem;
  color: rgba(244, 244, 244, 0.4);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.zd-status__hint.is-in { opacity: 1; }
.zd-status__hint.is-done { color: #76e8ad; }

.zd-input {
  margin-top: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.74rem;
  color: rgba(244, 244, 244, 0.35);
}

/* Rewards */
.zd-rewards {
  padding: 1.05rem 1rem 1.1rem;
}

.zd-rewards__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.zd-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 244, 244, 0.38);
}

.zd-live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  color: #76e8ad;
}

.zd-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: zd-pulse 2s ease-in-out infinite;
}

.zd-rewards__amount {
  margin: 0 0 1rem;
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 2rem;
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.zd-assets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.zd-asset {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.35s ease, background-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.zd-asset.is-on {
  border-color: rgba(118, 232, 173, 0.35);
  background: rgba(118, 232, 173, 0.06);
  transform: translateX(2px);
}

.zd-asset__icon {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #12302b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  flex-shrink: 0;
}

.zd-asset__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.zd-asset__icon--nv {
  background: #10180a;
  border-color: rgba(118, 185, 0, 0.25);
}

.zd-asset__icon--nv img {
  width: 68%;
  height: 68%;
}

.zd-asset__icon--tok {
  background: #0c1210;
  border-color: rgba(169, 207, 180, 0.22);
}

.zd-asset__icon--tok img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

.zd-asset__meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  flex: 1;
}

.zd-asset__meta strong {
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.15;
}

.zd-asset__meta em {
  font-style: normal;
  font-size: 0.64rem;
  color: rgba(244, 244, 244, 0.4);
}

.zd-asset__amt {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: rgba(244, 244, 244, 0.72);
}

.zd-settle {
  margin: 0.85rem 0 0;
  font-size: 0.74rem;
  color: #76e8ad;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.zd-settle.is-in {
  opacity: 1;
  transform: none;
}

@keyframes zd-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes zd-spin {
  to { transform: rotate(360deg); }
}

@keyframes zd-pulse {
  0% { box-shadow: 0 0 0 0 rgba(118, 232, 173, 0.45); opacity: 1; }
  70% { box-shadow: 0 0 0 7px rgba(118, 232, 173, 0); opacity: 0.7; }
  100% { box-shadow: 0 0 0 0 rgba(118, 232, 173, 0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .zd-caret,
  .zd-spin,
  .zd-timer i,
  .zd-live i {
    animation: none !important;
  }

  .zd-ad,
  .zd-line--dim,
  .zd-status__ad,
  .zd-status__hint,
  .zd-settle {
    opacity: 1 !important;
    transform: none !important;
  }

  .zd-caret { opacity: 0; }
}

.bb-zero__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bb-zero__row {
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1.1rem, 2.4vw, 1.75rem);
  border-bottom: 1px solid var(--bb-line);
}

.bb-zero__row:last-child {
  border-bottom: 0;
  margin-top: auto;
}

.bb-zero__row--head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
}

.bb-zero__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--bb-line);
  border-radius: 8px;
  background: #161616;
  color: #f4f4f4;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.bb-zero__kicker {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-muted);
}

.bb-zero__name {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  font-weight: 350;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.bb-zero__summary {
  margin: 0;
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.45;
  color: rgba(244, 244, 244, 0.82);
}

.bb-zero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  border-bottom: 1px solid var(--bb-line);
}

.bb-zero__metric {
  padding: clamp(1rem, 2vw, 1.35rem) clamp(0.85rem, 1.8vw, 1.35rem);
  border-right: 1px solid var(--bb-line);
}

.bb-zero__metric:last-child {
  border-right: 0;
}

.bb-zero__metric-value {
  display: block;
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.bb-zero__metric-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bb-muted);
}

.bb-zero__detail-label {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-muted);
}

.bb-zero__detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.bb-zero__detail-list li {
  font-size: 0.95rem;
  font-weight: 350;
  line-height: 1.4;
  color: rgba(244, 244, 244, 0.88);
}

/* hint removed � scroll is discoverable */

@media (max-width: 820px) {
  .bb-zero__pin {
    min-height: 100svh;
    justify-content: flex-start;
    padding-top: calc(var(--bb-header) + 1rem);
  }

  .bb-zero__card {
    flex-basis: min(920px, calc(100vw - 2rem));
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .bb-zero__media {
    border-right: 0;
    border-bottom: 1px solid var(--bb-line);
    aspect-ratio: 16 / 10;
    min-height: 220px;
  }

  .bb-zero__metrics {
    grid-template-columns: 1fr;
  }

  .bb-zero__metric {
    border-right: 0;
    border-bottom: 1px solid var(--bb-line);
  }

  .bb-zero__metric:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bb-zero {
    height: auto !important;
  }

  .bb-zero__pin {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .bb-zero__track-wrap {
    overflow-x: auto;
  }

  .bb-zero__track {
    transform: none !important;
  }
}
