/* ==========================================================================
   BestBitMixers.com — styles.css
   Design: Bitcoin orange on warm charcoal · Unbounded / Manrope / JetBrains Mono
   ========================================================================== */

@property --score-p {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

:root {
  --bg: #0b0907;
  --bg-2: #120f0b;
  --surface: #19140f;
  --surface-2: #211a13;
  --surface-3: #2a2118;
  --line: rgba(247, 147, 26, .18);
  --line-soft: rgba(255, 255, 255, .07);

  --text: #f6eee4;
  --muted: #bcae9c;
  --dim: #8d806f;

  --orange: #f7931a;
  --orange-2: #ff6a00;
  --amber: #ffc56b;
  --gold: #ffd89a;
  --ok: #4fe0a5;
  --warn: #ffb648;
  --bad: #ff6363;

  --grad: linear-gradient(135deg, var(--amber) 0%, var(--orange) 45%, var(--orange-2) 100%);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .75);
  --glow: 0 0 0 1px rgba(247, 147, 26, .4), 0 18px 50px -18px rgba(247, 147, 26, .55);

  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --container: 1200px;
  --header-h: 74px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

body.nav-open { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--amber); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.015em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.55rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.12rem; }

strong { color: #fff; font-weight: 700; }
::selection { background: var(--orange); color: #170e04; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 12px; z-index: 400;
  background: var(--orange); color: #170e04; padding: 10px 16px;
  border-radius: 10px; font-weight: 700;
}
.skip-link:focus { left: 16px; color: #170e04; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.mono { font-family: var(--f-mono); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber);
  padding: 7px 14px; margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: 99px;
  background: rgba(247, 147, 26, .06);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(79, 224, 165, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(79, 224, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 224, 165, 0); }
}

/* ---------- Reading progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--grad);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 150;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.is-scrolled {
  background: rgba(11, 9, 7, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 24px; }

.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-family: var(--f-display); font-weight: 700; font-size: 1.02rem;
}
.logo:hover { color: var(--text); }
.logo-mark { width: 36px; height: 36px; transition: transform .7s var(--ease); }
.logo:hover .logo-mark { transform: rotate(60deg); }
.logo-text b { color: var(--orange); font-weight: 800; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav a {
  position: relative; display: block;
  padding: 8px 14px; border-radius: 10px;
  color: var(--muted); font-weight: 600; font-size: .94rem;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--grad);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px; margin-left: auto;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 14px; border: 1px solid transparent;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, color .25s, background .25s;
}
.btn-primary {
  background: var(--grad); color: #170e04;
  box-shadow: 0 12px 30px -12px rgba(247, 147, 26, .75);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover { color: #170e04; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(247, 147, 26, .9); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { color: var(--text); border-color: var(--orange); transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; font-size: .9rem; border-radius: 11px; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: 48px 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 25%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.glow-1 { width: 520px; height: 520px; background: #f7931a; top: -200px; right: -140px; opacity: .26; animation: float 14s ease-in-out infinite; }
.glow-2 { width: 380px; height: 380px; background: #ff4d00; bottom: -220px; left: -140px; opacity: .16; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.08); } }

.hero-watermark {
  position: absolute; right: -6vw; bottom: -16vw;
  font-family: var(--f-display); font-weight: 800; font-size: 46vw; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(247, 147, 26, .07);
  user-select: none;
}

.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy > * { animation: revealUp .9s var(--ease) backwards; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }

.lead { font-size: 1.14rem; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 0;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: rgba(255, 255, 255, .02); overflow: hidden;
}
.hero-stats div { display: flex; flex-direction: column-reverse; padding: 18px 20px; border-right: 1px solid var(--line-soft); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.hero-stats dd { margin: 0 0 4px; font-family: var(--f-display); font-size: 1.85rem; font-weight: 800; }

.hero-visual { animation: revealUp 1.1s var(--ease) .2s backwards; }
.mixer-frame {
  position: relative; aspect-ratio: 1 / 1; max-width: 540px; margin-left: auto;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(247, 147, 26, .12), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--bg-2));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.mixer-frame::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(247, 147, 26, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 147, 26, .05) 1px, transparent 1px);
  background-size: 32px 32px;
}
#mixer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mixer-label {
  position: absolute; font-family: var(--f-mono); font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
}
.mixer-label--in { left: 18px; top: 16px; }
.mixer-label--out { right: 18px; top: 16px; }
.mixer-label--core { left: 50%; bottom: 16px; transform: translateX(-50%); }
.mixer-chip {
  position: absolute; padding: 8px 12px; border-radius: 10px;
  background: rgba(11, 9, 7, .82); border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: .74rem; color: var(--text);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: bob 6s ease-in-out infinite;
}
.mixer-chip--a { right: 18px; bottom: 52px; color: var(--ok); }
.mixer-chip--b { left: 18px; bottom: 52px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; padding: 16px 0; background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.ticker-track {
  display: flex; width: max-content; gap: 44px;
  font-family: var(--f-mono); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  animation: marquee 40s linear infinite;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; }
.ticker-track span::after { content: "₿"; color: var(--orange); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 96px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line-soft); }
.section--tight { padding: 64px 0; }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.kicker {
  display: block; margin-bottom: 14px;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange);
}

.prose p, .prose li { color: var(--muted); }
.prose h3 { margin-top: 1.6em; }

/* ---------- Rank cards ---------- */
.rank-list { display: grid; gap: 22px; }
.rank-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 104px 1fr; gap: 0 28px;
  padding: 30px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-soft);
  transition: transform .45s var(--ease), border-color .3s;
}
.rank-card:hover { transform: translateY(-4px); border-color: var(--line); }
.rank-card--top { border-color: rgba(247, 147, 26, .45); box-shadow: var(--glow); }
.rank-num {
  font-family: var(--f-display); font-weight: 800; font-size: 4.4rem; line-height: .9;
  color: transparent; -webkit-text-stroke: 1.5px rgba(247, 147, 26, .55);
}
.rank-card--top .rank-num { -webkit-text-stroke: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.rank-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.rank-logo {
  flex: none; width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line);
  font-family: var(--f-mono); font-weight: 600; color: var(--amber);
}
.rank-head h3 { margin: 0 0 2px; font-size: 1.22rem; }
.rank-tag { margin: 0; color: var(--muted); font-size: .92rem; }
.badge-choice {
  display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 99px;
  background: var(--grad); color: #170e04; font-family: var(--f-body);
  font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle;
}

.score {
  position: relative; flex: none; margin-left: auto;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--orange) var(--score-p), rgba(255, 255, 255, .07) 0);
  transition: --score-p 1.6s var(--ease);
}
.is-visible .score, .score.is-visible { --score-p: calc(var(--score) * 1%); }
.score::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.score b { position: relative; font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; color: var(--text); }

.rank-specs { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rank-specs li { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line-soft); }
.rank-specs span { display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.rank-specs b { font-size: .96rem; color: var(--text); }
.rank-text { color: var(--muted); margin-bottom: 18px; }
.rank-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.chips { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  margin: 0; padding: 5px 11px; border-radius: 99px;
  font-size: .76rem; font-weight: 700; color: var(--amber);
  background: rgba(247, 147, 26, .1); border: 1px solid rgba(247, 147, 26, .22);
}

/* spotlight hover */
.spotlight { --mx: 50%; --my: 50%; }
.spotlight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(247, 147, 26, .13), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.spotlight:hover::after { opacity: 1; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img, .figure img {
  width: 100%; border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow);
}
.figure { margin: 36px 0; }
.figure figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: .8rem; color: var(--dim); }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-grid--2 { grid-template-columns: repeat(2, 1fr); }
.feature-card {
  position: relative; overflow: hidden;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: transform .45s var(--ease), border-color .3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--line); }
.feature-icon {
  width: 48px; height: 48px; margin-bottom: 18px;
  display: grid; place-items: center; border-radius: 14px;
  background: rgba(247, 147, 26, .1); border: 1px solid rgba(247, 147, 26, .25); color: var(--orange);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.weight { position: absolute; top: 26px; right: 26px; font-family: var(--f-mono); font-size: .8rem; color: var(--amber); }
.meter { height: 6px; margin-top: 18px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.meter span {
  display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease) .2s;
}
.is-visible .meter span { transform: scaleX(1); }

/* ---------- Tables ---------- */
.table-wrap { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table caption { text-align: left; padding: 16px 18px; color: var(--dim); font-size: .86rem; caption-side: bottom; border-top: 1px solid var(--line-soft); }
.data-table th, .data-table td { padding: 16px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
.data-table thead th {
  font-family: var(--f-mono); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); background: var(--bg-2);
}
.data-table tbody tr { transition: background .2s; }
.data-table tbody tr:hover { background: rgba(247, 147, 26, .05); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td strong { color: var(--text); }
.data-table .muted { color: var(--muted); }
.sort-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sort-btn::after { content: "↕"; opacity: .45; }
th[aria-sort="ascending"] .sort-btn { color: var(--orange); }
th[aria-sort="ascending"] .sort-btn::after { content: "↑"; opacity: 1; }
th[aria-sort="descending"] .sort-btn { color: var(--orange); }
th[aria-sort="descending"] .sort-btn::after { content: "↓"; opacity: 1; }
.sort-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

.type-pill {
  display: inline-block; padding: 4px 10px; border-radius: 8px;
  font-family: var(--f-mono); font-size: .74rem; color: var(--text);
  background: var(--surface-3); border: 1px solid var(--line-soft);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 3px 8px; border-radius: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .03em;
  color: var(--amber); background: rgba(247, 147, 26, .1); border: 1px solid rgba(247, 147, 26, .2);
}
.score-badge { font-family: var(--f-display); font-weight: 800; color: var(--orange); }
.row-link { font-weight: 700; white-space: nowrap; }

/* ---------- Toolbar (list page) ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 9px 16px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line-soft); background: var(--surface); color: var(--muted);
  font: 600 .87rem var(--f-body); transition: color .2s, border-color .2s, background .2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--line); }
.filter-btn.is-active { background: var(--grad); color: #170e04; border-color: transparent; }
.toolbar-right { display: flex; flex-wrap: wrap; gap: 10px; }
.input {
  padding: 11px 14px; min-width: 220px;
  border-radius: 12px; border: 1px solid var(--line-soft);
  background: var(--surface); color: var(--text);
  font: 500 .95rem var(--f-body);
}
select.input { min-width: 0; cursor: pointer; }
.input:focus { outline: none; border-color: var(--orange); }
.results-count { margin: 14px 0 0; font-family: var(--f-mono); font-size: .8rem; color: var(--dim); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 28px; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; margin: 0; }

/* ---------- Steps / checklist ---------- */
.steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; counter-reset: step; }
.steps > li {
  position: relative; counter-increment: step; margin: 0;
  padding: 22px 24px 22px 86px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft);
  transition: border-color .3s, transform .45s var(--ease);
}
.steps > li:hover { border-color: var(--line); transform: translateX(4px); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 22px; top: 18px;
  font-family: var(--f-display); font-weight: 800; font-size: 1.7rem;
  color: transparent; -webkit-text-stroke: 1px var(--orange);
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

.flags { list-style: none; padding: 0; display: grid; gap: 10px; }
.flags li {
  position: relative; margin: 0; padding: 14px 18px 14px 50px; border-radius: 14px;
  background: rgba(255, 99, 99, .05); border: 1px solid rgba(255, 99, 99, .2); color: var(--muted);
}
.flags li::before {
  content: "!"; position: absolute; left: 16px; top: 14px;
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 99, 99, .18); color: var(--bad); font-weight: 800; font-size: .8rem;
}

/* ---------- Callout ---------- */
.callout {
  display: flex; gap: 18px; padding: 24px 26px; border-radius: var(--radius);
  border: 1px solid rgba(255, 182, 72, .35);
  background: linear-gradient(135deg, rgba(255, 182, 72, .09), rgba(255, 182, 72, .02));
}
.callout-icon {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255, 182, 72, .15); color: var(--warn); font-weight: 800; font-size: 1.1rem;
}
.callout h2, .callout h3 { font-size: 1.1rem; margin-bottom: 6px; }
.callout p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group > h2 { font-size: 1.35rem; margin-bottom: 18px; }
.faq-item {
  overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: border-color .3s, background .3s;
}
.faq-item[open] { border-color: var(--line); background: var(--surface-2); }
.faq-item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 64px 20px 24px; font-weight: 700; font-size: 1.03rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; border: 1px solid var(--line);
  background:
    linear-gradient(var(--orange), var(--orange)) center / 10px 2px no-repeat,
    linear-gradient(var(--orange), var(--orange)) center / 2px 10px no-repeat;
  transition: transform .4s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item summary h3 { display: inline; font: inherit; margin: 0; letter-spacing: 0; }
.faq-answer { padding: 0 24px 22px; color: var(--muted); }
.faq-item[open] .faq-answer { animation: fadeDown .45s var(--ease); }
.faq-answer p:last-child { margin: 0; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 56px; border-radius: var(--radius-lg);
  background: radial-gradient(circle at 85% 20%, rgba(255, 216, 154, .45), transparent 45%), var(--grad);
  color: #170e04;
}
.cta-band::after {
  content: "₿"; position: absolute; right: 18%; bottom: -90px;
  font-family: var(--f-display); font-weight: 800; font-size: 16rem; line-height: 1;
  color: rgba(23, 14, 4, .08); pointer-events: none;
}
.cta-band h2 { color: #170e04; margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(23, 14, 4, .78); font-weight: 600; max-width: 56ch; }
.cta-band .btn { position: relative; z-index: 1; background: #140d06; color: var(--text); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); }
.cta-band .btn:hover { color: #fff; transform: translateY(-2px); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 36px 0 64px; border-bottom: 1px solid var(--line-soft); }
.page-hero .lead { max-width: 72ch; }
.page-hero h1 { max-width: 20ch; animation: revealUp .9s var(--ease) backwards; }
.page-hero .lead { animation: revealUp .9s var(--ease) .1s backwards; }
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0;
  font-family: var(--f-mono); font-size: .78rem; color: var(--dim);
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--orange); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--orange); }
.meta-row {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px;
  font-family: var(--f-mono); font-size: .78rem; color: var(--dim);
  animation: revealUp .9s var(--ease) .2s backwards;
}
.meta-row span::before { content: "● "; color: var(--orange); }

/* ---------- Article + TOC ---------- */
.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
}
.toc-title { margin-bottom: 12px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 8px 12px; border-left: 2px solid var(--line-soft);
  color: var(--muted); font-size: .9rem; line-height: 1.4;
  transition: color .2s, border-color .2s, background .2s;
}
.toc a:hover, .toc a.is-active { color: var(--text); border-left-color: var(--orange); background: rgba(247, 147, 26, .06); }
.article { max-width: 780px; }
.article > h2 { margin-top: 2.2em; }
.article > h2:first-child { margin-top: 0; }
.article p, .article li { color: var(--muted); }

.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.glossary div { padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.glossary dt { margin-bottom: 4px; font-weight: 700; color: var(--text); }
.glossary dd { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; padding: 64px 0 28px; background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-grid h2 {
  margin-bottom: 16px; font-family: var(--f-mono); font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid li { margin: 0; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--orange); }
.footer-brand .logo { margin-bottom: 16px; }
.small, .footer-brand p { font-size: .88rem; color: var(--dim); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-size: .84rem; color: var(--dim);
}
.footer-bottom p { margin: 0; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 120;
  width: 48px; height: 48px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(25, 20, 15, .92); color: var(--orange); font-size: 1.15rem;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease), background .2s, color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); color: #170e04; }

/* ---------- Reveal on scroll ---------- */
.reveal.pre { opacity: 0; }
.reveal-in { animation: revealUp .9s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .mixer-frame { margin: 0 auto; max-width: 480px; }
}

@media (max-width: 960px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0;
    background: rgba(11, 9, 7, .97); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s, visibility .3s, transform .3s var(--ease);
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; padding: 12px 16px 22px; }
  .main-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .main-nav a[aria-current="page"]::after { left: 12px; right: auto; width: 28px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split-media { order: 0; }
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .rank-card { grid-template-columns: 1fr; padding: 22px; }
  .rank-num { font-size: 2.8rem; margin-bottom: 10px; }
  .rank-specs { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 36px 26px; }

  /* table → cards */
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 10px 6px; border-bottom: 1px solid var(--line-soft); }
  .data-table tbody tr:last-child { border-bottom: 0; }
  .data-table td { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 14px; border: 0; text-align: right; }
  .data-table td::before {
    content: attr(data-label); text-align: left;
    font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
  }
  .data-table tr[hidden] { display: none; }
  .tag-row { justify-content: flex-end; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero { padding: 28px 0 72px; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; }
  .hero-stats div { padding: 14px 12px; }
  .hero-stats dd { font-size: 1.4rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .feature-grid, .feature-grid--2, .glossary, .footer-grid { grid-template-columns: 1fr; }
  .steps > li { padding: 20px 18px 20px 70px; }
  .steps > li::before { left: 16px; font-size: 1.4rem; }
  .input { min-width: 0; width: 100%; }
  .toolbar-right { width: 100%; }
  .callout { flex-direction: column; }
  .score { width: 60px; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal.pre { opacity: 1; }
}
