:root {
  color-scheme: dark;
  --bg: #05070b;
  --surface: #0b0f16;
  --surface-2: #101722;
  --text: #f5f7fb;
  --muted: #a9b4c4;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #4ea5ff;
  --cyan: #4ee8d3;
  --orange: #ff9c5c;
  --max: 1180px;
  --reading: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 72% -8%, rgba(32, 117, 255, 0.18), transparent 65%),
    radial-gradient(760px 480px at 3% 18%, rgba(35, 220, 188, 0.08), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: "Geist", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.86);
  backdrop-filter: blur(18px);
}

.site-header__inner,
.footer__inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-family: "Clash Display", "Geist", sans-serif;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.brand small {
  color: var(--blue);
  font: 500 10px/1 "Geist Mono", monospace;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a { text-decoration: none; }
.nav a:hover { color: var(--text); }

.nav .button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(78, 165, 255, 0.55);
  border-radius: 999px;
  background: rgba(78, 165, 255, 0.12);
  color: #ddecff;
  text-decoration: none;
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.99) 0%, rgba(5, 7, 11, 0.9) 48%, rgba(5, 7, 11, 0.48) 100%),
    url("https://roiasic.com/roiasic-animations/animation-2/assets/datacenter-miner.png") center right/auto 110% no-repeat;
  opacity: 0.75;
}

.hero--fleet::before {
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.99) 0%, rgba(5, 7, 11, 0.88) 48%, rgba(5, 7, 11, 0.36) 100%),
    url("/research/asic-tune-repair-replace-decision-2026/assets/cover-s21-1200x630.png") center right/cover no-repeat;
  opacity: 0.92;
}

.hero--benchmark::before {
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.995) 0%, rgba(5, 7, 11, 0.92) 47%, rgba(5, 7, 11, 0.28) 100%),
    url("/research/asic-three-hashrates-24-hour-benchmark-trap/assets/cover-s21-benchmark-1200x630.jpg") center right/cover no-repeat;
  opacity: 0.94;
}

.hero__inner {
  position: relative;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(78px, 10vw, 136px) 0 86px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--cyan);
  font: 500 12px/1.3 "Geist Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Clash Display", "Geist", sans-serif;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(46px, 7.3vw, 92px);
  letter-spacing: -0.045em;
  word-spacing: 0.06em;
}

.dek {
  max-width: 780px;
  margin: 28px 0 0;
  color: #d7deea;
  font-size: clamp(19px, 2.3vw, 27px);
  line-height: 1.42;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 32px;
  color: var(--muted);
  font: 500 13px/1.4 "Geist Mono", monospace;
}

.layout {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, var(--reading)) minmax(220px, 1fr);
  gap: clamp(44px, 7vw, 92px);
  padding: 76px 0 110px;
}

.article { min-width: 0; }
.article > :first-child { margin-top: 0; }

.article p,
.article li {
  color: #d5dbe5;
  font-size: 18px;
}

.article h2 {
  margin: 72px 0 22px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
}

.article h3 {
  margin: 42px 0 16px;
  font-size: 26px;
}

.article ul,
.article ol { padding-left: 25px; }
.article li { margin: 10px 0; padding-left: 5px; }

.article a {
  color: #98c7ff;
  text-decoration-color: rgba(152, 199, 255, 0.4);
  text-underline-offset: 4px;
}

.standfirst {
  margin: 0 0 58px;
  padding: 26px 0 26px 26px;
  border-left: 3px solid var(--blue);
  color: #e8edf5;
  font-size: 22px;
  line-height: 1.55;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0;
}

.stat {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(78, 165, 255, 0.11), rgba(255,255,255,0.025));
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font: 600 clamp(31px, 4vw, 48px)/1 "Clash Display", sans-serif;
}

.stat span { color: var(--muted); font-size: 14px; line-height: 1.45; }

.table-wrap {
  overflow-x: auto;
  margin: 34px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
}

table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: rgba(255,255,255,0.045); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
td { color: #cbd3df; font-size: 15px; }
tr:last-child td { border-bottom: 0; }

.steps { list-style: none; counter-reset: steps; padding: 0 !important; }
.steps li {
  position: relative;
  margin: 0 !important;
  padding: 24px 0 24px 64px !important;
  border-top: 1px solid var(--line);
}
.steps li::before {
  counter-increment: steps;
  content: "0" counter(steps);
  position: absolute;
  left: 0;
  top: 27px;
  color: var(--cyan);
  font: 500 13px/1 "Geist Mono", monospace;
}
.steps strong { display: block; margin-bottom: 6px; color: #fff; font-size: 19px; }

.callout {
  margin: 42px 0;
  padding: 24px 26px;
  border: 1px solid rgba(255, 156, 92, 0.38);
  border-radius: 18px;
  background: rgba(255, 156, 92, 0.08);
}
.callout strong { color: #ffd8bd; }
.callout p { margin-bottom: 0; font-size: 16px; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; color: #fff; font-weight: 600; font-size: 19px; }
.faq p { margin-bottom: 0; font-size: 16px; }

.sources {
  margin-top: 78px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.sources h2 { margin-top: 0; font-size: 28px; }
.sources li { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

.disclosure {
  margin-top: 36px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 13px;
}

.sidebar { position: relative; }
.sidebar__inner {
  position: sticky;
  top: 106px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(11, 15, 22, 0.72);
}
.sidebar h2 { margin: 0 0 14px; font-size: 21px; }
.sidebar p { color: var(--muted); font-size: 14px; }
.sidebar .button { width: 100%; margin-top: 8px; }
.sidebar__label { color: var(--cyan); font: 500 11px/1.3 "Geist Mono", monospace; letter-spacing: .11em; text-transform: uppercase; }

.research-index {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 100px 0 130px;
}
.research-index h1 { max-width: 960px; }
.research-intro { max-width: 720px; color: var(--muted); font-size: 21px; }
.article-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 28px;
  margin-top: 64px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(78,165,255,.10), rgba(255,255,255,.02));
  text-decoration: none;
}
.article-card:hover { border-color: rgba(78,165,255,.55); }
.article-card + .article-card { margin-top: 28px; }
.article-card--amber {
  background: linear-gradient(145deg, rgba(255,156,92,.12), rgba(78,165,255,.06), rgba(255,255,255,.02));
}
.article-card--amber:hover { border-color: rgba(255,156,92,.58); }
.article-card h2 { margin: 12px 0 16px; font-size: clamp(31px, 4vw, 48px); }
.article-card p { color: var(--muted); font-size: 17px; }
.article-card__fact { align-self: end; padding: 24px; border-radius: 18px; background: #080c12; }
.article-card__fact strong { display: block; font: 600 46px/1 "Clash Display", sans-serif; }
.article-card__fact span { color: var(--muted); font-size: 13px; }

.footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer__inner { min-height: 100px; font-size: 13px; }
.footer a { color: #dbe7f7; text-decoration: none; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar__inner { position: static; }
  .article-card { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header__inner { width: min(calc(100% - 28px), var(--max)); min-height: 64px; }
  .nav a:not(.button) { display: none; }
  .hero__inner,
  .layout,
  .research-index { width: min(calc(100% - 28px), var(--max)); }
  .hero::before { background: linear-gradient(rgba(5,7,11,.86), rgba(5,7,11,.98)), url("https://roiasic.com/roiasic-animations/animation-2/assets/datacenter-miner.png") 60% 30%/cover no-repeat; }
  .hero--fleet::before { background: linear-gradient(rgba(5,7,11,.74), rgba(5,7,11,.98)), url("/research/asic-tune-repair-replace-decision-2026/assets/cover-s21-1200x630.png") 78% 50%/cover no-repeat; }
  .hero--benchmark::before { background: linear-gradient(rgba(5,7,11,.72), rgba(5,7,11,.98)), url("/research/asic-three-hashrates-24-hour-benchmark-trap/assets/cover-s21-benchmark-1200x630.jpg") 72% 50%/cover no-repeat; }
  .hero__inner { padding: 64px 0 58px; }
  h1 { font-size: clamp(42px, 13vw, 64px); }
  .dek { font-size: 19px; }
  .layout { padding-top: 50px; }
  .article p, .article li { font-size: 17px; }
  .standfirst { padding-left: 18px; font-size: 19px; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}
