: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;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.3);
  --blue: #6366f1;
  --blue-glow: rgba(99, 102, 241, 0.3);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.3);
  --cyan: #06b6d4;
  --pink: #ec4899;
}

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

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

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

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

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h4 {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  line-height: 1.4;
}

p {
  max-width: 65ch;
  margin-bottom: 1.25rem;
}

strong, b {
  font-weight: 600;
}

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

  h1 {
    letter-spacing: -0.02em;
    line-height: 1.15;
  }

  h2 {
    letter-spacing: -0.015em;
    line-height: 1.25;
  }

  h3 {
    letter-spacing: -0.01em;
  }

  p, ul, ol {
    max-width: none;
  }
}

/* Animated Background */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Floating Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.5;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(100px, -50px) scale(1.5);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50px, -100px) scale(1);
    opacity: 0.3;
  }
  75% {
    transform: translate(50px, -150px) scale(1.2);
    opacity: 0.5;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* 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);
}

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

nav .container {
  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;
  letter-spacing: -0.02em;
}

.logo span {
  font-size: 1.75rem;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.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: all 0.3s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 60px;
  position: relative;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Animated Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--green);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

/* Hero Badges Row */
.hero-badges-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-badges-row .badge {
  margin-bottom: 0;
}

.badge-free {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent);
  gap: 8px;
}

.badge-free svg {
  flex-shrink: 0;
}

/* Hero Title */
h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 28px;
  letter-spacing: -0.04em;
}

h1 .line {
  display: block;
}

h1 .highlight {
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-buttons .btn {
  padding: 16px 36px;
  font-size: 1rem;
}

/* GitHub Badges */
.github-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.github-badges a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
}

.github-badges a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.github-badges img {
  height: 20px;
}

/* Stats Bento Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 80px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-value {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px var(--accent-glow);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* Pipeline Flow Visualization */
.pipeline-flow {
  margin: 60px auto 40px;
  max-width: 600px;
}

.pipeline-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.pipeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.node-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.node-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  transition: all 0.4s;
}

.pipeline-node:hover .node-icon {
  transform: scale(1.1) translateY(-4px);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-color: var(--accent);
  box-shadow: 0 10px 40px var(--accent-glow), 0 0 60px var(--accent-glow);
}

.pipeline-node:hover .node-icon svg {
  stroke: #fff;
  filter: drop-shadow(0 0 8px var(--accent));
}

.node-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.pipeline-node:hover .node-label {
  color: var(--accent);
}

.node-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border: 2px solid var(--accent);
  border-radius: 16px;
  opacity: 0;
  animation: nodePulse 2s ease-out infinite;
}

.pipeline-node[data-step="1"] .node-pulse { animation-delay: 0s; }
.pipeline-node[data-step="2"] .node-pulse { animation-delay: 0.5s; }
.pipeline-node[data-step="3"] .node-pulse { animation-delay: 1s; }

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

.pipeline-connector {
  width: 80px;
  height: 4px;
  position: relative;
  margin: 0 8px;
}

.connector-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.6), rgba(139, 92, 246, 0.3));
  transform: translateY(-50%);
}

.connector-particle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent-glow);
  animation: particleMove 2s ease-in-out infinite;
}

.pipeline-connector:nth-of-type(2) .connector-particle {
  animation-delay: 0.5s;
}

@keyframes particleMove {
  0%, 100% {
    left: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 8px);
    opacity: 0;
  }
}

.pipeline-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Speed Comparison */
.speed-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 40px auto 60px;
  max-width: 500px;
  padding: 28px 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
}

.speed-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid var(--accent);
  border-radius: 16px;
}

.speed-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.speed-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.speed-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  max-width: 280px;
}

.speed-bar {
  position: relative;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.speed-bar .bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 8px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.flashq-bar .bar-fill {
  width: 0;
  background: var(--accent);
  animation: fillFlashq 2s ease-out 0.5s forwards;
}

@keyframes fillFlashq {
  to { width: 100%; }
}

.bullmq-bar .bar-fill {
  width: 0;
  background: rgba(255, 255, 255, 0.2);
  animation: fillBullmq 2s ease-out 0.5s forwards;
}

@keyframes fillBullmq {
  to { width: 10%; }
}

.speed-bar .bar-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  z-index: 2;
}

.speed-bar .bar-value {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Code Terminal */
.code-terminal {
  max-width: 750px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s;
  transform: perspective(1000px) rotateX(2deg);
}

.code-terminal:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-4px);
  box-shadow:
    0 50px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* Terminal Copy Button */
.terminal-copy {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.terminal-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.terminal-copy .copy-icon,
.terminal-copy .check-icon {
  width: 14px;
  height: 14px;
}

.terminal-copy .check-icon {
  display: none;
  color: var(--green);
}

.terminal-copy.copied .copy-icon {
  display: none;
}

.terminal-copy.copied .check-icon {
  display: block;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.terminal-content {
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  line-height: 2;
  overflow-x: auto;
  text-align: left;
  background: #0a0a0c;
}

.terminal-content pre {
  margin: 0;
  padding: 28px 32px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.terminal-content code {
  display: block;
  white-space: pre;
  color: #e4e4e7;
  text-align: left;
  font-size: 0.95rem;
  line-height: 2;
}

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

.hljs-keyword,
.hljs-built_in { color: #c084fc; font-weight: 500; }
.hljs-string { color: #4ade80; }
.hljs-comment { color: #6b7280; font-style: italic; }
.hljs-function,
.hljs-title.function_ { color: #60a5fa; font-weight: 500; }
.hljs-variable,
.hljs-params { color: #fbbf24; }
.hljs-number { color: #f472b6; }
.hljs-property,
.hljs-attr { color: #a78bfa; }
.hljs-literal { color: #f472b6; }
.hljs-type { color: #22d3ee; }

/* Sections */
section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

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

/* Features Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px;
}

.bento-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 36px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

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

.bento-card:hover::before {
  opacity: 1;
}

.bento-card.large {
  grid-column: span 2;
}

.bento-card.tall {
  grid-row: span 2;
}

.bento-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.bento-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  stroke-width: 2;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Icon Animations */
.bento-card:hover .bento-icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(168, 85, 247, 0.15) 100%);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.bento-card:hover .bento-icon svg {
  stroke: #fff;
  filter: drop-shadow(0 0 8px var(--accent));
  animation: iconBounce 0.6s ease-out;
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Specific icon animations based on feature */
.bento-card:nth-child(1):hover .bento-icon svg {
  animation: iconBranch 1s ease-in-out infinite;
}

@keyframes iconBranch {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.bento-card:nth-child(2):hover .bento-icon svg {
  animation: iconGauge 1s ease-in-out infinite;
}

@keyframes iconGauge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.bento-card:nth-child(3):hover .bento-icon svg {
  animation: iconPulse 0.8s ease-in-out infinite;
}

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

.bento-card:nth-child(4):hover .bento-icon svg {
  animation: iconSpin 2s linear infinite;
}

@keyframes iconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bento-card:nth-child(5):hover .bento-icon svg {
  animation: iconZap 0.5s ease-out infinite;
}

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

.bento-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Use Cases */
.use-cases-section {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.01) 50%, transparent 100%);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.use-case-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}

.use-case-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.use-case-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(168, 85, 247, 0.08) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.use-case-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  stroke-width: 2;
}

.use-case-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.use-case-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Comparison Section - Modern Design */
.comparison-section {
  background: var(--bg-secondary);
}

/* Modern Side-by-Side Comparison */
.comparison-modern {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.compare-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.compare-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, transparent);
  transition: background 0.4s;
}

.compare-flashq {
  border-color: rgba(139, 92, 246, 0.3);
}

.compare-flashq::before {
  background: var(--accent);
}

.compare-flashq:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.compare-bullmq:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.compare-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.compare-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.compare-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-badge.recommended {
  background: var(--accent);
  color: #fff;
}

.compare-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(139, 92, 246, 0.08);
  border-radius: 16px;
  margin-bottom: 24px;
}

.compare-highlight.muted {
  background: rgba(255, 255, 255, 0.03);
}

.highlight-stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.compare-highlight.muted .stat-number {
  color: var(--text-muted);
}

.stat-unit {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.highlight-backend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.backend-icon {
  font-size: 1.25rem;
}

.compare-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.feature-check {
  color: var(--green);
  font-weight: bold;
  font-size: 1rem;
}

.feature-check.dim {
  opacity: 0.5;
}

.feature-cross {
  color: #ef4444;
  font-weight: bold;
  font-size: 1rem;
  opacity: 0.7;
}

.no-feature {
  opacity: 0.6;
}

.feature-tag {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-tag.exclusive {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
  color: var(--accent);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.compare-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.price-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}

.price-tag.muted {
  color: var(--text-muted);
}

.compare-footer .btn {
  width: 100%;
}

/* VS Divider */
.compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.compare-vs span {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Legacy table styles (kept for backward compatibility) */
.comparison-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.check {
  color: var(--green);
  font-size: 1.1rem;
}

.cross {
  color: #ef4444;
  font-size: 1.1rem;
}

/* Quickstart Section */
.quickstart-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quickstart-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.quickstart-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.quickstart-section .code-block {
  position: relative;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
}

.quickstart-section .code-block pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
}

.quickstart-section .code-block code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.quickstart-section .copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.quickstart-section .copy-btn .check-icon {
  display: none;
  color: var(--green);
}

.quickstart-section .copy-btn.copied .copy-icon {
  display: none;
}

.quickstart-section .copy-btn.copied .check-icon {
  display: block;
}

.quickstart-cta {
  text-align: center;
  margin-top: 3rem;
}

@media (max-width: 640px) {
  .quickstart-step {
    flex-direction: column;
    gap: 1rem;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

/* CTA Section */
.cta-section {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

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

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

footer .container {
  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.9rem;
}

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

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

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

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

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

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 60px;
  gap: 32px;
  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.5rem;
  font-weight: 600;
  padding: 12px 24px;
  transition: color 0.3s;
}

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

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide-up {
  opacity: 0;
  transform: translateY(50px);
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 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: var(--accent-hover);
  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;
}

/* Last Updated Badge */
.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-left: 12px;
}

.last-updated svg {
  width: 14px;
  height: 14px;
}

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

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

  .last-updated {
    margin-left: 0;
    margin-top: 8px;
  }
}

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

  .bento-card.large {
    grid-column: span 1;
  }

  .bento-card.tall {
    grid-row: span 1;
  }

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

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

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

  .nav-links {
    display: none;
  }

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

  .mobile-menu {
    display: flex;
  }

  .hero {
    padding: 100px 0 40px;
    min-height: auto;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-description {
    font-size: 0.9rem;
    padding: 0 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 24px;
  }

  .github-badges {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* Pipeline Flow Mobile */
  .pipeline-flow {
    margin: 40px auto 30px;
  }

  .pipeline-container {
    flex-direction: column;
    gap: 0;
    padding: 24px 20px;
  }

  .pipeline-connector {
    width: 4px;
    height: 40px;
    margin: 8px 0;
  }

  .connector-line {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.6), rgba(139, 92, 246, 0.3));
  }

  .connector-particle {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    animation: particleMoveVertical 2s ease-in-out infinite;
  }

  @keyframes particleMoveVertical {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: calc(100% - 8px); opacity: 0; }
  }

  .node-icon {
    width: 56px;
    height: 56px;
  }

  .node-icon svg {
    width: 24px;
    height: 24px;
  }

  /* Speed Comparison Mobile */
  .speed-comparison {
    flex-direction: column;
    gap: 24px;
    padding: 24px 20px;
    margin: 30px auto 40px;
  }

  .speed-bars {
    width: 100%;
    max-width: none;
  }

  /* Modern Comparison Mobile */
  .comparison-modern {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .compare-vs {
    padding: 12px 0;
  }

  .compare-vs span {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  .compare-card {
    padding: 24px;
  }

  .compare-highlight {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 16px 12px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-card {
    padding: 24px;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .section-header p {
    font-size: 1rem;
  }

  .code-terminal {
    transform: none;
    margin: 0;
    border-radius: 12px;
    max-width: 100%;
    overflow: hidden;
  }

  .code-terminal:hover {
    transform: none;
  }

  .terminal-content {
    padding: 0;
    font-size: 0.7rem;
    line-height: 1.6;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .terminal-content pre {
    padding: 16px;
    margin: 0;
    overflow-x: auto;
  }

  .terminal-content code {
    font-size: 0.6rem;
    white-space: pre;
    display: block;
  }

  /* Comparison section mobile - show header */
  .comparison-section .section-header {
    display: block;
    margin-bottom: 40px;
  }

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

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

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

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

  .badge {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .stats-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 14px 10px;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .bento-card {
    padding: 20px;
  }

  .bento-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .bento-card h3 {
    font-size: 1.15rem;
  }

  .terminal-content {
    font-size: 0.6rem;
    padding: 0;
  }

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

  .terminal-content code {
    font-size: 0.55rem;
  }

  .use-case-card {
    padding: 24px;
  }

  .faq-card {
    padding: 20px;
  }

  /* Pipeline Flow 480px */
  .pipeline-flow {
    margin: 30px auto 20px;
  }

  .pipeline-container {
    padding: 20px 16px;
  }

  .node-icon {
    width: 48px;
    height: 48px;
  }

  .node-icon svg {
    width: 20px;
    height: 20px;
  }

  .node-label {
    font-size: 0.8rem;
  }

  .pipeline-connector {
    height: 30px;
  }

  .pipeline-caption {
    font-size: 0.75rem;
  }

  /* Speed Comparison 480px */
  .speed-comparison {
    padding: 20px 16px;
    gap: 20px;
  }

  .speed-badge {
    padding: 12px 20px;
  }

  .speed-value {
    font-size: 2rem;
  }

  .speed-bar {
    height: 32px;
  }

  .speed-bar .bar-label {
    font-size: 0.7rem;
  }

  .speed-bar .bar-value {
    font-size: 0.65rem;
  }

  /* Comparison Cards 480px */
  .compare-card {
    padding: 20px;
  }

  .compare-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .feature-item {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .feature-tag {
    font-size: 0.6rem;
    padding: 2px 6px;
  }
}
