:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: #101319;
  --panel-soft: rgba(16, 19, 25, .78);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --ink: #f3f5f7;
  --muted: #858c97;
  --gold: #f6b94b;
  --gold-soft: #ffd98e;
  --blue: #7d9bff;
  --up: #38d996;
  --down: #ff6673;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 83% 7%, rgba(246, 185, 75, .09), transparent 26rem),
    radial-gradient(circle at 5% 43%, rgba(88, 107, 181, .07), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 46px; }
.topbar { display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 11px; font-weight: 760; letter-spacing: .12em; }
.brand em { color: var(--muted); font-style: normal; font-weight: 620; }
.brand-symbol { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(246,185,75,.3); border-radius: 9px; color: var(--gold); background: rgba(246,185,75,.08); font-size: 16px; }
.live-state { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 16px rgba(56,217,150,.7); animation: pulse 2.1s infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.72); } }

.hero { padding: clamp(90px, 13vh, 150px) 2px clamp(78px, 11vh, 124px); }
.eyebrow, .section-index, .panel-kicker { margin: 0; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .22em; }
h1 { max-width: 950px; margin: 20px 0 0; font-size: clamp(53px, 8.6vw, 108px); line-height: .94; letter-spacing: -.067em; font-weight: 740; }
h1 span { color: #626976; }
.hero-copy { max-width: 620px; margin: 30px 0 0; color: var(--muted); font-size: clamp(14px, 1.7vw, 18px); line-height: 1.8; }

.ticker-section, .forex-section, .network-section { margin-bottom: 98px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 0 2px 25px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.04em; }
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.ticker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ticker-card, .panel { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(19,23,30,.97), rgba(12,15,20,.93)); box-shadow: 0 30px 70px rgba(0,0,0,.22); }
.ticker-card { position: relative; overflow: hidden; min-width: 0; padding: 24px; border-radius: 22px; transition: transform .25s ease, border-color .25s ease; }
.ticker-card::before { content: ""; position: absolute; width: 180px; height: 180px; right: -80px; top: -100px; border-radius: 50%; background: var(--coin-glow, rgba(246,185,75,.1)); filter: blur(12px); }
.ticker-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.ticker-card header { position: relative; display: flex; align-items: center; gap: 12px; }
.coin { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 17px; font-weight: 800; }
.bitcoin { color: #14100a; background: var(--gold); }
.ethereum { background: rgba(125,155,255,.16); border: 1px solid rgba(125,155,255,.38); }
.ethereum svg { width: 22px; height: 22px; }
.eth-top-left { fill: #aebcff; }
.eth-top-right { fill: #7188e8; }
.eth-bottom-left { fill: #8299f2; }
.eth-bottom-right { fill: #5068c9; }
.usdc { color: #fff; background: #2775ca; }
.ticker-card h3 { margin: 0; font-size: 14px; letter-spacing: .01em; }
.ticker-card h3 small { color: var(--muted); font-size: 11px; font-weight: 520; }
.ticker-card header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.change { margin-left: auto; padding: 5px 8px; border-radius: 7px; background: rgba(133,140,151,.08); color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.ticker-card.up .change { color: var(--up); background: rgba(56,217,150,.09); }
.ticker-card.down .change { color: var(--down); background: rgba(255,102,115,.09); }
.price { position: relative; margin: 31px 0 27px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 680; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.price::before { content: "$"; margin-right: 4px; color: var(--muted); font-size: .46em; vertical-align: top; line-height: 1.7; }
.ticker-card footer { display: flex; justify-content: space-between; gap: 15px; padding-top: 17px; border-top: 1px solid var(--line); }
.ticker-card footer span { color: #5f6671; font-size: 8px; letter-spacing: .1em; }
.ticker-card footer b { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 570; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ticker-card.loading .price, .ticker-card.loading footer b { color: transparent; border-radius: 5px; background: linear-gradient(90deg, #181c23, #242a34, #181c23); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.forex-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.forex-card { position: relative; overflow: hidden; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: rgba(13,16,21,.78); transition: transform .25s ease, border-color .25s ease; }
.forex-card::after { content: ""; position: absolute; width: 80px; height: 1px; right: -12px; top: 31px; background: linear-gradient(90deg, transparent, rgba(125,155,255,.35)); transform: rotate(-35deg); }
.forex-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.forex-card header { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; }
.forex-card header i { color: #555d69; font-size: 7px; font-style: normal; letter-spacing: .08em; }
.forex-card h3 { margin: 30px 0 0; font-size: 13px; }
.forex-card h3 small { color: var(--muted); font-size: 10px; font-weight: 520; }
.fx-rate { display: block; margin-top: 10px; font-size: clamp(26px, 2.5vw, 34px); font-weight: 660; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fx-caption { margin: 17px 0 0; padding-top: 13px; border-top: 1px solid var(--line); color: #646b76; font-size: 8px; font-variant-numeric: tabular-nums; }
.forex-card.loading .fx-rate { color: transparent; border-radius: 5px; background: linear-gradient(90deg, #181c23, #242a34, #181c23); background-size: 200% 100%; animation: shimmer 1.4s infinite; }

.network-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 12px; }
.panel { border-radius: 26px; }
.hash-card { position: relative; overflow: hidden; min-height: 510px; padding: 30px; display: flex; flex-direction: column; }
.panel-label { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 9px; letter-spacing: .18em; }
.panel-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px rgba(246,185,75,.55); }
.hash-value { margin: 55px 0 0; font-size: clamp(49px, 6.2vw, 80px); line-height: .9; font-weight: 700; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.hash-value small { margin-left: 7px; color: var(--gold); font-size: .26em; font-weight: 640; letter-spacing: .03em; }
.hash-caption { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.hash-visual { height: 88px; margin: auto 0 22px; display: flex; align-items: end; gap: 6px; opacity: .8; }
.hash-visual span { flex: 1; height: var(--h); min-width: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(to top, rgba(246,185,75,.08), rgba(246,185,75,.65)); animation: bars 2.8s ease-in-out infinite alternate; animation-delay: calc(var(--h) * -0.02); transform-origin: bottom; }
@keyframes bars { 50% { transform: scaleY(.76); opacity: .6; } }
.difficulty { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.difficulty span { color: #5f6671; font-size: 8px; letter-spacing: .14em; }
.difficulty strong { font-size: 15px; font-weight: 610; font-variant-numeric: tabular-nums; }
.retarget { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; margin-top: 18px; }
.retarget > div:last-child { padding-left: 18px; border-left: 1px solid var(--line); }
.retarget span { display: block; color: #5f6671; font-size: 8px; letter-spacing: .12em; }
.retarget strong { display: block; margin-top: 6px; font-size: 15px; font-weight: 630; font-variant-numeric: tabular-nums; }
.retarget strong.up { color: var(--gold); }
.retarget strong.down { color: var(--blue); }
.retarget small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.retarget-progress { overflow: hidden; height: 3px; margin-top: 17px; border-radius: 99px; background: rgba(255,255,255,.06); }
.retarget-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(246,185,75,.45), var(--gold)); transition: width .5s ease; }
.retarget-blocks { margin: 7px 0 0; color: #5f6671; font-size: 8px; text-align: right; }

.miner-card { padding: 30px; }
.miner-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.panel-kicker { color: var(--muted); font-size: 9px; }
.miner-head h3 { margin: 7px 0 0; font-size: 27px; letter-spacing: -.04em; }
.machine-spec { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.cost-hero { margin: 42px 0 32px; padding: 29px; border: 1px solid rgba(246,185,75,.16); border-radius: 18px; background: linear-gradient(120deg, rgba(246,185,75,.09), rgba(246,185,75,.015)); }
.cost-hero p { margin: 0; color: var(--gold-soft); font-size: 11px; }
.cost-hero strong { display: block; margin: 9px 0 8px; color: var(--gold); font-size: clamp(39px, 5vw, 58px); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.cost-hero span { color: var(--muted); font-size: 9px; }
.electricity-control { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 0 2px 21px; border-bottom: 1px solid var(--line); }
.electricity-control > span b { display: block; font-size: 12px; }
.electricity-control > span em { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-style: normal; }
.input-wrap { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(0,0,0,.25); }
.input-wrap span { padding-left: 12px; color: var(--gold); font-size: 13px; }
.input-wrap input { width: 74px; border: 0; outline: 0; padding: 10px 10px 10px 5px; color: var(--ink); background: transparent; font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; }
.miner-metrics { display: grid; grid-template-columns: 1fr 1fr; }
.miner-metrics div { min-width: 0; padding: 21px 0 4px; }
.miner-metrics div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.miner-metrics span { display: block; color: var(--muted); font-size: 9px; }
.miner-metrics strong { display: block; margin-top: 7px; font-size: 14px; font-weight: 610; font-variant-numeric: tabular-nums; }
.miner-metrics strong.positive { color: var(--up); }
.miner-metrics strong.negative { color: var(--down); }

.page-footer { padding-top: 26px; border-top: 1px solid var(--line); }
.page-footer > div { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }
.page-footer button { display: flex; align-items: center; gap: 7px; border: 0; padding: 8px 0 8px 14px; color: var(--ink); background: none; font: inherit; font-weight: 650; cursor: pointer; }
.page-footer button b { font-size: 15px; transition: transform .35s; }
.page-footer button.loading b { transform: rotate(360deg); }
.page-footer p { max-width: 900px; margin: 17px 0 0; color: #555c66; font-size: 9px; line-height: 1.8; }

@media (max-width: 820px) {
  .ticker-grid { grid-template-columns: 1fr; }
  .ticker-card { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .ticker-card header, .ticker-card footer { grid-column: 1 / -1; }
  .ticker-card .price { margin: 25px 0 22px; }
  .network-grid { grid-template-columns: 1fr; }
  .forex-grid { grid-template-columns: 1fr 1fr; }
  .hash-card { min-height: 430px; }
}

@media (max-width: 580px) {
  .shell { width: min(100% - 28px, 500px); padding-top: 19px; }
  .brand em { display: none; }
  .live-state { max-width: 150px; font-size: 9px; text-align: right; }
  .hero { padding-top: 94px; padding-bottom: 88px; }
  h1 { font-size: clamp(48px, 15vw, 72px); }
  .section-heading { align-items: start; }
  .section-heading > p { display: none; }
  .ticker-section, .forex-section, .network-section { margin-bottom: 75px; }
  .ticker-card { padding: 21px; }
  .ticker-card footer { gap: 8px; }
  .forex-card { padding: 18px; }
  .forex-card h3 { margin-top: 25px; }
  .hash-card, .miner-card { padding: 23px; }
  .hash-card { min-height: 390px; }
  .hash-value { margin-top: 48px; }
  .miner-head { display: block; }
  .machine-spec { display: inline-block; margin-top: 11px; }
  .cost-hero { margin-top: 30px; padding: 23px 20px; }
  .cost-hero strong { font-size: 42px; }
  .miner-metrics div:nth-child(even) { padding-left: 17px; }
  .page-footer > div { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
