/* TAXIA Documentation Styles - Homepage + JS Landing */

:root {
  --primary: #3b82f6;
  --primary-dark: #1e40af;
  --primary-light: #60a5fa;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #475569;
  --border-light: #64748b;
  --code-bg: #1e293b;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-sm: 0 1px 2px 0 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);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 1000;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 100;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

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

nav .logo img {
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

nav .logo:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

nav .logo span {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

nav .links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-base), transform var(--transition-fast);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width var(--transition-base);
}

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

nav a:hover::after {
  width: 100%;
}

nav .external {
  display: flex;
  gap: 1rem;
}

nav .btn {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

nav .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

nav .btn:hover::before {
  left: 100%;
}

nav .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s;
}

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

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  padding: 8rem 2rem;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero .tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(16, 185, 129, 0.15) 100%);
  color: var(--primary-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: slideDown 0.6s ease-out;
}

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

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideDown 0.6s ease-out 0.1s both;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  animation: slideDown 0.6s ease-out 0.2s both;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: slideDown 0.6s ease-out 0.3s both;
}

.btn-primary {
  padding: 0.875rem 2.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 0.625rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  padding: 0.875rem 2.5rem;
  background: rgba(59, 130, 246, 0.08);
  color: var(--text-primary);
  border-radius: 0.625rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  border: 2px solid var(--border);
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

.hero .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  animation: slideDown 0.6s ease-out 0.4s both;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.75rem;
  transition: all var(--transition-base);
}

.stat:hover {
  transform: translateY(-4px);
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.stat .value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat .label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  font-weight: 500;
}

/* Features Section */
.features {
  padding: 7rem 2rem;
  border-bottom: 1px solid var(--border);
}

.features h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 4.5rem;
  font-size: 1.2rem;
  line-height: 1.6;
}

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

.feature-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(30, 41, 59, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

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

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

.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform var(--transition-base);
}

.feature-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  color: var(--primary-light);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Tech Section */
.tech {
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
}

.tech h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.tech .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 4rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.tech-item {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(30, 41, 59, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.tech-item:hover::before {
  transform: scaleX(1);
}

.tech-item:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 41, 59, 0.8) 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
}

.tech-item .name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.tech-item .desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Docs Section */
.docs {
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
}

.docs h2 {
  font-size: 2.5rem;
  margin-bottom: 4rem;
  text-align: center;
}

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

.doc-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(30, 41, 59, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.doc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.doc-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
  transform: translateY(-6px);
}

.doc-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: inline-block;
  transition: transform var(--transition-base);
}

.doc-card:hover .icon {
  transform: scale(1.15) rotate(-5deg);
}

.doc-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  color: var(--primary-light);
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: color var(--transition-fast);
}

.doc-card:hover h3 {
  color: var(--primary);
}

.doc-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
}

/* Example Section */
.example {
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
  position: relative;
}

.example::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

.example h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.example-content {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
  overflow-x: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.example-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

pre {
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0;
}

code {
  color: #60a5fa;
  font-weight: 500;
}

.keyword { color: #f472b6; font-weight: 600; }
.string { color: #86efac; }
.comment { color: #94a3b8; font-style: italic; }

/* CTA Section */
.cta {
  padding: 7rem 2rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta h2 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.cta p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.cta .cta-buttons {
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem;
}

.site-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.site-footer h4 {
  color: var(--primary-light);
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  display: inline-block;
  position: relative;
  padding-left: 1rem;
}

.site-footer a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition-fast);
}

.site-footer a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

.site-footer a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.site-footer .divider {
  border-top: 1px solid var(--border);
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav .container {
    position: relative;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  nav .links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    border-left: 1px solid var(--border);
    transition: right var(--transition-base);
    z-index: 100;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  }
  
  nav .links.active {
    right: 0;
  }
  
  nav .links li {
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    animation: slideIn 0.3s ease-out forwards;
  }
  
  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  nav .links.active li:nth-child(1) { animation-delay: 0.05s; }
  nav .links.active li:nth-child(2) { animation-delay: 0.1s; }
  nav .links.active li:nth-child(3) { animation-delay: 0.15s; }
  nav .links.active li:nth-child(4) { animation-delay: 0.2s; }
  nav .links.active li:nth-child(5) { animation-delay: 0.25s; }
  
  nav .external {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  nav .btn {
    width: 100%;
    text-align: center;
    padding: 0.875rem 1rem;
  }
  
  .hero {
    padding: 4rem 1.5rem;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.05rem;
  }
  
  .hero .stats {
    gap: 1.5rem;
  }
  
  .stat {
    padding: 1rem;
  }
  
  .stat .value {
    font-size: 2rem;
  }
  
  .features, .tech, .docs, .example, .cta {
    padding: 4rem 1.5rem;
  }
  
  .feature-grid, .docs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.875rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero .stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .features, .tech, .docs, .example, .cta {
    padding: 3rem 1rem;
  }
  
  .features h2, .tech h2, .docs h2, .example h2, .cta h2 {
    font-size: 1.875rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
  }
}
/* ============================================
   DOCUMENTATION PAGE STYLES
   Professional technical documentation layout
   ============================================ */

/* Doc Header */
.doc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.doc-header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.25rem;
  transition: var(--transition-base);
}

.doc-header .logo:hover {
  color: var(--primary-light);
}

.doc-header .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}

.doc-header nav {
  display: flex;
  gap: 1.5rem;
  position: static;
  background: transparent;
  border: none;
  padding: 0;
}

.doc-header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.doc-header nav a:hover {
  color: var(--primary-light);
  background: rgba(59, 130, 246, 0.1);
}

/* Doc Container */
.doc-header + .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: calc(100vh - 140px);
}

/* TOC Sidebar */
.toc-sidebar {
  position: sticky;
  top: 73px;
  height: calc(100vh - 73px);
  overflow-y: auto;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.toc-sidebar::-webkit-scrollbar {
  width: 6px;
}

.toc-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.toc-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.toc-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

.toc-sidebar h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.toc-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.toc-sidebar li {
  margin: 0;
}

.toc-sidebar a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: var(--transition-fast);
  border-left: 3px solid transparent;
}

.toc-sidebar a:hover,
.toc-sidebar a:focus {
  color: var(--primary-light);
  background: rgba(59, 130, 246, 0.08);
  border-left-color: var(--primary);
  padding-left: 1rem;
}

/* Doc Content */
.doc-content {
  padding: 3rem 4rem;
  max-width: 900px;
  background: var(--bg);
}

.doc-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.75rem;
}

.doc-content h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  padding-left: 1rem;
}

.doc-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

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

.doc-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.doc-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.doc-content ul,
.doc-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: var(--text-secondary);
}

.doc-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.doc-content li::marker {
  color: var(--primary);
}

.doc-content a {
  color: var(--primary-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition-fast);
}

.doc-content a:hover {
  border-bottom-color: var(--primary-light);
}

.doc-content code {
  background: var(--code-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
  color: var(--primary-light);
  border: 1px solid var(--border);
}

.doc-content pre {
  background: var(--code-bg);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.doc-content pre code {
  background: none;
  padding: 0;
  border: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.doc-content blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(59, 130, 246, 0.05);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.doc-content blockquote p:last-child {
  margin-bottom: 0;
}

.doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.doc-content th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.doc-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.doc-content tr:hover {
  background: rgba(59, 130, 246, 0.03);
}

/* Doc Footer */
.doc-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.doc-footer a {
  color: var(--primary-light);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: var(--transition-fast);
}

.doc-footer a:hover {
  color: var(--primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .doc-header + .container {
    grid-template-columns: 240px 1fr;
  }
  
  .doc-content {
    padding: 2rem 2.5rem;
  }
}

@media (max-width: 768px) {
  .doc-header {
    padding: 1rem;
  }
  
  .doc-header nav {
    display: none;
  }
  
  .doc-header + .container {
    grid-template-columns: 1fr;
  }
  
  .toc-sidebar {
    display: none;
  }
  
  .doc-content {
    padding: 1.5rem 1rem;
  }
  
  .doc-content h1 {
    font-size: 2rem;
  }
  
  .doc-content h2 {
    font-size: 1.5rem;
  }
}