/* BITS - Technology page
   Builds on the shared tokens and components in style.css
   (.card, .grad, .display, .section-head, .pill, .rule-icon, .cta-panel ...)
*/

.tech-page section {
  scroll-margin-top: 8.5rem;
}

.tech-page code {
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 0.88em;
  color: var(--bits-cyan);
  background: rgba(59, 239, 255, 0.08);
  border: 1px solid rgba(59, 239, 255, 0.18);
  border-radius: 0.4rem;
  padding: 0.08em 0.4em;
}

.tech-page strong { color: var(--bits-text); font-weight: 600; }

.muted { color: rgba(255, 255, 255, 0.55); font-weight: 400; }


/* ——— Page hero ——— */
.tech-hero {
  overflow: hidden;
  padding: clamp(8rem, 14vw, 10rem) 0 clamp(3.5rem, 7vw, 5rem);
  background:
    radial-gradient(ellipse 55% 50% at 50% 0%, rgba(41, 77, 221, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 30% 35% at 85% 55%, rgba(219, 230, 76, 0.08) 0%, transparent 70%),
    #000;
}

.tech-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 239, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 239, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black, transparent 75%);
  pointer-events: none;
}

.tech-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.tech-title {
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  line-height: 1.1;
  max-width: none;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}

.tech-hero .section-sub {
  margin-inline: auto;
  max-width: 44rem;
}

.tech-hero .btn-row {
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: clamp(2.5rem, 6vw, 3.75rem) auto 0;
  max-width: 56rem;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(59, 239, 255, 0.22);
  background: rgba(59, 239, 255, 0.18);
}

.hero-stats > div {
  padding: 1.35rem 1rem;
  background: #050913;
}

.hero-stats dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bits-cyan);
  margin-bottom: 0.4rem;
}

.hero-stats dd {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.1;
  background: var(--bits-gradient-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats dd span {
  font-size: 0.5em;
  margin-left: 0.15em;
}

@media (min-width: 760px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

/* ——— Sticky in-page nav ——— */
.subnav {
  position: sticky;
  top: calc(52px + 2rem);
  z-index: 40;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid rgba(59, 239, 255, 0.14);
}

.subnav-track {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-block: 0.6rem;
  scrollbar-width: none;
}

.subnav-track::-webkit-scrollbar { display: none; }

.subnav a {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: var(--bits-text-soft);
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.subnav a:hover { color: var(--bits-lime); }

.subnav a.is-active {
  color: #041018;
  background: var(--bits-gradient-cta);
}

/* ——— Section shells ——— */
.tech-section {
  background: #000;
}

.tech-section--glow {
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 40% at 0% 45%, rgba(41, 77, 221, 0.26) 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 100% 55%, rgba(59, 239, 255, 0.07) 0%, transparent 70%),
    #000;
}

.callout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-weight: 500;
  color: var(--bits-text);
  background: linear-gradient(90deg, rgba(219, 230, 76, 0.12), rgba(59, 239, 255, 0.04));
  border: 1px solid rgba(219, 230, 76, 0.3);
}

.callout .ico { color: var(--bits-lime); }

/* Key / value lists */
.kv > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kv dt {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.kv dd {
  font-size: 0.93rem;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.kv--compact > div { padding: 0.55rem 0; }

/* Labelled code snippet (mining + wallets pages) */
.codeblock {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: #03060c;
  border: 1px solid rgba(59, 239, 255, 0.22);
}

.codeblock-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.codeblock code {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.92rem;
  color: var(--bits-lime);
  overflow-wrap: anywhere;
}

/* ——— 1. Layers ——— */
.layers {
  display: grid;
  gap: 1rem;
}

.layer {
  padding: 1.75rem 1.6rem;
}

.layer-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bits-cyan);
  margin-bottom: 1rem;
}

.layer--top {
  background:
    linear-gradient(160deg, rgba(219, 230, 76, 0.12) 0%, #0b1220 55%, #070b14 100%) padding-box,
    linear-gradient(140deg, rgba(219, 230, 76, 0.85), rgba(116, 196, 101, 0.4) 50%, rgba(59, 239, 255, 0.5)) border-box;
}

.layer--top .layer-tag { color: var(--bits-lime); }

@media (min-width: 860px) {
  .layers { grid-template-columns: repeat(3, 1fr); }
}

/* ——— 2. Genesis ——— */
.genesis-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.genesis-grid .section-sub { margin-top: 1.25rem; }

.genesis-quote {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.4rem;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.5;
  border-left: 3px solid transparent;
  border-image: var(--bits-gradient-cta) 1;
  background: linear-gradient(90deg, rgba(219, 230, 76, 0.08), transparent 85%);
}

.block-card {
  padding: 1.75rem;
}

.block-card:hover { transform: none; }

.block-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.block-badge {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  background: var(--bits-gradient-logo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hash {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(59, 239, 255, 0.16);
}

.hash-label {
  font-size: 0.72rem !important;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bits-cyan) !important;
  margin-bottom: 0.4rem;
}

.hash code {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--bits-text);
  word-break: break-all;
}

@media (min-width: 960px) {
  .genesis-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ——— 3. Speed ——— */
.race {
  padding: 1.75rem;
  margin: 0;
}

.race:hover { transform: none; }

.race-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bits-cyan);
  margin-bottom: 1.25rem;
}

.race-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr 4.75rem;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
}

.race-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.race-value {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-align: right;
  white-space: nowrap;
}

.race-track {
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.race-bar {
  display: block;
  height: 100%;
  width: var(--w);
  min-width: 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.race-bar--bits {
  background: var(--bits-gradient-cta);
  box-shadow: 0 0 18px rgba(219, 230, 76, 0.55);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.stat-row li {
  padding: 1.25rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(59, 239, 255, 0.18);
  background: rgba(10, 15, 26, 0.7);
}

.stat-row strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--bits-lime) !important;
  line-height: 1.2;
}

.stat-row span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 760px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}

/* ——— 4. Supply ——— */
.supply-grid {
  display: grid;
  gap: 1.25rem;
}

.chart {
  margin: 0;
  padding: 1.75rem;
  overflow: visible;
}

.chart:hover { transform: none; }

.chart-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--bits-text) !important;
}

.chart-sub {
  font-size: 0.88rem !important;
  margin-bottom: 1.5rem;
}

.bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  height: 15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.bar-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  padding: 0 0.3rem;
  cursor: default;
  outline: none;
}

.bar {
  width: min(100%, 2.75rem);
  height: var(--h);
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--bits-lime);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.bar-value {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.bar-label {
  position: absolute;
  top: calc(100% + 0.5rem);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.bar-col:hover .bar,
.bar-col:focus-visible .bar {
  filter: brightness(1.15);
  box-shadow: 0 0 18px rgba(219, 230, 76, 0.5);
}

.tip {
  position: absolute;
  bottom: calc(var(--h) + 2.25rem);
  left: 50%;
  z-index: 5;
  width: max-content;
  max-width: 11rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.7rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  background: #0b1220;
  border: 1px solid rgba(59, 239, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.tip strong { display: block; color: var(--bits-lime) !important; }

.bar-col:hover .tip,
.bar-col:focus-visible .tip { opacity: 1; }

.bar-col:first-child .tip { left: 0; transform: none; }
.bar-col:last-child .tip { left: auto; right: 0; transform: none; }

.chart-note {
  margin-top: 2.5rem;
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.supply-facts {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.fact {
  padding: 1.75rem;
}

.fact:hover { transform: none; }

.fact-label {
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bits-cyan) !important;
}

.fact-value {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem) !important;
  line-height: 1.15 !important;
  margin: 0.4rem 0 0.5rem;
  background: var(--bits-gradient-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.fact-value span { font-size: 0.4em; margin-left: 0.3em; }

.table-wrap {
  overflow-x: auto;
  padding: 0.5rem 1.25rem 0.75rem;
}

.table-wrap:hover { transform: none; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table caption {
  text-align: left;
  padding: 0.9rem 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bits-cyan);
}

.spec-table th {
  text-align: left;
  font-weight: 500;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.5rem 0;
}

.spec-table td {
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  vertical-align: top;
}

.spec-table td:first-child {
  padding-right: 1rem;
  font-weight: 600;
  color: var(--bits-text);
  white-space: nowrap;
}

.mini-cards,
.principles-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.mini {
  display: grid;
  gap: 0.4rem;
  padding: 1.4rem 1.4rem;
}

.mini strong {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1rem;
  color: var(--bits-lime) !important;
}

.mini span {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
}

@media (min-width: 760px) {
  .mini-cards { grid-template-columns: repeat(3, 1fr); }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .supply-grid { grid-template-columns: 1.2fr 0.8fr; }
  .principles-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1040px) {
  .mini-cards--4 { grid-template-columns: repeat(4, 1fr); }
}

.more-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding: 1.5rem 1.75rem;
}

.more-link > span:first-child {
  display: grid;
  gap: 0.25rem;
}

.more-link strong {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.1rem;
}

.more-link > span:first-child > span {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.72);
}

.more-link .path-go {
  position: static;
  flex-shrink: 0;
}

.more-link:hover .path-go {
  background: var(--bits-lime);
  color: #041018;
  transform: rotate(-45deg);
}

/* ——— 5. Mining ——— */
.algos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 1rem;
}

.algo {
  padding: 1.5rem 1.4rem;
}

.algo-hw {
  font-size: 0.72rem !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bits-cyan) !important;
  margin-bottom: 0.75rem;
}

.algo h3 {
  font-size: 1.25rem;
}

.algo--hot {
  background:
    linear-gradient(160deg, rgba(219, 230, 76, 0.14) 0%, #0b1220 55%, #070b14 100%) padding-box,
    linear-gradient(140deg, rgba(219, 230, 76, 0.85), rgba(116, 196, 101, 0.4) 50%, rgba(59, 239, 255, 0.5)) border-box;
}

.algo--hot .algo-hw { color: var(--bits-lime) !important; }

.mining-split,
.security-split {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.mining-split > .card,
.security-split > .card {
  padding: 1.75rem;
}

.mining-split > .card:hover,
.security-split > .card:hover { transform: none; }

.phase-steps {
  list-style: none;
  position: relative;
  display: grid;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-left: 2rem;
}

.phase-steps::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--bits-cyan), var(--bits-lime));
}

.phase-steps li { position: relative; }

.step-dot {
  position: absolute;
  left: -2rem;
  top: 0.1rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #000;
  border: 2px solid var(--bits-cyan);
}

.step-dot--now {
  background: var(--bits-lime);
  border-color: var(--bits-lime);
  box-shadow: 0 0 14px rgba(219, 230, 76, 0.6);
}

.step-when {
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bits-cyan) !important;
  margin-bottom: 0.3rem;
}

.why-card .rule-icon { margin-bottom: 1rem; }

.difficulty {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.25rem;
  padding: 1.75rem;
}

.difficulty:hover { transform: none; }

.difficulty .eyebrow { margin-bottom: 0.6rem; }

.kv--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 1.5rem;
  align-content: start;
}

.kv--grid > div {
  flex-direction: column;
  gap: 0.2rem;
}

.kv--grid dd {
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--bits-lime);
}

@media (min-width: 900px) {
  .mining-split,
  .security-split { grid-template-columns: 1fr 1fr; }
  .difficulty { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
}

/* ——— 6. Security ——— */
.upgrades {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .upgrades { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .upgrades { grid-template-columns: repeat(3, 1fr); }
}

.upgrade {
  padding: 1.35rem 1.4rem;
}

.upgrade > code {
  display: inline-block;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: var(--bits-lime);
  border-color: rgba(219, 230, 76, 0.35);
  background: rgba(219, 230, 76, 0.08);
}

.upgrade p { font-size: 0.92rem; }

.check-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.check-list .ico {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  color: var(--bits-green);
}

.check-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
}

.check-list--inline li { align-items: center; }
.check-list--inline .ico { margin-top: 0; }

.note-line {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ——— 7. Privacy ——— */
.dandelion {
  display: grid;
  gap: 1.5rem;
}

.dandelion-art {
  width: 100%;
  max-width: 46rem;
  height: auto;
  margin: 0 auto;
}

.steps {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.step {
  padding: 1.5rem 1.4rem;
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: #041018;
  background: var(--bits-gradient-cta);
  box-shadow: 0 0 18px rgba(59, 239, 255, 0.35);
}

.step p { font-size: 0.92rem; }

@media (min-width: 760px) {
  .steps--3 { grid-template-columns: repeat(3, 1fr); }
  .steps--5 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .steps--5 { grid-template-columns: repeat(5, 1fr); }
}

/* ——— 8. Network ——— */
.network-grid {
  display: grid;
  gap: 1.25rem;
}

.net-card {
  padding: 1.75rem 1.6rem;
}

.net-card .kv { margin: 0.5rem 0 1rem; }
.net-card > p { font-size: 0.92rem; }

@media (min-width: 960px) {
  .network-grid { grid-template-columns: repeat(3, 1fr); }
}

.live {
  margin-top: 1.25rem;
  padding: 1.75rem;
}

.live:hover { transform: none; }

.live-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.live-head h3 { margin: 0; }

.live-list {
  display: grid;
  gap: 1rem;
}

.live-list li {
  display: grid;
  gap: 0.25rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(116, 196, 101, 0.55);
}

.live-list strong {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--bits-lime) !important;
}

.live-list span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 860px) {
  .live-list { grid-template-columns: repeat(4, 1fr); }
}

/* ——— 9. Wallets ——— */
.wallet-grid {
  display: grid;
  gap: 1.25rem;
}

.core-wallet,
.cli {
  padding: 1.75rem;
}

.core-wallet:hover,
.cli:hover { transform: none; }

.core-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.core-head .rule-icon { margin: 0; }
.core-head h3 { margin: 0 0 0.35rem; }

.platforms {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.platforms li {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(59, 239, 255, 0.16);
}

.platforms span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.cli-list > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cli-list dd {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 900px) {
  .wallet-grid { grid-template-columns: 1.2fr 0.8fr; }
}

.coming {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding: 1.75rem;
}

.coming:hover { transform: none; }

.coming .eyebrow { margin-bottom: 0.5rem; }

.coming-list {
  display: grid;
  gap: 0.75rem;
}

.coming-list li {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(59, 239, 255, 0.18);
}

.coming-list strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.coming-list span:not(.pill) {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 860px) {
  .coming { grid-template-columns: 0.8fr 1.2fr; align-items: center; }
  .coming-list { grid-template-columns: 1fr 1fr; }
}

/* ——— 10. Flow diagram ——— */
.flow {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1.25rem;
  margin-bottom: 1.25rem;
}

.flow:hover { transform: none; }

.flow-tier {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: 1rem;
  background: #0b1220;
  border: 1px solid rgba(59, 239, 255, 0.35);
  font-weight: 600;
}

.flow-node .ico { color: var(--bits-cyan); }

.flow-node small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.flow-node--hub {
  border-color: rgba(219, 230, 76, 0.7);
  background: linear-gradient(140deg, rgba(219, 230, 76, 0.16), #0b1220 70%);
  box-shadow: 0 0 30px rgba(219, 230, 76, 0.18);
}

.flow-node--hub .ico,
.flow-node--lime .ico { color: var(--bits-lime); }

.flow-node--lime { border-color: rgba(219, 230, 76, 0.45); }

.flow-links {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 8vw, 6rem);
  padding: 0.5rem 0;
}

.flow-links span {
  position: relative;
  padding: 1.6rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.flow-links span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--bits-lime), var(--bits-cyan));
  opacity: 0.6;
  z-index: -1;
}

.flow-links span {
  background: linear-gradient(transparent 35%, #070b14 35%, #070b14 65%, transparent 65%);
  padding-inline: 0.4rem;
}

/* Desktop: lay the diagram on a 3-column grid so every connector sits over the node it feeds */
@media (min-width: 760px) {
  .flow {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1rem;
    align-items: stretch;
  }

  .flow-links,
  .flow-tier--hub { display: contents; }

  .flow > .flow-tier:first-child { grid-row: 1; grid-column: 1 / 3; }
  .flow-links:not(.flow-links--single) span:first-child { grid-row: 2; grid-column: 1; justify-self: center; }
  .flow-links:not(.flow-links--single) span:last-child { grid-row: 2; grid-column: 2; justify-self: center; }
  .flow-tier--hub .flow-node { grid-row: 3; }
  .flow-tier--hub .flow-node:nth-child(1) { grid-column: 1; }
  .flow-tier--hub .flow-node:nth-child(2) { grid-column: 2; }
  .flow-tier--hub .flow-node:nth-child(3) { grid-column: 3; }
  .flow-links--single span { grid-row: 4; grid-column: 2; justify-self: center; }
  /* the middle column is the grid's centre, so a full-width centred tier sits under it */
  .flow > .flow-tier:last-child { grid-row: 5; grid-column: 1 / -1; }

  /* Miners feed a short bus that splits to URPool (col 1) and solo mining (col 2) */
  .flow > .flow-tier:first-child {
    position: relative;
    padding-bottom: 1.25rem;
  }

  .flow > .flow-tier:first-child::before,
  .flow > .flow-tier:first-child::after {
    content: "";
    position: absolute;
    bottom: 0;
    background: var(--bits-lime);
    opacity: 0.6;
  }

  .flow > .flow-tier:first-child::before { left: calc(50% - 1px); width: 2px; height: 1.25rem; }
  .flow > .flow-tier:first-child::after { left: calc(25% - 0.25rem); right: calc(25% - 0.25rem); height: 2px; }

  .flow-links span { padding-block: 1.25rem; }

  /* Hub row: nodes fill their columns and link sideways to the full nodes */
  .flow-tier--hub .flow-node {
    position: relative;
    justify-self: stretch;
  }

  .flow-node--hub::before,
  .flow-node--hub::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(1rem + 2px);
    height: 2px;
    background: var(--bits-cyan);
    opacity: 0.6;
  }

  .flow-node--hub::before { right: calc(100% + 1px); }
  .flow-node--hub::after { left: calc(100% + 1px); }
}

/* ——— 11. Tools ——— */
.tools {
  display: grid;
  gap: 1.25rem;
}

.tool {
  display: block;
  padding: 1.75rem;
}

.tool h3 {
  padding-right: 3rem;
  overflow-wrap: anywhere;
}

.tool .kv { margin-top: 0.75rem; }

.tool:hover .path-go {
  background: var(--bits-lime);
  color: #041018;
  transform: rotate(-45deg);
}

@media (min-width: 860px) {
  .tools { grid-template-columns: 1fr 1fr; }
}

/* ——— 12. Closing ——— */
.tech-cta {
  margin-top: clamp(3rem, 7vw, 5rem);
}

/* ——— Phones ——— */
@media (max-width: 699px) {
  .tech-page section { scroll-margin-top: 8rem; }

  .race-row {
    grid-template-columns: 1fr auto;
    gap: 0.4rem 1rem;
  }

  .race-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .bars { height: 12rem; }
  .bar-value { font-size: 0.72rem; }
  .tip { max-width: 9rem; }

  .kv--grid { grid-template-columns: 1fr 1fr; }

  .flow-node { width: 100%; justify-content: flex-start; }
  .flow-tier--hub { flex-direction: column; }

  .tool .kv > div { flex-direction: column; gap: 0.2rem; }
  .tool .kv dd { text-align: left; }
}

/* Michroma renders "%" like "o/o" and a small "~" like a minus, so % / ~ values use the body font */
.kv--grid dd,
.live-list strong {
  font-family: var(--font-body);
  font-weight: 700;
}
