/* MetaBear homepage. Builds on /mb.css tokens. */

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero.webgl-ready .hero-canvas {
  opacity: 1;
}
.hero-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 70% 70%, rgba(120, 225, 213, 0.16), transparent 70%),
    radial-gradient(50% 50% at 90% 20%, rgba(232, 189, 125, 0.1), transparent 70%),
    repeating-linear-gradient(90deg, rgba(120, 160, 190, 0.06) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(120, 160, 190, 0.05) 0 1px, transparent 1px 64px), var(--bg);
  mask-image: radial-gradient(90% 80% at 60% 60%, #000 30%, transparent 100%);
  transition: opacity 1.6s var(--ease);
}
.hero.webgl-ready .hero-fallback {
  opacity: 0;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 15, 0.92) 0%, rgba(5, 9, 15, 0.55) 38%, rgba(5, 9, 15, 0) 65%),
    linear-gradient(180deg, rgba(5, 9, 15, 0.6) 0%, transparent 22%, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}
.hero-hud {
  position: absolute;
  inset: calc(var(--header-h) + 18px) var(--gutter) auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--dim);
  pointer-events: none;
}
.hud-tr i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: hud-pulse 2s infinite;
}
.hud-tr b {
  color: var(--line-2);
  font-weight: 400;
}
@keyframes hud-pulse {
  50% {
    opacity: 0.25;
  }
}
.hero-copy {
  padding-top: calc(var(--header-h) + 48px);
}
.hero-title {
  margin: 28px 0 30px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero-title .line > span {
  display: inline-block;
}
.hero-title em {
  font-style: normal;
}
.hero-title .ch {
  display: inline-block;
  will-change: transform;
}
.hero-lead {
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.hero-note {
  max-width: 44em;
  margin-top: 22px;
}
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-block: 36px 40px;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.cue-line {
  position: relative;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: var(--line-2);
}
.cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--teal);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}
.hero-quote {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}
.hero-quote .mb-mono {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.hero-quote strong {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1;
}
.hero-quote small {
  color: var(--dim);
  font-size: 12px;
}
.js .hero [data-hero-in] {
  opacity: 0;
  transform: translateY(20px);
}
.motion-off .hero [data-hero-in],
.hero.is-in [data-hero-in] {
  opacity: 1;
  transform: none;
  transition:
    opacity 1.2s var(--ease),
    transform 1.2s var(--ease);
}
.hero.is-in .hero-lead {
  transition-delay: 0.45s;
}
.hero.is-in .hero-actions {
  transition-delay: 0.6s;
}
.hero.is-in .hero-note {
  transition-delay: 0.75s;
}
.hero.is-in .hero-foot {
  transition-delay: 0.95s;
}

/* ================= TICKER ================= */
.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(8, 14, 24, 0.7);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 60s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 34px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.ticker-track span::after {
  content: "✦";
  margin-left: 34px;
  color: var(--dim);
  font-size: 10px;
}
.ticker-track b {
  color: var(--gold);
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.04em;
}
.ticker-track em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 12px;
}
.ticker-track .up {
  color: var(--teal);
}
.ticker-track .down {
  color: var(--red);
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}
.motion-off .ticker-track {
  animation: none;
}

/* ================= SECTION HEAD ================= */
.section-head {
  display: grid;
  gap: 26px;
  max-width: 900px;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.section-head.split {
  max-width: none;
  grid-template-columns: 1.3fr 1fr;
  align-items: end;
  gap: 48px;
}
@media (max-width: 900px) {
  .section-head.split {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* ================= ACADEMY SHOWCASE ================= */
.academy {
  overflow: hidden;
}
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: stretch;
}
.screen {
  margin: 0;
  padding: 14px;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 10px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.screen-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.screen-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sell);
  box-shadow: 0 0 10px var(--sell);
  animation: hud-pulse 1.4s infinite;
}
.screen-dots {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.screen-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}
.screen-view {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-l);
  overflow: hidden;
  background: #060b13;
  box-shadow: inset 0 0 0 1px var(--line);
}
.screen-canvas {
  width: 100%;
  height: 100%;
}
.screen-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 60% at 50% 50%, rgba(120, 225, 213, 0.12), transparent 70%), #060b13;
  transition: opacity 0.8s;
}
.screen-poster::after {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(120, 225, 213, 0.25);
  border-top-color: var(--teal);
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}
.showcase.ready .screen-poster {
  opacity: 0;
  pointer-events: none;
}
.screen-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 10px 8px;
}
.screen-foot strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
}
.screen-foot span {
  color: var(--muted);
  font-size: 14px;
}
.screen-progress {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.screen-progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.feature-list {
  display: grid;
  gap: 12px;
  align-content: start;
}
.feature {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border-radius: var(--r-m);
  background: rgba(14, 24, 34, 0.55);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition:
    background 0.4s,
    box-shadow 0.4s,
    transform 0.4s var(--ease);
}
.feature:hover {
  transform: translateX(4px);
}
.feature.is-active {
  background: linear-gradient(90deg, rgba(120, 225, 213, 0.12), rgba(14, 24, 34, 0.6));
  box-shadow: inset 0 0 0 1px rgba(120, 225, 213, 0.45);
}
.feature-num {
  font-size: 30px;
  color: var(--dim);
  transition: color 0.4s;
}
.feature.is-active .feature-num {
  color: var(--teal);
}
.feature-body small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.feature-body strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}
.feature-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
}
.feature-bar i {
  display: block;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--teal);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(56px, 8vw, 96px) 0 0;
  border-block: 1px solid var(--line);
}
.stats div {
  padding: 28px 24px;
  border-left: 1px solid var(--line);
}
.stats div:first-child {
  border-left: 0;
}
.stats dt {
  font-size: 13px;
  color: var(--muted);
}
.stats dd {
  margin: 4px 0 0;
  font-size: clamp(54px, 7vw, 104px);
  line-height: 0.95;
  background: linear-gradient(180deg, var(--text), rgba(237, 242, 237, 0.35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.center-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 960px) {
  .showcase {
    grid-template-columns: 1fr;
  }
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
  .feature {
    padding: 16px 18px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats div:nth-child(3) {
    border-left: 0;
  }
  .stats div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .screen {
    padding: 8px;
    border-radius: var(--r-l);
  }
  .screen-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================= START (pinned horizontal on desktop) ================= */
.start {
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(8, 14, 24, 0.9) 18%, rgba(8, 14, 24, 0.9) 82%, transparent);
}
.start-pin {
  padding-block: clamp(96px, 12vw, 150px);
}
.start-head {
  position: relative;
  display: grid;
  gap: 24px;
  margin-bottom: 56px;
}
.start-rail {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.start-rail i {
  display: block;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0.33);
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.start-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}
.step-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--r-xl);
}
.step-card header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.step-num {
  font-size: 64px;
  line-height: 0.8;
  background: linear-gradient(180deg, var(--teal), rgba(120, 225, 213, 0.2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step-card .mb-small {
  margin-top: auto;
}
.step-card .mb-btn {
  align-self: flex-start;
}
.step-copy {
  color: var(--text-2);
}
.code-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 20px 22px;
  border-radius: var(--r-m);
  background: radial-gradient(120% 140% at 0% 0%, rgba(232, 189, 125, 0.14), transparent 60%), rgba(5, 9, 15, 0.6);
  box-shadow: inset 0 0 0 1px rgba(232, 189, 125, 0.35);
}
.code-label {
  grid-column: 1 / -1;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: var(--gold);
}
.code-value {
  font-size: clamp(44px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-shadow: 0 0 28px rgba(232, 189, 125, 0.45);
}
.step-links {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.step-links a {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  transition:
    color 0.3s,
    padding 0.4s var(--ease);
}
.step-links a:hover {
  color: var(--teal);
  padding-left: 8px;
}
.step-links span {
  font-weight: 800;
}
.step-links small {
  grid-row: 2;
  color: var(--muted);
  font-size: 13px;
}
.step-links i {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  font-style: normal;
  color: var(--teal);
}
.route-map {
  width: 100%;
  height: auto;
  overflow: visible;
}
.route-base {
  stroke: var(--line-2);
  stroke-width: 2;
  stroke-dasharray: 3 7;
}
.route-flow {
  stroke: var(--teal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 60 380;
  filter: drop-shadow(0 0 6px var(--teal));
  animation: route 3.2s var(--ease) infinite;
}
@keyframes route {
  from {
    stroke-dashoffset: 60;
  }
  to {
    stroke-dashoffset: -440;
  }
}
.route-node circle {
  fill: var(--bg);
  stroke: var(--teal);
  stroke-width: 2;
}
.route-node.end circle {
  fill: var(--teal);
  filter: drop-shadow(0 0 8px var(--teal));
}
.route-node text,
.route-tag {
  fill: var(--text-2);
  font-family: var(--f-tc);
  font-size: 14px;
  font-weight: 700;
  text-anchor: middle;
}
.route-tag {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.route-links {
  display: grid;
  gap: 10px;
}
.route {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--r-m);
  background: rgba(5, 9, 15, 0.5);
  box-shadow: inset 0 0 0 1px var(--line);
}
.route .exchange-logo {
  width: 56px;
  height: 22px;
  object-fit: contain;
}
.route strong {
  display: block;
  font-weight: 800;
}
.route small {
  color: var(--muted);
  font-size: 13px;
}
.route i {
  font-style: normal;
  color: var(--teal);
}
.checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--r-m);
  background: rgba(5, 9, 15, 0.5);
  box-shadow: inset 0 0 0 1px var(--line);
}
.checks i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(120, 225, 213, 0.14);
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 0 20px -4px rgba(120, 225, 213, 0.6);
}
.checks strong {
  display: block;
  font-weight: 800;
}
.checks small {
  color: var(--muted);
  font-size: 13px;
}
/* Desktop: the three cards become a horizontal, scroll-pinned track (site.js). */
@media (min-width: 1100px) {
  .start.is-pinned .start-track {
    display: flex;
    width: max-content;
    gap: 32px;
    padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  }
  .start.is-pinned .step-card {
    width: min(620px, 44vw);
    gap: 16px;
    padding: 28px 32px;
  }
  .start.is-pinned .step-links a {
    padding-block: 10px;
  }
  .start.is-pinned .code-box {
    padding: 14px 18px;
  }
  .start.is-pinned .start-head h2 {
    font-size: clamp(36px, 3.4vw, 54px);
  }
  .start.is-pinned .start-head h2 br {
    display: none;
  }
  .start.is-pinned .start-pin {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: calc(var(--header-h) + 24px) 40px;
  }
  .start.is-pinned .start-head {
    grid-template-columns: 1fr minmax(240px, 32%);
    align-items: end;
    gap: 16px;
    margin-bottom: 28px;
  }
  .start.is-pinned .start-head .mb-eyebrow {
    grid-column: 1 / -1;
  }
}
@media (max-width: 1099px) {
  .start-track {
    grid-template-columns: 1fr;
    max-width: 680px;
  }
  .start-rail {
    display: none;
  }
}

/* ================= MARKET ================= */
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.market-copy {
  display: grid;
  gap: 24px;
  align-content: start;
}
.market-switch {
  display: inline-flex;
  width: fit-content;
  padding: 5px;
  border-radius: 999px;
  background: rgba(14, 24, 34, 0.7);
  box-shadow: inset 0 0 0 1px var(--line);
}
.market-switch button {
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  transition:
    background 0.3s,
    color 0.3s;
}
.market-switch button[aria-pressed="true"] {
  background: var(--teal);
  color: var(--teal-ink);
  box-shadow: 0 8px 30px -8px rgba(120, 225, 213, 0.7);
}
.market-card {
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--r-xl);
}
.market-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.asset {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}
.asset-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(232, 189, 125, 0.14);
  color: var(--gold);
  font-weight: 900;
}
.market-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
}
.market-price strong {
  font-size: clamp(48px, 5.6vw, 84px);
  line-height: 1;
}
.market-price span {
  color: var(--muted);
  font-weight: 700;
}
.market-series {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
#snapshot-chart {
  width: 100%;
  height: auto;
  margin-top: 8px;
  overflow: visible;
}
#snapshot-chart text {
  font-family: var(--f-mono);
}
#snapshot-chart .market-candle {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.market-card.drawing .market-candle {
  animation: candle-in 0.7s var(--ease) both;
  animation-delay: calc(var(--i) * 45ms);
}
@keyframes candle-in {
  from {
    opacity: 0;
    transform: scaleY(0.2);
  }
}
.market-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--dim);
}
@media (max-width: 900px) {
  .market-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= LAB ================= */
.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
}
.lab-controls,
.lab-result {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-xl);
}
.lab-controls {
  display: grid;
  gap: 14px;
  align-content: start;
}
.direction-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(5, 9, 15, 0.6);
  box-shadow: inset 0 0 0 1px var(--line);
}
.direction-toggle button {
  padding: 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  transition:
    background 0.3s,
    color 0.3s;
}
.direction-toggle button[aria-pressed="true"] {
  background: var(--teal);
  color: var(--teal-ink);
}
.direction-toggle button[data-direction="short"][aria-pressed="true"] {
  background: var(--sell);
  color: #2a1406;
}
.lab-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: var(--text-2);
}
.lab-field output {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--teal);
}
.input-unit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 16px;
  border-radius: 12px;
  background: rgba(5, 9, 15, 0.7);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.input-unit input {
  width: 120px;
  border: 0;
  background: transparent;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  outline: none;
}
.input-unit span {
  font-size: 12px;
  color: var(--muted);
}
input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--text);
  box-shadow:
    0 0 0 5px rgba(120, 225, 213, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.6);
}
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 5px rgba(120, 225, 213, 0.25);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: -6px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
}
.lab-result {
  display: grid;
  gap: 10px;
  align-content: start;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(120, 225, 213, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(20, 33, 45, 0.7), rgba(10, 17, 26, 0.75));
}
.result-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.lab-result small {
  color: var(--muted);
}
#pnl {
  font-family: var(--f-display);
  font-size: clamp(64px, 7vw, 108px);
  font-weight: 700;
  line-height: 0.95;
  transition: color 0.3s;
}
#pnl span {
  font-size: 0.26em;
  color: var(--muted);
}
#pnl.negative {
  color: var(--red);
  text-shadow: 0 0 40px rgba(239, 123, 118, 0.35);
}
#pnl.positive {
  color: var(--teal);
  text-shadow: 0 0 40px rgba(120, 225, 213, 0.35);
}
.exposure {
  display: grid;
  gap: 10px;
  margin: 14px 0 6px;
}
.exposure-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.bar {
  display: block;
  height: 14px;
  border-radius: 8px;
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.margin-bar {
  background: var(--gold);
}
.notional-bar {
  background: linear-gradient(90deg, var(--teal), rgba(120, 225, 213, 0.4));
  box-shadow: 0 0 24px -4px rgba(120, 225, 213, 0.6);
}
.result-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.result-details div {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(5, 9, 15, 0.5);
  box-shadow: inset 0 0 0 1px var(--line);
}
.result-details span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.result-details b {
  font-family: var(--f-display);
  font-size: 26px;
}
#calculation {
  font-size: 13px;
  color: var(--muted);
}
.lab-explanation {
  color: var(--text-2);
}
.lab-limits {
  margin-top: 20px;
  max-width: 80ch;
}
.lesson-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.lesson-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--r-m);
  background: rgba(14, 24, 34, 0.55);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 700;
}
.lesson-links i {
  font-style: normal;
  color: var(--teal);
}
@media (max-width: 900px) {
  .lab-grid,
  .lesson-links {
    grid-template-columns: 1fr;
  }
}

/* ================= ASK ================= */
.ask-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.ask-copy {
  display: grid;
  gap: 24px;
}
.ask-copy .hero-actions {
  margin-top: 8px;
}
.phone {
  justify-self: center;
  width: min(380px, 100%);
  padding: 14px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1a2a36, #0a121b);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 60px 120px -40px rgba(0, 0, 0, 0.95),
    0 0 90px -30px rgba(120, 225, 213, 0.35);
  transform: rotate(-3deg);
}
.phone-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 14px;
  border-radius: 32px 32px 0 0;
  background: #0d1720;
}
.phone-top img {
  border-radius: 50%;
}
.phone-top strong {
  display: block;
  font-size: 15px;
}
.phone-top small {
  color: var(--muted);
  font-size: 11px;
}
.phone-chat {
  display: grid;
  gap: 10px;
  padding: 18px 14px;
  min-height: 420px;
  align-content: start;
  background: linear-gradient(180deg, #0a131b, #070d14);
}
.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 4px;
  background: #16242f;
  font-size: 14px;
  line-height: 1.6;
}
.bubble.out {
  justify-self: end;
  border-radius: 18px 18px 4px 18px;
  background: var(--teal);
  color: var(--teal-ink);
  font-weight: 700;
}
.bubble.ok {
  box-shadow: inset 0 0 0 1px rgba(120, 225, 213, 0.45);
}
.bubble b {
  color: var(--gold);
}
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.options b {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(120, 225, 213, 0.14);
  color: var(--teal) !important;
  font-size: 12px;
}
.phone-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 18px;
  border-radius: 0 0 32px 32px;
  background: #0d1720;
  color: var(--dim);
  font-size: 13px;
}
.phone-input i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--teal-ink);
  font-style: normal;
  font-weight: 900;
}
.js .phone .bubble {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.js .phone.is-in .bubble {
  opacity: 1;
  transform: none;
}
.js .phone.is-in .bubble:nth-child(2) {
  transition-delay: 0.7s;
}
.js .phone.is-in .bubble:nth-child(3) {
  transition-delay: 1.5s;
}
.js .phone.is-in .bubble:nth-child(4) {
  transition-delay: 2.2s;
}
.js .phone.is-in .bubble:nth-child(5) {
  transition-delay: 3s;
}
.js .phone.is-in .bubble:nth-child(6) {
  transition-delay: 3.7s;
}
@media (max-width: 900px) {
  .ask-grid {
    grid-template-columns: 1fr;
  }
  .phone {
    transform: none;
  }
}

/* ================= CLOSING ================= */
.closing {
  position: relative;
  padding-block: clamp(120px, 16vw, 220px);
  text-align: center;
  overflow: hidden;
}
.closing .mb-wrap {
  display: grid;
  justify-items: center;
  gap: 28px;
}
.closing .hero-actions {
  justify-content: center;
  margin-top: 16px;
}
.closing-glow {
  position: absolute;
  left: 50%;
  top: 55%;
  width: min(1100px, 120vw);
  aspect-ratio: 2;
  translate: -50% -50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(120, 225, 213, 0.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* ================= FOOTER EXTRAS ================= */
.motion-toggle {
  width: fit-content;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 600;
}
.motion-toggle:hover {
  color: var(--teal);
}

/* ================= LINE FLOAT ================= */
.line-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background: rgba(5, 9, 15, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(120, 225, 213, 0.45),
    0 20px 50px -20px rgba(120, 225, 213, 0.6);
  backdrop-filter: blur(14px);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.3;
  transition:
    transform 0.4s var(--ease),
    opacity 0.4s;
}
.line-float:hover {
  transform: translateY(-3px);
}
.line-float small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.line-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #06c755;
  box-shadow: 0 0 0 4px rgba(6, 199, 85, 0.2);
}
.line-float.is-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* ================= MOBILE ================= */
@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
  }
  .hero-hud {
    display: none;
  }
  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(5, 9, 15, 0.65) 0%,
      rgba(5, 9, 15, 0.35) 40%,
      rgba(5, 9, 15, 0.85) 80%,
      var(--bg) 100%
    );
  }
  .hero-copy {
    padding-top: calc(var(--header-h) + 28px);
  }
  .hero-actions .mb-btn {
    flex: 1 1 100%;
  }
  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-quote {
    justify-items: start;
    text-align: left;
  }
  .line-float {
    right: 14px;
    bottom: 14px;
    padding: 10px 16px 10px 12px;
  }
  .code-value {
    letter-spacing: 0.06em;
  }
  .hero .mb-eyebrow {
    letter-spacing: 0.14em;
    font-size: 11px;
  }
  .screen-kicker,
  .screen-dots {
    display: none;
  }
  .line-float {
    padding: 12px;
  }
  .line-float > span:not(.line-dot) {
    display: none;
  }
  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(5, 9, 15, 0.55) 0%,
      rgba(5, 9, 15, 0.15) 45%,
      rgba(5, 9, 15, 0.7) 78%,
      var(--bg) 100%
    );
  }
}
.bingx-logo {
  filter: brightness(0) invert(0.92);
}
