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

:root {
  --color-bg: #ffffff;
  --color-bg-secondary: #f8fafc;
  --color-bg-tertiary: #f1f5f9;
  --color-bg-dark: #0f172a;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-primary: #1e40af;
  --color-primary-dark: #1e3a8a;
  --color-primary-light: #3b82f6;
  --color-accent: #0ea5e9;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-success: #059669;
  --color-warning: #d97706;
  --color-error: #dc2626;
  --color-code-bg: #0f172a;
  --color-code-text: #e2e8f0;

  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'Manrope', sans-serif;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --transition: 150ms ease;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; font-weight: 600; }

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

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

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

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

.btn-secondary:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.logo:hover {
  color: var(--color-text);
}

.logo-icon {
  color: var(--color-primary);
  font-size: 1.5rem;
}

.logo-img {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-links a.btn-primary {
  color: white;
}

.nav-links a.btn-primary:hover {
  color: white;
}

.nav-docs {
  padding: 6px 12px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

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

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.trust-logos {
  display: flex;
  gap: 24px;
}

.trust-logo {
  font-weight: 600;
  color: var(--color-text-secondary);
  opacity: 0.7;
}

/* Demo Window */
.hero-visual {
  position: relative;
}

.demo-window {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.window-header {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border-light);
}

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

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

.demo-content {
  padding: 0;
}

.demo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.demo-panel {
  padding: 16px;
}

.panel-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.demo-entities {
  background: var(--color-bg);
  border-right: 1px solid var(--color-border-light);
}

.entity {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 8px;
  border: 1px solid transparent;
}

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

.entity.active {
  background: #eff6ff;
  border-color: var(--color-primary-light);
}

.entity-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.entity-value {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.entity-citation {
  font-size: 0.7rem;
  color: var(--color-primary);
  margin-top: 4px;
  font-family: var(--font-mono);
}

.demo-pdf {
  background: var(--color-bg-tertiary);
}

.pdf-content {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  min-height: 120px;
}

.pdf-line {
  color: var(--color-text-secondary);
  padding: 2px 8px;
  border-radius: 2px;
}

.pdf-line.highlighted {
  background: #fef08a;
  color: var(--color-text);
  font-weight: 500;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

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

/* Problem Section */
.section-problem {
  background: var(--color-bg);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.problem-card {
  text-align: center;
  padding: 32px;
}

.problem-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
}

.problem-card h3 {
  margin-bottom: 12px;
}

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

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

.feature-card {
  background: var(--color-bg);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.feature-card p {
  font-size: 0.95rem;
}

/* How It Works Section */
.section-how {
  background: var(--color-bg);
}

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

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
}

.step-content h3 {
  margin-bottom: 8px;
}

/* Code Section */
.section-code {
  background: var(--color-bg);
}

/* Code Showcase - Side by Side Panels */
.code-showcase {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

.code-panel {
  flex: 1;
  background: var(--color-code-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-panel-dots {
  display: flex;
  gap: 6px;
}

.code-panel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-panel-dots span:nth-child(1) {
  background: #ff5f56;
}

.code-panel-dots span:nth-child(2) {
  background: #ffbd2e;
}

.code-panel-dots span:nth-child(3) {
  background: #27c93f;
}

.code-panel-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.code-panel-lang {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-primary-light);
  background: rgba(59, 130, 246, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
}

.code-panel-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-success);
  background: rgba(5, 150, 105, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
}

.code-panel-body {
  padding: 20px;
}

.code-panel-body pre {
  margin: 0;
}

.code-panel-body code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-code-text);
}

.code-panel-arrow {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

/* Code Features */
.code-features {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.code-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.code-feature-icon {
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.code-feature strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 2px;
}

.code-feature p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Legacy code tabs - keep for compatibility */
.code-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  background: var(--color-code-bg);
  padding: 12px 16px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.code-tab {
  padding: 10px 20px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all var(--transition);
}

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

.code-tab.active {
  background: #334155;
  color: var(--color-code-text);
}

.code-container {
  background: var(--color-code-bg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.code-block {
  display: none;
  padding: 24px;
  overflow-x: auto;
}

.code-block.active {
  display: block;
}

.code-block pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-code-text);
}

.code-keyword { color: #c678dd; }
.code-key { color: #e5c07b; }
.code-string { color: #98c379; }
.code-number { color: #d19a66; }
.code-comment { color: #5c6370; font-style: italic; }
.code-function { color: #61afef; }
.code-tag { color: #e06c75; }
.code-attr { color: #d19a66; }

/* Use Cases Section */
.section-usecases {
  background: var(--color-bg);
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.usecase-card {
  padding: 32px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.usecase-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.usecase-card p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.usecase-card ul {
  list-style: none;
}

.usecase-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.usecase-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* Deployment Section */
.section-deploy {
  background: var(--color-bg-secondary);
  padding: 80px 0;
}

.deploy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.deploy-card {
  position: relative;
  padding: 40px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: center;
}

.deploy-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.deploy-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

.deploy-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.deploy-card h3 {
  margin-bottom: 12px;
}

.deploy-card p {
  margin-bottom: 20px;
}

.deploy-card ul {
  list-style: none;
  margin-bottom: 24px;
}

.deploy-card li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
}

.deploy-card li:last-child {
  border-bottom: none;
}

/* Pricing Section */
.section-pricing {
  background: var(--color-bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: 40px 32px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

.pricing-header {
  margin-bottom: 32px;
}

.pricing-header h3 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.price-period {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
}

.pricing-features li {
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
  padding-left: 28px;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 600;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* Demo CTA Section */
.section-demo-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  padding: 80px 0;
}

.demo-cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.demo-cta-content h2 {
  color: white;
  margin-bottom: 16px;
}

.demo-cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 32px;
}

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

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

.demo-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.footer {
  background: var(--color-text);
  color: var(--color-bg-secondary);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer-social {
  margin-top: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Legal Pages */
.legal-page {
  padding: 140px 0 80px;
  min-height: calc(100vh - 300px);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

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

.legal-section h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

.legal-section h3 {
  font-size: 1rem;
  margin: 24px 0 8px;
  color: var(--color-text);
}

.legal-section p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-section ul {
  margin: 0 0 16px 24px;
}

.legal-section li {
  margin-bottom: 8px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.legal-section a {
  color: var(--color-primary);
}

.legal-section a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 100px 0 60px;
  }

  .legal-content h1 {
    font-size: 1.75rem;
  }
}

.footer-links h4 {
  color: white;
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links a {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid #374151;
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-legal a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

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

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

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card.featured {
    transform: none;
  }

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

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .section {
    padding: 60px 0;
  }

  .nav-links {
    display: none;
  }

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

  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

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

  .hero-trust {
    flex-direction: column;
    gap: 12px;
  }

  /* Prevent layout shift on mobile hero demo */
  .hero-visual .demo-window {
    min-height: 320px;
  }

  .hero-visual .demo-panel {
    min-height: 140px;
  }

  .hero-visual .pdf-content {
    min-height: 160px;
    height: 160px;
    overflow: hidden;
  }

  .demo-split {
    grid-template-columns: 1fr;
  }

  .demo-entities {
    border-right: none;
    border-bottom: 1px solid var(--color-border-light);
  }

  .features-grid,
  .problem-grid,
  .usecases-grid,
  .deploy-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .code-showcase {
    flex-direction: column;
    gap: 16px;
  }

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

  .code-features {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

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

  .hero h1 {
    font-size: 1.875rem;
  }

  .code-tabs {
    flex-wrap: wrap;
  }

  .code-tab {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .code-panel-body {
    padding: 16px;
  }

  .code-panel-body code {
    font-size: 0.7rem;
  }
}

/* =============================================
   NEW SECTIONS - Stats, Why, Gap, Solution, Demo
   ============================================= */

/* Section Label */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* Stats Bar */
.stats-bar {
  background: var(--color-text);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Why Section */
.section-why {
  background: var(--color-bg);
  padding: 100px 0;
}

.section-why .section-header {
  max-width: 800px;
}

.section-why .section-header h2 {
  font-size: 2.5rem;
  line-height: 1.3;
}

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

.why-scenario {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
  border-left: 4px solid var(--color-warning);
}

.scenario-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

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

.scenario-header h3 {
  font-size: 1.1rem;
  color: var(--color-text);
}

.why-scenario > p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.scenario-question {
  background: white;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
}

.scenario-question strong {
  color: var(--color-text);
}

.why-problems {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-problem {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}

.why-problem:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.problem-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.3;
  flex-shrink: 0;
  width: 48px;
}

.problem-content h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.problem-content p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Gap Section */
.section-gap {
  background: var(--color-bg-secondary);
  padding: 80px 0;
}

.gap-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.gap-visual {
  display: flex;
  justify-content: center;
}

.gap-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}

.gap-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 36px;
  background: transparent;
  border-radius: var(--radius-lg);
  min-width: 130px;
}

.gap-item.gap-llm {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.gap-item.gap-user {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.gap-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.gap-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 4px;
}

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

.gap-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  position: relative;
}

.gap-arrow::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-border) 0px,
    var(--color-border) 8px,
    transparent 8px,
    transparent 14px
  );
  top: 50%;
  transform: translateY(-50%);
}

.gap-arrow::after {
  display: none;
}

.gap-question {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-error);
  background: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  position: relative;
  z-index: 1;
  animation: pulse-question 2s ease-in-out infinite;
}

@keyframes pulse-question {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.gap-text h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.gap-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

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

/* Solution Section - Comparison Layout */
.section-solution {
  background: var(--color-bg-secondary);
  padding: 100px 0;
}

.comparison-container {
  display: flex;
  align-items: stretch;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.comparison-card {
  flex: 1;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 2px solid;
}

.comparison-before {
  border-color: #ef4444;
  background: #fff;
}

.comparison-after {
  border-color: #10b981;
  background: #fff;
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid;
}

.comparison-before .comparison-header {
  border-bottom-color: #fecaca;
}

.comparison-after .comparison-header {
  border-bottom-color: #a7f3d0;
}

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

.comparison-header h4 {
  font-size: 1.25rem;
  margin: 0;
}

.comparison-before .comparison-header h4 {
  color: #dc2626;
}

.comparison-after .comparison-header h4 {
  color: #059669;
}

.comparison-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.comparison-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

.comparison-before .comparison-step {
  background: #fef2f2;
  border-left: 4px solid #fca5a5;
}

.comparison-after .comparison-step {
  background: #ecfdf5;
  border-left: 4px solid #6ee7b7;
}

.comparison-step.problem {
  background: #dc2626;
  border-left-color: #dc2626;
}

.comparison-step.problem .step-text {
  color: white;
  font-weight: 600;
}

.comparison-step.success {
  background: #059669;
  border-left-color: #059669;
}

.comparison-step.success .step-text {
  color: white;
  font-weight: 600;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.comparison-before .step-num {
  background: #fca5a5;
  color: #7f1d1d;
}

.comparison-after .step-num {
  background: #6ee7b7;
  color: #064e3b;
}

.comparison-step.problem .step-num {
  background: white;
  color: #dc2626;
}

.comparison-step.success .step-num {
  background: white;
  color: #059669;
}

.step-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--color-text);
}

.step-time {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.comparison-step.problem .step-time {
  background: white;
  color: #dc2626;
}

.comparison-step.success .step-time {
  background: white;
  color: #059669;
}

.comparison-outcome {
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
}

.comparison-outcome p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
}

.comparison-outcome.bad {
  background: #fef2f2;
  border: 2px solid #fecaca;
}

.comparison-outcome.bad p {
  color: #b91c1c;
}

.comparison-outcome.good {
  background: #ecfdf5;
  border: 2px solid #a7f3d0;
}

.comparison-outcome.good p {
  color: #047857;
}

.comparison-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comparison-vs span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--color-text);
  color: white;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

/* Comparison Responsive */
@media (max-width: 768px) {
  .comparison-container {
    flex-direction: column;
  }

  .comparison-vs {
    padding: 8px 0;
  }

  .comparison-vs span {
    width: 44px;
    height: 44px;
    font-size: 0.85rem;
  }
}

/* Interactive Demo Section */
.section-interactive-demo {
  background: var(--color-bg-secondary);
  padding: 100px 0;
}

.interactive-demo {
  max-width: 1100px;
  margin: 0 auto;
}

.demo-controls {
  margin-bottom: 24px;
}

.demo-doc-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.selector-label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.doc-btn {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.doc-btn:hover {
  border-color: var(--color-primary);
}

.doc-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.demo-workspace {
  display: grid;
  grid-template-columns: 380px 1fr;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  min-height: 500px;
}

.demo-extractions {
  background: var(--color-bg);
  border-right: 1px solid var(--color-border-light);
  padding: 20px;
  overflow-y: auto;
}

.extractions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

.extractions-header h4 {
  font-size: 1rem;
}

.extraction-count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: var(--color-bg-secondary);
  padding: 4px 10px;
  border-radius: 12px;
}

.extraction-group {
  margin-bottom: 20px;
}

.group-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.extraction-item {
  padding: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 8px;
  border: 1px solid transparent;
  background: white;
}

.extraction-item:hover {
  border-color: var(--color-border);
}

.extraction-item.active {
  background: #eff6ff;
  border-color: var(--color-primary-light);
}

.extraction-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.field-name {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.field-value {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.extraction-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.confidence {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
}

.confidence.high {
  background: #ecfdf5;
  color: #047857;
}

.confidence.medium {
  background: #fffbeb;
  color: #b45309;
}

.confidence.low {
  background: #fef2f2;
  color: #b91c1c;
}

.page-ref {
  font-size: 0.75rem;
  color: var(--color-primary);
  font-family: var(--font-mono);
}

.demo-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-success {
  background: var(--color-success);
  color: white;
  border: none;
}

.btn-danger {
  background: transparent;
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

/* PDF Viewer */
.demo-pdf-viewer {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pdf-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border-light);
}

.pdf-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf-nav-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
}

.pdf-nav-btn:hover {
  background: var(--color-bg-tertiary);
}

.pdf-page-info {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.pdf-zoom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zoom-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
}

.pdf-container {
  flex: 1;
  padding: 24px;
  background: var(--color-bg-tertiary);
  overflow-y: auto;
}

.pdf-page {
  background: white;
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
  min-height: 400px;
}

.pdf-text-layer {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
}

.pdf-paragraph {
  margin-bottom: 12px;
}

.pdf-text {
  transition: all var(--transition);
}

.pdf-text.highlighted {
  background: #fef08a;
  padding: 2px 4px;
  border-radius: 2px;
  box-shadow: 0 0 0 2px #fef08a;
}

/* Citation Popup */
.pdf-citation-popup {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: none;
}

.pdf-citation-popup.visible {
  display: block;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border-light);
}

.popup-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.popup-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.popup-content {
  padding: 16px;
}

.popup-field {
  margin-bottom: 12px;
}

.popup-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.popup-value {
  font-weight: 600;
  color: var(--color-text);
}

.popup-snippet {
  font-style: italic;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.popup-location {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-primary);
}

.popup-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.demo-instruction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-border);
}

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

.demo-instruction p {
  font-size: 0.95rem;
}

/* HITL Section */
.section-hitl {
  background: var(--color-bg);
  padding: 100px 0;
}

.hitl-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hitl-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.hitl-text > p {
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.hitl-benefits {
  list-style: none;
}

.hitl-benefits li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.hitl-benefits strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 4px;
}

.hitl-benefits p {
  font-size: 0.9rem;
  margin: 0;
}

.hitl-visual {
  display: flex;
  justify-content: center;
}

.hitl-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hitl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  min-width: 70px;
  max-width: 85px;
}

.hitl-step.highlight {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.hitl-step.highlight span {
  color: white;
}

.hitl-step-icon {
  font-size: 1.25rem;
}

.hitl-step span {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.2;
}

.hitl-arrow {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Final CTA Section */
.section-final-cta {
  background: var(--color-bg-secondary);
  padding: 100px 0;
  border-top: 1px solid var(--color-border);
}

.final-cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.final-cta-content h2 {
  color: var(--color-text);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.final-cta-content > p {
  color: var(--color-text-secondary);
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
}

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

.cta-buttons .btn-primary:hover {
  background: var(--color-primary-dark);
}

.cta-buttons .btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.cta-buttons .btn-secondary:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-text-muted);
}

.cta-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Responsive - New Sections */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gap-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gap-visual {
    order: -1;
  }

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

  .demo-workspace {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .demo-extractions {
    border-right: none;
    border-bottom: 1px solid var(--color-border-light);
    max-height: none;
    padding: 16px;
  }

  .demo-pdf-viewer {
    min-height: 400px;
  }

  .pdf-citation-popup {
    display: none !important;
  }

  .hitl-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hitl-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .stat-number {
    font-size: 2rem;
  }

  .why-problem {
    flex-direction: column;
    gap: 12px;
  }

  .problem-number {
    width: auto;
  }

  .gap-diagram {
    flex-direction: column;
    padding: 12px;
  }

  .gap-item {
    padding: 20px 28px;
    min-width: 160px;
  }

  .gap-arrow {
    padding: 20px 0;
  }

  .gap-arrow::before {
    width: 3px;
    height: 40px;
    background: repeating-linear-gradient(
      180deg,
      var(--color-border) 0px,
      var(--color-border) 8px,
      transparent 8px,
      transparent 14px
    );
    transform: none;
    top: auto;
  }

  .gap-question {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .solution-flow {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-arrow {
    transform: rotate(90deg);
    margin: 4px 0;
  }

  .hitl-diagram {
    flex-direction: column;
  }

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

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

  .final-cta-content h2 {
    font-size: 1.75rem;
  }

  /* Interactive Demo Mobile Fixes */
  .section-interactive-demo {
    padding: 60px 0;
  }

  .demo-doc-selector {
    justify-content: center;
  }

  .selector-label {
    width: 100%;
    text-align: center;
    margin-bottom: 4px;
  }

  .doc-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .demo-workspace {
    border-radius: var(--radius-md);
  }

  .demo-extractions {
    padding: 12px;
  }

  .extractions-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .extraction-item {
    padding: 12px;
  }

  .extraction-field {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .field-value {
    font-size: 1.1rem;
  }

  .demo-actions {
    flex-wrap: wrap;
  }

  .demo-pdf-viewer {
    min-height: 350px;
  }

  .pdf-toolbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 12px;
  }

  .pdf-container {
    padding: 16px;
  }

  .pdf-page {
    padding: 24px;
  }

  .demo-instruction {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

}

/* ===== USE CASES PAGE ===== */

/* Use Case Hero */
.usecase-hero {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg) 100%);
  text-align: center;
}

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

.usecase-hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 24px;
}

.usecase-hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

/* Use Case Navigation */
.usecase-nav-section {
  background: var(--color-bg);
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.usecase-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.usecase-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition);
}

.usecase-nav-item:hover {
  border-color: var(--color-primary);
  background: white;
  box-shadow: var(--shadow-md);
}

.usecase-nav-icon {
  font-size: 1.25rem;
}

.usecase-nav-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Use Case Sections */
.usecase-section {
  padding: 100px 0;
  background: var(--color-bg);
  scroll-margin-top: 100px;
}

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

.usecase-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 48px;
}

.usecase-icon-large {
  font-size: 3.5rem;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.usecase-alt .usecase-icon-large {
  background: white;
}

.usecase-title-block h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 0;
}

/* Problem Statement */
.usecase-problem {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
  padding: 40px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.usecase-alt .usecase-problem {
  background: var(--color-bg);
}

.problem-statement h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--color-error);
}

.problem-statement p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.problem-statement p:last-child {
  margin-bottom: 0;
}

.problem-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.problem-stat {
  padding: 24px;
  background: #fef2f2;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-error);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-error);
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Solution Features */
.usecase-solution {
  margin-bottom: 60px;
}

.usecase-solution h3 {
  font-size: 1.5rem;
  margin-bottom: 32px;
  color: var(--color-text);
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.solution-feature {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}

.usecase-alt .solution-feature {
  background: var(--color-bg);
}

.solution-feature:hover {
  border-color: var(--color-success);
  box-shadow: var(--shadow-md);
}

.feature-check {
  width: 32px;
  height: 32px;
  background: #ecfdf5;
  color: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* Example Demo */
.usecase-example {
  margin-bottom: 48px;
  background: var(--color-code-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.example-header {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.example-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary-light);
  background: rgba(59, 130, 246, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.example-header h4 {
  font-size: 1rem;
  color: white;
  margin: 0;
}

.example-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.example-input,
.example-output {
  padding: 0;
}

.example-input {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.example-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.verified-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-success);
  background: rgba(5, 150, 105, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
}

.example-input pre,
.example-output pre {
  margin: 0;
  padding: 20px;
}

.example-input code,
.example-output code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-code-text);
}

/* Use Case CTA */
.usecase-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2563eb 100%);
  border-radius: var(--radius-lg);
}

.usecase-cta .cta-content h4 {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 8px;
}

.usecase-cta .cta-content p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 1rem;
}

.usecase-cta .btn {
  flex-shrink: 0;
  background: white;
  color: var(--color-primary);
}

.usecase-cta .btn:hover {
  background: var(--color-bg-secondary);
}

/* Benefits Section */
.section-benefits {
  background: var(--color-bg-secondary);
  padding: 100px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.benefit-card {
  text-align: center;
  padding: 40px 32px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.benefit-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1;
}

.benefit-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

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

/* Active nav link */
.nav-links a.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Use Cases Page Responsive */
@media (max-width: 1024px) {
  .usecase-problem {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .problem-stats {
    flex-direction: row;
  }

  .problem-stat {
    flex: 1;
  }

  .example-demo {
    grid-template-columns: 1fr;
  }

  .example-input {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .usecase-hero {
    padding: 100px 0 40px;
  }

  .usecase-hero h1 {
    font-size: 2rem;
  }

  .usecase-nav-section {
    position: static;
  }

  .usecase-nav {
    gap: 8px;
  }

  .usecase-nav-item {
    padding: 10px 16px;
  }

  .usecase-nav-label {
    font-size: 0.85rem;
  }

  .usecase-section {
    padding: 60px 0;
    scroll-margin-top: 80px;
  }

  .usecase-header {
    flex-direction: column;
    gap: 16px;
  }

  .usecase-icon-large {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .usecase-title-block h2 {
    font-size: 1.5rem;
  }

  .usecase-problem {
    padding: 24px;
  }

  .problem-stats {
    flex-direction: column;
  }

  .solution-feature {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .usecase-cta {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 32px 24px;
  }

  /* Code Examples Mobile Fixes */
  .usecase-example {
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    max-width: 100%;
    overflow: hidden;
  }

  .example-demo {
    max-width: 100%;
  }

  .example-input,
  .example-output {
    max-width: 100%;
    overflow: hidden;
  }

  .example-header {
    padding: 16px;
  }

  .example-header h4 {
    font-size: 0.9rem;
  }

  .example-panel-header {
    padding: 10px 16px;
    font-size: 0.75rem;
  }

  .verified-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .example-input pre,
  .example-output pre {
    padding: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    max-width: 100%;
  }

  .example-input code,
  .example-output code {
    font-size: 0.65rem;
    line-height: 1.5;
    display: block;
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
  }
}

@media (max-width: 480px) {
  .usecase-nav-item {
    flex: 1;
    min-width: calc(50% - 4px);
    justify-content: center;
    padding: 12px;
  }

  .usecase-nav-icon {
    font-size: 1rem;
  }

  .usecase-nav-label {
    font-size: 0.75rem;
  }

  /* Even smaller code on very small screens */
  .example-input code,
  .example-output code {
    font-size: 0.6rem;
    line-height: 1.4;
  }

  .example-input pre,
  .example-output pre {
    padding: 10px;
  }

  .example-header {
    padding: 12px;
  }

  .example-label {
    font-size: 0.6rem;
    padding: 3px 8px;
  }

  .example-header h4 {
    font-size: 0.85rem;
  }
}

/* ===== DOCUMENTATION PAGE ===== */
.docs-page {
  display: flex;
  min-height: calc(100vh - 64px);
  padding-top: 64px;
}

/* Sidebar */
.docs-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 32px 0;
}

.docs-sidebar-content {
  padding: 0 24px;
}

.docs-nav-section {
  margin-bottom: 24px;
}

.docs-nav-section h4 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.docs-nav-link {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

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

.docs-nav-link.active {
  color: var(--color-primary);
  font-weight: 500;
}

/* Main Content */
.docs-main {
  flex: 1;
  margin-left: 260px;
  padding: 48px;
  max-width: 900px;
}

.docs-content {
  max-width: 720px;
}

.docs-section {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}

.docs-section h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.docs-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.docs-section:first-child h2 {
  border-top: none;
  padding-top: 0;
}

.docs-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--color-text);
}

.docs-section p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.docs-section ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.docs-section li {
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

.docs-intro {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Callout */
.docs-callout {
  background: var(--color-bg-secondary);
  border-left: 3px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 24px;
}

.docs-callout-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.docs-callout code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-text);
}

/* Code Blocks */
.docs-code-block {
  background: var(--color-code-bg);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  overflow-x: auto;
}

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

.docs-code-block code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-code-text);
  line-height: 1.6;
}

/* Steps */
.docs-steps-vertical {
  margin: 24px 0;
}

.docs-step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.docs-step-number {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.docs-step-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.docs-step-content p {
  margin-bottom: 12px;
}

/* Endpoint */
.docs-endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-secondary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.docs-method {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.docs-method.post {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.docs-method.get {
  background: rgba(37, 99, 235, 0.15);
  color: var(--color-primary);
}

.docs-method.delete {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-error);
}

.docs-endpoint code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-text);
}

/* Code Tabs */
.code-tabs-container {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-tabs {
  display: flex;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
}

.code-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
}

.code-tab:hover {
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.03);
}

.code-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: var(--color-bg);
}

.code-panels {
  background: var(--color-code-bg);
}

.docs-section .code-panel {
  display: none;
}

.docs-section .code-panel.active {
  display: block;
}

.code-panel pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
}

.code-panel code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-code-text);
}

/* Tables */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.docs-table th {
  text-align: left;
  padding: 12px;
  background: var(--color-bg-secondary);
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.docs-table td {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  vertical-align: top;
}

.docs-table code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--color-bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-primary);
}

.docs-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* SDK List */
.docs-sdk-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.docs-sdk-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

/* Active nav link in header */
.nav-docs.active {
  color: var(--color-primary);
  font-weight: 500;
}

/* Docs Page Responsive */
@media (max-width: 1024px) {
  .docs-sidebar {
    width: 220px;
  }

  .docs-main {
    margin-left: 220px;
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .docs-page {
    flex-direction: column;
  }

  .docs-sidebar {
    position: static;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
  }

  .docs-sidebar-content {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    padding: 0 16px;
  }

  .docs-nav-section {
    margin-bottom: 0;
  }

  .docs-main {
    margin-left: 0;
    padding: 24px 16px;
  }

  .docs-section h1 {
    font-size: 1.75rem;
  }

  .docs-section h2 {
    font-size: 1.25rem;
  }

  .docs-table {
    display: block;
    overflow-x: auto;
  }

  .docs-step-item {
    flex-direction: column;
    gap: 12px;
  }
}
