@import url('fonts/local-fonts.css');

/* ============================================
   TIGHTWAD.DEV — Main Stylesheet
   Dark terminal theme, green/amber accents
   ============================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: #0a0c0f;
  color: #c9d1d9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: #4ade80; text-decoration: none; transition: color 0.2s; }
a:hover { color: #86efac; }
img, svg { max-width: 100%; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; color: #f0f6fc; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
code { font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace; font-size: 0.9em; background: #161b22; padding: 0.15em 0.4em; border-radius: 4px; color: #4ade80; }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section--dark { background: #060809; }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 12, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #161b22;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: #21262d; }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.1rem; color: #f0f6fc; }
.logo-pig { font-size: 1.3rem; }
.logo-text { font-family: 'JetBrains Mono', monospace; color: #4ade80; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: #8b949e; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #f0f6fc; }
.nav-github {
  display: flex; align-items: center; gap: 0.4rem;
  background: #21262d; color: #c9d1d9 !important;
  padding: 0.4rem 0.8rem; border-radius: 6px;
  border: 1px solid #30363d; font-size: 0.85rem !important;
  transition: background 0.2s, border-color 0.2s !important;
}
.nav-github:hover { background: #30363d !important; border-color: #4ade80 !important; color: #f0f6fc !important; }
.nav-toggle { display: none; background: none; border: none; color: #c9d1d9; font-size: 1.3rem; cursor: pointer; padding: 0.3rem; }

/* ---- HERO ---- */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 50%, rgba(74, 222, 128, 0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(251, 191, 36, 0.03) 0%, transparent 50%);
}
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(74, 222, 128, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 222, 128, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero .container { position: relative; z-index: 1; }
.hero-terminal-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #0d1117; border: 1px solid #21262d;
  border-radius: 20px; padding: 0.3rem 0.9rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; color: #8b949e; margin-bottom: 1.5rem;
}
.badge-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-headline {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900; line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  min-height: 2.2em; /* prevent layout shift from typed animation */
}
.headline-accent {
  color: #4ade80;
  display: inline-block;
  min-width: 2ch;
  min-height: 1.1em;
  vertical-align: bottom;
}
.cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: #4ade80;
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #8b949e; max-width: 700px;
  margin-bottom: 2.5rem; line-height: 1.7;
}
.hero-sub strong { color: #f0f6fc; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.2s; cursor: pointer; border: none;
  text-decoration: none;
}
.btn-primary {
  background: #4ade80; color: #0a0c0f;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}
.btn-primary:hover { background: #86efac; color: #0a0c0f; box-shadow: 0 0 30px rgba(74, 222, 128, 0.5); transform: translateY(-1px); }
.btn-secondary { background: #21262d; color: #c9d1d9; border: 1px solid #30363d; }
.btn-secondary:hover { background: #30363d; color: #f0f6fc; border-color: #4ade80; transform: translateY(-1px); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

/* ---- HERO STATS ---- */
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: #0d1117; border: 1px solid #21262d;
  border-radius: 12px; padding: 1.2rem 1.5rem;
  margin-bottom: 2.5rem; flex-wrap: wrap;
}
.stat { text-align: center; padding: 0.5rem 1.5rem; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: #4ade80; font-family: 'JetBrains Mono', monospace; }
.stat-label { display: block; font-size: 0.75rem; color: #8b949e; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 40px; background: #21262d; }
.hero-footnote { font-size: 0.78rem; color: #6e7681; margin-top: -1.5rem; margin-bottom: 2rem; max-width: 700px; line-height: 1.5; }

/* ---- HERO CODE BLOCK ---- */
.hero-code {
  background: #0d1117; border: 1px solid #21262d;
  border-radius: 12px; overflow: hidden;
  max-width: 700px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.code-header {
  background: #161b22; padding: 0.6rem 1rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }
.code-title { margin-left: auto; font-size: 0.75rem; color: #484f58; font-family: 'JetBrains Mono', monospace; }
.code-body {
  padding: 1.2rem 1.5rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem; line-height: 1.8;
  overflow-x: auto; color: #c9d1d9;
}

/* ---- SYNTAX COLORS ---- */
.c-prompt { color: #4ade80; }
.c-green { color: #4ade80; }
.c-amber { color: #fbbf24; }
.c-dim { color: #484f58; }
.c-key { color: #79c0ff; }

/* ---- SECTION HEADERS ---- */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block; margin-bottom: 0.8rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
  color: #4ade80; letter-spacing: 0.05em;
}
.section-sub { color: #8b949e; max-width: 600px; margin: 0.8rem auto 0; font-size: 1.05rem; }
.section-sub--note { font-size: 0.82rem; color: #6e7681; margin-top: 0.4rem; font-style: italic; }

/* ---- MODES GRID ---- */
.modes-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-bottom: 4rem;
}
.mode-card {
  background: #0d1117; border: 1px solid #21262d;
  border-radius: 16px; padding: 2rem;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}
.mode-card:hover { border-color: #30363d; transform: translateY(-2px); }
.mode-card--featured { border-color: #4ade80; background: linear-gradient(135deg, #0d1117 0%, #0a1a0f 100%); }
.mode-card--featured:hover { border-color: #86efac; }
.mode-card--killer { border-color: #f59e0b; background: linear-gradient(135deg, #0d1117 0%, #1a140a 100%); }
.mode-card--killer:hover { border-color: #fbbf24; }
.mode-card--killer .mode-number { color: rgba(245,158,11,0.15); }
.mode-badge--gold { background: #f59e0b; color: #0a0c0f; }
.mode-note { font-size: 0.75rem; color: #484f58; margin-top: 1rem; line-height: 1.5; font-style: italic; }
.mode-card--swarm { border-color: #a855f7; background: linear-gradient(135deg, #0d1117 0%, #150a1a 100%); }
.mode-card--swarm:hover { border-color: #c084fc; }
.mode-card--swarm .mode-number { color: rgba(168,85,247,0.15); }
.mode-badge--purple { background: #a855f7; color: #0a0c0f; }
.mode-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: #4ade80; color: #0a0c0f;
  font-size: 0.7rem; font-weight: 800;
  padding: 0.25rem 0.6rem; border-radius: 4px;
  letter-spacing: 0.05em;
}
.mode-number { font-size: 3rem; font-weight: 900; color: #21262d; font-family: 'JetBrains Mono', monospace; line-height: 1; margin-bottom: 0.5rem; }
.mode-card--featured .mode-number { color: rgba(74,222,128,0.15); }
.mode-title { font-size: 1.4rem; margin-bottom: 1rem; color: #f0f6fc; }
.mode-desc { color: #8b949e; margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.7; }
.mode-desc strong { color: #c9d1d9; }

/* ---- ASCII DIAGRAMS ---- */
.diagram { margin: 1.5rem 0; }
.ascii-art {
  background: #060809; border: 1px solid #161b22;
  border-radius: 8px; padding: 1rem 1.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; line-height: 1.6;
  color: #8b949e; overflow-x: auto;
  white-space: pre;
}

/* ---- MODE FEATURES ---- */
.mode-features { margin-top: 1rem; }
.mode-features li { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.3rem 0; font-size: 0.9rem; color: #8b949e; }
.check { color: #4ade80; font-weight: 700; flex-shrink: 0; }

/* ---- SPECULATION EXPLAINER ---- */
.speculation-explainer {
  background: #0d1117; border: 1px solid #21262d;
  border-radius: 16px; padding: 2.5rem;
}
.speculation-explainer h3 { text-align: center; margin-bottom: 2rem; font-size: 1.3rem; }
.steps-row {
  display: flex; align-items: flex-start; gap: 0.5rem;
  flex-wrap: wrap; justify-content: center;
}
.step { flex: 1; min-width: 140px; max-width: 180px; text-align: center; }
.step-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.step h4 { color: #4ade80; margin-bottom: 0.4rem; font-size: 1rem; }
.step p { font-size: 0.85rem; color: #8b949e; line-height: 1.5; }
.step-arrow { font-size: 1.5rem; color: #30363d; padding-top: 1.5rem; flex-shrink: 0; }

/* ---- BENCHMARKS ---- */
.bench-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; margin-bottom: 4rem; align-items: start; }
.bench-table-wrap { overflow-x: auto; }
.bench-table { width: 100%; border-collapse: collapse; }
.bench-table th {
  background: #161b22; color: #8b949e;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.8rem 1rem; text-align: left;
  border-bottom: 1px solid #21262d;
}
.bench-table td {
  padding: 0.8rem 1rem; border-bottom: 1px solid #0d1117;
  font-size: 0.9rem; vertical-align: middle;
}
.bench-table tr:hover td { background: rgba(255,255,255,0.02); }
.bench-row--top td { color: #4ade80; }
.bench-row--avg { background: rgba(74,222,128,0.04); }
.bench-row--avg td { border-top: 1px solid #21262d; }
.prompt-icon { margin-right: 0.3rem; }
.rate-bar-wrap { display: flex; align-items: center; gap: 0.6rem; min-width: 160px; }
.rate-bar {
  flex: 1; height: 8px; background: #161b22; border-radius: 4px; overflow: hidden;
  position: relative;
}
.rate-bar::after {
  content: ''; position: absolute; inset-block: 0; left: 0;
  width: var(--pct); background: #4ade80; border-radius: 4px;
  animation: bar-grow 1.2s ease-out both;
}
.rate-bar--avg::after { background: linear-gradient(90deg, #4ade80, #fbbf24); }
@keyframes bar-grow { from { width: 0; } to { width: var(--pct); } }
.rate-num { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: #c9d1d9; min-width: 40px; }
.bench-vibe { color: #484f58; font-size: 0.82rem; font-style: italic; }

/* ---- BENCH SIDEBAR ---- */
.bench-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.bench-callout {
  background: #0d1117; border: 1px solid #21262d;
  border-radius: 12px; padding: 1.2rem;
}
.bench-callout--green { border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.04); }
.bench-callout--amber { border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.04); }
.callout-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.bench-callout h4 { font-size: 0.9rem; margin-bottom: 0.4rem; color: #f0f6fc; }
.bench-callout p { font-size: 0.82rem; color: #8b949e; line-height: 1.6; }

/* ---- CALCULATOR ---- */
.calculator {
  background: #0d1117; border: 1px solid #21262d;
  border-radius: 16px; padding: 2.5rem;
  margin-top: 2rem;
}
.calc-header { text-align: center; margin-bottom: 2rem; }
.calc-header h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.calc-header p { color: #8b949e; font-size: 0.95rem; }
.calc-body {}
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.calc-input-group label { display: block; font-size: 0.85rem; color: #8b949e; margin-bottom: 0.6rem; }
.slider-row { display: flex; align-items: center; gap: 1rem; }
.slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 6px; background: #21262d; border-radius: 3px; outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #4ade80; cursor: pointer;
  box-shadow: 0 0 10px rgba(74,222,128,0.4);
}
.slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #4ade80; cursor: pointer; border: none;
}
.slider-val { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: #4ade80; min-width: 50px; }
.calc-results {
  display: flex; align-items: center; gap: 1.5rem;
  background: #060809; border: 1px solid #161b22;
  border-radius: 12px; padding: 1.5rem 2rem;
  flex-wrap: wrap; justify-content: center;
  margin-bottom: 1rem;
}
.calc-result { text-align: center; }
.result-label { display: block; font-size: 0.82rem; color: #8b949e; margin-bottom: 0.3rem; }
.result-val { display: block; font-size: 1.6rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.calc-result--bad .result-val { color: #f85149; }
.calc-result--good .result-val { color: #4ade80; }
.calc-arrow { font-size: 1.5rem; color: #30363d; }
.calc-savings { text-align: center; background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); border-radius: 8px; padding: 0.8rem 1.5rem; }
.savings-label { display: block; font-size: 0.78rem; color: #8b949e; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.savings-val { display: block; font-size: 1.8rem; font-weight: 900; color: #4ade80; font-family: 'JetBrains Mono', monospace; }
.calc-disclaimer { font-size: 0.78rem; color: #484f58; text-align: center; line-height: 1.5; }

/* ---- USE CASES ---- */
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.use-card {
  background: #0d1117; border: 1px solid #21262d;
  border-radius: 16px; padding: 2rem;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}
.use-card:hover { border-color: #30363d; transform: translateY(-2px); }
.use-card--featured { border-color: rgba(251,191,36,0.4); background: linear-gradient(135deg, #0d1117, #120f08); }
.use-card--featured:hover { border-color: #fbbf24; }
.use-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: #fbbf24; color: #0a0c0f;
  font-size: 0.68rem; font-weight: 800;
  padding: 0.2rem 0.5rem; border-radius: 4px;
  letter-spacing: 0.05em;
}
.use-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.use-card h3 { font-size: 1.2rem; margin-bottom: 0.8rem; color: #f0f6fc; }
.use-desc { color: #8b949e; font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; }
.use-tag {
  display: inline-block; background: #161b22; border: 1px solid #21262d;
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: #4ade80;
  padding: 0.2rem 0.6rem; border-radius: 4px; margin-bottom: 1rem;
}
.use-list li { font-size: 0.88rem; color: #8b949e; padding: 0.25rem 0; padding-left: 1rem; position: relative; }
.use-list li::before { content: '→'; position: absolute; left: 0; color: #4ade80; font-size: 0.8rem; }

/* ---- QUICK START ---- */
.quickstart-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.tab-btn {
  background: #0d1117; border: 1px solid #21262d;
  color: #8b949e; padding: 0.6rem 1.2rem;
  border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.tab-btn:hover { border-color: #30363d; color: #c9d1d9; }
.tab-btn--active { background: #4ade80; color: #0a0c0f; border-color: #4ade80; }
.tab-content { display: none; }
.tab-content--active { display: block; }
.steps-list { display: flex; flex-direction: column; gap: 0; }
.qs-step {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 1.5rem 0; border-bottom: 1px solid #0d1117;
}
.qs-step:last-child { border-bottom: none; }
.qs-step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  background: #4ade80; color: #0a0c0f;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem;
}
.qs-step-body { flex: 1; }
.qs-step-body h4 { font-size: 1rem; margin-bottom: 0.8rem; color: #f0f6fc; }
.code-block { background: #0d1117; border: 1px solid #21262d; border-radius: 10px; overflow: hidden; }
.code-block-header {
  background: #161b22; padding: 0.5rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: #484f58;
}
.copy-btn {
  background: #21262d; border: 1px solid #30363d; color: #8b949e;
  font-size: 0.72rem; padding: 0.2rem 0.6rem; border-radius: 4px;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.copy-btn:hover { background: #30363d; color: #c9d1d9; }
.copy-btn.copied { background: rgba(74,222,128,0.1); color: #4ade80; border-color: #4ade80; }
.code-block pre {
  padding: 1.2rem 1.5rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.83rem;
  line-height: 1.8; overflow-x: auto; color: #c9d1d9;
}

/* ---- FEATURES GRID ---- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-item {
  background: #0d1117; border: 1px solid #21262d;
  border-radius: 12px; padding: 1.5rem;
  transition: border-color 0.3s, transform 0.2s;
}
.feature-item:hover { border-color: #30363d; transform: translateY(-2px); }
.feature-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.feature-item h4 { font-size: 0.95rem; margin-bottom: 0.5rem; color: #f0f6fc; }
.feature-item p { font-size: 0.85rem; color: #8b949e; line-height: 1.6; }
.feature-item code { font-size: 0.78em; }

/* ---- FOOTER ---- */
.footer { background: #060809; border-top: 1px solid #161b22; padding: 4rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-tagline { color: #8b949e; font-size: 0.9rem; margin-top: 0.8rem; line-height: 1.6; }
.footer-badge { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; align-items: center; }
.badge-pill {
  background: #0d1117; border: 1px solid #21262d;
  font-size: 0.72rem; color: #8b949e;
  padding: 0.2rem 0.6rem; border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
}
.footer-license-link {
  font-size: 0.72rem; color: #484f58;
  font-family: 'JetBrains Mono', monospace;
  text-decoration: none;
}
.footer-license-link:hover { color: #8b949e; text-decoration: underline; }
.footer-links-col h5 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: #484f58; margin-bottom: 1rem; }
.footer-links-col ul li { margin-bottom: 0.5rem; }
.footer-links-col ul li a { color: #8b949e; font-size: 0.88rem; }
.footer-links-col ul li a:hover { color: #4ade80; }
.footer-bottom { border-top: 1px solid #161b22; padding-top: 1.5rem; text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: #484f58; margin-bottom: 0.5rem; }
.footer-sub { color: #30363d !important; font-size: 0.78rem !important; margin-top: 0.5rem; }

/* ---- SCROLL ANIMATIONS ---- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- MOBILE RESPONSIVE ---- */
@media (max-width: 900px) {
  .modes-grid { grid-template-columns: 1fr; }
  .bench-layout { grid-template-columns: 1fr; }
  .bench-sidebar { flex-direction: row; flex-wrap: wrap; }
  .bench-callout { flex: 1; min-width: 200px; }
  .cards-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-results { flex-direction: column; align-items: stretch; text-align: center; }
  .calc-arrow { transform: rotate(90deg); }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #0a0c0f; border-bottom: 1px solid #21262d; padding: 1rem 1.5rem; gap: 0.8rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 90px 0 60px; }
  .hero-stats { flex-direction: column; gap: 0; }
  .stat-divider { width: 100%; height: 1px; }
  .stat { width: 100%; }
  .steps-row { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .qs-step { flex-direction: column; }
  .hero-headline { min-height: 3.5em; } /* taller on mobile — typed text wraps more */
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .code-body { font-size: 0.65rem; line-height: 1.6; }
  .bench-sidebar { flex-direction: column; }
}

/* ---- FONT IMPORT ---- */


/* ---- AHA DIAGRAM ---- */
.aha-diagram { background: #0d1117; border: 1px solid #21262d; border-radius: 12px; padding: 2rem; margin: 2.5rem 0; }
.aha-diagram h3 { font-size: 1.1rem; color: #e6edf3; margin-bottom: 1.5rem; text-align: center; }
.aha-grid { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.aha-machine { flex: 1; background: #161b22; border: 1px solid #30363d; border-radius: 10px; padding: 1.25rem; }
.aha-machine--draft { border-color: #1f6feb; }
.aha-machine--target { border-color: #238636; }
.aha-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8b949e; margin-bottom: 0.3rem; }
.aha-model { font-size: 0.85rem; font-weight: 600; color: #e6edf3; margin-bottom: 0.5rem; font-family: 'JetBrains Mono', monospace; }
.aha-action { font-size: 0.82rem; color: #58a6ff; margin-bottom: 0.2rem; }
.aha-speed { font-size: 0.75rem; color: #484f58; margin-bottom: 0.75rem; font-family: 'JetBrains Mono', monospace; }
.aha-quote { font-size: 0.78rem; color: #8b949e; font-style: italic; line-height: 1.4; }
.aha-checks { display: flex; gap: 0.3rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.aha-check { font-size: 1rem; font-weight: 700; }
.aha-yes { color: #4ade80; }
.aha-no { color: #f85149; }
.aha-dim { color: #30363d; }
.aha-arrow { font-size: 2rem; color: #484f58; flex-shrink: 0; }
.aha-result { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; padding-top: 1rem; border-top: 1px solid #21262d; font-size: 0.82rem; line-height: 1.6; text-align: center; }
.aha-result-sep { color: #484f58; }
.aha-bad { color: #8b949e; }
.aha-good { color: #4ade80; }
.aha-highlight { color: #e6edf3; }

/* ---- WHY TIGHTWAD COMPARISON ---- */
.comparison-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.compare-card { background: #0d1117; border: 1px solid #21262d; border-radius: 12px; padding: 1.5rem; }
.compare-vs { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #484f58; margin-bottom: 0.3rem; font-family: 'JetBrains Mono', monospace; }
.compare-tool { font-size: 1.2rem; font-weight: 700; color: #e6edf3; margin-bottom: 0.5rem; }
.compare-summary { font-size: 0.85rem; color: #8b949e; margin-bottom: 1rem; line-height: 1.5; }
.compare-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.compare-item { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.85rem; line-height: 1.5; }
.compare-icon { flex-shrink: 0; font-size: 0.9rem; margin-top: 0.1rem; }
.compare-item--neutral .compare-icon { color: #d29922; }
.compare-item--good .compare-icon { color: #4ade80; }
.compare-item--neutral span:last-child { color: #8b949e; }
.compare-item--good span:last-child { color: #c9d1d9; }
.compare-summary-box { background: #161b22; border: 1px solid #30363d; border-radius: 12px; padding: 1.75rem; }
.compare-summary-box h3 { font-size: 1rem; color: #e6edf3; margin-bottom: 1.25rem; }
.compare-summary-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.summary-row { display: flex; align-items: center; gap: 1rem; font-size: 0.88rem; padding: 0.6rem 0.75rem; border-radius: 6px; }
.summary-row--highlight { background: rgba(74, 222, 128, 0.06); border: 1px solid rgba(74, 222, 128, 0.2); }
.summary-scenario { flex: 1; color: #8b949e; }
.summary-arrow { color: #484f58; flex-shrink: 0; }
.summary-tool { font-weight: 600; color: #c9d1d9; white-space: nowrap; }
.summary-tool--highlight { color: #4ade80; }

@media (max-width: 900px) {
  .comparison-grid { grid-template-columns: 1fr; }
  .aha-grid { flex-direction: column; }
  .aha-arrow { transform: rotate(90deg); }
  .aha-result { flex-direction: column; }
  .aha-result-sep { display: none; }
}

/* ---- UX EXPLAINER (WHAT DOES THIS LOOK LIKE?) ---- */
.ux-before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  margin-bottom: 3rem;
}
.ux-card {
  background: #0d1117; border: 1px solid #21262d;
  border-radius: 16px; padding: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  position: relative; overflow: hidden;
}
/* Colored top accent bar */
.ux-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 16px 16px 0 0;
}
.ux-card--before {
  border-color: rgba(248,81,73,0.35);
  background: linear-gradient(180deg, rgba(248,81,73,0.05) 0%, rgba(13,17,23,0) 60%), #0d1117;
  border-radius: 16px 0 0 16px;
}
.ux-card--before::before { background: linear-gradient(90deg, #f85149, rgba(248,81,73,0.3)); }
.ux-card--after {
  border-color: rgba(74,222,128,0.35);
  background: linear-gradient(180deg, rgba(74,222,128,0.05) 0%, rgba(13,17,23,0) 60%), #0d1117;
  border-radius: 0 16px 16px 0;
}
.ux-card--after::before { background: linear-gradient(90deg, rgba(74,222,128,0.3), #4ade80); }

.ux-card-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.15em; padding: 0.3rem 0.75rem; border-radius: 20px;
  align-self: flex-start;
}
.ux-card-label--before {
  background: rgba(248,81,73,0.12); color: #f85149;
  border: 1px solid rgba(248,81,73,0.3);
}
.ux-card-label--before::before { content: '●'; font-size: 0.5rem; color: #f85149; }
.ux-card-label--after {
  background: rgba(74,222,128,0.12); color: #4ade80;
  border: 1px solid rgba(74,222,128,0.3);
}
.ux-card-label--after::before { content: '●'; font-size: 0.5rem; color: #4ade80; }

/* Flow diagram inside card */
.ux-flow {
  display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap;
}
.ux-flow-arrow {
  display: flex; align-items: center;
  color: #484f58; font-size: 1rem;
  flex-shrink: 0; opacity: 0.7;
  font-family: 'JetBrains Mono', monospace;
}
.ux-node {
  background: #0a0c0f; border: 1px solid #21262d;
  border-radius: 10px; padding: 0.75rem 1rem;
  text-align: center; flex: 1; min-width: 80px;
  transition: border-color 0.2s;
}
.ux-node--app { border-color: rgba(88,166,255,0.4); }
.ux-node--proxy { border-color: rgba(74,222,128,0.5); background: rgba(74,222,128,0.04); }
.ux-node--target { border-color: rgba(139,148,158,0.4); }
.ux-node-icon { font-size: 1.4rem; margin-bottom: 0.3rem; line-height: 1; }
.ux-node-name {
  font-size: 0.8rem; font-weight: 700; color: #e6edf3;
  font-family: 'JetBrains Mono', monospace; line-height: 1.3;
}
.ux-node-sub { font-size: 0.68rem; color: #8b949e; margin-top: 0.15rem; line-height: 1.3; }

/* URL bar */
.ux-url-bar {
  display: flex; align-items: center; gap: 0.5rem;
  background: #060809; border: 1px solid #161b22;
  border-radius: 8px; padding: 0.65rem 1rem;
  font-size: 0.82rem; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
}
.ux-url-label {
  color: #484f58; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.08em; flex-shrink: 0;
}
.ux-url-bar--before code { color: #8b949e; }
.ux-url-bar--after {
  border-color: rgba(251,191,36,0.25);
  background: rgba(251,191,36,0.04);
}
.ux-url-bar--after code { color: #c9d1d9; }
.ux-url-changed {
  color: #fbbf24; font-weight: 800;
  background: rgba(251,191,36,0.15);
  border-radius: 3px; padding: 0 0.2em;
}
.ux-url-diff {
  font-size: 0.68rem; color: #fbbf24;
  background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.25);
  padding: 0.15rem 0.5rem; border-radius: 20px;
  font-style: normal; font-weight: 700; letter-spacing: 0.04em;
  white-space: nowrap; margin-left: auto;
}

/* Verdict / status bar */
.ux-verdict {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; font-weight: 600; padding: 0.7rem 1rem;
  border-radius: 8px; border: 1px solid;
  line-height: 1.3;
}
.ux-verdict--bad {
  background: rgba(248,81,73,0.08); color: #f85149;
  border-color: rgba(248,81,73,0.2);
}
.ux-verdict--good {
  background: rgba(74,222,128,0.08); color: #4ade80;
  border-color: rgba(74,222,128,0.2);
}

/* The VS divider between cards */
.ux-vs {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 1rem; flex-shrink: 0; gap: 0.4rem;
  position: relative; z-index: 1;
  min-width: 56px;
  font-size: 0; color: transparent; /* hide the raw → in HTML */
}
.ux-vs::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  background: #0d1117; border: 1px solid #30363d;
  border-radius: 50%; z-index: -1;
}
.ux-vs::after {
  content: '→';
  font-size: 1.1rem; color: #484f58;
  display: block;
  font-family: 'JetBrains Mono', monospace;
}

.ux-facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem; margin-bottom: 2.5rem;
}
.ux-fact {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #0d1117; border: 1px solid #21262d;
  border-radius: 12px; padding: 1.25rem;
  transition: border-color 0.2s;
}
.ux-fact:hover { border-color: #30363d; }
.ux-fact-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 0.1rem; }
.ux-fact-body h4 { font-size: 0.95rem; color: #f0f6fc; margin-bottom: 0.35rem; }
.ux-fact-body p { font-size: 0.84rem; color: #8b949e; line-height: 1.65; }
.ux-cta-box {
  text-align: center; padding: 2.5rem 2rem;
  background: rgba(74,222,128,0.05); border: 1px solid rgba(74,222,128,0.18);
  border-radius: 16px;
}
.ux-cta-text { font-size: 1.15rem; color: #e6edf3; margin-bottom: 1.25rem; }
.ux-cta-text strong { color: #4ade80; }

/* ---- BENCHMARK TABS ---- */
.bench-tabs {
  display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.bench-tab {
  background: #0d1117; border: 1px solid #21262d;
  color: #8b949e; padding: 0.5rem 1rem;
  border-radius: 8px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 0.4rem;
}
.bench-tab:hover { border-color: #30363d; color: #c9d1d9; }
.bench-tab--active { background: #4ade80; color: #0a0c0f; border-color: #4ade80; }
.bench-tab-badge {
  background: #fbbf24; color: #0a0c0f;
  font-size: 0.62rem; font-weight: 800; padding: 0.1rem 0.4rem;
  border-radius: 3px; letter-spacing: 0.05em;
}
.bench-tab--active .bench-tab-badge { background: rgba(0,0,0,0.2); color: #0a0c0f; }
.bench-pane { display: none; }
.bench-pane--active { display: block; }
.bench-table-caption {
  font-size: 0.78rem; color: #484f58; font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.75rem; padding: 0.4rem 0.75rem;
  background: #060809; border-radius: 4px; display: inline-block;
}
.bench-note {
  font-size: 0.8rem; color: #484f58; margin-top: 0.75rem; line-height: 1.5;
}
.speedup-badge {
  display: inline-block; background: rgba(74,222,128,0.1); color: #4ade80;
  border: 1px solid rgba(74,222,128,0.3); font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px;
}
.speedup-badge--big { font-size: 1rem; padding: 0.25rem 0.6rem; }
.rate-bar--gold::after { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.bench-num--gold { color: #fbbf24; font-weight: 800; }
.bench-callout--gold { border-color: rgba(251,191,36,0.4); background: rgba(251,191,36,0.04); }
.bench-breakthrough {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.25);
  border-radius: 12px; padding: 1.25rem; margin-top: 1.25rem;
}
.breakthrough-icon { font-size: 1.8rem; flex-shrink: 0; }
.breakthrough-body h4 { font-size: 0.95rem; color: #fbbf24; margin-bottom: 0.4rem; }
.breakthrough-body p { font-size: 0.85rem; color: #8b949e; line-height: 1.6; }
.breakthrough-body strong { color: #e6edf3; }

/* ---- FOUR COMPUTE CONFIGS ---- */
.configs-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; margin-bottom: 2.5rem;
}
.config-card {
  background: #0d1117; border: 1px solid #21262d;
  border-radius: 16px; padding: 1.75rem;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}
.config-card:hover { border-color: #30363d; transform: translateY(-2px); }
.config-card--featured { border-color: rgba(74,222,128,0.4); background: linear-gradient(135deg, #0d1117, #0a1a0f); }
.config-card--enterprise { border-color: rgba(251,191,36,0.3); background: linear-gradient(135deg, #0d1117, #120f08); }
.config-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: #4ade80; color: #0a0c0f;
  font-size: 0.65rem; font-weight: 800;
  padding: 0.2rem 0.5rem; border-radius: 4px; letter-spacing: 0.06em;
}
.config-badge--amber { background: #fbbf24; }
.config-header {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1rem;
}
.config-arrow {
  font-family: 'JetBrains Mono', monospace; font-size: 1rem; font-weight: 700;
  background: #161b22; border: 1px solid #30363d;
  padding: 0.25rem 0.6rem; border-radius: 6px; color: #4ade80;
}
.config-arrow--cloud { color: #58a6ff; border-color: rgba(88,166,255,0.3); background: rgba(88,166,255,0.08); }
.config-arrow--cpu { color: #fbbf24; border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.08); }
.config-sep { color: #484f58; font-size: 1.2rem; }
.config-card h3 { font-size: 1.1rem; color: #f0f6fc; margin-bottom: 0.6rem; }
.config-desc { font-size: 0.88rem; color: #8b949e; line-height: 1.6; margin-bottom: 1.25rem; }
.config-example {
  display: flex; align-items: center; gap: 0.75rem;
  background: #060809; border: 1px solid #161b22;
  border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 1rem;
  flex-wrap: wrap;
}
.config-example--wide { justify-content: space-between; }
.config-machine { display: flex; align-items: center; gap: 0.6rem; }
.config-machine-icon { font-size: 1.3rem; }
.config-machine-name { font-size: 0.82rem; font-weight: 600; color: #e6edf3; }
.config-machine-spec { font-size: 0.75rem; color: #8b949e; font-family: 'JetBrains Mono', monospace; }
.config-machine-arrow { color: #484f58; font-size: 1rem; flex-shrink: 0; }
.config-result {
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
  color: #4ade80; background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2); border-radius: 6px;
  padding: 0.35rem 0.7rem; display: inline-block;
}
.config-result--amber { color: #fbbf24; background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.2); }
.config-enterprise-note {
  font-size: 0.8rem; color: #484f58; margin-top: 0.75rem; line-height: 1.5; font-style: italic;
}
.configs-summary {
  background: #0d1117; border: 1px solid #21262d;
  border-radius: 16px; padding: 1.5rem; overflow-x: auto;
}
.configs-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.configs-table th {
  background: #161b22; color: #8b949e;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid #21262d;
}
.configs-table td { padding: 0.7rem 1rem; border-bottom: 1px solid #0d1117; color: #c9d1d9; }
.configs-table tr:hover td { background: rgba(255,255,255,0.02); }
.config-pill {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 4px;
}
.config-pill--green { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.config-pill--blue { background: rgba(88,166,255,0.1); color: #58a6ff; border: 1px solid rgba(88,166,255,0.3); }
.config-pill--amber { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.config-pill--red { background: rgba(248,81,73,0.1); color: #f85149; border: 1px solid rgba(248,81,73,0.3); }

/* ---- HOMELAB RECIPE ---- */

/* --- Hardware Diagram (CMO redesign) --- */
.hw-diagram {
  display: grid;
  grid-template-columns: 260px auto 1fr;
  gap: 0;
  align-items: stretch;
  margin: 0 auto 1rem;
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 16px;
  padding: 2.5rem;
  overflow: hidden;
}

/* Draft brain column */
.hw-draft {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  align-self: stretch;
}
.hw-draft .hw-machine--draft {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hw-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
}
.hw-role-badge--draft {
  background: rgba(168,85,247,0.12);
  color: #a855f7;
  border: 1px solid rgba(168,85,247,0.3);
}
.hw-role-badge--pool {
  background: rgba(74,222,128,0.1);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.25);
  margin-bottom: 0.25rem;
}

/* Machine card */
.hw-machine {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #161b22;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  width: 100%;
}
.hw-machine--draft { border: 1px solid rgba(168,85,247,0.35); flex-direction: column; text-align: center; padding: 2rem 1.5rem; flex: 1; align-items: center; }
.hw-machine--draft .hw-machine-icon { font-size: 2.5rem; margin-bottom: 0.25rem; }
.hw-machine--draft .hw-machine-name { font-size: 1.15rem; }
.hw-machine--draft .hw-machine-body { align-items: center; }
.hw-machine--pool-a { border: 1px solid rgba(88,166,255,0.3); }
.hw-machine--pool-b { border: 1px solid rgba(74,222,128,0.25); }
.hw-machine--pool-c { border: 1px solid rgba(251,191,36,0.25); }
/* pool cards: left-aligned */

.hw-machine-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.hw-machine-body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.hw-machine-name {
  font-size: 1rem;
  font-weight: 700;
  color: #e6edf3;
  white-space: nowrap;
}
.hw-machine-spec {
  font-size: 0.85rem;
  color: #8b949e;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.hw-machine-vram {
  font-size: 0.88rem;
  font-weight: 800;
  color: #4ade80;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.hw-machine-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  color: #a855f7;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.25);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  margin-top: 0.3rem;
  align-self: center;
}
.hw-draft-role {
  font-size: 0.82rem;
  color: #484f58;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.6;
  text-align: center;
}

/* Flow channel (middle column) */
.hw-channel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  align-self: center;
}
.hw-channel-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.hw-channel-badge {
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8b949e;
  background: #161b22;
  border: 1px solid #30363d;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
}
.hw-channel-arrow {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
}
.hw-channel-label {
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  color: #484f58;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.hw-channel-line {
  display: block;
  height: 1px;
  width: 36px;
  background: linear-gradient(90deg, #21262d, #484f58);
  flex-shrink: 0;
}
.hw-channel-arrowhead {
  font-size: 0.85rem;
  color: #484f58;
  line-height: 1;
}

/* GPU Pool column */
.hw-pool {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hw-pool-caption {
  font-size: 0.82rem;
  color: #8b949e;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.1rem;
}
.hw-pool-machines {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hw-pool-total {
  font-size: 0.8rem;
  color: #484f58;
  font-family: 'JetBrains Mono', monospace;
  padding-top: 0.35rem;
  border-top: 1px solid #161b22;
}

/* Results strip */
.hw-results {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #060809;
  border: 1px solid #21262d;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  overflow: hidden;
  position: relative;
}
/* Subtle green glow at top edge */
.hw-results::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74,222,128,0.3), transparent);
}
.hw-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 1.75rem;
}
.hw-result-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1;
}
.hw-result-num--green { color: #4ade80; }
.hw-result-label {
  font-size: 0.7rem;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hw-result-sep {
  width: 1px;
  height: 36px;
  background: #21262d;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 860px) {
  .hw-diagram {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  .hw-channel {
    padding: 0;
  }
  .hw-channel-flow {
    flex-direction: row;
    gap: 0.5rem;
  }
  .hw-channel-arrow {
    width: auto;
  }
  .hw-channel-arrow--right { order: 1; }
  .hw-channel-badge { order: 2; }
  .hw-channel-arrow--left { order: 3; }
  .hw-channel-line { width: 24px; }
}

@media (max-width: 640px) {
  .hw-results {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .hw-result {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #161b22;
  }
  .hw-result:last-child { border-bottom: none; }
  .hw-result-sep { display: none; }
  .hw-result-num { font-size: 1.2rem; }
  .hw-pool-machines { gap: 0.4rem; }
  .hw-machine-spec { white-space: normal; }
}

/* Legacy recipe layout classes (kept for recipe-steps below) */
.recipe-machine {
  text-align: center; padding: 1rem 1.5rem;
  border-radius: 12px; flex: 1; min-width: 160px;
}
.recipe-machine--a { border: 1px solid rgba(88,166,255,0.3); background: rgba(88,166,255,0.05); }
.recipe-machine--b { border: 1px solid rgba(74,222,128,0.3); background: rgba(74,222,128,0.05); }
.recipe-machine--c { border: 1px solid rgba(251,191,36,0.3); background: rgba(251,191,36,0.05); }
.recipe-machine--d { border: 1px solid rgba(168,85,247,0.3); background: rgba(168,85,247,0.05); }
.recipe-machine-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #484f58; margin-bottom: 0.5rem; font-family: 'JetBrains Mono', monospace;
}
.recipe-machine-icon { font-size: 2rem; margin-bottom: 0.4rem; }
.recipe-machine-name { font-size: 0.95rem; font-weight: 700; color: #e6edf3; margin-bottom: 0.2rem; }
.recipe-machine-spec { font-size: 0.8rem; color: #8b949e; margin-bottom: 0.4rem; }
.recipe-machine-role { font-size: 0.78rem; color: #4ade80; font-family: 'JetBrains Mono', monospace; }
.recipe-machine-connector {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0 1rem; flex-shrink: 0;
}
.recipe-connector-line { flex: 1; height: 2px; background: #21262d; min-width: 30px; }
.recipe-connector-label { font-size: 0.7rem; color: #484f58; white-space: nowrap; font-family: 'JetBrains Mono', monospace; }
.recipe-expected {
  display: flex; align-items: center; gap: 0.75rem;
  background: #060809; border: 1px solid #161b22;
  border-radius: 10px; padding: 0.75rem 1.25rem;
  margin-bottom: 2.5rem; flex-wrap: wrap; justify-content: center;
}
.recipe-expected-label { font-size: 0.78rem; color: #484f58; text-transform: uppercase; letter-spacing: 0.06em; }
.recipe-expected-val { font-family: 'JetBrains Mono', monospace; font-size: 0.88rem; color: #4ade80; font-weight: 600; }
.recipe-expected-val--gold { color: #fbbf24; }
.recipe-expected-sep { color: #30363d; }
.recipe-steps { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.recipe-step {
  background: #0d1117; border: 1px solid #21262d;
  border-radius: 12px; padding: 1.5rem;
}
.recipe-step--final { border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.04); }
.recipe-step-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.recipe-step-num {
  width: 32px; height: 32px; flex-shrink: 0;
  background: #4ade80; color: #0a0c0f;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
}
.recipe-step-num--final { background: #fbbf24; }
.recipe-step-title { font-size: 1rem; font-weight: 600; color: #f0f6fc; flex: 1; }
.recipe-step-machine {
  font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem;
  border-radius: 4px; font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.recipe-step-machine--a { background: rgba(88,166,255,0.1); color: #58a6ff; border: 1px solid rgba(88,166,255,0.3); }
.recipe-step-machine--b { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.recipe-step-machine--either { background: #161b22; color: #8b949e; border: 1px solid #21262d; }
.recipe-step-note {
  font-size: 0.8rem; color: #484f58; margin-top: 0.75rem; line-height: 1.5;
}
.recipe-final-content { padding: 0.5rem 0; }
.recipe-final-text { font-size: 0.9rem; color: #8b949e; margin-bottom: 1rem; line-height: 1.6; }
.recipe-url-change {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.recipe-url {
  font-family: 'JetBrains Mono', monospace; font-size: 0.9rem;
  padding: 0.4rem 0.8rem; border-radius: 6px; display: inline-block;
}
.recipe-url--before { background: rgba(248,81,73,0.1); color: #f85149; border: 1px solid rgba(248,81,73,0.3); text-decoration: line-through; opacity: 0.7; }
.recipe-url--after { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); font-weight: 700; }
.recipe-url-arrow { color: #484f58; font-size: 1.2rem; }
.recipe-acceptance-table {
  background: #0d1117; border: 1px solid #21262d;
  border-radius: 16px; padding: 2rem;
}
.recipe-acceptance-table h3 { font-size: 1.1rem; margin-bottom: 1.5rem; color: #f0f6fc; }

/* ---- RESPONSIVE: NEW SECTIONS ---- */
@media (max-width: 900px) {
  .ux-before-after { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .ux-card--before { border-radius: 16px 16px 0 0; }
  .ux-card--after { border-radius: 0 0 16px 16px; }
  .ux-vs {
    min-width: unset; width: 100%; height: 48px;
    flex-direction: row; justify-content: center;
    background: #060809; border-left: 1px solid rgba(74,222,128,0.2);
    border-right: 1px solid rgba(74,222,128,0.2);
  }
  .ux-vs::before { width: 48px; height: 48px; }
  .ux-vs::after { content: '↓'; }
  .ux-facts { grid-template-columns: 1fr; }
  .configs-grid { grid-template-columns: 1fr; }
  .recipe-machine-connector { display: none; }
  .recipe-hardware { gap: 1rem; }
  .recipe-machine { min-width: 100%; }
}
@media (max-width: 640px) {
  .bench-tabs { flex-direction: column; }
  .ux-flow { justify-content: flex-start; flex-wrap: wrap; }
  .recipe-url-change { flex-direction: column; align-items: flex-start; }
  .recipe-expected { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

/* Pool diagram — hardware diversity visual */
.aha-pool-diagram { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.aha-pool-hardware {
  flex: 1; min-width: 260px; background: #161b22;
  border: 1px solid #30363d; border-radius: 10px; padding: 1.25rem;
}
.aha-pool-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: #484f58; font-family: 'JetBrains Mono', monospace; margin-bottom: 0.75rem;
}
.aha-pool-items { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.75rem; }
.aha-pool-item {
  font-size: 0.78rem; padding: 0.3rem 0.6rem; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.aha-pool-nvidia { background: rgba(118,185,0,0.1); color: #76b900; border-left: 3px solid #76b900; }
.aha-pool-amd { background: rgba(237,28,36,0.1); color: #ed1c24; border-left: 3px solid #ed1c24; }
.aha-pool-cpu { background: rgba(139,148,158,0.1); color: #8b949e; border-left: 3px solid #484f58; }
.aha-pool-old { opacity: 0.75; }
.aha-pool-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.aha-pool-tag {
  font-size: 0.65rem; padding: 0.2rem 0.5rem; border-radius: 20px;
  background: rgba(31,111,235,0.15); color: #58a6ff;
  border: 1px solid rgba(31,111,235,0.3); font-family: 'JetBrains Mono', monospace;
}
@media (max-width: 768px) {
  .aha-pool-diagram { flex-direction: column; }
}
