:root {
  /* Light theme */
  --bg: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --border-light: #d1d5db;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --green: #10b981;
  --blue: #6366f1;
  --purple: #8b5cf6;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Professional Typography - Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text);
}

h1 {
  font-size: clamp(1.75rem, 6vw, 3rem) !important;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.375rem, 4vw, 1.875rem) !important;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.125rem, 3vw, 1.25rem) !important;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: clamp(1rem, 2.5vw, 1.125rem) !important;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Paragraph and list typography */
p {
  max-width: 65ch;
  margin-bottom: 1.25rem;
}

ul, ol {
  max-width: 65ch;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

li:last-child {
  margin-bottom: 0;
}

/* Strong and emphasis */
strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

/* Mobile typography optimizations */
@media (max-width: 640px) {
  body {
    line-height: 1.6;
  }

  h1 {
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
    margin-bottom: 1.25rem !important;
  }

  h2 {
    letter-spacing: -0.015em !important;
    line-height: 1.25 !important;
    margin-top: 2rem !important;
  }

  h3 {
    letter-spacing: -0.01em !important;
    margin-top: 1.5rem !important;
  }

  p, ul, ol {
    max-width: none;
    margin-bottom: 1rem;
  }

  li {
    margin-bottom: 0.375rem;
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav, nav .logo {
  color: #fafafa;
}

nav .nav-links a {
  color: rgba(255, 255, 255, 0.7) !important;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: #ffffff !important;
}

nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  font-size: 1.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
  color: #ffffff !important;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.wide {
  max-width: 1200px;
}

/* Blog Header */
.blog-header {
  padding: 140px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

/* Abstract Animated Background */
.abstract-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(168, 85, 247, 0.2));
  top: -50px;
  left: 10%;
  animation: float1 15s ease-in-out infinite, morph1 20s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(34, 197, 94, 0.2));
  top: 20%;
  right: 5%;
  animation: float2 18s ease-in-out infinite, morph2 25s ease-in-out infinite;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(139, 92, 246, 0.2));
  bottom: 10%;
  left: 20%;
  animation: float3 12s ease-in-out infinite, morph1 18s ease-in-out infinite reverse;
}

.shape-4 {
  width: 100px;
  height: 100px;
  background: rgba(34, 197, 94, 0.4);
  top: 60%;
  right: 25%;
  animation: float4 20s ease-in-out infinite, morph2 15s ease-in-out infinite;
}

.shape-5 {
  width: 80px;
  height: 80px;
  background: rgba(59, 130, 246, 0.5);
  top: 30%;
  left: 5%;
  animation: float5 14s ease-in-out infinite, pulse 4s ease-in-out infinite;
}

.shape-6 {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
  bottom: 20%;
  right: 10%;
  animation: float6 16s ease-in-out infinite, morph1 22s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -20px) rotate(5deg); }
  50% { transform: translate(-20px, 30px) rotate(-5deg); }
  75% { transform: translate(40px, 20px) rotate(3deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-40px, 30px) rotate(-8deg); }
  50% { transform: translate(30px, -40px) rotate(5deg); }
  75% { transform: translate(-20px, -20px) rotate(-3deg); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.9); }
}

@keyframes float4 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-60px, -40px); }
  50% { transform: translate(40px, 60px); }
  75% { transform: translate(50px, -30px); }
}

@keyframes float5 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(80px, 50px) rotate(180deg); }
}

@keyframes float6 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-30px, 50px) scale(1.15); }
  50% { transform: translate(40px, 30px) scale(0.85); }
  75% { transform: translate(-50px, -20px) scale(1.05); }
}

@keyframes morph1 {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 40% 60% / 30% 60% 60% 50%; }
  75% { border-radius: 60% 30% 60% 40% / 60% 40% 50% 60%; }
}

@keyframes morph2 {
  0%, 100% { border-radius: 40% 60% 60% 40% / 40% 50% 50% 60%; }
  25% { border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%; }
  50% { border-radius: 60% 40% 50% 50% / 50% 60% 40% 60%; }
  75% { border-radius: 40% 60% 60% 40% / 60% 50% 60% 40%; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: translate(0, 0) scale(1); }
  50% { opacity: 0.8; transform: translate(80px, 50px) scale(1.2); }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .shape,
  .grid-overlay {
    animation: none;
  }
}

.blog-header .container {
  position: relative;
  z-index: 1;
}

.blog-header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.blog-header p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  padding: 60px 0 120px;
}

/* Article Card */
.article-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.article-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.article-card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e5e7eb;
}

/* Abstract animated cover patterns */

/* Cover 1: Morphing Blob */
.article-card-image.cover-1 {
  background:
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.2) 0%, transparent 40%),
    linear-gradient(135deg, #0a0a0b 0%, #111113 100%);
}

.article-card-image.cover-1::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  transform: translate(-50%, -50%);
  animation: coverMorph 8s ease-in-out infinite, coverFloat1 6s ease-in-out infinite;
  opacity: 0.8;
  filter: blur(1px);
}

.article-card-image.cover-1::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(168, 85, 247, 0.2) 100%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  transform: translate(-50%, -50%);
  animation: coverMorph 10s ease-in-out infinite reverse, coverFloat1 8s ease-in-out infinite reverse;
  opacity: 0.5;
  filter: blur(2px);
}

/* Cover 2: Rotating Rings */
.article-card-image.cover-2 {
  background:
    conic-gradient(from 45deg at 50% 50%, rgba(139, 92, 246, 0.3) 0deg, transparent 60deg, rgba(59, 130, 246, 0.3) 120deg, transparent 180deg, rgba(34, 197, 94, 0.3) 240deg, transparent 300deg, rgba(139, 92, 246, 0.3) 360deg),
    linear-gradient(135deg, #0a0a0b 0%, #111113 100%);
  animation: coverRotateBg 20s linear infinite;
}

.article-card-image.cover-2::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 30px var(--accent), inset 0 0 30px rgba(139, 92, 246, 0.2);
  animation: coverPulseRing 3s ease-in-out infinite, coverRotate 10s linear infinite;
}

.article-card-image.cover-2::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: coverPulseRing 3s ease-in-out infinite 0.5s, coverRotate 15s linear infinite reverse;
}

/* Cover 3: Wave Lines */
.article-card-image.cover-3 {
  background:
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(139, 92, 246, 0.05) 10px, rgba(139, 92, 246, 0.05) 20px),
    radial-gradient(ellipse at 30% 70%, rgba(34, 197, 94, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a0b 0%, #111113 100%);
  background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
  animation: coverWavePattern 3s linear infinite;
}

.article-card-image.cover-3::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--green), var(--blue), transparent);
  transform: translate(-50%, -50%);
  animation: coverWaveLine 2s ease-in-out infinite;
  border-radius: 2px;
  box-shadow: 0 -20px 0 rgba(34, 197, 94, 0.3), 0 20px 0 rgba(59, 130, 246, 0.3);
}

.article-card-image.cover-3::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-top-color: var(--green);
  border-bottom-color: var(--purple);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: coverRotate 4s linear infinite;
  opacity: 0.6;
}

/* Cover 4: Floating Diamond */
.article-card-image.cover-4 {
  background:
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.4) 0%, transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.4) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a0b 0%, #111113 100%);
}

.article-card-image.cover-4::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transform: translate(-50%, -50%);
  animation: coverDiamondSpin 6s ease-in-out infinite, coverDiamondPulse 3s ease-in-out infinite;
  opacity: 0.8;
}

.article-card-image.cover-4::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: transparent;
  border: 2px solid rgba(59, 130, 246, 0.4);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transform: translate(-50%, -50%);
  animation: coverDiamondSpin 8s ease-in-out infinite reverse, coverDiamondPulse 4s ease-in-out infinite 0.5s;
  opacity: 0.5;
}

/* Cover 5: Pulsing Square Grid */
.article-card-image.cover-5 {
  background:
    linear-gradient(60deg, rgba(139, 92, 246, 0.1) 25%, transparent 25%, transparent 75%, rgba(139, 92, 246, 0.1) 75%),
    linear-gradient(120deg, rgba(168, 85, 247, 0.1) 25%, transparent 25%, transparent 75%, rgba(168, 85, 247, 0.1) 75%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a0b 0%, #111113 100%);
  background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%;
  animation: coverGridMove 4s linear infinite;
}

.article-card-image.cover-5::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  background: var(--accent);
  transform: translate(-50%, -50%) rotate(45deg);
  animation: coverSquarePulse 2s ease-in-out infinite, coverSquareSpin 8s linear infinite;
  opacity: 0.8;
  box-shadow: 0 0 40px var(--accent);
}

.article-card-image.cover-5::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(139, 92, 246, 0.4);
  transform: translate(-50%, -50%) rotate(45deg);
  animation: coverSquarePulse 2s ease-in-out infinite 0.3s, coverSquareSpin 12s linear infinite reverse;
  opacity: 0.6;
}

/* Cover 6: Glowing Cross */
.article-card-image.cover-6 {
  background:
    radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(168, 85, 247, 0.2) 0%, transparent 40%),
    linear-gradient(135deg, #0a0a0b 0%, #111113 100%);
}

.article-card-image.cover-6::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--purple), var(--blue), transparent);
  transform: translate(-50%, -50%);
  animation: coverCrossGlow 2s ease-in-out infinite, coverCrossRotate 10s linear infinite;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.article-card-image.cover-6::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 100px;
  background: linear-gradient(180deg, transparent, var(--green), var(--blue), var(--purple), transparent);
  transform: translate(-50%, -50%);
  animation: coverCrossGlow 2s ease-in-out infinite 0.5s, coverCrossRotate 10s linear infinite;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

/* Cover 7: Embeddings - Vector Points Grid */
.article-card-image.cover-embeddings {
  background:
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, #0a0a0b 0%, #111113 100%);
  overflow: hidden;
}

.article-card-image.cover-embeddings::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle 3px at 20% 20%, rgba(168, 85, 247, 0.8) 100%, transparent 100%),
    radial-gradient(circle 2px at 35% 30%, rgba(139, 92, 246, 0.6) 100%, transparent 100%),
    radial-gradient(circle 4px at 50% 25%, rgba(59, 130, 246, 0.7) 100%, transparent 100%),
    radial-gradient(circle 2px at 65% 35%, rgba(168, 85, 247, 0.5) 100%, transparent 100%),
    radial-gradient(circle 3px at 80% 20%, rgba(34, 197, 94, 0.6) 100%, transparent 100%),
    radial-gradient(circle 3px at 25% 50%, rgba(59, 130, 246, 0.6) 100%, transparent 100%),
    radial-gradient(circle 4px at 45% 55%, rgba(139, 92, 246, 0.8) 100%, transparent 100%),
    radial-gradient(circle 2px at 60% 45%, rgba(34, 197, 94, 0.5) 100%, transparent 100%),
    radial-gradient(circle 3px at 75% 55%, rgba(168, 85, 247, 0.7) 100%, transparent 100%),
    radial-gradient(circle 2px at 30% 70%, rgba(139, 92, 246, 0.5) 100%, transparent 100%),
    radial-gradient(circle 4px at 50% 75%, rgba(59, 130, 246, 0.8) 100%, transparent 100%),
    radial-gradient(circle 3px at 70% 70%, rgba(34, 197, 94, 0.6) 100%, transparent 100%),
    radial-gradient(circle 2px at 85% 80%, rgba(168, 85, 247, 0.5) 100%, transparent 100%),
    radial-gradient(circle 3px at 15% 85%, rgba(59, 130, 246, 0.6) 100%, transparent 100%);
  animation: coverEmbeddingsPulse 4s ease-in-out infinite;
}

.article-card-image.cover-embeddings::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(45deg, transparent 48%, rgba(168, 85, 247, 0.3) 49%, rgba(168, 85, 247, 0.3) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(59, 130, 246, 0.2) 49%, rgba(59, 130, 246, 0.2) 51%, transparent 52%),
    linear-gradient(90deg, transparent 48%, rgba(139, 92, 246, 0.2) 49%, rgba(139, 92, 246, 0.2) 51%, transparent 52%);
  background-size: 30px 30px;
  animation: coverEmbeddingsGrid 8s linear infinite;
  opacity: 0.6;
}

/* Cover 8: Pipeline - Connected Stages */
.article-card-image.cover-pipeline {
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 50%, rgba(34, 197, 94, 0.1) 100%),
    linear-gradient(135deg, #0a0a0b 0%, #111113 100%);
  overflow: hidden;
}

.article-card-image.cover-pipeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 4px;
  background: linear-gradient(90deg,
    var(--blue) 0%, var(--blue) 20%,
    transparent 20%, transparent 25%,
    var(--purple) 25%, var(--purple) 50%,
    transparent 50%, transparent 55%,
    var(--green) 55%, var(--green) 80%,
    transparent 80%);
  transform: translateY(-50%);
  border-radius: 2px;
  animation: coverPipelineFlow 3s ease-in-out infinite;
}

.article-card-image.cover-pipeline::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 100%;
  transform: translateY(-50%);
  background-image:
    radial-gradient(circle 20px at 10% 50%, var(--blue) 0%, rgba(59, 130, 246, 0.3) 40%, transparent 60%),
    radial-gradient(circle 20px at 37% 50%, var(--purple) 0%, rgba(168, 85, 247, 0.3) 40%, transparent 60%),
    radial-gradient(circle 20px at 63% 50%, var(--purple) 0%, rgba(168, 85, 247, 0.3) 40%, transparent 60%),
    radial-gradient(circle 20px at 90% 50%, var(--green) 0%, rgba(34, 197, 94, 0.3) 40%, transparent 60%);
  animation: coverPipelineNodes 2s ease-in-out infinite;
}

/* Cover 9: Agents - Fan-out/Fan-in Network */
.article-card-image.cover-agents {
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 40%),
    linear-gradient(135deg, #0a0a0b 0%, #111113 100%);
  overflow: hidden;
}

.article-card-image.cover-agents::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent) 0%, #dc2626 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 30px rgba(139, 92, 246, 0.5),
    -80px -40px 0 12px rgba(59, 130, 246, 0.8),
    80px -40px 0 12px rgba(168, 85, 247, 0.8),
    -80px 40px 0 12px rgba(34, 197, 94, 0.8),
    80px 40px 0 12px rgba(59, 130, 246, 0.8);
  animation: coverAgentsHub 3s ease-in-out infinite;
}

.article-card-image.cover-agents::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 120px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(145deg, transparent 45%, rgba(59, 130, 246, 0.4) 49%, rgba(59, 130, 246, 0.4) 51%, transparent 55%),
    linear-gradient(35deg, transparent 45%, rgba(168, 85, 247, 0.4) 49%, rgba(168, 85, 247, 0.4) 51%, transparent 55%),
    linear-gradient(215deg, transparent 45%, rgba(34, 197, 94, 0.4) 49%, rgba(34, 197, 94, 0.4) 51%, transparent 55%),
    linear-gradient(325deg, transparent 45%, rgba(59, 130, 246, 0.4) 49%, rgba(59, 130, 246, 0.4) 51%, transparent 55%);
  animation: coverAgentsLines 2s ease-in-out infinite;
}

/* Cover 10: API - Streaming Data Flow */
.article-card-image.cover-api {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 8px,
      rgba(139, 92, 246, 0.03) 8px,
      rgba(139, 92, 246, 0.03) 9px
    ),
    linear-gradient(135deg, #0a0a0b 0%, #111113 100%);
  overflow: hidden;
}

.article-card-image.cover-api::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, transparent 0%, transparent 20%, rgba(139, 92, 246, 0.6) 20%, rgba(139, 92, 246, 0.6) 22%, transparent 22%),
    linear-gradient(90deg, transparent 0%, transparent 45%, rgba(59, 130, 246, 0.5) 45%, rgba(59, 130, 246, 0.5) 48%, transparent 48%),
    linear-gradient(90deg, transparent 0%, transparent 70%, rgba(34, 197, 94, 0.6) 70%, rgba(34, 197, 94, 0.6) 73%, transparent 73%);
  animation: coverApiStream 2s linear infinite;
}

.article-card-image.cover-api::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 60px;
  border: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 8px;
  transform: translate(-50%, -50%);
  background: rgba(139, 92, 246, 0.05);
  box-shadow:
    inset 0 0 20px rgba(139, 92, 246, 0.1),
    0 0 30px rgba(139, 92, 246, 0.2);
  animation: coverApiBox 3s ease-in-out infinite;
}

/* Cover 11: io_uring - Kernel Rings */
.article-card-image.cover-iouring {
  background: linear-gradient(135deg, #0a0a0b 0%, #111113 100%);
  overflow: hidden;
}

.article-card-image.cover-iouring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--blue);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 20px rgba(139, 92, 246, 0.3),
    inset 0 0 20px rgba(59, 130, 246, 0.1);
  animation: coverIouringRing1 2s linear infinite;
}

.article-card-image.cover-iouring::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  border: 2px solid transparent;
  border-bottom-color: var(--green);
  border-left-color: var(--purple);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 15px rgba(34, 197, 94, 0.3),
    inset 0 0 15px rgba(168, 85, 247, 0.1);
  animation: coverIouringRing2 1.5s linear infinite reverse;
}

/* Cover 12: Blockchain - Chain Links */
.article-card-image.cover-blockchain {
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%),
    linear-gradient(135deg, #0a0a0b 0%, #111113 100%);
  overflow: hidden;
}

.article-card-image.cover-blockchain::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 50px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(99, 102, 241, 0.3) 5%,
      transparent 10%,
      transparent 15%,
      rgba(99, 102, 241, 0.3) 20%,
      transparent 25%,
      transparent 30%,
      rgba(139, 92, 246, 0.3) 35%,
      transparent 40%,
      transparent 45%,
      rgba(139, 92, 246, 0.3) 50%,
      transparent 55%,
      transparent 60%,
      rgba(139, 92, 246, 0.3) 65%,
      transparent 70%,
      transparent 75%,
      rgba(139, 92, 246, 0.3) 80%,
      transparent 85%);
  animation: coverBlockchainSlide 4s linear infinite;
}

.article-card-image.cover-blockchain::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 40px;
  transform: translate(-50%, -50%);
  background-image:
    radial-gradient(circle 15px at 15% 50%, rgba(99, 102, 241, 0.6) 0%, rgba(99, 102, 241, 0.2) 50%, transparent 70%),
    radial-gradient(circle 15px at 38% 50%, rgba(139, 92, 246, 0.6) 0%, rgba(139, 92, 246, 0.2) 50%, transparent 70%),
    radial-gradient(circle 15px at 62% 50%, rgba(139, 92, 246, 0.6) 0%, rgba(139, 92, 246, 0.2) 50%, transparent 70%),
    radial-gradient(circle 15px at 85% 50%, rgba(139, 92, 246, 0.6) 0%, rgba(139, 92, 246, 0.2) 50%, transparent 70%);
  animation: coverBlockchainPulse 2s ease-in-out infinite;
}

/* New cover animation keyframes */
@keyframes coverEmbeddingsPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

@keyframes coverEmbeddingsGrid {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes coverPipelineFlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes coverPipelineNodes {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

@keyframes coverAgentsHub {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes coverAgentsLines {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

@keyframes coverApiStream {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes coverApiBox {
  0%, 100% { box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.1), 0 0 30px rgba(139, 92, 246, 0.2); }
  50% { box-shadow: inset 0 0 30px rgba(139, 92, 246, 0.2), 0 0 50px rgba(139, 92, 246, 0.4); }
}

@keyframes coverIouringRing1 {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes coverIouringRing2 {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes coverBlockchainSlide {
  0% { transform: translate(-50%, -50%) translateX(-20px); opacity: 0.6; }
  50% { opacity: 1; }
  100% { transform: translate(-50%, -50%) translateX(20px); opacity: 0.6; }
}

@keyframes coverBlockchainPulse {
  0%, 100% { filter: brightness(1); }
  25% { filter: brightness(1.2); }
  50% { filter: brightness(1); }
  75% { filter: brightness(1.3); }
}

/* Cover Animation Keyframes */
@keyframes coverMorph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

@keyframes coverFloat1 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1) translateY(-5px); }
}

@keyframes coverRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes coverRotateBg {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes coverPulseRing {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.5; }
}

@keyframes coverWavePattern {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 28px 28px, 0 0, 0 0, 0 0; }
}

@keyframes coverWaveLine {
  0%, 100% { transform: translate(-50%, -50%) scaleX(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scaleX(1.3); opacity: 1; }
}

@keyframes coverDiamondSpin {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  50% { transform: translate(-50%, -50%) rotate(180deg); }
}

@keyframes coverDiamondPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); filter: brightness(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); filter: brightness(1.2); }
}

@keyframes coverGridMove {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 60px 60px, -60px -60px, 0 0, 0 0; }
}

@keyframes coverSquarePulse {
  0%, 100% { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
  50% { transform: translate(-50%, -50%) rotate(45deg) scale(1.2); }
}

@keyframes coverSquareSpin {
  0% { transform: translate(-50%, -50%) rotate(45deg); }
  100% { transform: translate(-50%, -50%) rotate(405deg); }
}

@keyframes coverCrossGlow {
  0%, 100% { opacity: 0.6; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.5); }
}

@keyframes coverCrossRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .article-card-image::before,
  .article-card-image::after,
  .article-card-image.cover-2,
  .article-card-image.cover-3,
  .article-card-image.cover-5 {
    animation: none !important;
  }
}

.article-card-content {
  padding: 28px;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.article-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent);
}

.article-tag.tutorial {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.article-tag.comparison {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
}

.article-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.article-card h2 a:hover {
  color: var(--accent);
}

.article-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.3s;
}

.read-more:hover {
  gap: 12px;
}

/* Article Page */
.article-header {
  padding: 140px 0 60px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.article-header .breadcrumbs {
  justify-content: center;
  margin-bottom: 20px;
}

.article-header .breadcrumbs a {
  color: var(--text-secondary);
}

.article-header .breadcrumbs a:hover {
  color: var(--accent);
}

.article-header .breadcrumbs .current {
  color: var(--text);
}

/* Animated header backgrounds */
.article-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.article-header.header-ai::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.article-header.header-ai::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  transform: translate(-50%, -50%);
  animation: headerMorph 12s ease-in-out infinite;
  opacity: 0.5;
  filter: blur(60px);
  pointer-events: none;
}

.article-header.header-devops::before {
  background:
    radial-gradient(circle at 30% 40%, rgba(34, 197, 94, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.15) 0%, transparent 40%);
}

.article-header.header-devops::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 10%;
  width: 80%;
  height: 40%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 50px,
    rgba(34, 197, 94, 0.05) 50px,
    rgba(34, 197, 94, 0.05) 100px
  );
  animation: headerSlide 20s linear infinite;
  pointer-events: none;
}

.article-header.header-security::before {
  background:
    radial-gradient(circle at 50% 30%, rgba(239, 68, 68, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 20% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
}

.article-header.header-security::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border: 3px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: headerPulse 3s ease-in-out infinite;
  pointer-events: none;
}

.article-header.header-tutorial::before {
  background:
    radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(34, 197, 94, 0.15) 0%, transparent 40%);
}

.article-header.header-tutorial::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: conic-gradient(from 0deg, transparent, rgba(139, 92, 246, 0.2), transparent);
  border-radius: 50%;
  animation: headerSpin 8s linear infinite;
  pointer-events: none;
}

.article-header.header-migration::before {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    linear-gradient(-135deg, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.article-header.header-migration::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3) 30%, rgba(139, 92, 246, 0.3) 70%, transparent);
  transform: translateY(-50%);
  animation: headerFlow 3s ease-in-out infinite;
  pointer-events: none;
}

.article-header.header-testing::before {
  background:
    radial-gradient(circle at 40% 40%, rgba(34, 197, 94, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 60% 60%, rgba(239, 68, 68, 0.1) 0%, transparent 30%);
}

.article-header.header-testing::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 4px;
  transform: translateX(-50%) rotate(45deg);
  animation: headerBounce 2s ease-in-out infinite;
  pointer-events: none;
}

.article-header.header-blockchain::before {
  background:
    radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.15) 0%, transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 30%);
}

.article-header.header-blockchain::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: headerBlockchain 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes headerBlockchain {
  0%, 100% { transform: translate(-50%, -50%) rotate(45deg) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) rotate(45deg) scale(1.2); opacity: 0.6; }
}

@keyframes headerMorph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translate(-50%, -50%) scale(1); }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; transform: translate(-50%, -50%) scale(1.1); }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; transform: translate(-50%, -50%) scale(0.95); }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes headerSlide {
  0% { transform: translateX(-100px); }
  100% { transform: translateX(100px); }
}

@keyframes headerPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.2; }
}

@keyframes headerSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes headerFlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@keyframes headerBounce {
  0%, 100% { transform: translateX(-50%) rotate(45deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(45deg) translateY(-20px); }
}

.article-header .article-tag {
  margin-bottom: 20px;
}

.article-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

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

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

/* Article Content */
.article-content {
  padding: 60px 0 120px;
}

.article-content h2 {
  font-size: clamp(1.5rem, 4vw, 2rem) !important;
  font-weight: 600;
  margin: 3rem 0 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}

.article-content h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem) !important;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.article-content h4 {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem) !important;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  line-height: 1.4;
  color: var(--text);
}

.article-content p {
  max-width: 65ch;
  margin-bottom: 1.5rem;
  color: #374151;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.8;
  letter-spacing: -0.01em;
}

.article-content strong {
  color: #111827;
  font-weight: 600;
}

.article-content a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: #1d4ed8;
}

.article-content ul,
.article-content ol {
  max-width: 65ch;
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
  color: #374151;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.8;
}

.article-content li:last-child {
  margin-bottom: 0;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 32px 0;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 0 12px 12px 0;
}

.article-content blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text);
}

/* Code blocks */
.article-content pre {
  background: #0d0d0f;
  border: 1px solid #1f1f23;
  border-radius: 0.75rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  overflow-x: auto;
  margin: 2rem 0;
}

.article-content pre code {
  font-family: 'Geist Mono', monospace;
  font-size: clamp(0.8125rem, 2vw, 0.9375rem);
  line-height: 1.7;
  color: #e4e4e7;
  display: block;
  background: none;
  padding: 0;
  border: none;
}

/* Code block wrapper with copy button */
.code-block-wrapper {
  position: relative;
}

.code-block-wrapper pre {
  margin: 0;
}

.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-family: 'Geist Mono', monospace;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
}

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

.code-copy-btn svg {
  width: 14px;
  height: 14px;
}

.article-content code {
  font-family: 'Geist Mono', monospace;
  font-size: 0.9em;
  background: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 0.375rem;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  font-weight: 450;
}

/* Syntax highlighting */
/* Highlight.js theme overrides */
.hljs {
  background: transparent !important;
  padding: 0 !important;
}

.hljs-keyword { color: #8b5cf6; font-weight: 500; }
.hljs-built_in { color: #a78bfa; }
.hljs-type { color: #6366f1; }
.hljs-literal { color: #8b5cf6; }
.hljs-number { color: #c084fc; }
.hljs-string,
.hljs-template-variable { color: #4ade80; }
.hljs-comment { color: #6b7280; font-style: italic; }
.hljs-function,
.hljs-title.function_ { color: #60a5fa; font-weight: 500; }
.hljs-title { color: #60a5fa; }
.hljs-property { color: #60a5fa; }
.hljs-variable,
.hljs-params { color: #fbbf24; }
.hljs-operator,
.hljs-punctuation { color: #94a3b8; }
.hljs-class,
.hljs-title.class_ { color: #22d3ee; }
.hljs-attr { color: #a78bfa; }
.hljs-name { color: #f472b6; }
.hljs-selector-tag { color: #8b5cf6; }
.hljs-attribute { color: #a78bfa; }
.hljs-section { color: #60a5fa; font-weight: 600; }

/* Callout */
.callout {
  padding: 24px 28px;
  border-radius: 12px;
  margin: 32px 0;
  border-left: 4px solid;
}

.callout-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--blue);
}

.callout-success {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--green);
}

.callout-title {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout p {
  margin: 0;
  font-size: 0.95rem;
}

/* Table */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: clamp(0.8125rem, 2.2vw, 1rem);
}

.article-content th,
.article-content td {
  padding: clamp(0.6rem, 2vw, 1rem) clamp(0.4rem, 2vw, 1.25rem);
  text-align: left;
  border-bottom: 1px solid #262626;
}

.article-content th {
  background: #111111;
  font-weight: 600;
  font-size: clamp(0.65rem, 1.8vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.article-content td {
  color: var(--text-secondary);
}

.article-content tr:hover td {
  background: #111111;
}

/* CTA Section */
.article-cta {
  margin-top: 60px;
  padding: 40px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  text-align: center;
}

.article-cta h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.article-cta p {
  margin: 0 0 24px;
  color: var(--text-secondary);
}

.article-cta .btn {
  padding: 14px 28px;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 0;
  background: #111827;
  color: #fafafa;
}

footer .container {
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  gap: 24px;
  z-index: 99;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 12px 24px;
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* Tablet */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  nav .container {
    padding: 0 16px;
  }

  .container {
    padding: 0 16px;
  }

  .blog-header {
    padding: 110px 0 50px;
  }

  .blog-header h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .blog-header p {
    font-size: 1rem;
    padding: 0 8px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 0 80px;
  }

  .article-card-content {
    padding: 20px;
  }

  .article-card h2 {
    font-size: 1.15rem;
  }

  .article-card p {
    font-size: 0.9rem;
  }

  .article-header {
    padding: 110px 0 40px;
  }

  .article-header h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    padding: 0 8px;
  }

  .article-header .article-meta {
    flex-direction: column;
    gap: 8px;
  }

  .article-content {
    padding: 40px 0 80px;
  }

  .article-content h2 {
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.02em;
  }

  .article-content h3 {
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.015em;
  }

  .article-content p,
  .article-content ul,
  .article-content ol {
    max-width: none;
    margin-bottom: 1.25rem;
    font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
    line-height: 1.7;
  }

  .article-content li {
    margin-bottom: 0.5rem;
    font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  }

  .article-content pre {
    margin: 20px -16px;
    border-radius: 0;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px -16px;
    padding: 0 16px;
  }

  .article-content th,
  .article-content td {
    white-space: nowrap;
  }

  .article-cta {
    padding: 28px 20px;
    margin-top: 40px;
  }

  .article-cta h3 {
    font-size: 1.25rem;
  }

  .callout {
    padding: 20px;
    margin: 24px 0;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

/* Table of Contents */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.article-main {
  min-width: 0;
}

.toc-sidebar {
  position: relative;
}

.toc {
  position: sticky;
  top: 100px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.toc-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

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

.toc-list a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
  transition: all 0.2s;
}

.toc-list a:hover {
  color: var(--text);
}

.toc-list a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.toc-list .toc-h3 {
  padding-left: 24px;
  font-size: 0.8rem;
}

/* Reading time badge */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Search Modal */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.search-overlay.active {
  display: flex;
}

.search-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.search-input-wrapper svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-modal-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.search-modal-input::placeholder {
  color: var(--text-muted);
}

.search-shortcut {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Geist Mono', monospace;
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}

.search-result {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.search-result:hover,
.search-result.active {
  background: rgba(139, 92, 246, 0.1);
}

.search-result-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.search-result-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.search-result-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(139, 92, 246, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 6px;
  text-transform: uppercase;
  font-weight: 600;
}

.search-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

/* Search highlight */
.search-result mark {
  background: rgba(139, 92, 246, 0.25);
  color: var(--accent);
  padding: 1px 2px;
  border-radius: 2px;
}

.search-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-footer kbd {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Geist Mono', monospace;
  margin: 0 2px;
}

/* Search trigger button */
.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.search-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light);
  color: var(--text-secondary);
}

.search-trigger svg {
  width: 16px;
  height: 16px;
}

.search-trigger .kbd {
  font-size: 0.7rem;
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Geist Mono', monospace;
}

/* RSS Link */
.rss-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: auto;
  transition: color 0.2s;
}

.rss-link:hover {
  color: var(--accent-hover);
}

.rss-link svg {
  width: 18px;
  height: 18px;
}

.blog-header-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

/* Hide TOC on mobile/tablet */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .search-modal {
    margin: 0 16px;
    max-height: 80vh;
  }

  .search-overlay {
    padding-top: 10vh;
  }

  .blog-header-meta {
    flex-direction: column;
    gap: 12px;
  }

  .search-trigger .kbd {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .blog-header h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .blog-grid {
    gap: 16px;
  }

  .article-card-image {
    height: 160px;
  }

  .article-card-content {
    padding: 16px;
  }

  .article-card h2 {
    font-size: 1.05rem;
  }

  .article-card-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .article-content pre {
    padding: 12px;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 90;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: #7c3aed;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .separator {
  color: var(--border-light);
}

.breadcrumbs .current {
  color: var(--text);
  font-weight: 500;
}

/* Blog header breadcrumbs - white text for dark bg */
.blog-header .breadcrumbs {
  color: rgba(255, 255, 255, 0.6);
}

.blog-header .breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
}

.blog-header .breadcrumbs a:hover {
  color: white;
}

.blog-header .breadcrumbs .separator {
  color: rgba(255, 255, 255, 0.4);
}

.blog-header .breadcrumbs .current {
  color: white;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .breadcrumbs {
    font-size: 0.8125rem;
  }
}
