/* Tap Zap blog (v2)
   Scope via body classes:
   - .blog-index
   - .blog-article
*/

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0D0D0D;
  --bg-elevated: #1A1A1A;
  --bg-card: #141414;
  --border: #2A2A2A;
  --border-light: #3A3A3A;
  --red: #FF0000;
  --red-dim: #990000;
  --red-glow: rgba(255, 0, 0, 0.15);
  --text: #FFFFFF;
  --text-muted: #808080;
  --text-dim: #4A4A4A;
  --yellow: #FFD600;
  --green: #00FF66;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* Deep dark toggle swaps variables */
body.deep-dark {
  --bg: #050505;
  --bg-elevated: #0E0E0E;
  --bg-card: #0A0A0A;
  --border: #1A1A1A;
  --border-light: #282828;
  --text-muted: #666666;
  --text-dim: #383838;
}

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

@media (max-width: 768px) {
  .grain { display: none; }
}

/* Reveal animations */
/* Keep content visible by default. Only hide reveal blocks once JS is active. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-center a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.2s;
}

.nav-center a:hover,
.nav-center a.active {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta {
  padding: 0.6rem 1.5rem;
  background: var(--red);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid var(--red);
  transition: all 0.2s;
}

.nav-cta:hover {
  background: transparent;
  color: var(--red);
}

/* Layout helpers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Page header */
.page-header {
  padding: 10rem 0 4rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 70%);
  opacity: 0.3;
}

.page-header-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.blog-index .page-header-content {
  text-align: center;
  max-width: 900px;
}

.section-label {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  background: var(--red-glow);
  border: 1px solid var(--red-dim);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--text); }

.page-header h1 {
  font-family: 'Anybody', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text);
}

.page-header h1.glitch-wrap {
  /* Prevent the section label from sitting next to the H1 (seen on blog header). */
  display: block;
  width: fit-content;
}

.blog-index .page-header h1.glitch-wrap {
  margin-left: auto;
  margin-right: auto;
}

.page-header p,
.page-header .subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.blog-index .page-header p {
  margin: 0 auto;
}

.meta-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.meta-tag {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--border);
  padding: 2px 8px;
  color: var(--text-muted);
}

.meta-tag-red {
  border-color: var(--red-dim);
  color: var(--red);
}

/* Progress bar (articles only) */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--red);
  z-index: 1001;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

/* Filter bar (index only) */
.blog-index .filter-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 60px;
  z-index: 100;
}

.blog-index .filter-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-index .tag-container {
  max-width: 1100px;
  margin: 0.75rem auto 0;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-index .tag-btn {
  padding: 5px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}

.blog-index .tag-btn:hover {
  border-color: var(--border-light);
  color: var(--text);
}

.blog-index .tag-btn.active {
  border-color: var(--red-dim);
  color: var(--red);
  box-shadow: inset 0 0 18px rgba(255, 0, 0, 0.06);
}

.blog-index .filter-btn {
  padding: 6px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}

.blog-index .filter-btn:hover {
  border-color: var(--border-light);
  color: var(--text);
}

.blog-index .filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--text);
  padding-left: 26px;
  position: relative;
}

.blog-index .filter-btn.active::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  animation: pulse 2s ease-in-out infinite;
}

/* Featured + cards (index only) */
.blog-index .featured-section { padding: 4rem 0 0; }

.blog-index .featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.2s;
  box-shadow: inset 0 0 30px rgba(255, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.blog-index .featured-card:hover {
  border-color: var(--border-light);
  box-shadow: inset 0 0 30px rgba(255, 0, 0, 0.1);
}

.blog-index .featured-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--red);
  opacity: 0;
  top: 0;
  z-index: 2;
  pointer-events: none;
}

@keyframes scanline {
  0% { top: 0; opacity: 0.3; }
  100% { top: 100%; opacity: 0; }
}

.blog-index .featured-card:hover::after {
  animation: scanline 1.5s ease-in-out;
}

.blog-index .featured-card-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card-visual {
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.15s ease-out;
}

.featured-card-visual pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  line-height: 1.4;
  color: var(--text-dim);
  white-space: pre;
}

.featured-tag {
  display: inline-block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--red-dim);
  color: var(--red);
  padding: 2px 8px;
  margin-bottom: 1rem;
  width: fit-content;
}

.blog-index .featured-card h3 {
  font-family: 'Anybody', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.blog-index .featured-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.read-link {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  font-weight: 600;
}

/* Blog sections */
.blog-index { counter-reset: blog-section; }

.blog-index .blog-section {
  padding: 4rem 0 0;
  counter-increment: blog-section;
}

.blog-index .blog-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.blog-index .blog-section-header h2 {
  font-family: 'Anybody', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.blog-index .blog-section-header h2::before {
  content: counter(blog-section, decimal-leading-zero) " ";
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.blog-index .blog-section-header .count {
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.blog-index .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.blog-index .blog-card {
  background: var(--bg-card);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 0.15s, box-shadow 0.2s, transform 0.2s;
}

.blog-index .blog-card:hover {
  background: var(--bg-elevated);
  box-shadow: inset 0 0 20px rgba(255, 0, 0, 0.08);
  transform: translateY(-2px);
}

.blog-card-tag {
  display: inline-block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2px 8px;
  margin-bottom: 1rem;
  width: fit-content;
}

.blog-card-tag-red {
  border-color: var(--red-dim);
  color: var(--red);
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
}

.blog-card-tags .blog-card-tag {
  margin-bottom: 0;
}

.blog-index .blog-card h3 {
  font-family: 'Anybody', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.blog-index .blog-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-index .blog-card .read-link {
  font-size: 0.6rem;
  margin-top: auto;
}

.blog-index .blog-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Article layout */
.blog-article .article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 4rem;
}

.blog-article .article-main {
  max-width: 700px;
  counter-reset: article-section;
}

.blog-article article { padding: 4rem 0 3rem; }

.blog-article article section {
  margin-bottom: 4rem;
  counter-increment: article-section;
}

.blog-article article h2 {
  font-family: 'Anybody', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.blog-article article h2::before {
  content: counter(article-section, decimal-leading-zero) " ";
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.blog-article article h3 {
  font-family: 'Anybody', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.blog-article article p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.blog-article article strong {
  color: var(--text);
  font-weight: 700;
}

.blog-article article ul,
.blog-article article ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 13px;
}

.blog-article article li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* TOC */
.toc-inner { position: sticky; top: 100px; }

.toc-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.toc-link {
  display: block;
  padding: 6px 0 6px 12px;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.toc-link:hover { color: var(--text-muted); }

.toc-link.active {
  color: var(--text);
  border-left-color: var(--red);
}

.toc-time {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

/* Heartbeat divider */
.heartbeat-line {
  position: relative;
  height: 40px;
  margin: 0 0 2rem;
  overflow: hidden;
}

.heartbeat-line svg { width: 100%; height: 40px; }

.heartbeat-line .trace {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.5;
  opacity: 0.4;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
}

.heartbeat-line.animate .trace {
  animation: draw-heartbeat 1.5s ease-out forwards;
}

@keyframes draw-heartbeat { to { stroke-dashoffset: 0; } }

/* Pull quote */
.pull-quote {
  font-family: 'Anybody', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  border-left: 3px solid var(--red);
  padding: 1.5rem 0 1.5rem 2rem;
  margin: 4rem 0;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  transition: border-color 0.15s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--border-light);
  box-shadow: inset 0 0 20px rgba(255, 0, 0, 0.06);
}

.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  position: relative;
}

.card-body { padding: 20px; }

/* Diagram / ascii boxes */
.diagram-box,
.ascii-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
  overflow-x: auto;
  transition: border-color 0.15s, box-shadow 0.2s;
}

.diagram-box:hover,
.ascii-box:hover {
  border-color: var(--border-light);
  box-shadow: inset 0 0 20px rgba(255, 0, 0, 0.06);
}

.diagram-box pre,
.ascii-box pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  line-height: 1.5;
  color: var(--text-muted);
  white-space: pre;
  padding: 20px;
}

.diagram-box-featured,
.ascii-box.highlight {
  border-top: 3px solid var(--red);
  box-shadow: inset 0 0 20px rgba(255, 0, 0, 0.05);
}

/* Copy button */
.copy-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 2px 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.copy-btn:hover {
  color: var(--text-muted);
  border-color: var(--border-light);
}

.copy-btn.copied {
  color: var(--green);
  border-color: var(--green);
}

/* Formula */
.formula-card,
.formula {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 20px;
  margin: 1.5rem 0;
  transition: box-shadow 0.2s;
}

.formula-card:hover,
.formula:hover { box-shadow: inset 0 0 20px rgba(255, 0, 0, 0.06); }

.formula-main {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.formula-desc {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 12px;
}

/* Callouts */
.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 20px;
  margin: 1.5rem 0;
  transition: box-shadow 0.2s;
}

.callout:hover { box-shadow: inset 0 0 20px rgba(255, 0, 0, 0.06); }

.callout.warning { border-left-color: var(--yellow); }
.callout.success { border-left-color: var(--green); }
.callout.info { border-left-color: var(--red); }

.callout-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.callout.warning .callout-title { color: var(--yellow); }
.callout.success .callout-title { color: var(--green); }

/* Code blocks */
.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
  overflow-x: auto;
}

.code-block code {
  display: block;
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre;
}

/* Comparisons (legacy) */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.comparison-card:hover { box-shadow: inset 0 0 20px rgba(255, 0, 0, 0.06); }

.comparison-card.bad { border-top: 3px solid var(--red); }
.comparison-card.good { border-top: 3px solid var(--green); }

.comparison-card h4 {
  font-family: 'Anybody', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.comparison-card.bad h4 { color: var(--red); }
.comparison-card.good h4 { color: var(--green); }

.pros-cons {
  list-style: none;
  margin: 0;
  padding: 20px;
}

.pros-cons li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.pros-cons li:last-child { border-bottom: none; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 1.5rem 0;
}

th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* Steps list */
.steps-list {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0;
}

.steps-list li {
  counter-increment: step;
  padding: 12px 0 12px 48px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
}

.steps-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--red);
  font-size: 14px;
}

/* CTA */
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  text-align: center;
  padding: 3rem 2rem;
  margin: 4rem 0 0;
  box-shadow: inset 0 0 30px rgba(255, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

.cta-box h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-box h2::before { content: none; }

.cta-box p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-highlight,
.big-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.05em;
  margin-top: 1rem;
  font-variant-numeric: tabular-nums;
  position: relative;
}

.cta-btn,
.btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 2rem;
  background: var(--red);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid var(--red);
  transition: all 0.2s;
  position: relative;
}

.cta-btn:hover,
.btn-primary:hover {
  background: transparent;
  color: var(--red);
}

/* Share */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.share-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.share-btn {
  padding: 5px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.share-btn:hover {
  color: var(--text);
  border-color: var(--border-light);
}

.share-btn.copied-link {
  color: var(--green);
  border-color: var(--green);
}

/* Related */
.related-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.related-header {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.related-card {
  background: var(--bg-card);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, box-shadow 0.2s;
}

.related-card:hover {
  background: var(--bg-elevated);
  box-shadow: inset 0 0 20px rgba(255, 0, 0, 0.06);
}

.related-card-tag {
  display: inline-block;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2px 6px;
  margin-bottom: 0.75rem;
}

.related-card h4 {
  font-family: 'Anybody', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.related-card p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.related-card .read-link {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  font-weight: 600;
}

/* Footnotes */
.fn-ref {
  display: inline-block;
  font-size: 0.6rem;
  color: var(--red);
  cursor: pointer;
  font-weight: 700;
  vertical-align: super;
  line-height: 0;
  margin-left: 2px;
  border-bottom: 1px dotted var(--red-dim);
  transition: color 0.15s;
}

.fn-ref:hover { color: var(--text); }

.fn-body {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 2px solid var(--red);
  padding: 12px 16px;
  margin: 0.75rem 0 1.25rem;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.fn-body.open { display: block; }

/* Deep dark toggle control */
.dark-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.dark-toggle-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  transition: color 0.2s;
}

.dark-toggle-track {
  width: 28px;
  height: 14px;
  background: var(--border);
  border: 1px solid var(--border-light);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.dark-toggle-thumb {
  width: 10px;
  height: 10px;
  background: var(--text-dim);
  position: absolute;
  top: 1px;
  left: 1px;
  transition: left 0.15s, background 0.15s;
}

.dark-toggle-track.active { background: var(--red-dim); }

.dark-toggle-track.active .dark-toggle-thumb {
  left: 15px;
  background: var(--red);
}

/* Hint bar */
.hint-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 13, 13, 0.95);
  border-top: 1px solid var(--border);
  padding: 6px 2rem;
  z-index: 1000;
  display: flex;
  justify-content: center;
  gap: 2rem;
  transform: translateY(100%);
  transition: transform 0.2s ease;
}

.hint-bar.visible { transform: translateY(0); }

.hint-bar-item {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hint-key {
  display: inline-block;
  padding: 1px 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.55rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* Typewriter cursor */
.diagram-box pre .cursor,
.ascii-box pre .cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: var(--red);
  vertical-align: text-bottom;
  animation: blink-cursor 0.7s step-end infinite;
  margin-left: 1px;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Glitch + signal instability */
.glitch-wrap {
  position: relative;
  display: inline-block;
}

.glitch-wrap .h1-text {
  position: relative;
  z-index: 2;
  display: inline-block;
  color: var(--text);
}

.glitch-wrap::before,
.glitch-wrap::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.glitch-wrap::before { color: var(--red); }
.glitch-wrap::after { color: cyan; }

.glitch-wrap.glitching::before { animation: glitch-red 0.18s steps(2) forwards; }
.glitch-wrap.glitching::after { animation: glitch-cyan 0.18s steps(2) forwards; }

.glitch-wrap.slice::before,
.glitch-wrap.slice::after {
  opacity: 0.85;
  animation: slice-jitter 0.18s steps(2) forwards;
}

.glitch-wrap.dropout { opacity: 0.3; }
.glitch-wrap.stutter { transform: translate(1px, 1px); }
.glitch-wrap.spike .voltage-spike { animation: spike 0.25s ease-out; }
.glitch-wrap.sweep .chromatic-sweep { opacity: 1; animation: sweep 0.6s ease-out; }

.chromatic-sweep {
  position: absolute;
  top: 0;
  left: -20%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.35), transparent);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.voltage-spike {
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--red);
  opacity: 0.9;
  pointer-events: none;
}

@keyframes glitch-red {
  0% { opacity: 0.8; transform: translate(-3px, 1px); clip-path: inset(20% 0 40% 0); }
  25% { opacity: 0.6; transform: translate(2px, -1px); clip-path: inset(60% 0 10% 0); }
  50% { opacity: 0.7; transform: translate(-1px, 2px); clip-path: inset(5% 0 70% 0); }
  75% { opacity: 0.5; transform: translate(3px, 0); clip-path: inset(40% 0 30% 0); }
  100% { opacity: 0; transform: translate(0); clip-path: none; }
}

@keyframes glitch-cyan {
  0% { opacity: 0.6; transform: translate(3px, -1px); clip-path: inset(50% 0 20% 0); }
  25% { opacity: 0.8; transform: translate(-2px, 1px); clip-path: inset(10% 0 55% 0); }
  50% { opacity: 0.5; transform: translate(1px, -2px); clip-path: inset(70% 0 5% 0); }
  75% { opacity: 0.7; transform: translate(-3px, 0); clip-path: inset(25% 0 45% 0); }
  100% { opacity: 0; transform: translate(0); clip-path: none; }
}

@keyframes slice-jitter {
  0% { transform: translateX(-3px); clip-path: inset(10% 0 70% 0); }
  50% { transform: translateX(2px); clip-path: inset(55% 0 15% 0); }
  100% { transform: translateX(0); clip-path: inset(30% 0 40% 0); }
}

@keyframes sweep {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 0.6; }
  100% { transform: translateX(200%); opacity: 0; }
}

@keyframes spike {
  0% { width: 0; opacity: 0; }
  40% { width: 100%; opacity: 0.9; }
  100% { width: 0; opacity: 0; }
}

.signal-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--red);
  opacity: 0;
}

.scanline.active { animation: scanline 0.6s ease-out; }

.noise-burst {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0;
  mix-blend-mode: screen;
}

.noise-burst.active { animation: noise-burst 0.15s steps(2) forwards; }

@keyframes noise-burst {
  0% { opacity: 0.0; }
  50% { opacity: 0.35; }
  100% { opacity: 0.0; }
}

.page-header-content > :not(.signal-overlay) {
  position: relative;
  z-index: 2;
}

/* CRT power-on — pure CSS, no JS dependency */
.crt-overlay {
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: crt-bg 0.8s ease-out 0.15s forwards;
}

.crt-overlay .crt-line {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.2);
  animation: crt-expand 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

@keyframes crt-expand {
  0%   { height: 2px; opacity: 1; }
  50%  { height: 60vh; opacity: 0.7; }
  100% { height: 100vh; opacity: 0; }
}

@keyframes crt-bg {
  0%   { opacity: 1; }
  80%  { opacity: 0; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* Signal loss on idle (blog pages only) */
.idle-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 1.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idle-overlay.active {
  opacity: 1;
}

.idle-overlay .no-signal {
  font-family: 'Anybody', sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  user-select: none;
}

body.idle-desaturate:not(.tint-demo-active) {
  filter: saturate(0.3) brightness(0.85);
  transition: filter 2s ease;
}

body:not(.idle-desaturate):not(.tint-demo-active) {
  transition: filter 0.3s ease;
}

/* ASCII drift */
.ascii-drift {
  display: block;
  transition: transform 0.12s ease-out;
}

/* Pilot conversion features: 100% paradox only */
body.blog-article.pilot-paradox::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(255, 82, 0, 0);
  mix-blend-mode: screen;
  z-index: 9996;
  transition: background 0.6s ease;
}

body.blog-article.pilot-paradox.tint-demo-active::after {
  background: rgba(255, 82, 0, 0.14);
}

body.blog-article.pilot-paradox {
  transition: filter 0.6s ease;
}

body.blog-article.pilot-paradox.tint-demo-active {
  filter: sepia(0.16) saturate(1.08) hue-rotate(-12deg) brightness(0.97);
}

body.blog-article.pilot-paradox .tint-demo {
  margin-top: 1.25rem;
  padding: 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  background: var(--bg-card);
}

body.blog-article.pilot-paradox .tint-demo-label {
  margin: 0 0 0.5rem;
  color: var(--red);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

body.blog-article.pilot-paradox .tint-demo-btn {
  padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  background: var(--red);
  border: 1px solid var(--red);
  cursor: pointer;
  transition: all 0.15s;
}

body.blog-article.pilot-paradox .tint-demo-btn:hover {
  background: transparent;
  color: var(--red);
}

body.blog-article.pilot-paradox .tint-demo-btn[disabled] {
  opacity: 0.55;
  cursor: default;
}

body.blog-article.pilot-paradox .tint-demo-status {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

body.blog-article.pilot-paradox .tint-demo-live {
  margin: 0.6rem 0 0;
  color: var(--yellow);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-height: 1.1em;
}

body.blog-article.pilot-paradox .finish-card {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(420px, calc(100vw - 32px));
  padding: 16px 16px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 20px rgba(255, 0, 0, 0.04);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 1002;
}

body.blog-article.pilot-paradox .finish-card.active {
  transform: translateY(0);
  opacity: 1;
}

body.blog-article.pilot-paradox .finish-card-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

body.blog-article.pilot-paradox .finish-card-close:hover {
  color: var(--text);
  border-color: var(--border-light);
}

body.blog-article.pilot-paradox .finish-card-title {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-family: 'Anybody', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

body.blog-article.pilot-paradox .finish-card-subtitle {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

body.blog-article.pilot-paradox .finish-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 0.9rem;
}

/* Mirrors index-v11 platform chips style inside finish card */
body.blog-article.pilot-paradox .finish-proof .platform-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.56rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--border);
  padding: 3px 8px;
  background: var(--bg-elevated);
}

body.blog-article.pilot-paradox .finish-proof .platform-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.blog-article.pilot-paradox .finish-proof .platform-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

body.blog-article.pilot-paradox .proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  padding: 3px 8px;
  color: var(--text-muted);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--bg-elevated);
}

body.blog-article.pilot-paradox .proof-pill svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

body.blog-article.pilot-paradox .finish-card-cta {
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  background: var(--red);
  border: 1px solid var(--red);
  color: var(--text);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

body.blog-article.pilot-paradox .finish-card-cta:hover {
  background: transparent;
  color: var(--red);
}

body.blog-article.pilot-paradox .finish-reminder {
  position: fixed;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--red);
  background: var(--bg-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 1001;
}

body.blog-article.pilot-paradox .finish-reminder.active {
  transform: translateY(0);
  opacity: 1;
}

body.blog-article.pilot-paradox .finish-reminder-text {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

body.blog-article.pilot-paradox .finish-reminder-cta {
  color: var(--red);
  text-decoration: none;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

body.blog-article.pilot-paradox .finish-reminder-cta:hover {
  color: var(--text);
}

body.blog-article.pilot-paradox .finish-reminder-close {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

/* Shared finish card (all blog articles)
   Keeps conversion nudge near completion even outside pilot pages. */
.blog-article .finish-card {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(420px, calc(100vw - 32px));
  padding: 16px 16px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 20px rgba(255, 0, 0, 0.04);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 1002;
}

.blog-article .finish-card.active {
  transform: translateY(0);
  opacity: 1;
}

.blog-article .finish-card-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.blog-article .finish-card-close:hover {
  color: var(--text);
  border-color: var(--border-light);
}

.blog-article .finish-card-title {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-family: 'Anybody', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.blog-article .finish-card-subtitle {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.blog-article .finish-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 0.9rem;
}

.blog-article .finish-proof .platform-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.56rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--border);
  padding: 3px 8px;
  background: var(--bg-elevated);
}

.blog-article .finish-proof .platform-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blog-article .finish-proof .platform-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.blog-article .proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  padding: 3px 8px;
  color: var(--text-muted);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--bg-elevated);
}

.blog-article .finish-card-cta {
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  background: var(--red);
  border: 1px solid var(--red);
  color: var(--text);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.blog-article .finish-card-cta:hover {
  background: transparent;
  color: var(--red);
}

.blog-article .finish-reminder {
  position: fixed;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--red);
  background: var(--bg-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 1001;
}

.blog-article .finish-reminder.active {
  transform: translateY(0);
  opacity: 1;
}

.blog-article .finish-reminder-text {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.blog-article .finish-reminder-cta {
  color: var(--red);
  text-decoration: none;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.blog-article .finish-reminder-cta:hover {
  color: var(--text);
}

.blog-article .finish-reminder-close {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.blog-article .finish-reminder-close:hover {
  color: var(--text);
  border-color: var(--border-light);
}

/* ════════════════════════════════════════════
   Conversion components (article pages)
   ════════════════════════════════════════════ */

/* Live counter strip */
.blog-article .live-counter {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.blog-article .live-counter-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-article .live-counter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
}

.blog-article .live-counter-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.blog-article .live-counter-label strong {
  color: var(--text);
  font-weight: 700;
}

.blog-article .live-counter-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--red);
}

.blog-article .live-counter-cta {
  padding: 6px 16px;
  background: var(--red);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid var(--red);
  transition: all 0.15s;
}

.blog-article .live-counter-cta:hover {
  background: transparent;
  color: var(--red);
}

/* Price timeline */
.blog-article .price-timeline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  margin: 2rem 0;
}

.blog-article .price-timeline-header {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.blog-article .price-track {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.blog-article .price-track-line {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.blog-article .price-track-progress {
  position: absolute;
  top: 5px;
  left: 0;
  width: 37%;
  height: 3px;
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
}

.blog-article .price-node {
  flex: 1;
  position: relative;
  text-align: center;
  z-index: 1;
}

.blog-article .price-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  margin: 0 auto 10px;
  position: relative;
}

.blog-article .price-node.sold-out .price-dot {
  border-color: var(--text-dim);
  background: var(--text-dim);
}

.blog-article .price-node.current .price-dot {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.blog-article .price-node.future .price-dot {
  border-color: var(--border-light);
}

.blog-article .price-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.blog-article .price-node.sold-out .price-amount {
  text-decoration: line-through;
  color: var(--text-dim);
}

.blog-article .price-node.future .price-amount {
  color: var(--text-dim);
}

.blog-article .price-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.blog-article .price-badge {
  display: inline-block;
  font-size: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 2px 6px;
  margin-top: 6px;
}

.blog-article .price-badge-soldout {
  border: 1px solid var(--text-dim);
  color: var(--text-dim);
}

.blog-article .price-badge-now {
  border: 1px solid var(--red);
  color: var(--red);
  animation: pulse 2s ease-in-out infinite;
}

/* Night banner */
.blog-article .night-banner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.blog-article .night-banner-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.blog-article .night-banner-time {
  color: var(--red);
  font-weight: 700;
}

.blog-article .night-banner-cta {
  padding: 6px 14px;
  background: var(--red);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid var(--red);
  transition: all 0.15s;
  white-space: nowrap;
}

.blog-article .night-banner-cta:hover {
  background: transparent;
  color: var(--red);
}

.blog-article .night-banner-dismiss {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.blog-article .night-banner-dismiss:hover {
  color: var(--text);
  border-color: var(--border-light);
}

/* Science breadcrumb */
.blog-article .science-breadcrumb {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid #4A90D9;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.2s;
  margin: 1.5rem 0;
}

.blog-article .science-breadcrumb:hover {
  border-color: var(--border-light);
  box-shadow: inset 0 0 20px rgba(74, 144, 217, 0.06);
}

.blog-article .science-breadcrumb-text {
  font-size: 12px;
  color: var(--text-muted);
}

.blog-article .science-breadcrumb-text strong {
  color: var(--text);
}

.blog-article .science-breadcrumb-arrow {
  font-size: 0.7rem;
  color: #4A90D9;
  font-weight: 600;
  white-space: nowrap;
}

/* Bookmark toast */
.blog-article .bookmark-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 12px 16px;
  z-index: 997;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(calc(100% + 40px));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  max-width: 320px;
}

.blog-article .bookmark-toast.visible {
  transform: translateX(0);
}

.blog-article .bookmark-toast-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.blog-article .bookmark-toast-key {
  display: inline-block;
  padding: 1px 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.6rem;
  font-weight: 600;
}

.blog-article .bookmark-toast-dismiss {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}

.blog-article .bookmark-toast-dismiss:hover {
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .blog-article .bookmark-toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
  .blog-article .science-breadcrumb {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-article .bookmark-toast {
    transition: none;
  }
}

/* Breathing red glow on CTAs */
@keyframes breathe-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 0, 0, 0); }
  50% { box-shadow: 0 0 18px rgba(255, 0, 0, 0.25); }
}

.blog-article .cta-btn,
.blog-article .live-counter-cta,
.blog-article .night-banner-cta,
.blog-article .finish-card-cta,
.blog-article .tint-demo-btn:not([disabled]) {
  animation: breathe-glow 3s ease-in-out infinite;
}

.blog-article .cta-highlight {
  animation: breathe-glow 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .blog-article .cta-btn,
  .blog-article .live-counter-cta,
  .blog-article .night-banner-cta,
  .blog-article .finish-card-cta,
  .blog-article .tint-demo-btn,
  .blog-article .cta-highlight {
    animation: none;
  }
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.2s;
}

footer a:hover { color: var(--text); }

footer .copyright {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-center { display: none; }
  .page-header { padding: 7rem 0 3rem; }
  .blog-index .featured-card { grid-template-columns: 1fr; }
  .featured-card-visual { border-left: none; border-top: 1px solid var(--border); }
  .blog-index .blog-grid { grid-template-columns: 1fr; }
  .blog-index .blog-grid-2 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .blog-article .article-layout { grid-template-columns: 1fr; gap: 0; }
  .toc-sidebar { display: none; }
  .comparison { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-index .tag-container { justify-content: flex-start; }
  .blog-article .finish-card {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
  .blog-article .finish-reminder {
    left: 12px;
    right: 12px;
    bottom: 80px;
    width: auto;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-article .finish-card {
    transition: none;
  }
  .blog-article .finish-reminder {
    transition: none;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .blog-index .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
