/* =============================================================================
   SigmaShake - Enterprise AI Agent Security Platform
   Dark Theme CSS
   ============================================================================= */

/* =============================================================================
   1. CSS Custom Properties
   ============================================================================= */

:root {
  --background: hsl(220, 13%, 9%);
  --background-alt: hsl(220, 13%, 7%);
  --foreground: hsl(210, 40%, 98%);
  --card: hsl(220, 13%, 11%);
  --card-foreground: hsl(210, 40%, 98%);
  --primary: hsl(217, 91%, 60%);
  --primary-foreground: hsl(220, 13%, 9%);
  --secondary: hsl(220, 13%, 15%);
  --secondary-foreground: hsl(210, 40%, 98%);
  --muted: hsl(220, 13%, 15%);
  --muted-foreground: hsl(215, 20.2%, 65.1%);
  --accent: hsl(217, 91%, 60%);
  --accent-foreground: hsl(220, 13%, 9%);
  --border: hsl(220, 13%, 20%);
  --border-subtle: hsl(220, 13%, 16%);
  --input: hsl(220, 13%, 15%);
  --ring: hsl(217, 91%, 60%);
  --electric-blue: hsl(217, 91%, 60%);
  --electric-glow: hsl(224, 76%, 70%);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --glow-sm: 0 0 20px hsla(217, 91%, 60%, 0.15);
  --glow-md: 0 0 30px hsla(217, 91%, 60%, 0.25);
  --glow-lg: 0 0 50px hsla(217, 91%, 60%, 0.3);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* =============================================================================
   2. Global Reset and Base Styles
   ============================================================================= */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

::selection {
  background: hsla(217, 91%, 60%, 0.35);
  color: var(--foreground);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }

a { text-decoration: none; color: inherit; }
a:hover { color: var(--electric-blue); }

ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* =============================================================================
   3. Text Utilities
   ============================================================================= */

.text-electric { color: var(--electric-blue); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-foreground { color: var(--foreground); }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Section label - small all-caps text above headings */
.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--electric-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

/* Section heading */
.section-heading {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subheading {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 640px;
  line-height: 1.7;
}

/* =============================================================================
   4. Buttons
   ============================================================================= */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1.125rem; font-size: 1rem; font-weight: 600;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: all var(--transition-base); text-decoration: none; white-space: nowrap;
}
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.875rem; }
.btn-lg { padding: 0.875rem 2.25rem; font-size: 1.125rem; }

.btn-electric, .btn-primary {
  background: linear-gradient(135deg, var(--electric-blue), var(--electric-glow));
  color: var(--primary-foreground); border: none;
  box-shadow: 0 0 20px hsla(217, 91%, 60%, 0.3);
}
.btn-electric:hover, .btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 40px hsla(217, 91%, 60%, 0.5);
  color: var(--primary-foreground);
}
.btn-electric:active, .btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline, .btn-cyber {
  background: transparent; color: var(--electric-blue); border: 1px solid var(--electric-blue);
}
.btn-outline:hover, .btn-cyber:hover {
  background: var(--electric-blue); color: var(--primary-foreground);
  box-shadow: var(--glow-sm);
  transform: translateY(-1px);
}

/* =============================================================================
   5. Layout Utilities
   ============================================================================= */

.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.top-0 { top: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.z-50 { z-index: 50; }
.z-10 { z-index: 10; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.text-center { text-align: center; }

.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-8 { padding-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

/* =============================================================================
   6. Background, Border, and Transition Utilities
   ============================================================================= */

.bg-gradient-hero { background: linear-gradient(135deg, var(--background), var(--secondary)); }
.bg-gradient-card { background: linear-gradient(145deg, var(--card), hsl(220, 13%, 13%)); }
.bg-gradient-electric { background: linear-gradient(135deg, var(--electric-blue), var(--electric-glow)); }
.bg-electric { background-color: var(--electric-blue); }

.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-border { border-color: var(--border); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.transition-colors { transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast); }
.transition-all { transition: all var(--transition-fast); }

.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* =============================================================================
   7. Navigation
   ============================================================================= */

.nav-bar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: hsla(220, 13%, 9%, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--electric-blue);
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--electric-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  white-space: nowrap;
}

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

.nav-link.active {
  color: var(--electric-blue);
}

/* Right side controls */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-github {
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  padding: 0.375rem;
  border-radius: 6px;
  transition: color var(--transition-fast);
}

.nav-github:hover {
  color: var(--foreground);
}

/* Dropdown trigger */
.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: inherit;
}

.nav-chevron {
  font-size: 0.625rem;
  opacity: 0.6;
  transition: transform var(--transition-fast);
}

.nav-dropdown-trigger.active .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown wrapper */
.nav-dropdown-wrapper {
  position: relative;
}

/* Backdrop for closing dropdowns */
.nav-dropdown-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
}

/* Mega menu */
.nav-mega-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: hsla(220, 13%, 8%, 0.98);
  border: 1px solid hsla(220, 13%, 20%, 0.5);
  border-radius: 12px;
  padding: 1.25rem;
  min-width: 520px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 51;
  animation: nav-dropdown-in 0.15s ease-out;
}

.nav-mega-menu-sm {
  min-width: 440px;
}

@keyframes nav-dropdown-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-mega-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.nav-mega-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mega-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  padding: 0.375rem 0.75rem;
  margin-bottom: 0.25rem;
}

.nav-mega-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background var(--transition-fast);
  text-decoration: none;
}

.nav-mega-item:hover {
  background: hsla(220, 13%, 16%, 0.6);
}

.nav-mega-item strong {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
}

.nav-mega-item span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.3;
}

/* Language selector */
.nav-lang-btn {
  background: none;
  border: 1px solid hsla(220, 13%, 25%, 0.5);
  border-radius: 6px;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.325rem 0.625rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: inherit;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-lang-btn:hover {
  color: var(--foreground);
  border-color: hsla(220, 13%, 35%, 0.6);
}

.nav-lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: hsla(220, 13%, 8%, 0.98);
  border: 1px solid hsla(220, 13%, 20%, 0.5);
  border-radius: 8px;
  padding: 0.375rem;
  min-width: 140px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 51;
  animation: nav-dropdown-in 0.15s ease-out;
}

.nav-lang-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-family: inherit;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-lang-option:hover {
  background: hsla(220, 13%, 16%, 0.6);
  color: var(--foreground);
}

/* Mobile hamburger button */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
  z-index: 60;
}

.nav-hamburger-icon,
.nav-hamburger-icon::before,
.nav-hamburger-icon::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all var(--transition-base);
  margin: 0 auto;
}

.nav-hamburger-icon::before,
.nav-hamburger-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-hamburger-icon::before { top: 0.75rem; }
.nav-hamburger-icon::after { bottom: 0.75rem; }

/* X state */
.nav-hamburger-icon.nav-mobile-open {
  background: transparent;
}
.nav-hamburger-icon.nav-mobile-open::before {
  top: 50%;
  transform: translateX(-50%) rotate(45deg);
}
.nav-hamburger-icon.nav-mobile-open::after {
  bottom: auto;
  top: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

/* Mobile overlay menu */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: hsla(220, 13%, 5%, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  max-height: 80vh;
  overflow-y: auto;
}

.nav-mobile-section {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--electric-blue);
  margin-top: 0.75rem;
}

.nav-mobile-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color var(--transition-fast);
}

.nav-mobile-link:hover {
  color: var(--electric-blue);
}

/* =============================================================================
   8. Enhanced Hero Section
   ============================================================================= */

/* Legacy hero class */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

/* New hero: full viewport, dramatic gradient with grid overlay */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, hsla(217, 91%, 60%, 0.12), transparent),
    radial-gradient(circle at 20% 80%, hsla(224, 76%, 70%, 0.06), transparent),
    radial-gradient(circle at 80% 60%, hsla(217, 91%, 60%, 0.04), transparent),
    linear-gradient(180deg, var(--background) 0%, hsl(220, 13%, 7%) 100%);
}

/* Subtle grid pattern overlay via CSS gradients */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsla(217, 91%, 60%, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, hsla(217, 91%, 60%, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

/* Trust badges row */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: hsla(220, 13%, 15%, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--transition-base);
}

.hero-badge:hover {
  border-color: hsla(217, 91%, 60%, 0.3);
}

/* Stats strip below hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 4rem auto 0;
  padding: 2rem 2.5rem;
  background: hsla(220, 13%, 11%, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.hero-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--electric-blue);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Legacy trust badges */
.edr-compat {
  text-align: center;
}

.edr-vendor-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.edr-vendor {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: hsla(220, 13%, 15%, 0.6);
  border: 1px solid hsla(220, 13%, 25%, 0.4);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.trust-badge {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--electric-blue);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trust-badge-divider {
  color: var(--border);
  font-size: 0.875rem;
}

/* Legacy stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--electric-blue);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* =============================================================================
   9. Product Sections (Enterprise Showcase)
   ============================================================================= */

.product-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
  position: relative;
}

.product-section:nth-child(even) {
  background: hsla(220, 13%, 7%, 0.5);
  max-width: 100%;
  padding-left: max(1rem, calc((100% - 1200px) / 2 + 1rem));
  padding-right: max(1rem, calc((100% - 1200px) / 2 + 1rem));
}

.product-section-reverse {
  direction: rtl;
}

.product-section-reverse > * {
  direction: ltr;
}

/* Alias: product-grid kept for backward compat */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.product-text,
.product-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.product-demo {
  width: 100%;
  min-width: 0;
}

.product-icon {
  width: 3rem;
  height: 3rem;
  background: hsla(217, 91%, 60%, 0.1);
  border: 1px solid hsla(217, 91%, 60%, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--electric-blue);
  font-size: 1.25rem;
}

.product-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-features li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--electric-blue);
  border-radius: 50%;
  box-shadow: 0 0 8px hsla(217, 91%, 60%, 0.4);
}

/* Terminal-style Demo Mockups */
.product-demo-placeholder {
  position: relative;
}

.demo-terminal {
  background: hsl(220, 16%, 6%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow), 0 0 60px rgba(0, 0, 0, 0.4);
}

.demo-terminal-header {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  background: hsla(220, 13%, 10%, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.5rem;
}

.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.demo-dot.red { background: #ff5f57; }
.demo-dot.yellow { background: #febc2e; }
.demo-dot.green { background: #28c840; }

.demo-terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-weight: 500;
  margin-right: 2.25rem;
}

.demo-terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.8;
  min-height: 200px;
  background: hsl(220, 16%, 6%);
  overflow-x: auto;
}

.demo-line {
  color: var(--foreground);
  white-space: pre-wrap;
  word-break: break-all;
}

.demo-line.dim { color: var(--muted-foreground); }
.demo-line.blocked { color: #ef4444; }
.demo-line.allowed { color: #22c55e; }
.demo-line.warning { color: #f59e0b; }
.demo-line.info { color: var(--electric-blue); }

/* Interactive Demo Simulator */
.interactive-demo-input-area {
  border-top: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  background: hsla(220, 13%, 8%, 0.9);
}

.interactive-demo-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.interactive-demo-prompt {
  color: #22c55e;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.interactive-demo-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--foreground);
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  font-size: 0.8125rem;
  caret-color: #22c55e;
}

.interactive-demo-input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.5;
}

.interactive-demo-input:disabled {
  opacity: 0.4;
}

.interactive-demo-submit {
  background: var(--electric-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 4px);
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity var(--transition-base);
  flex-shrink: 0;
}

.interactive-demo-submit:hover:not(:disabled) {
  opacity: 0.85;
}

.interactive-demo-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.interactive-demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.interactive-demo-chips-label {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  margin-right: 0.25rem;
}

.interactive-demo-chip {
  background: hsla(217, 91%, 60%, 0.1);
  border: 1px solid hsla(217, 91%, 60%, 0.25);
  color: var(--electric-blue);
  border-radius: 9999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.interactive-demo-chip:hover:not(:disabled) {
  background: hsla(217, 91%, 60%, 0.2);
  border-color: hsla(217, 91%, 60%, 0.5);
}

.interactive-demo-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Legacy product cards */
.product-card {
  background: linear-gradient(145deg, var(--card), hsl(220, 13%, 13%));
  border: 1px solid hsla(217, 91%, 60%, 0.15);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition-base);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-card:hover {
  box-shadow: 0 0 30px hsla(217, 91%, 60%, 0.2);
  border-color: hsla(217, 91%, 60%, 0.3);
  transform: translateY(-4px);
}

/* =============================================================================
   10. How It Works
   ============================================================================= */

.how-it-works {
  padding: 6rem 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%, hsla(217, 91%, 60%, 0.04), transparent),
    var(--background);
}

.how-it-works-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  max-width: 1000px;
  margin: 3rem auto 0;
}

.how-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: hsla(220, 13%, 11%, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}

.how-step:hover {
  border-color: hsla(217, 91%, 60%, 0.3);
  box-shadow: var(--glow-sm);
  transform: translateY(-4px);
}

.how-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric-blue), var(--electric-glow));
  color: var(--primary-foreground);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 20px hsla(217, 91%, 60%, 0.3);
}

.how-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 3.5rem;
  color: var(--muted-foreground);
  font-size: 1.5rem;
  opacity: 0.4;
}

/* =============================================================================
   11. Compliance Section
   ============================================================================= */

.compliance-section {
  padding: 6rem 0;
  background: hsla(220, 13%, 7%, 0.5);
}

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

.compliance-card {
  padding: 1.75rem;
  background: hsla(220, 13%, 11%, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}

.compliance-card:hover {
  border-color: hsla(217, 91%, 60%, 0.25);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.compliance-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.compliance-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

.compliance-card-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Legacy compliance badge cards */
.compliance-badge-card {
  background: linear-gradient(145deg, var(--card), hsl(220, 13%, 13%));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-base);
}

.compliance-badge-card:hover {
  border-color: hsla(217, 91%, 60%, 0.3);
  box-shadow: 0 0 20px hsla(217, 91%, 60%, 0.1);
  transform: translateY(-2px);
}

.compliance-badge-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--electric-blue);
  background: hsla(217, 91%, 60%, 0.1);
  border: 1px solid hsla(217, 91%, 60%, 0.25);
  border-radius: 0.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* =============================================================================
   12. Testimonials Section
   ============================================================================= */

.testimonials-section {
  padding: 6rem 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, hsla(217, 91%, 60%, 0.04), transparent),
    var(--background);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 3rem auto 0;
}

.testimonial-card {
  padding: 2rem;
  background: hsla(220, 13%, 11%, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  border-color: hsla(217, 91%, 60%, 0.2);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.testimonial-quote {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 2rem;
  color: var(--electric-blue);
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 0.125rem;
  opacity: 0.6;
}

.testimonial-footer {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.testimonial-author {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.testimonial-author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.testimonial-author-company {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* =============================================================================
   13. Demo Placeholder (Generic)
   ============================================================================= */

.demo-placeholder {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(145deg, var(--card), hsl(220, 13%, 13%));
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  /* supports both legacy block layout and new 16:9 layout */
}

/* When used as aspect-ratio container (add .demo-placeholder-16x9 class) */
.demo-placeholder-16x9 {
  padding: 0;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(220, 16%, 6%);
  border: 1px solid var(--border);
  border-style: solid;
  overflow: hidden;
}

.demo-placeholder-inner {
  text-align: center;
  color: var(--muted-foreground);
}

.demo-placeholder-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
  color: var(--electric-blue);
}

/* =============================================================================
   14. Bullet Dot and Page Sections
   ============================================================================= */

.bullet-dot {
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--electric-blue);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* Page sections */
.page-section {
  padding-top: 5rem; /* clear fixed navbar (~56px + breathing room) */
}

.page-hero {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--background), var(--secondary));
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.page-hero h1 { margin: 0; }

/* Highlight callout */
.highlight {
  background: linear-gradient(145deg, var(--card), hsl(220, 13%, 13%));
  border: 1px solid hsla(217, 91%, 60%, 0.2);
  padding: 1rem;
  border-radius: var(--radius);
}

/* =============================================================================
   15. Articles
   ============================================================================= */

.article-card {
  background: linear-gradient(145deg, var(--card), hsl(220, 13%, 13%));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.article-card:hover {
  border-color: hsla(217, 91%, 60%, 0.3);
  box-shadow: 0 0 20px hsla(217, 91%, 60%, 0.1);
  transform: translateY(-2px);
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.article-content {
  max-width: 48rem;
}

.article-content p {
  font-size: 1.0625rem;
}

.article-list {
  list-style: disc;
  padding-left: 1.5rem;
}

.article-list li {
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.article-cta-box {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(145deg, var(--card), hsl(220, 13%, 13%));
  border: 1px solid hsla(217, 91%, 60%, 0.2);
  border-radius: 0.75rem;
}

/* =============================================================================
   16. Careers Page Styles
   ============================================================================= */

.careers-hero {
  padding: 5rem 0 4rem;
  padding-top: 8rem;
  background: linear-gradient(135deg, var(--background), var(--secondary));
  border-bottom: 1px solid var(--border);
}

.careers-hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--electric-blue);
  background: hsla(217, 91%, 60%, 0.1);
  border: 1px solid hsla(217, 91%, 60%, 0.25);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.careers-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

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

.careers-stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--electric-blue);
}

.careers-stat-label {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* Benefits */
.careers-benefits {
  padding: 5rem 0;
  background: var(--background);
}

.benefit-card {
  background: linear-gradient(145deg, var(--card), hsl(220, 13%, 13%));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition-base);
}

.benefit-card:hover {
  border-color: hsla(217, 91%, 60%, 0.3);
  box-shadow: 0 0 20px hsla(217, 91%, 60%, 0.1);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(217, 91%, 60%, 0.1);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

/* Job Listings */
.careers-listings {
  padding: 4rem 0 6rem;
  background: linear-gradient(180deg, var(--background), var(--secondary));
}

.careers-listings-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.careers-filter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.careers-select {
  appearance: none;
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: border-color 0.15s;
}

.careers-select:focus {
  outline: none;
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 2px hsla(217, 91%, 60%, 0.2);
}

.dept-section {
  margin-bottom: 2rem;
}

.dept-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dept-count {
  background: hsla(217, 91%, 60%, 0.15);
  color: var(--electric-blue);
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
}

.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
}

.job-card:hover {
  background: var(--card);
  border-color: var(--border);
}

.job-card-main { flex: 1; }

.job-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}

.job-card:hover .job-card-title {
  color: var(--electric-blue);
}

.job-card-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.job-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  background: hsla(217, 91%, 60%, 0.1);
  color: var(--electric-blue);
  border-radius: 0.25rem;
}

.job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.job-meta-item.posted {
  color: hsl(142, 71%, 45%);
}

.job-card-arrow {
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.job-card:hover .job-card-arrow {
  opacity: 1;
}

/* =============================================================================
   17. Job Detail Panel
   ============================================================================= */

.job-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.job-detail-panel {
  width: 100%;
  max-width: 640px;
  height: 100%;
  background: var(--background);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.job-detail-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.job-detail-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--muted-foreground);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.15s;
}

.job-detail-close:hover {
  background: var(--card);
  color: var(--foreground);
}

.dept-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  background: hsla(217, 91%, 60%, 0.1);
  color: var(--electric-blue);
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.job-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.detail-section {
  margin-bottom: 2rem;
}

.detail-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--electric-blue);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.detail-section p {
  color: var(--muted-foreground);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.detail-section ul {
  list-style: none;
  padding: 0;
}

.detail-section ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.detail-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--electric-blue);
  border-radius: 50%;
}

.comp-range {
  font-size: 1.25rem !important;
  font-weight: 700;
  color: var(--foreground) !important;
  margin-bottom: 0.5rem;
}

.job-detail-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}

/* =============================================================================
   18. Application Panel
   ============================================================================= */

.apply-panel {
  width: 100%;
  max-width: 680px;
  height: 100%;
  background: var(--background);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideIn 0.2s ease;
}

.apply-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.apply-header-company {
  margin-bottom: 1rem;
}

.apply-form {
  flex: 1;
  overflow-y: auto;
  padding: 0 2rem 2rem;
}

.apply-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.apply-section:last-of-type {
  border-bottom: none;
}

.apply-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.apply-section-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.apply-submit {
  padding: 2rem 0;
}

/* =============================================================================
   19. Forms
   ============================================================================= */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}

.required {
  color: hsl(0, 84%, 60%);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 3px hsla(217, 91%, 60%, 0.15);
}

.form-input.error,
.form-textarea.error {
  border-color: hsl(0, 84%, 60%);
  box-shadow: 0 0 0 3px hsla(0, 84%, 60%, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 0.6;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* File Upload */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.file-upload-area:hover {
  border-color: var(--electric-blue);
  background: hsla(217, 91%, 60%, 0.05);
}

.file-upload-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.75rem;
}

.file-upload-hint {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  opacity: 0.6;
  margin-top: 0.25rem;
}

.file-input-hidden {
  display: none;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--electric-blue);
  flex-shrink: 0;
}

/* =============================================================================
   20. Success Panel
   ============================================================================= */

.success-panel {
  width: 100%;
  max-width: 540px;
  margin: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon {
  margin-bottom: 1.5rem;
}

.success-timeline {
  text-align: left;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.timeline-item + .timeline-item {
  border-top: 1px solid var(--border);
}

.timeline-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.timeline-dot.active {
  background: var(--electric-blue);
  box-shadow: 0 0 8px hsla(217, 91%, 60%, 0.4);
}

/* =============================================================================
   21. Contact Form
   ============================================================================= */

.contact-form-wrapper {
  max-width: 720px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-form .form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contact-form .form-error {
  color: #ef4444;
  font-size: 0.875rem;
}

.contact-success {
  text-align: center;
  padding: 4rem 2rem;
}

.contact-success .success-icon,
.cta-success .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--electric-blue);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* =============================================================================
   22. CTA Form
   ============================================================================= */

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.cta-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cta-success {
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid hsla(217, 91%, 60%, 0.2);
  background: hsla(217, 91%, 60%, 0.05);
}

/* =============================================================================
   23. Glassmorphism Card Utility
   ============================================================================= */

.glass-card {
  background: hsla(220, 13%, 11%, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}

/* =============================================================================
   24. Partners Page
   ============================================================================= */

.partners-hero {
  padding: 8rem 0 4rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, hsla(217, 91%, 60%, 0.10), transparent),
    linear-gradient(180deg, var(--background) 0%, hsl(220, 13%, 7%) 100%);
  border-bottom: 1px solid var(--border);
}

.partners-hero-content {
  max-width: 720px;
}

.partners-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 4rem;
}

.partner-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: hsla(220, 13%, 11%, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.partner-step:hover {
  border-color: hsla(217, 91%, 60%, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--glow-sm);
}

.partners-details {
  margin-bottom: 4rem;
}

.partners-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.partner-detail-card {
  padding: 1.75rem;
  background: hsla(220, 13%, 11%, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all var(--transition-base);
}

.partner-detail-card:hover {
  border-color: hsla(217, 91%, 60%, 0.25);
  transform: translateY(-2px);
}

.partners-who {
  margin-bottom: 4rem;
}

.partners-who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.partner-who-card {
  padding: 1.75rem;
  background: hsla(220, 13%, 11%, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all var(--transition-base);
}

.partner-who-card:hover {
  border-color: hsla(217, 91%, 60%, 0.25);
  transform: translateY(-2px);
}

.partners-form-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

/* md:grid-cols-4 for footer */
.md\:grid-cols-4 { }

@media (min-width: 768px) {
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* =============================================================================
   25. Responsive Breakpoints
   ============================================================================= */

/* --- min-width breakpoints (existing) --- */

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:mt-0 { margin-top: 0; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .lg\:text-5xl { font-size: 3rem; }
  .lg\:text-6xl { font-size: 3.75rem; }
  .lg\:text-7xl { font-size: 4.5rem; }
  .lg\:text-2xl { font-size: 1.5rem; }
}

/* --- max-width: 768px (tablet and below) --- */

@media (max-width: 768px) {
  /* Hero stats */
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  /* Legacy stats strip */
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Trust badges */
  .trust-badges {
    gap: 0.5rem;
  }

  .trust-badge-divider {
    display: none;
  }

  .trust-badge {
    padding: 0.25rem 0.5rem;
    background: hsla(217, 91%, 60%, 0.08);
    border-radius: 0.25rem;
  }

  /* Product sections: stack vertically, demo below text */
  .product-section,
  .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1rem;
  }

  .product-section-reverse {
    direction: ltr;
  }

  .product-section:nth-child(even) {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .product-demo,
  .product-demo-placeholder {
    order: 2;
  }

  .product-text,
  .product-content {
    order: 1;
  }

  /* How It Works: stack steps, hide arrows */
  .how-it-works-steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 400px;
  }

  .how-step-arrow {
    display: none;
  }

  /* Compliance: 2 columns */
  .compliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials: single column */
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Mobile nav: hide desktop links, show hamburger */
  .nav-desktop {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hero text sizing */
  .hero-section h1,
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

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

  .stats-strip {
    margin-top: 2rem;
    padding: 1.5rem 0;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  /* Terminal demo overflow */
  .demo-terminal-body {
    font-size: 0.6875rem;
    padding: 1rem;
    overflow-x: auto;
  }

  .demo-line {
    white-space: pre-wrap;
    word-break: break-all;
  }

  /* Footer: 2-col on tablet, stacked on small */
  .grid.md\\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Section spacing */
  .product-section,
  .py-24 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .how-it-works,
  .compliance-section,
  .testimonials-section {
    padding: 3rem 0;
  }

  /* Partners page */
  .partners-hero { padding: 6rem 0 2.5rem; }
  .partners-steps { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .partners-details-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-who-grid { grid-template-columns: repeat(2, 1fr); }

  /* Careers and forms (existing) */
  .careers-hero { padding: 6rem 0 2.5rem; }
  .careers-stats { gap: 1.5rem; flex-wrap: wrap; }
  .careers-listings-header { flex-direction: column; }
  .careers-filter { width: 100%; }
  .careers-select { flex: 1; min-width: 140px; }
  .job-detail-panel,
  .apply-panel { max-width: 100%; }
  .job-card-details { gap: 0.5rem; }
  .success-panel { margin: 1rem; padding: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form .form-row,
  .cta-form-row { grid-template-columns: 1fr; }
}

/* --- max-width: 480px (small mobile) --- */

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-badges {
    gap: 0.5rem;
  }

  .hero-badge {
    font-size: 0.6875rem;
    padding: 0.25rem 0.625rem;
  }

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

  .partners-details-grid,
  .partners-who-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    font-size: 1.75rem;
  }

  .btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
  }

  /* Footer: single column on small mobile */
  .grid.md\:grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

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

  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 1rem;
    overflow-x: hidden;
  }
}

/* =============================================================================
   Documentation Page — ClickHouse-style layout
   ============================================================================= */

.docs-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Top Bar ───────────────────────────────────────────────────────── */

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsla(220, 13%, 7%, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 3.5rem;
}

.docs-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

.docs-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.docs-search-wrapper {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

.docs-search-icon {
  position: absolute;
  left: 0.75rem;
  font-size: 0.875rem;
  pointer-events: none;
  opacity: 0.5;
}

.docs-search {
  width: 100%;
  background: hsla(220, 13%, 12%, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 2.5rem 0.5rem 2.25rem;
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

.docs-search:focus {
  border-color: var(--electric-blue);
}

.docs-search::placeholder {
  color: var(--muted-foreground);
  opacity: 0.6;
}

.docs-search-kbd {
  position: absolute;
  right: 0.625rem;
  background: hsla(220, 13%, 18%, 0.8);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.125rem 0.375rem;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  font-family: inherit;
  pointer-events: none;
}

.docs-topbar-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: auto;
}

.docs-topbar-link {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.docs-topbar-link:hover {
  color: var(--foreground);
}

/* ── Layout ────────────────────────────────────────────────────────── */

.docs-layout {
  display: flex;
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ── Sidebar ───────────────────────────────────────────────────────── */

.docs-sidebar {
  width: 260px;
  min-width: 260px;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 3.5rem;
  height: calc(100vh - 3.5rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--background);
}

.docs-nav-header {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.docs-version-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--electric-blue);
  background: hsla(217, 91%, 60%, 0.1);
  border: 1px solid hsla(217, 91%, 60%, 0.2);
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
}

.docs-nav-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.docs-nav-category {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted-foreground);
  letter-spacing: 0.08em;
  padding: 1rem 1.25rem 0.375rem;
  text-transform: uppercase;
}

.docs-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--muted-foreground);
  padding: 0.4375rem 1.25rem 0.4375rem 1.5rem;
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
}

.docs-nav-item:hover {
  color: var(--foreground);
  background: hsla(220, 13%, 15%, 0.5);
}

.docs-nav-item-active {
  color: var(--electric-blue);
  border-left-color: var(--electric-blue);
  background: hsla(217, 91%, 60%, 0.05);
}

.docs-nav-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.docs-ai-badge {
  display: block;
  font-size: 0.75rem;
  color: var(--electric-blue);
  text-decoration: none;
  background: hsla(217, 91%, 60%, 0.08);
  border: 1px solid hsla(217, 91%, 60%, 0.15);
  border-radius: 8px;
  padding: 0.625rem 0.75rem;
  text-align: center;
  transition: all var(--transition-fast);
}

.docs-ai-badge:hover {
  background: hsla(217, 91%, 60%, 0.15);
  border-color: hsla(217, 91%, 60%, 0.3);
}

/* ── Main Content ──────────────────────────────────────────────────── */

.docs-content {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 3rem 4rem;
}

.docs-article {
  max-width: 820px;
}

/* ── Breadcrumbs ───────────────────────────────────────────────────── */

.docs-breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.docs-breadcrumb-sep {
  margin: 0 0.375rem;
  opacity: 0.5;
}

/* ── Typography ────────────────────────────────────────────────────── */

.docs-h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.docs-lead {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.docs-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.docs-h2:first-of-type {
  margin-top: 2rem;
  border-top: none;
  padding-top: 0;
}

.docs-h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.docs-h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.docs-p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.docs-link {
  color: var(--electric-blue);
  text-decoration: none;
}

.docs-link:hover {
  text-decoration: underline;
}

.docs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.docs-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.docs-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric-blue);
}

/* ── Callouts ──────────────────────────────────────────────────────── */

.docs-callout {
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.docs-callout-info {
  background: hsla(217, 91%, 60%, 0.06);
  border: 1px solid hsla(217, 91%, 60%, 0.15);
  border-left: 3px solid var(--electric-blue);
}

.docs-callout-tip {
  background: hsla(142, 71%, 45%, 0.06);
  border: 1px solid hsla(142, 71%, 45%, 0.15);
  border-left: 3px solid hsl(142, 71%, 45%);
}

.docs-callout strong {
  color: var(--foreground);
}

/* ── Concept Grid ──────────────────────────────────────────────────── */

.docs-concept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.docs-concept {
  background: hsla(220, 13%, 10%, 0.6);
  border: 1px solid hsla(220, 13%, 20%, 0.4);
  border-radius: 10px;
  padding: 1.25rem;
}

.docs-concept .docs-h3 {
  margin-top: 0;
}

/* ── Code Blocks ───────────────────────────────────────────────────── */

.docs-code-block {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid hsla(220, 13%, 20%, 0.5);
}

.docs-code-header {
  background: hsla(220, 13%, 8%, 0.9);
  padding: 0.5rem 1rem;
  border-bottom: 1px solid hsla(220, 13%, 20%, 0.3);
}

.docs-code-lang {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.docs-code-pre {
  background: hsla(220, 16%, 6%, 1);
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--foreground);
  font-family: "SF Mono", "Cascadia Code", "Fira Code", "JetBrains Mono", monospace;
}

.docs-inline-code {
  background: hsla(220, 13%, 15%, 0.6);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-family: "SF Mono", "Cascadia Code", "Fira Code", monospace;
  color: var(--electric-blue);
}

/* ── Tabs ──────────────────────────────────────────────────────────── */

.docs-tab-group {
  display: flex;
  gap: 0;
  margin: 1rem 0 0;
  border-bottom: 1px solid var(--border);
}

.docs-tab {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition-fast);
}

.docs-tab:hover {
  color: var(--foreground);
}

.docs-tab-active {
  color: var(--electric-blue);
  border-bottom-color: var(--electric-blue);
}

/* ── Parameter Tables ──────────────────────────────────────────────── */

.docs-param-table {
  border: 1px solid hsla(220, 13%, 20%, 0.5);
  border-radius: 8px;
  overflow: hidden;
  margin: 1rem 0 1.5rem;
}

.docs-param-row {
  display: grid;
  grid-template-columns: 1fr 0.7fr 0.7fr 2fr;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid hsla(220, 13%, 20%, 0.3);
  align-items: start;
}

.docs-param-row:last-child {
  border-bottom: none;
}

.docs-param-header {
  background: hsla(220, 13%, 10%, 0.8);
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}

.docs-param-header span {
  color: var(--muted-foreground);
}

.docs-param-type {
  color: hsl(142, 71%, 55%);
  font-family: "SF Mono", "Cascadia Code", monospace;
  font-size: 0.75rem;
}

.docs-param-default {
  color: var(--muted-foreground);
  font-family: "SF Mono", "Cascadia Code", monospace;
  font-size: 0.75rem;
}

.docs-param-desc {
  color: var(--muted-foreground);
}

.docs-param-table-sm .docs-param-row {
  grid-template-columns: 1fr 0.7fr 2.5fr;
}

/* ── API Endpoints ─────────────────────────────────────────────────── */

.docs-endpoint {
  margin: 2rem 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.docs-endpoint:last-child {
  border-bottom: none;
}

.docs-endpoint-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.docs-method {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  font-family: "SF Mono", "Cascadia Code", monospace;
}

.docs-method-get {
  background: hsla(142, 71%, 45%, 0.15);
  color: hsl(142, 71%, 55%);
}

.docs-method-post {
  background: hsla(217, 91%, 60%, 0.15);
  color: var(--electric-blue);
}

.docs-method-put {
  background: hsla(45, 93%, 50%, 0.15);
  color: hsl(45, 93%, 60%);
}

.docs-method-delete {
  background: hsla(0, 84%, 55%, 0.15);
  color: hsl(0, 84%, 60%);
}

.docs-endpoint-path {
  font-size: 0.9375rem;
  font-family: "SF Mono", "Cascadia Code", monospace;
  color: var(--foreground);
}

/* ── API Signature ─────────────────────────────────────────────────── */

.docs-api-signature {
  background: hsla(220, 13%, 10%, 0.8);
  border: 1px solid hsla(220, 13%, 20%, 0.5);
  border-radius: 6px;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-family: "SF Mono", "Cascadia Code", monospace;
  color: var(--electric-blue);
  margin-bottom: 0.75rem;
}

/* ── Deployment Grid ───────────────────────────────────────────────── */

.docs-deploy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

/* ── Cert Grid ─────────────────────────────────────────────────────── */

.docs-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

/* ── Mobile ────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .docs-mobile-toggle {
    display: block;
  }

  .docs-sidebar {
    position: fixed;
    top: 3.5rem;
    left: 0;
    bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  }

  .docs-sidebar-open {
    transform: translateX(0);
  }

  .docs-content {
    padding: 1.5rem 1rem 3rem;
  }

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

  .docs-concept-grid {
    grid-template-columns: 1fr;
  }

  .docs-param-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .docs-param-header {
    display: none;
  }

  .docs-param-table-sm .docs-param-row {
    grid-template-columns: 1fr;
  }

  .docs-endpoint-header {
    flex-wrap: wrap;
  }

  .docs-topbar-links {
    display: none;
  }
}
