/* ============================================
   jsondb-high - Premium Modern Design
   Deep Navy & Emerald with Gold Accents
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Primary Palette - Deep sophisticated colors */
  --navy-900: #0a0f1c;
  --navy-800: #111827;
  --navy-700: #1a2332;
  --navy-600: #243447;
  
  /* Emerald/Green Accents */
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.3);
  
  /* Gold/Amber Highlights */
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  
  /* Neutral Scale */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  /* Semantic Colors */
  --bg-primary: #0a0f1c;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2332;
  --bg-card: rgba(26, 35, 50, 0.6);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-primary: #10b981;
  --accent-secondary: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.4);
  --highlight: #fbbf24;
  
  --border-subtle: rgba(148, 163, 184, 0.1);
  --border-default: rgba(148, 163, 184, 0.2);
  
  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Layout */
  --nav-height: 72px;
  --max-width: 1280px;
  --content-width: 720px;
  --sidebar-width: 280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Selection */
::selection {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--slate-600);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--slate-500);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.2em 0.4em;
  background: var(--bg-tertiary);
  border-radius: 4px;
  color: var(--accent-secondary);
  border: 1px solid var(--border-default);
}

pre {
  background: var(--navy-900);
  padding: var(--space-6);
  border-radius: 12px;
  overflow-x: auto;
  margin: var(--space-6) 0;
  border: 1px solid var(--border-default);
}

pre code {
  background: none;
  padding: 0;
  border: none;
  color: var(--text-secondary);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 15, 28, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all var(--transition-base);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-logo span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: var(--space-1);
  align-items: center;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-4);
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.nav-link.active {
  color: var(--accent-secondary);
  background: rgba(16, 185, 129, 0.1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary) !important;
  padding: var(--space-2) var(--space-5);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-left: var(--space-4);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--bg-primary) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--space-16)) var(--space-6) var(--space-20);
  overflow: hidden;
}

/* Animated background gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(251, 191, 36, 0.08), transparent);
  pointer-events: none;
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-secondary);
  margin-bottom: var(--space-8);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-10);
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-value span {
  font-size: 1.5rem;
  color: var(--accent-secondary);
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  color: var(--bg-primary);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: var(--slate-700);
  border-color: var(--slate-600);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: var(--space-24) var(--space-6);
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-16);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-secondary);
  margin-bottom: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: rgba(16, 185, 129, 0.1);
  border-radius: 4px;
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* ============================================
   Feature Cards - Bento Grid Style
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.feature-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--accent-secondary);
  position: relative;
  z-index: 1;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.feature-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ============================================
   Code Section
   ============================================ */
.code-section {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
  align-items: center;
}

.code-tabs {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-2);
  background: var(--bg-tertiary);
  border-radius: 10px;
  margin-bottom: var(--space-4);
  width: fit-content;
}

.code-tab {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.code-tab:hover {
  color: var(--text-secondary);
}

.code-tab.active {
  color: var(--text-primary);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.code-block {
  background: var(--navy-900);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.code-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: var(--navy-800);
  border-bottom: 1px solid var(--border-default);
}

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

.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #10b981; }

.code-content {
  padding: var(--space-6);
  overflow-x: auto;
}

.code-content pre {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-size: 0.875rem;
  line-height: 1.8;
}

/* Syntax Highlighting */
.token-keyword { color: #c084fc; }
.token-string { color: #4ade80; }
.token-function { color: #60a5fa; }
.token-comment { color: var(--slate-500); }
.token-number { color: #fbbf24; }

/* ============================================
   Performance Stats
   ============================================ */
.performance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  max-width: var(--max-width);
  margin: 0 auto;
}

.performance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--space-8);
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
}

.performance-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.performance-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-4px);
}

.performance-card:hover::after {
  transform: scaleX(1);
}

.performance-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.performance-value span {
  font-size: 1rem;
  color: var(--accent-secondary);
}

.performance-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.performance-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   Tables
   ============================================ */
.table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th, td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(16, 185, 129, 0.03);
}

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

td code {
  font-size: 0.75rem;
}

/* ============================================
   Documentation Layout
   ============================================ */
.docs-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: var(--space-12);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-8)) var(--space-6) var(--space-16);
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
  height: calc(100vh - var(--nav-height) - var(--space-16));
  overflow-y: auto;
}

.docs-search {
  position: relative;
  margin-bottom: var(--space-6);
}

.docs-search input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  padding-left: var(--space-10);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.docs-search input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

.docs-search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.docs-nav-section {
  margin-bottom: var(--space-6);
}

.docs-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  padding-left: var(--space-3);
}

.docs-nav-list {
  list-style: none;
}

.docs-nav-item {
  margin-bottom: var(--space-1);
}

.docs-nav-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: 0.875rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
}

.docs-nav-link:hover {
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding-left: var(--space-4);
}

.docs-nav-link.active {
  color: var(--accent-secondary);
  background: rgba(16, 185, 129, 0.1);
  border-left-color: var(--accent-primary);
}

.docs-content {
  max-width: var(--content-width);
}

.docs-content h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.docs-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.docs-content h3 {
  font-size: 1.25rem;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.docs-content h4 {
  font-size: 1rem;
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  color: var(--accent-secondary);
}

.docs-content p {
  margin-bottom: var(--space-4);
}

.docs-content ul, .docs-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.docs-content li {
  margin-bottom: var(--space-2);
  color: var(--text-muted);
}

/* ============================================
   Alerts
   ============================================ */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: 10px;
  margin: var(--space-6) 0;
  border-left: 3px solid;
  font-size: 0.9375rem;
}

.alert-info {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--accent-primary);
}

.alert-warning {
  background: rgba(251, 191, 36, 0.08);
  border-color: var(--gold-500);
}

.alert strong {
  color: var(--text-primary);
}

/* ============================================
   Benchmark Charts
   ============================================ */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--space-8);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.chart-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
}

.chart-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-secondary);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  gap: var(--space-4);
  padding-bottom: var(--space-8);
}

.bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  max-width: 80px;
}

.bar {
  width: 100%;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 6px 6px 0 0;
  position: relative;
  min-height: 4px;
  transition: height 1s ease-out;
}

.bar-value {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 1s forwards;
}

.bar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.horizontal-bar-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.horizontal-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.horizontal-bar-label {
  width: 100px;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.horizontal-bar-track {
  flex: 1;
  height: 32px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  overflow: hidden;
}

.horizontal-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-3);
  width: 0;
  transition: width 1.5s ease-out;
}

.horizontal-bar-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-16) var(--space-6) var(--space-8);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.footer-logo span {
  color: var(--accent-primary);
}

.footer-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-column h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: var(--space-3);
}

.footer-link a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link a:hover {
  color: var(--accent-secondary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   Search Results
   ============================================ */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-top: var(--space-2);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  backdrop-filter: blur(10px);
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-tertiary);
}

.search-result-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.search-result-excerpt {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   Copy Button
   ============================================ */
.code-copy {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0;
}

.code-block:hover .code-copy {
  opacity: 1;
}

.code-copy:hover {
  background: var(--slate-700);
  color: var(--text-primary);
}

.code-copy.copied {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
  opacity: 1;
}

/* ============================================
   Animations
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-in {
  animation: slideUp 0.6s ease-out forwards;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

/* Intersection Observer animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feature-card.featured {
    grid-column: span 2;
  }
  
  .performance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .docs-layout {
    grid-template-columns: 1fr;
  }
  
  .docs-sidebar {
    position: static;
    height: auto;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: var(--space-6);
  }
  
  .code-section {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
    gap: var(--space-2);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-4);
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card.featured {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .performance-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-8);
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-16) var(--space-4);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}
