/* ======================= hero ======================= */

.hero {
  position: relative;
  padding: clamp(46px, 7vw, 92px) 0 0;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: .5;
  mask-image: radial-gradient(120% 90% at 50% 26%, #000 20%, transparent 78%);
}

.hero__inner {
  padding-bottom: clamp(44px, 6vw, 76px);
}

/* The 9.2vw cap only bites below ~510px wide, where it stops the nowrap third line
   ("Decoded with fees.") from running past the gutter and getting clipped. */
.hero h1 {
  margin: 0 0 30px;
  max-width: 22ch;
  font-size: min(clamp(34px, 1.5rem + 4.3vw, 90px), 9.2vw);
}

.hero .lede { max-width: 74ch; }

/* Nowrap because the decode animation swaps in hex digits, which are wider than the
   final words and would otherwise reflow the headline mid-animation. */
.hero h1 .flip {
  display: block;
  white-space: nowrap;
  background: linear-gradient(104deg, var(--blue-deep), var(--blue) 42%, var(--blue-hi) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 34px;
}

/* stat strip under hero */

.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9, 13, 22, .78), rgba(4, 6, 11, .4));
}

.strip--fleet {
  grid-template-columns: 1fr 1fr 2fr;
}

.strip--fleet .stat__v--wide {
  font-size: clamp(22px, 1.1rem + 1.6vw, 34px);
  letter-spacing: -.05em;
  white-space: nowrap;
}

.strip .stat:first-child { border-left: 0; }

/* ======================= live fleet ======================= */

.fleet__chart { display: none; }

.fleet__spark {
  position: relative;
  height: clamp(120px, 15vw, 190px);
  padding: 14px 16px 4px;
}

.fleet__spark canvas { width: 100%; height: 100%; }

.fleet__grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.rig.is-idle { display: none; }
.rig.is-stale { opacity: .48; }
.rig.is-stale .dot { animation: none; background: var(--ink-4); box-shadow: none; }

.rig__id {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.rig__id b {
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: none;
}

.rig__toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-hi);
  font: 500 10px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rig__toggle:hover { color: var(--ink); }

.rig__hw {
  text-transform: none;
  letter-spacing: .04em;
  color: var(--ink-3);
}

.rig__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.rig__stats > div {
  padding: 16px 18px 18px;
  border-right: 1px solid var(--line);
}

.rig__stats > div:last-child { border-right: 0; }

.rig__stats small {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-4);
  font: 500 9px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rig__stats b {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}

.rig__stats b em {
  margin-left: 5px;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-3);
}

.rig-gpus { padding: 10px 18px 14px; }

.gpu {
  display: grid;
  grid-template-columns: 28px minmax(72px, 1.4fr) 44px 52px 52px 44px 72px 92px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  font: 400 12px/1 var(--font-mono);
}

.gpu:last-child { border-bottom: 0; }

.gpu--head {
  padding-bottom: 8px;
  color: var(--ink-4);
  font: 500 9px/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.gpu__i { color: var(--ink-4); }
.gpu__t { color: var(--ink); }
.gpu__c, .gpu__m { color: var(--ink-3); text-align: right; }

/* ======================= primer ======================= */

.primer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.primer article {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 26px 26px 30px;
}

.primer__n {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--blue);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: .14em;
}

.primer__n::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.primer h3 { max-width: 22ch; }

.primer p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.68;
}

.primer b {
  color: var(--ink);
  font-weight: 500;
}

/* ======================= pipeline ======================= */

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  counter-reset: flow;
}

.flow::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
}

.flow::after {
  content: "";
  position: absolute;
  top: 32px;
  left: 4%;
  width: 84px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue-hi));
  filter: blur(.4px);
  animation: flowPulse 5.2s linear infinite;
}

@keyframes flowPulse {
  0% { transform: translateX(0); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateX(min(1050px, 88vw)); opacity: 0; }
}

.flow__step {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
}

.flow__dot {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid var(--line-strong);
  background: var(--bg-panel);
  color: var(--blue-hi);
}

.flow__dot svg { width: 26px; height: 26px; }

.flow__step h3 {
  font-size: 15.5px;
  letter-spacing: -.01em;
  min-height: 2.1em; /* keeps the five paragraphs on a shared baseline when a title wraps */
}

.flow__step h3::before {
  counter-increment: flow;
  content: "0" counter(flow) " / ";
  color: var(--ink-4);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .1em;
}

.flow__step p {
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.62;
}

.flow__note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 42px;
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.65;
}

.flow__note b { color: var(--ink); font-weight: 500; }

/* ======================= board ======================= */

.board__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
}

.board__meta {
  color: var(--ink-4);
  font: 400 11.5px/1.5 var(--font-mono);
  letter-spacing: .04em;
}

.board__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
}

.tile {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 13px 13px 14px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(13, 19, 30, .8), rgba(6, 9, 15, .9));
  text-align: left;
  overflow: hidden;
  transition: .2s var(--ease);
}

.tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--line-strong);
  transition: .25s var(--ease);
}

.tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  z-index: 2;
}

.tile__n {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}

.tile__n small {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-4);
  letter-spacing: 0;
}

.tile__btc {
  font: 500 12px/1 var(--font-mono);
  color: var(--ink-2);
}

.tile__bits {
  font: 400 10px/1.3 var(--font-mono);
  color: var(--ink-4);
  letter-spacing: .06em;
}

.tile--computable::after { background: linear-gradient(90deg, var(--mint), rgba(61, 220, 151, .2)); }
.tile--computable .tile__n { color: #dffff0; }
.tile--computable {
  border-color: rgba(61, 220, 151, .34);
  background: linear-gradient(165deg, rgba(14, 33, 27, .9), rgba(6, 12, 11, .92));
}
.tile--computable:hover { border-color: var(--mint); }

.tile.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 14px 40px -18px var(--blue-glow);
}

.tile__flag {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 5px;
  height: 5px;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}

/* drawer */

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  height: 100%;
  background: rgba(6, 9, 15, .97);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateX(102%);
  transition: transform .38s var(--ease);
}

.drawer.is-open { transform: none; }

.drawer__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer__head h3 {
  font-size: 30px;
  letter-spacing: -.04em;
}

.drawer__head p {
  margin-top: 6px;
  color: var(--ink-3);
  font: 400 11.5px/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.drawer__close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1;
  transition: .2s;
}

.drawer__close:hover { color: var(--ink); border-color: var(--blue); }

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px 30px;
  display: grid;
  gap: 22px;
  align-content: start;
}

.drawer__body section { display: grid; gap: 11px; }

.drawer__body h4 {
  color: var(--ink-4);
  font: 500 9.5px/1 var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.drawer__bounty {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--bg-inset);
}

.drawer__bounty b {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.035em;
}

.drawer__bounty span {
  color: var(--ink-3);
  font: 400 12.5px/1 var(--font-mono);
}

.verify {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg-inset);
  font: 400 12px/1.4 var(--font-mono);
  color: var(--ink-2);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(2, 4, 8, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.scrim.is-on { opacity: 1; pointer-events: auto; }

/* ======================= kangaroo ======================= */

.kang {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
}

.kang__viz { padding: 0; }

.kang__stage {
  position: relative;
  height: clamp(240px, 32vw, 330px);
}

.kang__stage canvas { width: 100%; height: 100%; }

.kang__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font: 400 11px/1 var(--font-mono);
  letter-spacing: .04em;
}

.kang__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.kang__legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.kang__copy p + p { margin-top: 16px; }

.kang__copy p {
  color: var(--ink-2);
  line-height: 1.7;
}

.kang__copy b { color: var(--ink); font-weight: 500; }

.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 26px;
  border: 1px solid var(--line);
}

.contrast > div { padding: 18px 20px; }
.contrast > div + div { border-left: 1px solid var(--line); }

.contrast small {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-4);
  font: 500 9.5px/1 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.contrast b {
  display: block;
  font-size: var(--step-1);
  letter-spacing: -.03em;
}

.contrast p {
  margin-top: 8px;
  color: var(--ink-3);
  font: 400 11.5px/1.5 var(--font-mono);
}

/* ======================= timeline ======================= */

.timeline {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
  padding-left: 0;
  margin-left: 6px;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 28px;
  padding: 18px 0 18px 30px;
  list-style: none;
}

.timeline li + li { border-top: 1px solid var(--line-soft); }

.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 25px;
  width: 7px;
  height: 7px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}

.timeline li[data-key="1"]::before {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 12px var(--blue-glow);
}

.timeline time {
  color: var(--ink-4);
  font: 500 11.5px/1.7 var(--font-mono);
  letter-spacing: .06em;
}

.timeline p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.62;
}

.timeline p b { color: var(--ink); font-weight: 500; }

.timeline blockquote {
  margin: 12px 0 0;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-3);
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.6;
}

/* ======================= wallet ======================= */

.wallet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

.wallet__card { padding: clamp(22px, 2.6vw, 32px); }

.wallet__rows {
  display: grid;
  gap: 1px;
  margin-top: 20px;
  background: var(--line);
  border: 1px solid var(--line);
}

.wallet__rows > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
  padding: 13px 16px;
  background: var(--bg-panel);
  font: 400 12.5px/1.5 var(--font-mono);
  color: var(--ink-2);
}

.wallet__rows span:first-child {
  color: var(--ink-4);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding-top: 3px;
}

.wallet__rows b { font-weight: 500; color: var(--ink); }

/* ======================= responsive ======================= */

@media (max-width: 1080px) {
  .primer { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow::before, .flow::after { display: none; }
  .kang { grid-template-columns: 1fr; }
  .wallet { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip--fleet { grid-template-columns: 1fr 1fr; }
  .strip--fleet .stat:last-child { grid-column: 1 / -1; }
  .strip--fleet .stat__v--wide { white-space: normal; }
  .gpu { grid-template-columns: 22px minmax(56px, 1fr) 40px 48px 48px; }
  .gpu__f, .gpu__c, .gpu__m { display: none; }
  .gpu--head span:nth-child(n+6) { display: none; }
  .rig__stats { grid-template-columns: 1fr 1fr; }
  .rig__stats > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .rig__stats > div:nth-child(2n) { border-right: 0; }
  .strip .stat:nth-child(3) { border-left: 0; }
  .strip .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr; gap: 20px; }
  .flow__dot { width: 52px; height: 52px; }
  .board__grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .contrast { grid-template-columns: 1fr; }
  .contrast > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 22px; }
  .hero__cta .btn { flex: 1 1 100%; }
}
