/* ═══════════════════════════════════════════
   Juwon Seo — Blog  ✦ Cinematic Edition
   blog.seojuwon.com
   ═══════════════════════════════════════════ */

/* ── Brand Tokens ── */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0d0d1a;
  --bg-card: rgba(12, 12, 25, 0.65);
  --bg-card-hover: rgba(18, 18, 38, 0.85);
  --bg-code: rgba(12, 12, 30, 0.85);
  --bg-nav: rgba(8, 8, 15, 0.75);

  --text-primary: #f0f0ff;
  --text-secondary: #b0b0cc;
  --text-muted: #7878a0;

  --color-cyan: #00d4ff;
  --color-purple: #a855f7;
  --color-magenta: #ff3cac;

  --border-subtle: rgba(168, 85, 247, 0.12);
  --border-hover: rgba(168, 85, 247, 0.4);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, monospace;

  --content-width: 720px;
  --page-width: 1080px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--color-cyan); text-decoration: none; transition: color 0.3s, text-shadow 0.3s; }
a:hover { color: var(--color-purple); text-shadow: 0 0 12px rgba(168, 85, 247, 0.4); }

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

::selection {
  background: rgba(168, 85, 247, 0.35);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   BACKGROUND EFFECTS
   ═══════════════════════════════════════════ */

/* ── Star Field ── */
.star-field {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.15; transform: scale(1); }
  100% { opacity: 0.8; transform: scale(1.3); }
}

/* ── Aurora / Nebula ── */
.aurora {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.aurora-1 {
  width: 700px; height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.07), transparent 70%);
  top: -10%; left: -10%;
  animation: aurora-drift-1 25s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06), transparent 70%);
  top: 40%; right: -15%;
  animation: aurora-drift-2 30s ease-in-out infinite alternate;
}

.aurora-3 {
  width: 500px; height: 400px;
  background: radial-gradient(circle, rgba(255, 60, 172, 0.05), transparent 70%);
  bottom: -5%; left: 30%;
  animation: aurora-drift-3 20s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(80px, 60px) scale(1.15); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

@keyframes aurora-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-60px, -40px) scale(1.1); }
  100% { transform: translate(40px, -80px) scale(1.05); }
}

@keyframes aurora-drift-3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(50px, -30px) scale(1.2); }
  100% { transform: translate(-60px, 40px) scale(0.9); }
}

/* ── Animated Gradient Line (Top) ── */
.gradient-line {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg,
    var(--color-cyan), var(--color-purple), var(--color-magenta),
    var(--color-cyan), var(--color-purple));
  background-size: 200% 100%;
  animation: gradient-shift 4s linear infinite;
  z-index: 1000;
}

@keyframes gradient-shift {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ── Reading Progress ── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple), var(--color-magenta));
  z-index: 1001;
  width: 0%;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  transition: all 0.3s;
}

.nav-logo:hover {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
}

.nav-label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-back {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.nav-back:hover {
  color: var(--color-cyan);
  border-color: rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.05);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

.nav-back svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════
   PAGE CONTAINER
   ═══════════════════════════════════════════ */

.page {
  position: relative;
  z-index: 1;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════
   HERO (Listing Page)
   ═══════════════════════════════════════════ */

.hero {
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: clamp(56px, 10vw, 100px);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple), var(--color-magenta));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -3px;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: hero-gradient 6s ease-in-out infinite alternate;
  position: relative;
}

@keyframes hero-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Shimmer overlay */
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.15) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 1px;
  opacity: 0;
  animation: fade-up 0.8s 0.3s ease forwards;
}

.hero-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
  margin: 24px auto 0;
  border-radius: 1px;
  opacity: 0;
  animation: fade-up 0.8s 0.5s ease forwards;
}

@keyframes fade-up {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   POST GRID
   ═══════════════════════════════════════════ */

.post-grid {
  display: grid;
  gap: 24px;
  padding-bottom: 100px;
}

/* ═══════════════════════════════════════════
   POST CARD
   ═══════════════════════════════════════════ */

.post-card {
  display: block;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  overflow: hidden;
}

/* Glow backdrop on hover */
.post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(168, 85, 247, 0.08),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s;
}

.post-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow:
    0 4px 20px rgba(168, 85, 247, 0.12),
    0 8px 40px rgba(0, 212, 255, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.3);
}

.post-card:hover::before { opacity: 1; }
.post-card:hover .post-card-title { color: var(--color-cyan); text-shadow: 0 0 20px rgba(0, 212, 255, 0.2); }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.post-card-date { font-family: var(--font-mono); font-size: 12px; }
.post-card-dot { opacity: 0.4; }
.post-card-reading { font-size: 12px; }

.post-card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
  transition: all 0.3s;
  letter-spacing: -0.3px;
  position: relative;
  z-index: 1;
}

.post-card-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.tag {
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.1);
  color: var(--color-purple);
  border: 1px solid rgba(168, 85, 247, 0.15);
  transition: all 0.3s;
}

.tag:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

/* ── Featured Post Card ── */
.post-card.featured {
  border-color: rgba(168, 85, 247, 0.25);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.04), rgba(168, 85, 247, 0.06), rgba(255, 60, 172, 0.03));
  position: relative;
}

/* Animated top gradient stripe */
.post-card.featured::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg,
    var(--color-cyan), var(--color-purple), var(--color-magenta),
    var(--color-cyan));
  background-size: 200% 100%;
  animation: gradient-shift 3s linear infinite;
}

.post-card.featured:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow:
    0 4px 24px rgba(168, 85, 247, 0.15),
    0 8px 48px rgba(0, 212, 255, 0.08),
    0 24px 80px rgba(255, 60, 172, 0.05),
    0 0 100px rgba(168, 85, 247, 0.06);
}

.post-card.featured .post-card-title { font-size: 26px; }

.featured-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255, 60, 172, 0.15), rgba(168, 85, 247, 0.15));
  color: var(--color-magenta);
  border: 1px solid rgba(255, 60, 172, 0.2);
}

/* ═══════════════════════════════════════════
   ARTICLE (Post Page)
   ═══════════════════════════════════════════ */

/* ── Article Header ── */
.article-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 80px 0 48px;
  text-align: center;
}

.article-category {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--color-purple);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.article-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-divider {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--color-purple);
  opacity: 0.5;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.4);
}

/* Decorative line below header */
.article-header-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple), var(--color-magenta));
  margin: 32px auto 0;
  border-radius: 1px;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

/* ── Article Content ── */
.article-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-bottom: 60px;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 56px 0 16px;
  letter-spacing: -0.3px;
  line-height: 1.3;
  position: relative;
  padding-left: 18px;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 3px;
  height: 70%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--color-cyan), var(--color-purple));
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 40px 0 12px;
  letter-spacing: -0.2px;
}

.article-content p {
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 22px;
  color: var(--text-secondary);
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-content em {
  color: var(--color-purple);
  font-style: italic;
}

.article-content ul, .article-content ol {
  margin: 16px 0 22px 24px;
  font-size: 17px;
  line-height: 1.9;
}

.article-content li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.article-content li::marker { color: var(--color-purple); }

/* ── Blockquote ── */
.article-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--color-cyan), var(--color-purple)) 1;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.04), rgba(168, 85, 247, 0.04));
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-secondary);
  position: relative;
}

.article-content blockquote::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 48px;
  font-family: Georgia, serif;
  color: var(--color-purple);
  opacity: 0.2;
  line-height: 1;
}

.article-content blockquote p { margin-bottom: 0; padding-left: 16px; }

/* ── Inline Code ── */
.article-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-code);
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--color-cyan);
  border: 1px solid var(--border-subtle);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.15);
}

/* ── Code Block ── */
.article-content pre {
  margin: 28px 0;
  padding: 24px;
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow-x: auto;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.article-content pre:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.08);
}

.article-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  text-shadow: none;
}

.code-label {
  position: absolute;
  top: 10px; right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* Syntax colors */
.token-keyword { color: var(--color-purple); }
.token-string { color: #7ec699; }
.token-comment { color: var(--text-muted); font-style: italic; }
.token-function { color: var(--color-cyan); }
.token-number { color: var(--color-magenta); }

/* ── HR ── */
.article-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-purple), transparent);
  margin: 56px 0;
  opacity: 0.3;
}

/* ── Images ── */
.article-content img {
  border-radius: 12px;
  margin: 32px 0;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.article-content img:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.1);
}

.img-caption {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: -20px;
  margin-bottom: 24px;
}

/* ── Table ── */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}

.article-content th {
  text-align: left;
  padding: 14px 16px;
  background: rgba(168, 85, 247, 0.08);
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-hover);
}

.article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-content tr:hover td {
  background: rgba(168, 85, 247, 0.04);
}

/* ── Info Box ── */
.info-box {
  margin: 32px 0;
  padding: 22px 26px;
  border-radius: 12px;
  border: 1px solid;
  font-size: 15px;
  position: relative;
  overflow: hidden;
}

.info-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.04;
  pointer-events: none;
}

.info-box.note {
  background: rgba(0, 212, 255, 0.04);
  border-color: rgba(0, 212, 255, 0.2);
}

.info-box.note::before {
  background: radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.15), transparent 70%);
}

.info-box.warning {
  background: rgba(255, 60, 172, 0.04);
  border-color: rgba(255, 60, 172, 0.2);
}

.info-box-title {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.info-box.note .info-box-title {
  color: var(--color-cyan);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

.info-box.warning .info-box-title {
  color: var(--color-magenta);
  text-shadow: 0 0 12px rgba(255, 60, 172, 0.3);
}

.info-box p { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════
   ARTICLE FOOTER
   ═══════════════════════════════════════════ */

.article-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 0 80px;
  border-top: 1px solid var(--border-subtle);
}

.article-footer-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple), var(--color-magenta));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: white;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
  animation: avatar-glow 3s ease-in-out infinite alternate;
}

@keyframes avatar-glow {
  0%   { box-shadow: 0 0 20px rgba(168, 85, 247, 0.2); }
  100% { box-shadow: 0 0 28px rgba(0, 212, 255, 0.25); }
}

.author-info-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}

.author-info-role {
  font-size: 13px;
  color: var(--text-muted);
}

.article-nav { display: flex; justify-content: center; }

.article-nav a {
  padding: 14px 30px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-nav a:hover {
  border-color: var(--border-hover);
  color: var(--color-cyan);
  background: rgba(168, 85, 247, 0.06);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.08);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
  transform: translateX(-4px);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--text-muted);
  transition: all 0.3s;
}

.footer a:hover { color: var(--color-purple); text-shadow: 0 0 8px rgba(168, 85, 247, 0.3); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════
   TOPIC PILLS (Listing Page)
   ═══════════════════════════════════════════ */

.topic-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-sans);
  transition: all 0.3s;
  cursor: default;
  text-decoration: none;
}

.topic-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-card-hover);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.1);
  text-shadow: none;
}

.topic-pill .pill-icon {
  font-size: 15px;
  line-height: 1;
}

.topic-pill.active {
  border-color: var(--color-purple);
  color: var(--color-purple);
  background: rgba(168, 85, 247, 0.1);
}

/* ═══════════════════════════════════════════
   META ICONS
   ═══════════════════════════════════════════ */

.meta-icon {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -2px;
  margin-right: 2px;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════
   SECTION LABEL
   ═══════════════════════════════════════════ */

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-left: 2px;
}

.section-label-text {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-label-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-subtle), transparent);
}

/* ═══════════════════════════════════════════
   ABOUT CARD (Listing Page Footer)
   ═══════════════════════════════════════════ */

.about-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin-bottom: 48px;
}

.about-card-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple), var(--color-magenta));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.about-card-text { flex: 1; }

.about-card-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 4px;
}

.about-card-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-card-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.about-card-link {
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.3s;
}

.about-card-link:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  text-shadow: none;
}

/* ═══════════════════════════════════════════
   TABLE OF CONTENTS (Post Page)
   ═══════════════════════════════════════════ */

.toc {
  max-width: var(--content-width);
  margin: 0 auto 48px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}

.toc-title {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-title svg {
  width: 14px; height: 14px;
  stroke: var(--color-purple);
  fill: none;
  stroke-width: 2;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li { margin-bottom: 6px; }

.toc-link {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 12px;
  border-left: 2px solid transparent;
  display: block;
  transition: all 0.2s;
  border-radius: 0 6px 6px 0;
}

.toc-link:hover {
  color: var(--color-cyan);
  border-left-color: var(--color-cyan);
  background: rgba(0, 212, 255, 0.04);
  text-shadow: none;
}

.toc-link.active {
  color: var(--color-purple);
  border-left-color: var(--color-purple);
  background: rgba(168, 85, 247, 0.06);
}

.toc-link.toc-h3 {
  padding-left: 28px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   ARTICLE TAGS (Post Page)
   ═══════════════════════════════════════════ */

.article-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

/* ═══════════════════════════════════════════
   SHARE BAR (Post Page)
   ═══════════════════════════════════════════ */

.share-bar {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
}

.share-label {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.share-btn:hover {
  border-color: var(--border-hover);
  color: var(--color-cyan);
  background: rgba(168, 85, 247, 0.06);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.1);
  text-shadow: none;
}

.share-btn svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════
   STATS ROW (Listing Hero)
   ═══════════════════════════════════════════ */

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
  opacity: 0;
  animation: fade-up 0.8s 0.6s ease forwards;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   VISUAL COMPONENTS (Post Content)
   ═══════════════════════════════════════════ */

/* ── Intro Profile Card ── */
.intro-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.04), rgba(168, 85, 247, 0.06));
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin: 8px 0 36px;
  position: relative;
  overflow: hidden;
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple), var(--color-magenta));
}

.intro-card-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple), var(--color-magenta));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.25);
}

.intro-card-body { flex: 1; }

.intro-card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.intro-card-role {
  font-size: 14px;
  color: var(--color-purple);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.intro-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.intro-card-badges {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.intro-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.intro-badge.cyan { border-color: rgba(0, 212, 255, 0.3); color: var(--color-cyan); background: rgba(0, 212, 255, 0.06); }
.intro-badge.purple { border-color: rgba(168, 85, 247, 0.3); color: var(--color-purple); background: rgba(168, 85, 247, 0.06); }
.intro-badge.magenta { border-color: rgba(255, 60, 172, 0.3); color: var(--color-magenta); background: rgba(255, 60, 172, 0.06); }

/* ── Topic Cards Grid ── */
.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 36px;
}

.topic-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.topic-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.08);
}

.topic-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1;
}

.topic-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.topic-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.topic-card-accent {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 28px;
  margin: 28px 0 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-cyan), var(--color-purple), var(--color-magenta));
  border-radius: 1px;
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-purple);
  background: var(--bg-primary);
}

.timeline-item.active::before {
  background: var(--color-purple);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.timeline-year {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--color-purple);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.timeline-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Roadmap / Checklist ── */
.roadmap {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.3s;
}

.roadmap-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.roadmap-status {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-hover);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.roadmap-status.soon {
  border-color: var(--color-cyan);
  background: rgba(0, 212, 255, 0.1);
}

.roadmap-status.soon::after {
  content: '→';
  font-size: 11px;
  color: var(--color-cyan);
}

.roadmap-status.planned {
  border-color: var(--text-muted);
  opacity: 0.5;
}

.roadmap-body { flex: 1; }

.roadmap-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.roadmap-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.roadmap-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 6px;
  display: inline-block;
}

.roadmap-tag.cyan { background: rgba(0, 212, 255, 0.1); color: var(--color-cyan); }
.roadmap-tag.purple { background: rgba(168, 85, 247, 0.1); color: var(--color-purple); }
.roadmap-tag.magenta { background: rgba(255, 60, 172, 0.1); color: var(--color-magenta); }

/* ── Highlight / Callout Card ── */
.highlight-card {
  padding: 28px 32px;
  border-radius: 14px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  border-radius: 2px;
}

.highlight-card.cyan {
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.15);
}
.highlight-card.cyan::before { background: var(--color-cyan); box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }

.highlight-card.purple {
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.15);
}
.highlight-card.purple::before { background: var(--color-purple); box-shadow: 0 0 10px rgba(168, 85, 247, 0.3); }

.highlight-card.magenta {
  background: rgba(255, 60, 172, 0.04);
  border: 1px solid rgba(255, 60, 172, 0.15);
}
.highlight-card.magenta::before { background: var(--color-magenta); box-shadow: 0 0 10px rgba(255, 60, 172, 0.3); }

.highlight-card-label {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.highlight-card.cyan .highlight-card-label { color: var(--color-cyan); }
.highlight-card.purple .highlight-card-label { color: var(--color-purple); }
.highlight-card.magenta .highlight-card-label { color: var(--color-magenta); }

.highlight-card p { margin-bottom: 0; font-size: 15px; }

/* ── Big Quote ── */
.big-quote {
  text-align: center;
  padding: 48px 32px;
  margin: 40px 0;
  position: relative;
}

.big-quote-mark {
  font-size: 72px;
  font-family: Georgia, serif;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  opacity: 0.3;
  margin-bottom: -16px;
}

.big-quote-text {
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 12px;
}

.big-quote-author {
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Stat Blocks ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.stat-block {
  text-align: center;
  padding: 22px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.stat-block-value {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-block-value.cyan { color: var(--color-cyan); text-shadow: 0 0 16px rgba(0, 212, 255, 0.2); }
.stat-block-value.purple { color: var(--color-purple); text-shadow: 0 0 16px rgba(168, 85, 247, 0.2); }
.stat-block-value.magenta { color: var(--color-magenta); text-shadow: 0 0 16px rgba(255, 60, 172, 0.2); }

.stat-block-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Fancy Divider ── */
.divider-fancy {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
}

.divider-fancy-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle));
}

.divider-fancy-line:last-child {
  background: linear-gradient(90deg, var(--border-subtle), transparent);
}

.divider-fancy-icon {
  font-size: 14px;
  color: var(--color-purple);
  opacity: 0.5;
}

/* ── Math Block ── */
.math-block {
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 28px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-primary);
  overflow-x: auto;
  position: relative;
}

.math-block-label {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-sans);
}

.math-block .math-line {
  margin: 8px 0;
  line-height: 2;
}

.math-block .math-highlight {
  color: var(--color-cyan);
  font-weight: 600;
}

.math-block .math-accent {
  color: var(--color-purple);
  font-weight: 600;
}

.math-block .math-dim {
  color: var(--text-muted);
  font-size: 13px;
}

/* ── Diagram Container ── */
.diagram-box {
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.diagram-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple), var(--color-magenta));
  opacity: 0.6;
}

.diagram-box-title {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 600;
}

.diagram-box svg {
  max-width: 100%;
  height: auto;
}

/* ── Step-by-Step Visualization ── */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 32px 0;
}

.step-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: border-color 0.3s;
}

.step-item:first-child { border-radius: 12px 12px 0 0; }
.step-item:last-child { border-radius: 0 0 12px 12px; }
.step-item:only-child { border-radius: 12px; }
.step-item + .step-item { border-top: none; }

.step-item:hover {
  border-color: var(--border-hover);
  z-index: 1;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.step-content .step-code {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-cyan);
  overflow-x: auto;
}

/* ── Matrix / Vector Display ── */
.matrix-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.matrix {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  position: relative;
  font-family: var(--font-mono);
  font-size: 14px;
}

.matrix::before, .matrix::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
}

.matrix::before { left: 0; background: var(--color-cyan); }
.matrix::after  { right: 0; background: var(--color-cyan); }

.matrix-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: var(--font-sans);
}

.matrix .row {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.matrix .cell {
  min-width: 32px;
  text-align: center;
  color: var(--text-primary);
}

.matrix .cell.highlight { color: var(--color-cyan); font-weight: 700; }
.matrix .cell.accent { color: var(--color-purple); font-weight: 700; }

.matrix-op {
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 300;
}

/* ── Concept Card ── */
.concept-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
}

.concept-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.concept-card.concept-key::before { background: var(--color-cyan); }
.concept-card.concept-warn::before { background: var(--color-magenta); }
.concept-card.concept-idea::before { background: var(--color-purple); }
.concept-card.concept-math::before { background: linear-gradient(180deg, var(--color-cyan), var(--color-purple)); }

.concept-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.concept-card-icon {
  font-size: 20px;
}

.concept-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.concept-card-body {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.concept-card-body strong {
  color: var(--text-primary);
}

/* ── Comparison Table ── */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 28px 0;
  font-size: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.compare-table thead th {
  background: rgba(168, 85, 247, 0.1);
  color: var(--text-primary);
  font-weight: 600;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compare-table tbody td {
  padding: 14px 18px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(168, 85, 247, 0.06);
  vertical-align: top;
}

.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-table tbody tr:hover td {
  background: rgba(168, 85, 247, 0.04);
}

.compare-table .good { color: #4ade80; }
.compare-table .bad { color: #f87171; }

/* ── Analogy Box ── */
.analogy-box {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(168, 85, 247, 0.05));
  border: 1px dashed rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 28px 0;
  position: relative;
}

.analogy-box-label {
  display: inline-block;
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-cyan);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.analogy-box p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.analogy-box strong {
  color: var(--color-cyan);
}

/* ── Attention Score Visualization ── */
.attention-grid {
  display: grid;
  gap: 3px;
  margin: 20px auto;
  width: fit-content;
}

.attention-cell {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  transition: transform 0.2s;
}

.attention-cell:hover {
  transform: scale(1.15);
  z-index: 1;
}

.attention-header {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ── Process Arrow Flow ── */
.arrow-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.arrow-flow-node {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  min-width: 80px;
}

.arrow-flow-node.node-active {
  border-color: var(--color-cyan);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.15);
}

.arrow-flow-arrow {
  color: var(--text-muted);
  font-size: 18px;
}

/* ── Inline Annotation ── */
.anno {
  display: inline;
  position: relative;
  border-bottom: 2px dotted var(--color-cyan);
  cursor: help;
}

.anno::after {
  content: attr(data-note);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--color-cyan);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.anno:hover::after {
  opacity: 1;
}

/* ── Section Number Badge ── */
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-right: 10px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════
   VISUAL COMPONENTS RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .intro-card { flex-direction: column; text-align: center; padding: 24px; }
  .intro-card-badges { justify-content: center; }

  .topic-grid { grid-template-columns: 1fr; }

  .stat-grid { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stat-block { padding: 16px 10px; }
  .stat-block-value { font-size: 24px; }

  .big-quote { padding: 32px 16px; }
  .big-quote-text { font-size: 18px; }

  .roadmap-item { padding: 14px 16px; }

  .math-block { padding: 20px 16px; font-size: 13px; }
  .diagram-box { padding: 20px 16px; }
  .step-item { flex-direction: column; gap: 12px; padding: 18px; }
  .matrix-row { gap: 12px; }
  .matrix { font-size: 12px; }
  .matrix .row { gap: 10px; }
  .matrix .cell { min-width: 24px; }
  .concept-card { padding: 20px; }
  .arrow-flow { gap: 6px; }
  .arrow-flow-node { padding: 10px 14px; font-size: 12px; min-width: 60px; }
  .attention-cell { width: 38px; height: 38px; font-size: 10px; }
  .compare-table { font-size: 13px; }
  .compare-table thead th { padding: 10px 12px; }
  .compare-table tbody td { padding: 10px 12px; }
  .analogy-box { padding: 20px; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero { padding: 56px 0 40px; }
  .hero-title { letter-spacing: -1px; }

  .post-card { padding: 24px; }
  .post-card-title { font-size: 19px; }
  .post-card.featured .post-card-title { font-size: 21px; }

  .article-header { padding: 48px 0 32px; }
  .article-meta { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .article-meta-divider { display: none; }

  .article-content h2 { font-size: 22px; margin-top: 40px; }
  .article-content h3 { font-size: 18px; }
  .article-content p { font-size: 16px; }
  .article-content pre { padding: 16px; border-radius: 8px; }

  /* Mobile: reduce GPU effects */
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(8, 8, 15, 0.95);
  }

  .aurora { filter: blur(80px); opacity: 0.6; }
  .aurora-3 { display: none; }

  .post-card:hover { transform: translateY(-2px); }

  .hero-stats { gap: 24px; }
  .hero-stat-value { font-size: 22px; }

  .about-card { flex-direction: column; text-align: center; padding: 24px; }
  .about-card-links { justify-content: center; }

  .toc { padding: 20px; }

  .topic-pills { gap: 8px; }
  .topic-pill { padding: 6px 14px; font-size: 12px; }

  .share-bar { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .page { padding: 0 16px; }
  .post-card { padding: 20px; border-radius: 12px; }
  .article-content pre {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
  }
}
