/* BITS - Mining page
   Loaded after style.css and technology.css; reuses their hero, subnav, card, algo and kv styles.
*/

/* ——— 1. Algorithms ——— */
.algos--ids .algo {
  padding-top: 1.35rem;
}

.algo-id {
  float: right;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.algo--hot .algo-id {
  color: var(--bits-lime);
  border-color: rgba(219, 230, 76, 0.5);
}

.algo-off {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.15rem 1.4rem;
  border-style: dashed;
}

.algo-off:hover { transform: none; }

.off-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.off-icon .ico { width: 1rem; height: 1rem; }

.why-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.why-grid .why-card {
  padding: 1.75rem;
}

.why-grid .why-card:hover { transform: none; }

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

/* ——— 2. Launch ——— */
.launch-grid {
  display: grid;
  gap: 1.25rem;
}

.launch-card {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  padding: 1.75rem;
}

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

.launch-card .check-list { margin-bottom: 1.25rem; }
.launch-card .pill { justify-self: start; }

.launch-card--now {
  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;
}

.launch-card--now .step-when { color: var(--bits-lime) !important; }

.bench {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

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

.bench strong {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bits-lime) !important;
}

.bench span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

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

/* ——— 3. Difficulty ——— */
.diff-grid {
  display: grid;
  gap: 1.25rem;
}

.diff-math,
.clamp {
  margin: 0;
  padding: 1.75rem;
}

.diff-math:hover,
.clamp:hover { transform: none; }

.diff-math .chart-title,
.clamp .chart-title { margin-bottom: 1.25rem; }

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

.equation > span {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  min-width: 5.5rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(59, 239, 255, 0.22);
}

.equation strong {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.equation small {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.equation em {
  font-style: normal;
  font-size: 1.3rem;
  color: var(--bits-cyan);
}

.equation-hot {
  border-color: rgba(219, 230, 76, 0.6) !important;
  background: rgba(219, 230, 76, 0.1) !important;
}

.equation-hot strong { color: var(--bits-lime) !important; }

/* Window clamp: 600–900 s scale, allowed zone 690–870 s */
.clamp-scale {
  position: relative;
  height: 0.9rem;
  margin: 2rem 0 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.clamp-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30%;   /* (690 - 600) / 300 */
  right: 10%;  /* (900 - 870) / 300 */
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59, 239, 255, 0.55), rgba(219, 230, 76, 0.55));
}

.clamp-mark {
  position: absolute;
  top: -0.4rem;
  bottom: -0.4rem;
  width: 2px;
  background: rgba(255, 255, 255, 0.55);
}

.clamp-mark b {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.75);
}

.clamp-mark--min { left: 30%; }
.clamp-mark--max { left: 90%; }

.clamp-mark--target {
  left: 50%;
  width: 3px;
  background: var(--bits-lime);
  box-shadow: 0 0 12px rgba(219, 230, 76, 0.7);
}

.clamp-mark--target b {
  top: auto;
  bottom: calc(100% + 0.35rem);
  color: var(--bits-lime);
}

.clamp-legend {
  display: grid;
  gap: 0.75rem;
}

.clamp-legend > div {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  align-items: baseline;
  gap: 0.75rem;
}

.clamp-legend strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bits-lime) !important;
}

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

.clamp .chart-note { margin-top: 1.25rem; }

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

/* ——— 4. Start mining ——— */
.ways {
  display: grid;
  gap: 1.25rem;
}

.way {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.75rem;
}

.way:hover { transform: none; }

.way-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.way-head .rule-icon { margin: 0; }
.way-head h3 { margin: 0; }
.way-head .rule-tag { margin-bottom: 0.2rem; }

.way .btn { justify-self: start; margin-top: 0.25rem; }
.way .fine { margin-top: 0; }

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

/* ——— 5. Partner ——— */
.partner {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.75rem, 5vw, 3rem);
  background:
    radial-gradient(ellipse 50% 70% at 100% 50%, rgba(41, 77, 221, 0.35) 0%, transparent 70%),
    linear-gradient(160deg, #0d1424 0%, #070b14 100%) padding-box,
    linear-gradient(140deg, rgba(219, 230, 76, 0.6), rgba(59, 239, 255, 0.25) 50%, rgba(41, 77, 221, 0.6)) border-box;
}

.partner:hover { transform: none; }

.partner .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.partner .eyebrow .ico { width: 1.1rem; height: 1.1rem; color: var(--bits-lime); }

.partner .section-sub { margin: 1.25rem 0 0.5rem; }

.partner-badge {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  padding: 2rem 1rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(59, 239, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
}

.partner-name,
.partner-bits {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.partner-name { color: var(--bits-text); }

.partner-bits {
  background: var(--bits-gradient-logo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.partner-x {
  font-size: 1.4rem;
  color: var(--bits-cyan);
}

@media (min-width: 900px) {
  .partner { grid-template-columns: 1.4fr 0.6fr; gap: 3rem; }
}
