:root {
  color-scheme: dark;
  --bg: #0a0c09;
  --bg-soft: #10130f;
  --panel: #151914;
  --panel-2: #1a1f18;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f5ed;
  --muted: #92988c;
  --accent: #f6c944;
  --accent-soft: #ffe58c;
  --green: #8ee79d;
  --danger: #ff8b72;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 3%, rgba(246, 201, 68, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.5;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 28px));
  margin: 14px auto 0;
  padding: 8px 12px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 16, 12, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.brand > span:last-child > span { color: var(--accent); }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.32)); }

.desktop-nav { display: flex; align-items: center; gap: 30px; color: #b7bcb0; font-size: 13px; font-weight: 600; }
.desktop-nav a { transition: color 180ms ease; }
.desktop-nav a:hover { color: var(--text); }

.header-action { padding: 10px 15px; border-radius: 11px; background: var(--text); color: #11140f; font-size: 12px; font-weight: 800; }

.hero { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr); gap: 56px; align-items: center; min-height: 720px; padding-block: 92px 72px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #b8bdaF; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow span { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 20px rgba(246, 201, 68, 0.8); }

.hero h1, .section-heading h2, .ownership h2, .next-step h2, .dialog-head h2 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.hero h1 { margin-top: 23px; font-size: clamp(48px, 6vw, 84px); font-weight: 700; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 600px; margin: 28px 0 0; color: #aeb4a8; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.hero-actions .button { min-height: 46px; padding-inline: 15px; font-size: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 50px; padding: 0 20px; border: 0; border-radius: 13px; cursor: pointer; font-weight: 800; font-size: 13px; transition: transform 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #11140f; box-shadow: 0 12px 36px rgba(246, 201, 68, 0.13); }
.button-primary:hover { background: #ffda62; }
.button-secondary { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.035); }
.hero-note { max-width: 540px; margin-top: 22px; color: #737a70; font-size: 12px; line-height: 1.7; }
.hero-demo { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 0; border: 0; background: transparent; color: #a7ada2; cursor: pointer; font-size: 10px; font-weight: 700; }
.hero-demo:hover { color: var(--accent-soft); }
.hero-demo span { padding: 4px 7px; border: 1px solid rgba(246, 201, 68, .25); border-radius: 999px; background: rgba(246, 201, 68, .07); color: var(--accent); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }

.hero-visual { position: relative; min-height: 510px; }
.grid-glow { position: absolute; inset: 0; border-radius: 40px; background: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(circle at center, #000 25%, transparent 72%); opacity: 0.34; }
.power-card { position: absolute; border: 1px solid var(--line); background: rgba(20, 24, 19, 0.94); box-shadow: var(--shadow); }
.power-card-main { inset: 76px 48px 88px 42px; padding: 25px; border-radius: 28px; transform: rotate(-1deg); overflow: hidden; }
.power-card-main::after { content: ""; position: absolute; width: 230px; height: 230px; right: -50px; top: -70px; border-radius: 50%; background: var(--accent); filter: blur(95px); opacity: 0.08; }
.power-card-head { display: flex; align-items: center; justify-content: space-between; color: #9ba095; font-size: 11px; font-weight: 700; }
.status-dot { display: flex; align-items: center; gap: 7px; color: var(--green); }
.status-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.power-card-main > strong { display: block; margin-top: 42px; font-size: clamp(54px, 6vw, 74px); letter-spacing: -0.07em; line-height: 1; }
.power-card-main > strong small { font-size: 20px; color: #a7ada1; letter-spacing: -0.03em; }
.spark-bars { display: flex; align-items: end; gap: 7px; height: 108px; margin-top: 28px; border-bottom: 1px solid var(--line); }
.spark-bars span { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(to top, rgba(246, 201, 68, 0.13), var(--accent)); opacity: 0.78; }
.power-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 17px; }
.power-meta span { display: flex; flex-direction: column; gap: 4px; }
.power-meta small { color: #747b71; font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; }
.power-meta b { font-size: 12px; }

.floating-card { position: absolute; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; min-width: 300px; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 17px; background: rgba(27, 32, 25, 0.94); box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34); backdrop-filter: blur(10px); }
.floating-card-one { top: 36px; right: 0; }
.floating-card-two { left: 0; bottom: 60px; }
.floating-card-three { right: 18px; bottom: 12px; }
.floating-card small { display: block; color: #777e73; font-size: 8px; letter-spacing: 0.12em; }
.floating-card b, .floating-card strong { font-size: 10px; }
.floating-card strong { color: var(--accent-soft); }
.model-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #11140f; font-weight: 900; }
.model-icon-dark { background: #e8ebe3; }
.model-icon-line { border: 1px solid var(--accent); background: transparent; color: var(--accent); }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 24px 20px; border-right: 1px solid var(--line); }
.trust-strip > div:last-child { border: 0; }
.trust-strip span { grid-row: span 2; color: var(--accent); font-size: 10px; font-weight: 800; }
.trust-strip b { font-size: 12px; }
.trust-strip small { color: #747b70; font-size: 10px; }

.section { padding-block: 112px; scroll-margin-top: 90px; }
.section-heading { margin-bottom: 44px; }
.split-heading { display: grid; grid-template-columns: 1fr 420px; align-items: end; gap: 60px; }
.section-heading h2, .ownership h2, .next-step h2 { margin-top: 18px; font-size: clamp(38px, 5vw, 62px); }
.split-heading > p, .ownership-copy > p, .next-step p { margin: 0; color: #91988d; font-size: 14px; line-height: 1.75; }

.calculator-layout { display: grid; grid-template-columns: minmax(0, 1fr) 365px; gap: 18px; align-items: start; }
.calculator-panel, .results-panel { border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.calculator-panel { padding: 25px; }
.calc-toolbar, .result-topline { display: flex; justify-content: space-between; align-items: center; }
.toolbar-actions { display: flex; gap: 12px; }
.tool-label { color: #777e72; font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.calc-toolbar h3 { margin: 4px 0 0; font-size: 20px; letter-spacing: -0.03em; }
.icon-button, .result-topline button { border: 0; background: transparent; color: #9ba297; cursor: pointer; font-size: 11px; }
.icon-button:hover, .result-topline button:hover { color: var(--text); }

.demo-badge { width: max-content; margin-top: 14px; padding: 6px 9px; border: 1px solid rgba(246, 201, 68, .24); border-radius: 999px; background: rgba(246, 201, 68, .07); color: var(--accent-soft); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.demo-badge[hidden] { display: none; }
.global-settings { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 24px 0; padding: 12px; border-radius: 16px; background: #0f120e; }
.global-settings label { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-inline: 6px; border-right: 1px solid var(--line); }
.global-settings label:last-child { border: 0; }
.global-settings span { color: #888f83; font-size: 8px; }
.global-settings input { width: 68px; border: 1px solid var(--line); border-radius: 8px; background: #171b15; color: var(--text); padding: 8px 6px; text-align: right; font-size: 10px; outline: none; }
.global-settings input:focus { border-color: rgba(246, 201, 68, 0.55); }
.infrastructure-note { margin: -12px 5px 20px; color: #676e64; font-size: 8px; line-height: 1.6; }

.farm-list-head { display: grid; grid-template-columns: minmax(190px, 1fr) 84px 112px 88px 34px; gap: 8px; padding: 0 10px 8px; color: #666d63; font-size: 8px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.farm-rows { display: grid; gap: 8px; }
.farm-row { display: grid; grid-template-columns: minmax(190px, 1fr) 84px 112px 88px 34px; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #11140f; }
.miner-select-wrap { position: relative; }
.miner-select-wrap::after { content: "⌄"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #777e72; pointer-events: none; }
.farm-row select, .farm-row input { width: 100%; border: 0; outline: none; color: var(--text); background: transparent; }
.farm-row select { appearance: none; padding: 7px 28px 7px 4px; font-size: 11px; font-weight: 700; }
.farm-row select option { background: #171b15; }
.farm-row input { padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #181c16; text-align: center; font-size: 11px; }
.farm-row input:focus { border-color: rgba(246, 201, 68, .45); }
.row-power { color: var(--accent-soft); text-align: right; font-size: 11px; font-weight: 800; }
.remove-row { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #696f66; cursor: pointer; font-size: 18px; }
.remove-row:hover { background: rgba(255, 139, 114, 0.08); color: var(--danger); }
.add-row { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 13px; border: 1px dashed var(--line-strong); border-radius: 13px; background: transparent; color: #9da399; cursor: pointer; font-size: 11px; font-weight: 700; }
.add-row:hover { border-color: rgba(246, 201, 68, 0.5); color: var(--accent); }
.add-row span { font-size: 18px; line-height: 1; }
.empty-farm { display: flex; flex-direction: column; gap: 5px; padding: 30px 18px; border: 1px dashed var(--line-strong); border-radius: 14px; text-align: center; }
.empty-farm b { font-size: 12px; }
.empty-farm span { color: #747b70; font-size: 9px; }

.operating-costs { display: grid; grid-template-columns: minmax(190px, 1.3fr) repeat(3, 1fr); gap: 8px; align-items: stretch; margin-top: 22px; padding-top: 21px; border-top: 1px solid var(--line); }
.operating-copy { padding-right: 8px; }
.operating-copy p { margin: 5px 0 0; color: #767d72; font-size: 9px; }
.operating-costs label { display: grid; grid-template-columns: 1fr auto; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #10130f; }
.operating-costs label > span { grid-column: 1 / -1; color: #777e72; font-size: 8px; }
.operating-costs input { min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); text-align: right; font-size: 10px; }
.operating-costs small { align-self: center; color: #676e64; font-size: 7px; }

.results-panel { position: sticky; top: 92px; padding: 22px; background: linear-gradient(160deg, #1a1f18 0%, #11140f 65%); box-shadow: var(--shadow); }
.result-topline { color: #7f867a; font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.result-topline button { letter-spacing: 0; text-transform: none; }
.main-result { margin-top: 27px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.main-result small { display: block; color: #858c80; font-size: 10px; }
.main-result strong { display: block; margin-top: 5px; color: var(--accent); font-size: 45px; letter-spacing: -0.07em; line-height: 1; }
.main-result strong span { font-size: 16px; letter-spacing: -0.02em; }
.main-result p { margin: 8px 0 0; color: #686f65; font-size: 9px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 18px 0; background: var(--line); }
.result-grid div { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: #141813; }
.result-grid small { color: #70776c; font-size: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.result-grid strong { font-size: 11px; }
.cost-block { display: grid; gap: 11px; padding: 17px; border-radius: 15px; background: #0d100c; }
.cost-block > div { display: flex; justify-content: space-between; align-items: center; }
.cost-block span { color: #777e73; font-size: 9px; }
.cost-block strong { font-size: 11px; }
.cost-block .cost-total { padding-top: 11px; border-top: 1px solid var(--line); }
.cost-block .cost-total strong { color: var(--accent-soft); font-size: 14px; }
.algo-summary { margin-top: 19px; }
.algo-summary > div { display: grid; gap: 7px; margin-top: 10px; }
.algo-line { display: flex; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 9px; }
.algo-line span { color: #92998d; }
.heat-note { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.heat-note > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(246, 201, 68, 0.08); color: var(--accent); }
.heat-note p { display: flex; flex-direction: column; margin: 0; color: #71786d; font-size: 8px; }
.heat-note b { color: #aeb4aa; font-size: 10px; }

.power-analysis { margin-top: 18px; padding: 25px; border: 1px solid var(--line); border-radius: 24px; background: #10130f; }
.power-analysis-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.power-analysis-head h3 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.035em; }
.power-analysis-head > span { color: var(--accent-soft); font-size: 9px; }
.power-analysis-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 20px; }
.power-analysis-grid > div { display: flex; min-width: 0; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #141813; }
.power-analysis-grid small { color: #747b70; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.power-analysis-grid strong { font-size: 14px; white-space: nowrap; }
.power-analysis-grid .power-accent { border-color: rgba(246, 201, 68, .22); background: rgba(246, 201, 68, .055); }
.power-analysis-grid .power-accent strong { color: var(--accent); }
.power-disclaimer { margin: 17px 0 0; color: #70776c; font-size: 9px; line-height: 1.65; }

.catalog-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0d100c; }
.catalog-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.search-box { display: flex; align-items: center; gap: 9px; width: min(330px, 100%); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #141813; }
.search-box span { color: #767d72; font-size: 18px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
.filter-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.filter-pill { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #81887d; cursor: pointer; font-size: 9px; font-weight: 700; }
.filter-pill.active, .filter-pill:hover { border-color: rgba(246, 201, 68, 0.45); background: rgba(246, 201, 68, 0.08); color: var(--accent-soft); }
.catalog-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: -12px 0 24px; }
.catalog-selects label { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: #11140f; }
.catalog-selects span { color: #70776c; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.catalog-selects select { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 10px; text-align: right; }
.catalog-selects option { background: #171b15; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.miner-card { position: relative; display: flex; flex-direction: column; min-height: 350px; padding: 19px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(150deg, #171b15, #11140f); overflow: hidden; transition: transform 180ms ease, border-color 180ms ease; }
.miner-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.18); }
.miner-card::after { content: attr(data-letter); position: absolute; right: -8px; top: 33px; color: rgba(255, 255, 255, 0.022); font-size: 112px; font-weight: 900; line-height: 1; }
.miner-card-head { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 10px; }
.miner-card-brand { color: #767d72; font-size: 8px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.algo-badge { padding: 5px 8px; border: 1px solid rgba(246, 201, 68, 0.22); border-radius: 999px; color: var(--accent-soft); font-size: 7px; font-weight: 800; }
.miner-card h3 { position: relative; z-index: 1; max-width: 82%; margin: 22px 0 0; font-size: 20px; letter-spacing: -0.04em; line-height: 1.15; }
.data-status { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; margin-top: 10px; color: #8d9488; font-size: 7px; }
.data-status span { width: 6px; height: 6px; border-radius: 50%; background: #899087; }
.data-status.status-manufacturer span { background: var(--green); box-shadow: 0 0 10px rgba(142, 231, 157, .45); }
.data-status.status-demo span { background: var(--accent); }
.data-status.status-review span { background: var(--danger); }
.miner-specs { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 8px; margin-top: auto; padding-top: 24px; }
.miner-specs span { display: flex; flex-direction: column; gap: 3px; }
.miner-specs small { color: #6f766b; font-size: 7px; text-transform: uppercase; }
.miner-specs b { font-size: 10px; }
.miner-source { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 7px; }
.miner-source span { color: #666d63; }
.miner-source a { color: #9ea59a; }
.miner-source a:hover { color: var(--accent); }
.miner-card-actions { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 17px; }
.miner-card-actions button { padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: #a1a79d; cursor: pointer; font-size: 9px; font-weight: 700; }
.miner-card-actions button:hover { border-color: rgba(246, 201, 68, 0.45); color: var(--accent); }
.miner-card-actions .add-farm-card { background: var(--text); color: #11140f; }
.miner-card-actions .compare-toggle.selected { border-color: var(--accent); background: rgba(246, 201, 68, 0.1); color: var(--accent); }
.empty-catalog { grid-column: 1 / -1; padding: 50px; border: 1px dashed var(--line); border-radius: 18px; color: #777e73; text-align: center; }

.ownership { display: grid; grid-template-columns: 1fr 0.85fr; gap: 80px; align-items: center; }
.ownership-copy > p { max-width: 590px; margin-top: 25px; }
.ownership ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 34px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ownership li { display: flex; gap: 12px; padding: 16px 8px 16px 0; border-bottom: 1px solid var(--line); color: #a5ab9f; font-size: 11px; }
.ownership li:nth-child(odd) { border-right: 1px solid var(--line); }
.ownership li:nth-child(even) { padding-left: 16px; }
.ownership li span { color: var(--accent); font-size: 8px; font-weight: 800; }
.ownership-visual { display: flex; flex-direction: column; align-items: center; padding: 45px; border: 1px solid var(--line); border-radius: 28px; background: var(--panel); }
.donut { display: grid; place-items: center; width: 230px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--accent) 0 49%, #e8ebe3 49% 85%, #4d554b 85% 100%); box-shadow: 0 0 0 18px #10130f, 0 30px 60px rgba(0,0,0,.28); }
.donut::after { content: ""; width: 143px; aspect-ratio: 1; border-radius: 50%; background: #141813; }
.donut > span { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.donut b { font-size: 30px; letter-spacing: -0.05em; }
.donut small { color: #757c71; font-size: 8px; text-transform: uppercase; letter-spacing: 0.1em; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; color: #969d91; font-size: 8px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 7px; height: 7px; border-radius: 2px; }
.legend-power { background: var(--accent); }
.legend-hardware { background: #e8ebe3; }
.legend-repair { background: #4d554b; }
.ownership-visual > p { margin: 18px 0 0; color: #60675e; font-size: 8px; text-align: center; }

.tco-section { scroll-margin-top: 90px; }
.income-notice { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin-bottom: 16px; padding: 15px 17px; border: 1px solid rgba(246, 201, 68, .18); border-radius: 15px; background: rgba(246, 201, 68, .045); }
.income-notice > span { padding: 5px 8px; border-radius: 999px; background: var(--accent); color: #11140f; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.income-notice p { margin: 0; color: #8e9589; font-size: 10px; }
.income-notice b { color: var(--text); }
.tco-controls { display: grid; grid-template-columns: 1fr 1fr 1.25fr 1.25fr auto; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #10130f; }
.tco-controls label { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; align-items: end; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #151914; }
.tco-controls label[hidden] { display: none; }
.tco-controls label > span { grid-column: 1 / -1; color: #777e72; font-size: 8px; }
.tco-controls input, .tco-controls select { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 10px; }
.tco-controls option { background: #171b15; }
.tco-controls small { color: #666d63; font-size: 7px; }
.save-config-button { align-self: stretch; min-height: 0; padding-inline: 14px; font-size: 9px; }
.tco-formula { margin: 11px 4px 0; color: #6f766b; font-size: 8px; line-height: 1.65; }
.tco-formula b { color: #989f93; }
.tco-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.tco-kpis > div { display: flex; flex-direction: column; min-width: 0; gap: 6px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #141813; }
.tco-kpis small { color: #747b70; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.tco-kpis strong { font-size: 16px; letter-spacing: -.03em; white-space: nowrap; }
.tco-kpis span { color: #666d63; font-size: 7px; }
.tco-kpis .tco-total { border-color: rgba(246, 201, 68, .24); background: rgba(246, 201, 68, .06); }
.tco-kpis .tco-total strong { color: var(--accent); font-size: 20px; }
.charts-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 12px; margin-top: 12px; }
.chart-card { min-width: 0; min-height: 300px; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: #11140f; }
.cumulative-card { grid-column: 1 / -1; min-height: 340px; }
.chart-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.chart-head h3, .saved-head h3 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.03em; }
.chart-head > span { color: #858c80; font-size: 9px; }
.cost-chart-layout { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center; min-height: 230px; }
.dynamic-donut { position: relative; display: grid; place-items: center; width: 170px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#30362f 0 100%); }
.dynamic-donut::after { content: ""; position: absolute; width: 108px; aspect-ratio: 1; border-radius: 50%; background: #11140f; }
.dynamic-donut > span { position: relative; z-index: 1; display: flex; align-items: center; flex-direction: column; max-width: 90px; text-align: center; }
.dynamic-donut b { font-size: 13px; line-height: 1.2; }
.dynamic-donut small { color: #6f766b; font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
.dynamic-legend { display: grid; gap: 11px; }
.legend-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 8px; }
.legend-row i { width: 8px; height: 8px; border-radius: 2px; }
.legend-row span { color: #858c80; }
.legend-row b { font-size: 9px; }
.energy-bars { display: grid; gap: 28px; margin-top: 55px; }
.energy-bars > div { display: grid; gap: 9px; }
.energy-bars span { display: flex; justify-content: space-between; gap: 12px; font-size: 9px; }
.energy-bars small { color: #7a8176; }
.energy-bars i { display: block; height: 17px; padding: 3px; border-radius: 999px; background: #1c211a; }
.energy-bars em { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width 220ms ease; }
.energy-bars > div:last-child em { background: #788176; }
.cumulative-chart { min-height: 250px; margin-top: 20px; overflow: hidden; }
.cumulative-chart svg { display: block; width: 100%; height: 250px; overflow: visible; }
.chart-grid-line { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.chart-area { fill: rgba(246, 201, 68, .08); }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: var(--accent); stroke: #11140f; stroke-width: 3; }
.chart-axis-label { fill: #71786d; font: 9px Manrope, sans-serif; }
.saved-configurations { margin-top: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: #10130f; }
.saved-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.saved-head > span { color: #6f766b; font-size: 8px; }
.saved-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.saved-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #151914; }
.saved-card-head { display: flex; justify-content: space-between; gap: 8px; }
.saved-card h4 { margin: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.saved-card time { display: block; margin-top: 4px; color: #62695f; font-size: 7px; }
.saved-card dl { display: grid; gap: 6px; margin: 13px 0; }
.saved-card dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 8px; }
.saved-card dt { color: #747b70; }
.saved-card dd { margin: 0; font-weight: 700; }
.saved-actions { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.saved-actions button { padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: #9aa096; cursor: pointer; font-size: 8px; }
.saved-actions button:hover { border-color: rgba(246, 201, 68, .4); color: var(--accent); }
.saved-empty { grid-column: 1 / -1; padding: 25px; border: 1px dashed var(--line); border-radius: 12px; color: #71786d; font-size: 9px; text-align: center; }
.config-comparison-chart { display: grid; gap: 8px; margin-top: 16px; }
.config-bar { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; font-size: 8px; }
.config-bar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.config-bar i { display: block; height: 10px; border-radius: 999px; background: #1a1f18; overflow: hidden; }
.config-bar em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ffe999); }
.config-bar b { min-width: 90px; text-align: right; }

.next-step { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 90px; padding: 36px 40px; border: 1px solid rgba(246, 201, 68, 0.21); border-radius: 26px; background: linear-gradient(100deg, rgba(246, 201, 68, 0.08), rgba(246, 201, 68, 0.01)); }
.next-step > div { display: flex; align-items: center; gap: 28px; }
.next-step h2 { margin-top: 10px; font-size: clamp(28px, 4vw, 44px); }
.next-step p { margin-top: 10px; }
.duck-large { display: grid; place-items: center; width: 88px; height: 88px; flex: 0 0 auto; border: 0; border-radius: 0; background: transparent; }
.duck-large img { display: block; width: 106%; height: 106%; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35)); }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 28px 42px; border-top: 1px solid var(--line); color: #737a70; font-size: 9px; }
.brand-footer { color: var(--text); }
.brand-footer .brand-mark { width: 38px; height: 38px; }

.compare-bar { position: fixed; z-index: 50; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 25px; width: min(620px, calc(100% - 28px)); padding: 11px 12px 11px 15px; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(24, 29, 22, 0.94); box-shadow: 0 18px 60px rgba(0,0,0,.45); backdrop-filter: blur(18px); }
.compare-bar[hidden] { display: none; }
.compare-bar > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.compare-count { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #11140f; font-size: 11px; font-weight: 900; }
.compare-bar p { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.compare-bar b { font-size: 10px; }
.compare-bar small { max-width: 360px; overflow: hidden; color: #777e73; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.compare-bar .button { min-height: 38px; padding-inline: 15px; font-size: 10px; }

.compare-dialog { width: min(980px, calc(100% - 30px)); max-height: min(80vh, 760px); padding: 0; border: 1px solid var(--line-strong); border-radius: 24px; background: #121510; color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.compare-dialog::backdrop { background: rgba(3, 4, 3, 0.78); backdrop-filter: blur(6px); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 23px 25px; border-bottom: 1px solid var(--line); background: rgba(18, 21, 16, .95); }
.dialog-head h2 { margin-top: 5px; font-size: 31px; }
.dialog-head button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: #a4aa9f; cursor: pointer; font-size: 24px; }
.compare-table-wrap { overflow-x: auto; padding: 22px 25px; }
.compare-table { width: 100%; min-width: 650px; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; }
.compare-table th { color: var(--accent-soft); vertical-align: bottom; }
.compare-table th:first-child, .compare-table td:first-child { color: #747b70; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.compare-table td { position: relative; min-width: 145px; }
.compare-table .best-value { color: var(--green); background: rgba(142, 231, 157, .045); }
.best-mark { display: block; width: max-content; margin-bottom: 4px; padding: 2px 5px; border-radius: 999px; background: rgba(142, 231, 157, .09); color: var(--green); font-size: 6px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.comparison-warning { margin: 15px 0 0; padding: 11px 13px; border: 1px solid rgba(246, 201, 68, .16); border-radius: 10px; background: rgba(246, 201, 68, .045); color: #a9a081; font-size: 8px; }
.dialog-note { margin: 0; padding: 0 25px 24px; color: #62695f; font-size: 9px; }

.toast { position: fixed; z-index: 80; right: 20px; bottom: 20px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: #20261d; color: var(--text); box-shadow: var(--shadow); font-size: 10px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: 180ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 90px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { min-height: 500px; }
  .split-heading { grid-template-columns: 1fr; gap: 20px; }
  .calculator-layout { grid-template-columns: 1fr; }
  .results-panel { position: static; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .ownership { grid-template-columns: 1fr; }
  .global-settings { grid-template-columns: repeat(2, 1fr); }
  .global-settings label { border: 0; }
  .operating-costs { grid-template-columns: repeat(3, 1fr); }
  .operating-copy { grid-column: 1 / -1; }
  .power-analysis-grid { grid-template-columns: repeat(3, 1fr); }
  .tco-controls { grid-template-columns: repeat(2, 1fr); }
  .save-config-button { min-height: 46px; }
  .tco-kpis { grid-template-columns: repeat(2, 1fr); }
  .tco-kpis .tco-total { grid-column: 1 / -1; }
  .saved-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 24px, 1180px); }
  .site-header { width: calc(100% - 18px); margin-top: 9px; }
  .header-action { display: none; }
  .hero { gap: 30px; padding-block: 65px 46px; }
  .hero h1 { font-size: 47px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-visual { min-height: 410px; transform: scale(.92); transform-origin: center top; }
  .power-card-main { inset: 55px 4px 80px; }
  .floating-card { min-width: 260px; }
  .floating-card-one { right: -10px; }
  .floating-card-two { left: -8px; bottom: 48px; }
  .floating-card-three { right: -8px; bottom: -5px; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip > div:nth-child(2) { border-right: 0; }
  .trust-strip > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .section { padding-block: 78px; }
  .calculator-panel { padding: 16px; }
  .global-settings { grid-template-columns: 1fr; }
  .global-settings label { border-right: 0; border-bottom: 1px solid var(--line); padding-block: 8px; }
  .global-settings label:last-child { border-bottom: 0; }
  .farm-list-head { display: none; }
  .farm-row { grid-template-columns: 72px minmax(90px, 1fr) 88px 30px; }
  .miner-select-wrap { grid-column: 1 / -1; }
  .row-power { text-align: left; }
  .operating-costs { grid-template-columns: 1fr; }
  .operating-copy { grid-column: auto; }
  .power-analysis { padding: 18px; }
  .power-analysis-head { align-items: flex-start; flex-direction: column; }
  .power-analysis-grid { grid-template-columns: 1fr 1fr; }
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .filter-pills { justify-content: flex-start; }
  .catalog-selects { grid-template-columns: 1fr; margin-top: -10px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .ownership ul { grid-template-columns: 1fr; }
  .ownership li:nth-child(odd) { border-right: 0; }
  .ownership li:nth-child(even) { padding-left: 0; }
  .ownership-visual { padding: 36px 18px; }
  .income-notice { align-items: flex-start; grid-template-columns: 1fr; }
  .tco-controls { grid-template-columns: 1fr; }
  .tco-kpis { grid-template-columns: 1fr; }
  .tco-kpis .tco-total { grid-column: auto; }
  .charts-grid { grid-template-columns: 1fr; }
  .cumulative-card { grid-column: auto; }
  .cost-chart-layout { grid-template-columns: 1fr; justify-items: center; }
  .dynamic-legend { width: 100%; }
  .saved-head { align-items: flex-start; flex-direction: column; }
  .saved-grid { grid-template-columns: 1fr; }
  .config-bar { grid-template-columns: 95px 1fr; }
  .config-bar b { grid-column: 1 / -1; text-align: left; }
  .next-step { align-items: stretch; flex-direction: column; margin-bottom: 55px; padding: 28px 22px; }
  .next-step > div { align-items: flex-start; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .compare-bar small { max-width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

