/* ==========================================================================
   Oomph Labs Design System & Primary Stylesheet
   Brand: Oomph Labs (oomphlabs.tech)
   Tone: Venture-Scale Software Studio, Privacy-First, Developer Ergonomics
   ========================================================================== */

:root {
  /* Brand Palette */
  --bg-main: #080D1B;
  --bg-card: #0F172E;
  --bg-card-hover: #141F3D;
  --bg-surface: #10152B;
  --bg-surface-elevated: #16203D;
  --bg-subtle-glow: rgba(79, 125, 255, 0.08);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(79, 125, 255, 0.35);
  --border-focus: #4F7DFF;

  --electric-blue: #4F7DFF;
  --electric-blue-hover: #3B6BE8;
  --violet: #8B5CF6;
  --violet-hover: #7C3AED;
  --soft-lavender: #C4B5FD;
  --emerald: #10B981;
  --amber: #F59E0B;
  --rose: #F43F5E;
  --cyan: #06B6D4;

  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 35px -8px rgba(79, 125, 255, 0.2);
  --glow-button: 0 0 20px -3px rgba(79, 125, 255, 0.4);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  color: var(--text-secondary);
  overflow-x: hidden;
  position: relative;
}

/* Subtle background grid & ambient mesh */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(79, 125, 255, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Accessibility: Focus visible */
:focus-visible {
  outline: 2px solid var(--electric-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--electric-blue);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(79, 125, 255, 0.4);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

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

h1 { font-size: clamp(2.35rem, 4.5vw + 1rem, 3.75rem); margin-bottom: 20px; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw + 0.5rem, 2.6rem); margin-bottom: 16px; font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2vw + 0.2rem, 1.7rem); margin-bottom: 12px; font-weight: 600; }
h4 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 600; }

p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

p.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.6;
}

a {
  color: var(--electric-blue);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

a:hover {
  color: var(--soft-lavender);
}

code, pre {
  font-family: var(--font-mono);
}

code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.88em;
  color: var(--soft-lavender);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(8, 13, 27, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.brand-link:hover {
  opacity: 0.95;
  transform: translateY(-0.5px);
}

.brand-link img, .brand-link svg {
  height: 38px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--electric-blue), var(--violet));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(79, 125, 255, 0.6);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--electric-blue);
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.3;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--electric-blue) 0%, #6366F1 50%, var(--violet) 100%);
  color: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 6px 20px -4px rgba(79, 125, 255, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--electric-blue-hover) 0%, #4F46E5 50%, var(--violet-hover) 100%);
  color: #FFFFFF;
  transform: translateY(-1.5px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 10px 25px -4px rgba(79, 125, 255, 0.55);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-medium);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  color: #FFFFFF;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: rgba(79, 125, 255, 0.1);
  border-color: var(--electric-blue);
  color: #FFFFFF;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

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

.badge-available {
  background: rgba(16, 185, 129, 0.14);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.badge-available .badge-dot {
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: pulse-green 2.5s infinite;
}

.badge-in-dev {
  background: rgba(245, 158, 11, 0.14);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.badge-in-dev .badge-dot {
  background: #F59E0B;
}

.badge-planned {
  background: rgba(139, 92, 246, 0.14);
  color: #C4B5FD;
  border: 1px solid rgba(139, 92, 246, 0.35);
}
.badge-planned .badge-dot {
  background: #8B5CF6;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.9); }
}

/* Section Shells */
.section {
  padding: 96px 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: #0B1124;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 56px;
}

.section-header.centered {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--electric-blue);
  margin-bottom: 14px;
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--electric-blue);
  box-shadow: 0 0 10px var(--electric-blue);
}

/* Hero Section */
.hero {
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: rgba(79, 125, 255, 0.08);
  border: 1px solid rgba(79, 125, 255, 0.28);
  color: var(--soft-lavender);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw + 1rem, 4.25rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 26px;
  background: linear-gradient(135deg, #FFFFFF 40%, var(--soft-lavender) 85%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* Hero Interactive Terminal & Technical Showcase */
.hero-showcase {
  max-width: 920px;
  margin: 50px auto 0;
  background: #0A1024;
  border: 1px solid rgba(79, 125, 255, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 50px -10px rgba(79, 125, 255, 0.15);
  overflow: hidden;
  text-align: left;
}

.terminal-header {
  background: #0E1733;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.terminal-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 6px;
}

.terminal-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.terminal-tab.active {
  background: rgba(79, 125, 255, 0.22);
  color: var(--soft-lavender);
  font-weight: 600;
  border: 1px solid rgba(79, 125, 255, 0.35);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

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

.terminal-dot.red { background: #EF4444; }
.terminal-dot.yellow { background: #F59E0B; }
.terminal-dot.green { background: #10B981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.7;
  color: #E2E8F0;
  overflow-x: auto;
}

.code-token-kw { color: #8B5CF6; font-weight: 600; }
.code-token-fn { color: #60A5FA; }
.code-token-str { color: #34D399; }
.code-token-comment { color: #64748B; font-style: italic; }
.code-token-type { color: #FBBF24; }
.code-token-num { color: #F472B6; }

.terminal-footer-bar {
  background: rgba(14, 23, 51, 0.7);
  padding: 10px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.terminal-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34D399;
  font-weight: 600;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 50px;
  text-align: left;
}

.highlight-box {
  background: rgba(15, 23, 46, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.highlight-box:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.highlight-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.highlight-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
}

.product-card.featured {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, #101E38 0%, #0F172E 100%);
}

.product-card.featured::before {
  content: "ACTIVE PRODUCT";
  position: absolute;
  top: -12px;
  right: 28px;
  background: #10B981;
  color: #062316;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.card-icon img, .card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.product-title {
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.product-problem {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--soft-lavender);
  margin-bottom: 14px;
  line-height: 1.55;
}

.product-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  flex-grow: 1;
  line-height: 1.65;
}

.feature-list {
  list-style: none;
  margin-bottom: 30px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.feature-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-list li::before {
  content: "✓";
  color: var(--electric-blue);
  font-weight: 800;
  font-size: 0.95em;
  flex-shrink: 0;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Engineering & Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(79, 125, 255, 0.12);
  color: var(--electric-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-weight: 800;
  font-size: 1.15rem;
  font-family: var(--font-mono);
  border: 1px solid rgba(79, 125, 255, 0.25);
}

/* How We Work: 4-Step Process Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.process-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.process-step:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 12px;
  display: inline-block;
  padding: 3px 8px;
  background: rgba(139, 92, 246, 0.12);
  border-radius: 4px;
}

/* Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.principle-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: border-color var(--transition-fast);
}

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

.principle-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--violet);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* High-Impact CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #101938 0%, #0F172E 60%, #171638 100%);
  border: 1px solid rgba(79, 125, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 40px -10px rgba(79, 125, 255, 0.15);
  margin: 60px 0 20px;
}

.cta-banner h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
}

.cta-banner p {
  max-width: 650px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* Content Page / Document Layout */
.page-header {
  padding: 70px 0 46px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 46px;
  position: relative;
}

.doc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 52px;
  margin-bottom: 80px;
}

.doc-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.doc-nav {
  list-style: none;
  border-left: 2px solid var(--border-subtle);
}

.doc-nav li a {
  display: block;
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.doc-nav li a:hover, .doc-nav li a.active {
  color: var(--text-primary);
  border-left: 2px solid var(--electric-blue);
  margin-left: -2px;
}

.doc-content h2 {
  font-size: 1.65rem;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.doc-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.doc-content h3 {
  font-size: 1.25rem;
  margin-top: 26px;
}

.doc-content ul, .doc-content ol {
  margin-left: 24px;
  margin-bottom: 22px;
  color: var(--text-secondary);
}

.doc-content li {
  margin-bottom: 9px;
  line-height: 1.65;
}

.callout {
  background: var(--bg-card);
  border-left: 4px solid var(--electric-blue);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 26px 0;
  box-shadow: var(--shadow-sm);
}

.callout.callout-warning {
  border-left-color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
}

.callout.callout-info {
  border-left-color: var(--electric-blue);
  background: rgba(79, 125, 255, 0.08);
}

.callout-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.93rem;
}

th, td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-weight: 600;
}

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

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.filter-btn.active {
  background: var(--electric-blue);
  color: #FFFFFF;
  border-color: var(--electric-blue);
  box-shadow: 0 4px 14px rgba(79, 125, 255, 0.35);
}

/* Support Box */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.contact-email-link {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--electric-blue);
  word-break: break-all;
  display: inline-block;
  margin: 14px 0 22px;
  transition: color var(--transition-fast);
}

.contact-email-link:hover {
  color: var(--soft-lavender);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #050811;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 320px;
  margin-top: 18px;
  line-height: 1.6;
}

.footer-col-title {
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.86rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .doc-sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: inline-flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #080D1B;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-cta-group {
    display: none;
  }
  .hero {
    padding: 60px 0 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
}

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