/* ===================================
   Fleetlit Design System
   AI-Native BaaS Platform
   =================================== */
:root {
  /* Primary Brand Colors - Refined Palette */
  --brand-primary: #7c3aed;    /* Deep violet - professional AI */
  --brand-secondary: #0891b2;  /* Cyan - tech/trust */
  --brand-accent: #6366f1;    /* Indigo - innovation */

  /* Dark Theme Base - Sophisticated Deep Tones */
  --bg-primary: #0a0f1a;      /* Deepest slate */
  --bg-secondary: #111827;    /* Rich dark slate */
  --bg-tertiary: #1f2937;     /* Mid slate */
  --bg-card: #131a2f;         /* Card background */

  /* Text Hierarchy */
  --text-primary: #f8fafc;    /* Near white */
  --text-secondary: #cbd5e1;  /* Light slate */
  --text-tertiary: #94a3b8;   /* Muted slate */
  --text-muted: #64748b;      /* Subtle slate */

  /* Semantic Colors */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.1);

  /* Border System */
  --border-default: #1e293b;
  --border-light: #334155;
  --border-lighter: #475569;

  /* Subtle Glow Effects - Refined & Elegant */
  --glow-primary: 0 0 24px rgba(124, 58, 237, 0.25);
  --glow-secondary: 0 0 24px rgba(8, 145, 178, 0.25);
  --glow-accent: 0 0 24px rgba(99, 102, 241, 0.2);

  /* Professional Shadows */
  --shadow-xs: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.05);

  /* Refined Gradients - 2-Color Max */
  --gradient-brand: linear-gradient(135deg, #7c3aed 0%, #0891b2 100%);
  --gradient-accent: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  --gradient-dark: linear-gradient(135deg, #0a0f1a 0%, #111827 100%);
  --gradient-card: linear-gradient(180deg, #131a2f 0%, #0f1623 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(8, 145, 178, 0.08));

  /* Glassmorphism - Strategic Use */
  --glass-bg: rgba(19, 26, 47, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 12px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', monospace;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1280px;
  --header-height: 72px;
  --content-width: 768px;
}

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

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

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  font-weight: 400;
}

/* Subtle Animated Background - Professional & Elegant */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(8, 145, 178, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: ambient-pulse 20s ease-in-out infinite;
}

@keyframes ambient-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.02); }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Link Styles */
a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-secondary);
}

/* ===================================
   Container
   =================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Narrow container for content-heavy pages */
.container-narrow {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ===================================
   Header
   =================================== */
.site-header {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-default);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-image {
  height: 40px;
  width: auto;
  display: block;
}

.logo-text {
  margin-left: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.logo-icon {
  font-size: 1.75rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.3));
  animation: logo-glow 4s ease-in-out infinite;
}

@keyframes logo-glow {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(8, 145, 178, 0.4));
  }
}

.logo-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition-base);
}

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

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--bg-tertiary);
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-base);
}

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

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

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

/* ===================================
   Hero Section
   =================================== */
.hero {
  background: var(--gradient-brand);
  color: white;
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle Grid Pattern - Professional */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-scroll 30s linear infinite;
  opacity: 0.5;
}

@keyframes grid-scroll {
  0% { transform: perspective(500px) rotateX(20deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(20deg) translateY(60px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: hero-fade-in 0.8s ease-out;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: var(--space-xl);
  display: inline-block;
  animation: logo-appear 0.8s ease-out;
}

@keyframes logo-appear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3.75rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hero-description {
  font-size: 1.1875rem;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  position: relative;
  overflow: hidden;
}

/* Primary Button - White on Hero */
.btn-primary {
  background: white;
  color: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Secondary Button - Glass on Hero */
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Primary Button - Dark Context (Content Pages) */
.btn-primary-dark {
  background: var(--gradient-brand);
  color: white;
  box-shadow: var(--glow-primary);
}

.btn-primary-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

/* Secondary Button - Dark Context */
.btn-secondary-dark {
  background: transparent;
  color: var(--brand-secondary);
  border: 1.5px solid var(--border-lighter);
}

.btn-secondary-dark:hover {
  background: var(--brand-secondary);
  color: white;
  border-color: var(--brand-secondary);
  transform: translateY(-2px);
  box-shadow: var(--glow-secondary);
}

/* ===================================
   Features Section
   =================================== */
.features {
  padding: var(--space-4xl) 0;
  background-color: var(--bg-primary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: var(--gradient-card);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient border on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--glow-primary);
  border-color: var(--border-light);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
  border: 1px solid var(--border-light);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(2deg);
  background: var(--gradient-brand);
  border-color: transparent;
  box-shadow: var(--glow-primary);
}

.feature-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

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

/* ===================================
   API Section
   =================================== */
.api-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-secondary);
}

.api-types {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.api-type {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-default);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.api-type::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-brand);
}

.api-type:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-card), var(--glow-secondary);
  border-color: var(--border-light);
}

.api-type h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.api-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: auto;
  letter-spacing: 0.05em;
}

.api-badge.public {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid var(--info);
}

.api-badge.admin {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.api-badge.sdk {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success);
}

.api-type p {
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
  line-height: 1.65;
}

/* Code Block */
.code-block {
  background: var(--bg-dark);
  color: var(--text-secondary);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.75;
  border: 1px solid var(--border-default);
  position: relative;
  margin: var(--space-sm) 0;
}

.code-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

/* ===================================
   Quick Start Section
   =================================== */
.quick-start {
  padding: var(--space-4xl) 0;
  background-color: var(--bg-primary);
}

.step-list {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--gradient-brand);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: var(--glow-primary);
  transition: all var(--transition-base);
}

.step:hover .step-number {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.5);
}

.step-content h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.step-content p {
  color: var(--text-tertiary);
  line-height: 1.65;
}

/* ===================================
   Comparison Table
   =================================== */
.comparison-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-secondary);
}

.table-wrapper {
  overflow-x: auto;
  margin-top: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  overflow: hidden;
  border: 1px solid var(--border-default);
}

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

th {
  background: var(--gradient-dark);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

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

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

tr:hover td {
  background: rgba(124, 58, 237, 0.04);
  transition: background var(--transition-fast);
}

/* ===================================
   Page Header
   =================================== */
.page-header {
  background: var(--gradient-brand);
  color: white;
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern */
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: grid-scroll 40s linear infinite;
  opacity: 0.4;
}

.page-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.page-header .subtitle {
  font-size: 1.1875rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.page-content {
  padding: var(--space-3xl) 0;
  background: var(--bg-primary);
}

/* ===================================
   Documentation Layout
   =================================== */
.doc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-3xl);
  padding: var(--space-4xl) 0;
  min-height: calc(100vh - var(--header-height) - 200px);
}

.doc-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  height: fit-content;
}

.sidebar-content {
  background: var(--bg-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
}

.sidebar-content h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  font-weight: 700;
}

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

.doc-nav li {
  margin-bottom: 0.5rem;
}

.doc-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-tertiary);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  font-weight: 500;
  font-size: 0.9375rem;
}

.doc-nav a:hover,
.doc-nav a.active {
  background: var(--gradient-subtle);
  color: var(--brand-secondary);
  transform: translateX(4px);
  border-color: var(--border-light);
}

.doc-content {
  max-width: 768px;
}

.doc-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.doc-header .subtitle {
  font-size: 1.1875rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2xl);
}

.doc-body {
  color: var(--text-tertiary);
  line-height: 1.75;
}

.doc-body h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.doc-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.doc-body ul,
.doc-body ol {
  margin: var(--space-lg) 0;
  padding-left: var(--space-xl);
}

.doc-body li {
  margin-bottom: var(--space-sm);
  line-height: 1.65;
}

.doc-body code {
  background: var(--info-bg);
  color: var(--brand-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.doc-body pre {
  background: var(--bg-dark);
  color: var(--text-secondary);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-xl) 0;
  border: 1px solid var(--border-default);
}

.doc-body pre code {
  background: none;
  padding: 0;
  color: inherit;
  border: none;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-muted);
  padding: var(--space-4xl) 0 var(--space-lg);
  margin-top: var(--space-4xl);
  border-top: 1px solid var(--border-default);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h3,
.footer-section h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.footer-section h3 {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.25rem;
}

.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: var(--space-md);
  display: block;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.footer-logo:hover {
  opacity: 1;
}

.footer-section p {
  color: var(--text-tertiary);
  line-height: 1.6;
  font-size: 0.9375rem;
}

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

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

.footer-section a {
  color: var(--text-muted);
  transition: all var(--transition-base);
  font-size: 0.9375rem;
}

.footer-section a:hover {
  color: var(--brand-secondary);
  transform: translateX(4px);
  display: inline-block;
}

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

/* ===================================
   Responsive Design
   =================================== */
/* Tablet and below */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-logo {
    width: 100px;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

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

  .hero-description {
    font-size: 1.125rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: var(--space-lg);
    flex-direction: column;
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }

  .main-nav.active {
    display: flex;
  }

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

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

  .doc-layout {
    grid-template-columns: 1fr;
    padding: var(--space-3xl) 0;
  }

  .doc-sidebar {
    position: static;
    margin-bottom: var(--space-xl);
  }

  .section-header h2 {
    font-size: 2.25rem;
  }

  .page-header h1 {
    font-size: 2.25rem;
  }

  .page-header {
    padding: var(--space-3xl) 0;
  }

  table {
    font-size: 0.875rem;
  }

  th,
  td {
    padding: var(--space-md) var(--space-sm);
  }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

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

  .hero-logo {
    width: 80px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

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

  .hero-description {
    font-size: 1.0625rem;
    max-width: 100%;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

  .btn {
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .step {
    flex-direction: column;
    gap: var(--space-md);
  }

  .step-number {
    width: 44px;
    height: 44px;
    font-size: 1.125rem;
  }

  .feature-card {
    padding: var(--space-lg);
  }

  .api-type {
    padding: var(--space-lg);
  }

  .sidebar-content {
    padding: var(--space-lg);
  }
}

/* ===================================
   Animations & Effects
   =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered fade-in animations */
.feature-card,
.api-type,
.step {
  animation: fadeIn 0.5s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.08s; }
.feature-card:nth-child(2) { animation-delay: 0.16s; }
.feature-card:nth-child(3) { animation-delay: 0.24s; }
.feature-card:nth-child(4) { animation-delay: 0.32s; }
.feature-card:nth-child(5) { animation-delay: 0.40s; }
.feature-card:nth-child(6) { animation-delay: 0.48s; }

.api-type:nth-child(1) { animation-delay: 0.1s; }
.api-type:nth-child(2) { animation-delay: 0.2s; }
.api-type:nth-child(3) { animation-delay: 0.3s; }

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }
.step:nth-child(5) { animation-delay: 0.5s; }
.step:nth-child(6) { animation-delay: 0.6s; }
