/* CSS Variables for Theme Support */
:root {
  /* Light Theme Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-heavy: rgba(0, 0, 0, 0.15);

  /* Brand Colors */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #dbeafe;
  --secondary: #6366f1;
  --secondary-hover: #4f46e5;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);

  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 5rem 0;
  --card-padding: 2rem;

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --shadow-light: rgba(0, 0, 0, 0.2);
  --shadow-medium: rgba(0, 0, 0, 0.3);
  --shadow-heavy: rgba(0, 0, 0, 0.4);
  --primary-light: #1e3a8a;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-normal),
    color var(--transition-normal);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-normal);
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.95);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-logo i {
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

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

.playground-link {
  background: var(--gradient-primary);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.playground-link::after {
  display: none;
}

.playground-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--shadow-medium);
}

.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: rotate(180deg);
}

.hamburger {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.hamburger i {
  font-size: 1.25rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.hamburger:hover {
  background: var(--bg-secondary);
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--shadow-medium);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.floating-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 20px 40px var(--shadow-light);
  animation: float 6s ease-in-out infinite;
  max-width: 400px;
  width: 100%;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.card-dots {
  display: flex;
  gap: 0.5rem;
}

.card-dots span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--text-muted);
}

.card-dots span:nth-child(1) {
  background: #ef4444;
}
.card-dots span:nth-child(2) {
  background: #f59e0b;
}
.card-dots span:nth-child(3) {
  background: #10b981;
}

.card-title {
  font-weight: 600;
  color: var(--text-secondary);
}

.card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.processing-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  flex: 1;
}

.processing-step.active {
  background: var(--primary-light);
  color: var(--primary);
}

.processing-step i {
  font-size: 1.5rem;
}

.processing-step span {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.arrow {
  color: var(--text-muted);
  font-size: var(--font-size-lg);
  animation: pulse 2s infinite;
}

/* Hero Background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}

.floating-element {
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  opacity: 0.1;
  animation: floatRandom var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 15%;
  width: 150px;
  height: 150px;
}

.floating-element:nth-child(3) {
  bottom: 20%;
  left: 20%;
  width: 80px;
  height: 80px;
}

/* Features Section */
.features {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--card-padding);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px var(--shadow-medium);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Benchmarks Section */
.benchmarks {
  padding: var(--section-padding);
}

.benchmark-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.benchmark-chart {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--card-padding);
}

.chart-header {
  text-align: center;
  margin-bottom: 2rem;
}

.chart-header h3 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.chart-header p {
  color: var(--text-secondary);
}

.chart-container {
  position: relative;
}

/* Desktop Chart (Vertical Bars) */
.desktop-chart {
  display: flex;
}

.mobile-chart {
  display: none;
}

.chart-bars {
  align-items: end;
  justify-content: space-between;
  height: 300px;
  gap: 1rem;
  padding: 1rem 0;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.bar {
  width: 100%;
  max-width: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5rem;
  color: white;
  font-weight: 600;
  animation: growUp 1s ease var(--delay, 0s) both;
  transition: all var(--transition-normal);
}

.bar:hover {
  transform: scale(1.05);
}

.bar.kallia {
  background: var(--gradient-primary);
  --delay: 0.2s;
}
.bar.llamaindex {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --delay: 0.4s;
}
.bar.pymupdf {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --delay: 0.6s;
}
.bar.unstructured {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  --delay: 0.8s;
}

.bar-label {
  font-size: var(--font-size-xs);
  margin-bottom: 0.5rem;
}

.bar-value {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.bar-name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

.benchmark-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 25px var(--shadow-light);
}

.stat-card.winner {
  border-color: var(--primary);
  background: var(--primary-light);
}

.stat-icon {
  font-size: 2rem;
}

.stat-info h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-details span {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* Mobile Row Chart */
.row-chart {
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0;
}

.row-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.row-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.row-name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
}

.row-value {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.row-bar-container {
  width: 100%;
  height: 2rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.row-bar {
  height: 100%;
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--transition-normal);
  animation: slideInLeft 1s ease var(--delay, 0s) both;
  animation-fill-mode: both;
}

.row-bar:hover {
  filter: brightness(1.1);
}

.row-bar.kallia {
  background: var(--gradient-primary);
  --delay: 0.2s;
  animation-name: slideToKallia;
}

.row-bar.llamaindex {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --delay: 0.4s;
  animation-name: slideToLlamaIndex;
}

.row-bar.pymupdf {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --delay: 0.6s;
  animation-name: slideToPyMuPDF;
}

.row-bar.unstructured {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  --delay: 0.8s;
  animation-name: slideToUnstructured;
}

@keyframes slideToKallia {
  from {
    width: 0;
  }
  to {
    width: 92%;
  }
}

@keyframes slideToLlamaIndex {
  from {
    width: 0;
  }
  to {
    width: 86%;
  }
}

@keyframes slideToPyMuPDF {
  from {
    width: 0;
  }
  to {
    width: 82%;
  }
}

@keyframes slideToUnstructured {
  from {
    width: 0;
  }
  to {
    width: 80%;
  }
}

/* Quick Start Section */
.quickstart {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.quickstart-tabs {
  max-width: 800px;
  margin: 0 auto;
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
}

.tab-button {
  flex: 1;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-button.active {
  background: var(--gradient-primary);
  color: white;
}

.tab-content {
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.code-block {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.code-block pre {
  padding: 1.5rem;
  margin: 0;
  overflow-x: auto;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.code-block code {
  color: var(--text-primary);
}

/* Syntax highlighting for code blocks */
.code-block pre code {
  color: #f8f8f2;
}

[data-theme="light"] .code-block pre code {
  color: #1a1a1a;
}

/* Highlight specific syntax elements */
.code-block pre code .keyword {
  color: #ff6b6b;
  font-weight: 700;
}

.code-block pre code .string {
  color: #4ecdc4;
}

.code-block pre code .comment {
  color: #95a5a6;
  font-style: italic;
}

.code-block pre code .function {
  color: #bb86fc;
}

.code-block pre code .variable {
  color: #ffb347;
}

[data-theme="light"] .code-block pre code .keyword {
  color: #c62828;
  font-weight: 700;
}

[data-theme="light"] .code-block pre code .string {
  color: #00695c;
}

[data-theme="light"] .code-block pre code .comment {
  color: #546e7a;
}

[data-theme="light"] .code-block pre code .function {
  color: #5e35b1;
}

[data-theme="light"] .code-block pre code .variable {
  color: #d84315;
}

/* CTA Section */
.cta {
  padding: var(--section-padding);
  background: var(--gradient-primary);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: var(--font-size-lg);
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn-primary {
  background: white;
  color: var(--primary);
}

.cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta .btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.cta .btn-secondary:hover {
  background: white;
  color: var(--primary);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-logo i {
  font-size: 1.5rem;
}

.footer-section p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-section h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes floatRandom {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -20px) rotate(90deg);
  }
  50% {
    transform: translate(-10px, -30px) rotate(180deg);
  }
  75% {
    transform: translate(-20px, 10px) rotate(270deg);
  }
}

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

@keyframes growUp {
  from {
    height: 0;
  }
  to {
    height: var(--final-height, 100%);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .benchmark-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 6rem 0 4rem;
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

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

  /* Switch to mobile chart on screens < 768px */
  .desktop-chart {
    display: none;
  }

  .mobile-chart {
    display: flex;
  }

  .tab-buttons {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-header h2 {
    font-size: var(--font-size-3xl);
  }

  .container {
    padding: 0 1rem;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .card-content {
    flex-direction: column;
    gap: 1rem;
  }

  .arrow {
    transform: rotate(90deg);
  }
}
