/* ===== LORE MCP Server — PREMIUM Documentation Site v3.0 ===== */
/* Major Upgrade: Particle canvas, enhanced animations, gradient borders, pipeline section */

:root {
  --lore-bg-primary: #050810;
  --lore-bg-secondary: #0a0f1a;
  --lore-bg-tertiary: #111827;
  --lore-bg-card: rgba(17, 24, 39, 0.6);
  --lore-bg-card-solid: #111827;
  --lore-bg-glass: rgba(255, 255, 255, 0.02);
  --lore-border: rgba(255, 255, 255, 0.06);
  --lore-border-hover: rgba(0, 212, 255, 0.25);
  --lore-text-primary: #f0f4f8;
  --lore-text-secondary: #94a3b8;
  --lore-text-muted: #64748b;
  --lore-accent-cyan: #06d6f0;
  --lore-accent-blue: #3b82f6;
  --lore-accent-green: #10b981;
  --lore-accent-orange: #f59e0b;
  --lore-accent-purple: #8b5cf6;
  --lore-accent-red: #ef4444;
  --lore-accent-pink: #ec4899;
  --lore-accent-yellow: #eab308;
  --lore-gradient-hero: linear-gradient(135deg, #06d6f0 0%, #3b82f6 50%, #8b5cf6 100%);
  --lore-gradient-cta: linear-gradient(135deg, #06d6f0, #3b82f6);
  --lore-gradient-card: linear-gradient(145deg, rgba(0, 212, 255, 0.06) 0%, rgba(59, 130, 246, 0.06) 100%);
  --lore-gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
  --lore-glow-cyan: 0 0 30px rgba(6, 214, 240, 0.2), 0 0 60px rgba(6, 214, 240, 0.05);
  --lore-glow-blue: 0 0 30px rgba(59, 130, 246, 0.2);
  --lore-glow-purple: 0 0 30px rgba(139, 92, 246, 0.2);
  --lore-radius: 10px;
  --lore-radius-lg: 16px;
  --lore-radius-xl: 24px;
  --lore-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --lore-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --lore-font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--lore-font-sans);
  background-color: var(--lore-bg-primary);
  color: var(--lore-text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === PARTICLE CANVAS === */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* === GRID BACKGROUND === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* === AMBIENT GLOW === */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.glow-1 { top: -200px; left: -200px; background: #06d6f0; }
.glow-2 { bottom: -200px; right: -200px; background: #8b5cf6; }
.glow-3 { top: 50%; left: 50%; transform: translate(-50%, -50%); background: #3b82f6; opacity: 0.04; width: 900px; height: 900px; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--lore-text-primary);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { color: var(--lore-text-secondary); max-width: 70ch; }

a {
  color: var(--lore-accent-cyan);
  text-decoration: none;
  transition: var(--lore-transition);
}
a:hover { color: #38bdf8; }

code {
  font-family: var(--lore-font-mono);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  padding: 0.15em 0.45em;
  border-radius: 5px;
  font-size: 0.85em;
  color: #7dd3fc;
}

pre {
  background: var(--lore-bg-secondary);
  border: 1px solid var(--lore-border);
  border-radius: var(--lore-radius-lg);
  padding: 1.5rem;
  overflow-x: auto;
  position: relative;
  font-size: 0.85rem;
}
pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--lore-text-primary);
  font-size: 0.82rem;
  line-height: 1.9;
}

/* === GRADIENT TEXT === */
.gradient-text {
  background: var(--lore-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; position: relative; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--lore-border);
  padding: 0 1.5rem;
  transition: var(--lore-transition);
}
.navbar.scrolled {
  background: rgba(5, 8, 16, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.navbar-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 6px rgba(6, 214, 240, 0.4));
}
.hero-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 40px rgba(6, 214, 240, 0.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.navbar-title {
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--lore-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}
.navbar-links a {
  color: var(--lore-text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--lore-transition);
}
.navbar-links a:hover, .navbar-links a.active {
  color: var(--lore-text-primary);
  background: rgba(59, 130, 246, 0.08);
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-cta, .navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--lore-transition);
  text-decoration: none;
}
.btn-nav-ghost, .btn-cta-secondary {
  background: transparent;
  color: var(--lore-text-secondary);
  border: 1px solid var(--lore-border);
}
.btn-nav-ghost:hover, .btn-cta-secondary:hover { border-color: rgba(59, 130, 246, 0.3); background: rgba(59, 130, 246, 0.05); color: var(--lore-text-primary); }
.btn-nav-primary {
  background: var(--lore-gradient-cta);
  color: #060a13;
  border: none;
}
.btn-nav-primary:hover { box-shadow: var(--lore-glow-cyan); transform: translateY(-1px); color: #060a13; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--lore-text-primary);
  cursor: pointer;
  padding: 0.4rem;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 8, 16, 0.97);
  backdrop-filter: blur(24px);
  z-index: 999;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--lore-text-secondary);
  font-size: 1.05rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  transition: var(--lore-transition);
}
.mobile-nav a:hover { color: var(--lore-text-primary); background: rgba(59, 130, 246, 0.08); }

/* ===== HERO ===== */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated gradient orb */
.hero-orb {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(6, 214, 240, 0.08) 0%, rgba(59, 130, 246, 0.04) 40%, transparent 70%);
  animation: orbPulse 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orbPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

/* Animated rings */
.hero-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  pointer-events: none;
  opacity: 0.12;
}
.hero-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(6, 214, 240, 0.3);
  border-radius: 50%;
  animation: ringExpand 6s ease-in-out infinite;
}
.hero-ring:nth-child(2) { animation-delay: 2s; border-color: rgba(59, 130, 246, 0.3); }
.hero-ring:nth-child(3) { animation-delay: 4s; border-color: rgba(139, 92, 246, 0.3); }
@keyframes ringExpand {
  0% { transform: scale(0.5); opacity: 0; }
  50% { opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Hero badge with glow */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.15rem 0.4rem 0.6rem;
  background: rgba(6, 214, 240, 0.06);
  border: 1px solid rgba(6, 214, 240, 0.15);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--lore-accent-cyan);
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  animation: badgeGlow 3s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(6, 214, 240, 0); }
  50% { box-shadow: 0 0 20px rgba(6, 214, 240, 0.08); }
}
.hero-badge .pulse-dot {
  width: 7px; height: 7px;
  background: var(--lore-accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* Hero title with animated underline */
.hero h1 {
  font-weight: 800;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}
.hero .tagline {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--lore-text-secondary);
  max-width: 580px;
  margin: 0 auto 1.25rem;
  font-style: italic;
  opacity: 0.85;
}
.hero-description {
  font-size: 1.08rem;
  max-width: 660px;
  margin: 0 auto 2.5rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--lore-radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--lore-transition);
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: var(--lore-font-sans);
  position: relative;
  overflow: hidden;
}
.btn-large { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-primary {
  background: var(--lore-gradient-cta);
  color: #060a13;
}
.btn-primary:hover { box-shadow: var(--lore-glow-cyan); transform: translateY(-2px); color: #060a13; }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-outline {
  background: transparent;
  color: var(--lore-text-primary);
  border: 1px solid var(--lore-border);
}
.btn-outline:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
}

/* ===== TRY NOW CTA ===== */
.try-now {
  text-align: center;
  margin-bottom: 1.5rem;
}
.try-now-label {
  font-size: 0.78rem;
  color: var(--lore-text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.try-now-row {
  display: inline-flex;
  align-items: center;
  background: var(--lore-bg-secondary);
  border: 1px solid var(--lore-border);
  border-radius: var(--lore-radius);
  overflow: hidden;
  transition: var(--lore-transition);
}
.try-now-row:hover {
  border-color: var(--lore-border-hover);
  box-shadow: 0 0 20px rgba(6, 214, 240, 0.05);
}
.try-now-code {
  padding: 0.7rem 1.25rem;
  font-family: var(--lore-font-mono);
  font-size: 0.95rem;
  color: var(--lore-text-primary);
  letter-spacing: -0.01em;
}
.try-now-prompt {
  color: var(--lore-accent-green);
  margin-right: 0.5rem;
  font-weight: 600;
}
.try-now-copy {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1rem;
  background: rgba(6, 214, 240, 0.06);
  border: none;
  border-left: 1px solid var(--lore-border);
  color: var(--lore-accent-cyan);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--lore-transition);
  font-family: var(--lore-font-sans);
}
.try-now-copy:hover {
  background: rgba(6, 214, 240, 0.12);
}
.try-now-copy.copied {
  color: var(--lore-accent-green);
  background: rgba(16, 185, 129, 0.08);
}

/* ===== VALIDATED PROJECTS ===== */
.validated-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
}
.validated-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--lore-bg-card);
  border: 1px solid var(--lore-border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--lore-text-secondary);
  transition: var(--lore-transition);
}
.validated-card:hover {
  border-color: var(--lore-border-hover);
  color: var(--lore-text-primary);
  transform: translateY(-1px);
}
.validated-check {
  color: var(--lore-accent-green);
  display: flex;
  align-items: center;
}
.validated-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--lore-text-muted);
  margin-top: 1.5rem;
  font-style: italic;
}

/* ===== PLATFORMS SECTION ===== */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--lore-bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--lore-border);
  border-radius: var(--lore-radius-lg);
  transition: var(--lore-transition);
  gap: 0.6rem;
}
.platform-card:hover {
  border-color: var(--lore-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--lore-bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-card h4 { font-size: 0.9rem; font-weight: 600; }
.platform-card p { font-size: 0.75rem; color: var(--lore-text-muted); }
.platforms-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--lore-text-secondary);
  padding: 0.75rem 1.5rem;
  background: rgba(6, 214, 240, 0.03);
  border: 1px solid rgba(6, 214, 240, 0.08);
  border-radius: 100px;
  display: inline-block;
}
@media (max-width: 1024px) {
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .platforms-grid { grid-template-columns: 1fr; }
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.hero-badges img { height: 22px; }

/* ===== SECTION BASE ===== */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p {
  font-size: 1.08rem;
  max-width: 580px;
  margin: 0 auto;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lore-accent-cyan);
  margin-bottom: 0.75rem;
}
.section-label::before, .section-label::after {
  content: '';
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lore-accent-cyan));
}
.section-label::after { background: linear-gradient(90deg, var(--lore-accent-cyan), transparent); }

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature-card {
  background: var(--lore-bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--lore-border);
  border-radius: var(--lore-radius-lg);
  padding: 1.5rem;
  transition: var(--lore-transition);
  position: relative;
  overflow: hidden;
}
/* Gradient border on hover */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--lore-radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(6, 214, 240, 0.3), rgba(139, 92, 246, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lore-gradient-card);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.feature-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 40px rgba(6, 214, 240, 0.03);
}
.feature-card:hover::before,
.feature-card:hover::after { opacity: 1; }
.feature-card > * { position: relative; z-index: 1; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: var(--lore-transition);
}
.feature-card:hover .feature-icon { transform: scale(1.08); }
.feature-icon svg { width: 20px; height: 20px; }
.feature-icon.cyan { background: rgba(6, 214, 240, 0.1); color: var(--lore-accent-cyan); }
.feature-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--lore-accent-blue); }
.feature-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--lore-accent-green); }
.feature-icon.orange { background: rgba(245, 158, 11, 0.1); color: var(--lore-accent-orange); }
.feature-icon.purple { background: rgba(139, 92, 246, 0.1); color: var(--lore-accent-purple); }
.feature-icon.red { background: rgba(239, 68, 68, 0.1); color: var(--lore-accent-red); }
.feature-icon.pink { background: rgba(236, 72, 153, 0.1); color: var(--lore-accent-pink); }

.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.85rem; line-height: 1.6; }

/* ===== HOW IT WORKS (Pipeline) ===== */
.pipeline-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.pipeline-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--lore-bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--lore-border);
  border-radius: var(--lore-radius-xl);
  position: relative;
  transition: var(--lore-transition);
}
.pipeline-step:hover {
  border-color: var(--lore-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.pipeline-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}
.pipeline-icon.icon-scan {
  background: rgba(6, 214, 240, 0.1);
  color: var(--lore-accent-cyan);
}
.pipeline-icon.icon-analyze {
  background: rgba(139, 92, 246, 0.1);
  color: var(--lore-accent-purple);
}
.pipeline-icon.icon-inform {
  background: rgba(16, 185, 129, 0.1);
  color: var(--lore-accent-green);
}
.pipeline-step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.pipeline-step p { font-size: 0.82rem; line-height: 1.6; margin: 0 auto; }
.pipeline-arrow {
  font-size: 1.5rem;
  color: var(--lore-text-muted);
  opacity: 0.4;
  flex-shrink: 0;
}

/* ===== CODE SHOWCASE ===== */
.code-showcase {
  background: linear-gradient(135deg, rgba(10, 15, 26, 0.95), rgba(17, 24, 39, 0.95));
  border: 1px solid var(--lore-border);
  border-radius: var(--lore-radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(6, 214, 240, 0.03);
}
.code-showcase-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  background: rgba(17, 24, 39, 0.9);
  border-bottom: 1px solid var(--lore-border);
}
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #10b981; }
.code-showcase-title {
  font-size: 0.78rem;
  color: var(--lore-text-muted);
  margin-left: 0.5rem;
  font-family: var(--lore-font-mono);
}
.code-showcase pre {
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 1.5rem;
  background: transparent;
  border: none;
}

/* Syntax-colored terminal */
.term-cmd { color: #10b981; }
.term-dim { color: #475569; }
.term-label { color: #f0883e; }
.term-muted { color: #64748b; }
.term-cyan { color: #06d6f0; }
.term-green { color: #10b981; }
.term-blue { color: #60a5fa; }
.term-purple { color: #8b5cf6; }
.term-orange { color: #f59e0b; }
.term-red { color: #ef4444; }

/* Typing cursor */
.typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--lore-accent-cyan);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stat-card {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--lore-bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--lore-border);
  border-radius: var(--lore-radius-lg);
  transition: var(--lore-transition);
}
.stat-card:hover {
  border-color: var(--lore-border-hover);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}
.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  background: var(--lore-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--lore-text-muted);
  margin-top: 0.4rem;
  font-weight: 500;
}

/* ===== INSTALLATION ===== */
.install-steps { display: flex; flex-direction: column; gap: 2rem; }
.install-step { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-number {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(6, 214, 240, 0.08);
  border: 1px solid rgba(6, 214, 240, 0.15);
  color: var(--lore-accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  font-family: var(--lore-font-mono);
}
.step-content { flex: 1; }
.step-content h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step-content p { font-size: 0.9rem; margin-bottom: 0.85rem; }

.code-block-wrapper { position: relative; }
.copy-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: var(--lore-bg-tertiary);
  border: 1px solid var(--lore-border);
  color: var(--lore-text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--lore-transition);
  font-family: var(--lore-font-sans);
}
.copy-btn:hover { color: var(--lore-text-primary); border-color: rgba(59, 130, 246, 0.3); }
.copy-btn.copied { color: var(--lore-accent-green); border-color: rgba(16, 185, 129, 0.3); }

/* ===== COMPATIBILITY ===== */
.compat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.compat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--lore-bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--lore-border);
  border-radius: var(--lore-radius-lg);
  transition: var(--lore-transition);
  gap: 0.6rem;
}
.compat-card:hover {
  border-color: var(--lore-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.compat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--lore-bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.compat-card h4 { font-size: 0.9rem; font-weight: 600; }
.compat-card p { font-size: 0.75rem; color: var(--lore-text-muted); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, rgba(6, 214, 240, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
  border: 1px solid rgba(6, 214, 240, 0.08);
  border-radius: var(--lore-radius-xl);
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, transparent, rgba(6, 214, 240, 0.1), transparent, rgba(139, 92, 246, 0.1), transparent);
  border-radius: var(--lore-radius-xl);
  z-index: -1;
  animation: borderRotate 12s linear infinite;
}
@keyframes borderRotate { to { transform: rotate(360deg); } }
.cta-banner h2 { margin-bottom: 0.75rem; }
.cta-banner p { margin: 0 auto 2rem; font-size: 1.08rem; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--lore-border);
  color: var(--lore-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--lore-transition);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  color: var(--lore-accent-cyan);
  border-color: var(--lore-border-hover);
  box-shadow: var(--lore-glow-cyan);
}

/* ===== FOOTER ===== */
.footer {
  margin-top: auto;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--lore-border);
  background: rgba(5, 8, 16, 0.5);
  position: relative;
  z-index: 1;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p { font-size: 0.85rem; color: var(--lore-text-muted); margin-top: 0.5rem; max-width: 260px; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lore-text-primary);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a { font-size: 0.85rem; color: var(--lore-text-muted); }
.footer-col ul a:hover { color: var(--lore-text-primary); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lore-border);
  font-size: 0.78rem;
  color: var(--lore-text-muted);
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Scale reveal for cards */
.reveal-scale {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .compat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pipeline-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .pipeline-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .hero { padding: 6rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }
  .navbar-links { display: none; }
  .navbar-actions .btn-nav-primary { display: none; }
  .mobile-toggle { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .compat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.6rem; text-align: center; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-badges { gap: 0.4rem; }
  .hero-rings { display: none; }
  .stat-number { font-size: 2.25rem; }
  .pipeline-grid { gap: 0.4rem; }
  .pipeline-step { padding: 1.5rem 1rem; }
  .back-to-top { bottom: 1.5rem; right: 1.5rem; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .compat-grid { grid-template-columns: 1fr; }
  .hero { padding: 5rem 0 2.5rem; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--lore-bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(59, 130, 246, 0.3); }
::selection { background: rgba(6, 214, 240, 0.2); color: var(--lore-text-primary); }

/* ===== DOC PAGES ===== */
.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  min-height: calc(100vh - 60px - 180px);
  position: relative;
  z-index: 1;
}
.doc-sidebar { position: sticky; top: 80px; align-self: start; }
.doc-nav { list-style: none; border-left: 2px solid var(--lore-border); padding-left: 0.85rem; }
.doc-nav li { margin-bottom: 0.15rem; }
.doc-nav a {
  display: block;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--lore-text-muted);
  transition: var(--lore-transition);
}
.doc-nav a:hover { color: var(--lore-text-primary); background: rgba(59, 130, 246, 0.05); }
.doc-nav a.active { color: var(--lore-accent-cyan); background: rgba(6, 214, 240, 0.06); font-weight: 600; }
.doc-content { max-width: 760px; }
.doc-content h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.doc-content .doc-subtitle {
  font-size: 1rem;
  color: var(--lore-text-secondary);
  margin-bottom: 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--lore-border);
}
.doc-content h2 { font-size: 1.35rem; margin-top: 2.25rem; margin-bottom: 0.85rem; }
.doc-content h3 { font-size: 1.1rem; margin-top: 1.75rem; margin-bottom: 0.6rem; }
.doc-content p { margin-bottom: 0.85rem; line-height: 1.8; font-size: 0.95rem; }
.doc-content ul, .doc-content ol { margin-bottom: 0.85rem; padding-left: 1.25rem; }
.doc-content li { margin-bottom: 0.35rem; color: var(--lore-text-secondary); font-size: 0.92rem; line-height: 1.7; }
.doc-content pre { margin-bottom: 1.25rem; }
.info-box {
  background: rgba(6, 214, 240, 0.04);
  border-left: 3px solid var(--lore-accent-cyan);
  border-radius: 0 var(--lore-radius) var(--lore-radius) 0;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
}
.info-box p { color: var(--lore-text-secondary); font-size: 0.9rem; margin-bottom: 0; }
.warning-box {
  background: rgba(245, 158, 11, 0.04);
  border-left: 3px solid var(--lore-accent-orange);
  border-radius: 0 var(--lore-radius) var(--lore-radius) 0;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
}
.warning-box p { color: var(--lore-text-secondary); font-size: 0.9rem; margin-bottom: 0; }
.success-box {
  background: rgba(16, 185, 129, 0.04);
  border-left: 3px solid var(--lore-accent-green);
  border-radius: 0 var(--lore-radius) var(--lore-radius) 0;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
}
.success-box p { color: var(--lore-text-secondary); font-size: 0.9rem; margin-bottom: 0; }

.cmd-table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: 0.88rem; }
.cmd-table th {
  text-align: left; padding: 0.65rem 0.85rem;
  background: var(--lore-bg-tertiary);
  border: 1px solid var(--lore-border);
  color: var(--lore-text-primary); font-weight: 600; font-size: 0.8rem;
}
.cmd-table td { padding: 0.65rem 0.85rem; border: 1px solid var(--lore-border); color: var(--lore-text-secondary); }
.cmd-table tr:hover td { background: rgba(59, 130, 246, 0.03); }

.faq-item { border: 1px solid var(--lore-border); border-radius: var(--lore-radius); margin-bottom: 0.6rem; overflow: hidden; }
.faq-question {
  width: 100%; background: var(--lore-bg-card);
  border: none; padding: 0.85rem 1.1rem;
  text-align: left; color: var(--lore-text-primary);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: var(--lore-transition); font-family: var(--lore-font-sans);
}
.faq-question:hover { background: var(--lore-bg-tertiary); }
.faq-toggle { font-size: 1.15rem; color: var(--lore-text-muted); transition: var(--lore-transition); }
.faq-item.open .faq-toggle { transform: rotate(45deg); color: var(--lore-accent-cyan); }
.faq-answer { display: none; padding: 0.85rem 1.1rem; border-top: 1px solid var(--lore-border); background: var(--lore-bg-secondary); }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: 0.9rem; margin-bottom: 0; }

@media (max-width: 768px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { position: static; border-bottom: 1px solid var(--lore-border); padding-bottom: 1rem; margin-bottom: 1rem; }
}
