/* ═══════════════════════════════════════════════════════════════════════════
   KeepUp — Functional Minimalist Design System
   Anti-Slop Design Standards: High-contrast typography, crisp contrast,
   zero cheap neon gradients, subtle glassmorphism, and precise data density.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Canvas & Containers */
  --bg-primary: #09090b;
  --bg-canvas-subtle: #0c0c0e;
  --bg-card: rgba(24, 24, 27, 0.6);
  --bg-card-hover: rgba(39, 39, 42, 0.65);
  --bg-code: #121215;
  --bg-modal: #141417;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-active: rgba(255, 255, 255, 0.3);

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #d4d4d8; /* Zinc 300: High-contrast, crisp body copy */
  --text-muted: #a1a1aa;     /* Zinc 400: Clear, legible subtitle/meta copy */
  --text-faint: #71717a;     /* Zinc 500: Auxiliary axis markers & timestamps */

  /* Dedicated Functional Status Colors (Strictly for status) */
  --status-green: #30d158;
  --status-yellow: #ffd60a;
  --status-red: #ff453a;
  --sky-bar: rgba(14, 165, 233, 0.8);
  --sky-bar-hover: #38bdf8;

  /* Fonts */
  --font-sans: system-ui, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-tooltip: 0 4px 14px rgba(0, 0, 0, 0.6);
}

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  /* Pure deep zinc canvas with subtle neutral ambient glow at top — zero cheap neon gradients */
  background-image: radial-gradient(ellipse 70% 40% at 50% -10%, rgba(255, 255, 255, 0.04), transparent 70%);
  background-attachment: fixed;
  line-height: 1.5;
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── Container Layouts ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-container {
  width: 100%;
  max-width: 56rem; /* max-w-4xl */
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 0 1.5rem;
}

.features-container,
.table-container {
  width: 100%;
  max-width: 64rem; /* max-w-5xl */
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

/* Consistent section rhythm: py-20 md:py-28 */
.section-py {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .section-py {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

/* ── Glassmorphic Utilities ──────────────────────────────────────────────── */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

/* ── Navigation Header: Sticky Glassmorphic Header ─────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, backdrop-filter 0.3s ease-in-out, -webkit-backdrop-filter 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.site-header.header-scrolled {
  background: rgba(9, 9, 11, 0.8) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4) !important;
}

/* Tailwind utility mappings for vanilla anti-slop compatibility */
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-16 { top: 4rem; }
.z-50 { z-index: 50; }
.w-full { width: 100%; }
.transition-all { transition-property: all; }
.duration-300 { transition-duration: 300ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.bg-transparent { background-color: transparent; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-transparent { border-color: transparent; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.bg-zinc-950\/80 { background-color: rgba(9, 9, 11, 0.8); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4); }
.shadow-black\/40 { --tw-shadow-color: rgba(0, 0, 0, 0.4); }
.h-\[calc\(100vh-4rem\)\] { height: calc(100vh - 4rem); }

/* ── Mobile Navigation Drawer & Breakpoint Isolation ──────────────────── */
#mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 40;
}

#mobile-drawer {
  position: fixed;
  top: 4rem;
  right: 0;
  width: 16rem;
  height: calc(100vh - 4rem);
  background-color: #09090b;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#mobile-drawer.open,
#mobile-drawer.translate-x-0 {
  transform: translateX(0);
}

.hidden { display: none !important; }
.shrink-0 { flex-shrink: 0; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.h-16 { height: 4rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.p-2 { padding: 0.5rem; }
.p-6 { padding: 1.5rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-64 { width: 16rem; }
.right-0 { right: 0; }
.inset-0 { inset: 0; }
.z-40 { z-index: 40; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-tight { letter-spacing: -0.025em; }
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-neutral-200 { color: #e5e5e5; }
.text-neutral-300 { color: #d4d4d4; }
.text-emerald-400 { color: #34d399; }
.bg-white { background-color: #ffffff; }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-zinc-950 { background-color: #09090b; }
.bg-zinc-950\/80 { background-color: rgba(9, 9, 11, 0.8); }
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.transition { transition-property: color, background-color, border-color, opacity, transform, box-shadow; transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-duration: 300ms; }
.transition-opacity { transition-property: opacity; transition-duration: 150ms; }
.translate-x-full { transform: translateX(100%); }
.translate-x-0 { transform: translateX(0); }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.text-center { text-align: center; }

@media (min-width: 768px) {
  #mobile-drawer,
  #mobile-overlay,
  .md\:hidden,
  button#mobile-menu-btn {
    display: none !important;
  }
  .md\:flex,
  nav.hidden.md\:flex,
  .hidden.md\:flex {
    display: flex !important;
  }
  .md\:inline-flex,
  a.hidden.md\:inline-flex,
  .hidden.md\:inline-flex {
    display: inline-flex !important;
  }
}

@media (max-width: 767px) {
  nav.hidden.md\:flex,
  a.hidden.md\:inline-flex,
  .hidden.md\:flex,
  .hidden.md\:inline-flex {
    display: none !important;
  }
  .md\:hidden {
    display: flex !important;
  }
  #mobile-menu-btn {
    display: flex !important;
  }
  #mobile-drawer.hidden,
  #mobile-overlay.hidden {
    display: none !important;
  }
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand svg, .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link {
  transition: color 0.15s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Header GitHub Stats Badge */
.nav-gh-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #d4d4d8;
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-gh-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-gh-sep {
  color: var(--text-faint);
  font-size: 0.7rem;
}

/* ── Buttons & CTAs ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: var(--radius-md);
  outline: none;
  border: 1px solid transparent;
  line-height: 1.25;
}

/* Primary CTA: Clean white button with black text */
.btn-primary {
  background: #ffffff;
  color: #09090b;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: #e4e4e7;
  border-color: #e4e4e7;
  color: #09090b;
  transform: translateY(-1px);
}

/* Command Box & Secondary Buttons: Subtle glassmorphic border */
.btn-secondary,
.btn-command {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover,
.btn-command:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-command {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.btn-command svg {
  color: var(--text-muted);
}

/* Outline CTA */
.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.65rem 1.35rem;
  font-size: 0.9375rem;
}

/* ── Hero Section ────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: #d4d4d8;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 44rem;
  margin: 0 auto 4rem;
  line-height: 1.65;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* ── Multi-Tab Quickstart Command Block ───────────────────────────────────── */
.quickstart-box {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 2.75rem;
  background: rgba(24, 24, 27, 0.65);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  text-align: left;
}

.quickstart-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.3);
  gap: 0.5rem;
}

.quickstart-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.quickstart-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
}

.quickstart-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.quickstart-tab.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.quickstart-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.quickstart-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.quickstart-body {
  padding: 1.15rem 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #f4f4f5;
  line-height: 1.6;
}

.quickstart-body pre {
  margin: 0;
  white-space: pre;
}

/* ── Glassmorphic Mock Browser Window Frame ──────────────────────────────── */
.mock-browser-window {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--border-card);
  background: var(--bg-primary);
  overflow: hidden;
}

.mock-browser-header {
  background: rgba(24, 24, 27, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-card);
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  gap: 0.75rem;
}

.mock-browser-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 72px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-close {
  background-color: #FF5F56;
}

.dot-minimize {
  background-color: #FFBD2E;
}

.dot-expand {
  background-color: #27C93F;
}

.mock-browser-url {
  background: rgba(9, 9, 11, 0.8);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 300px;
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.url-lock-icon {
  color: var(--text-faint);
  flex-shrink: 0;
}

.url-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-browser-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 95px;
  justify-content: flex-end;
}

.mock-browser-badge .badge-text {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--status-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.mock-browser-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  max-height: 580px;
  background: var(--bg-primary);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-top: none;
}

.mock-browser-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: var(--bg-primary);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--status-green);
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.6);
  flex-shrink: 0;
}

/* ── Features Grid ───────────────────────────────────────────────────────── */
.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 auto;
  line-height: 1.6;
}

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

/* Feature Card: bg-zinc-900/60 border border-white/10 rounded-2xl p-6 backdrop-blur-xl hover:border-white/20 transition */
.feature-card {
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.625;
}

/* ── Live SVG Badge Showcase Section ─────────────────────────────────────── */
.badge-showcase-card {
  padding: 2rem;
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.badge-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  outline: none;
}

.badge-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.badge-item.active {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.badge-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.badge-item-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
  font-family: var(--font-mono);
}

.badge-svg-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-code-generator {
  background: #121215;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.badge-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.badge-code-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 500;
}

.copy-btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-btn-inline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}

.badge-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--text-faint);
  margin-top: 0.75rem;
}

.badge-hint strong {
  color: var(--text-muted);
}

/* ── Benchmark / Footprint Table ─────────────────────────────────────────── */
.benchmark-card {
  padding: 2rem;
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1.5rem;
}

/* Headers: text-xs font-mono uppercase tracking-wider text-neutral-400 pb-4 border-b border-white/10 */
.spec-table th {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0 1rem 1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  white-space: nowrap;
}

/* Cells: py-4 px-4 text-sm text-neutral-300 border-b border-white/5 font-mono */
.spec-table td {
  padding: 1.15rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Text alignment */
.col-left {
  text-align: left;
}

.col-right {
  text-align: right;
}

/* KeepUp Row Styling: Subtle background tint with zero raw neon green */
.spec-table tr.highlight-row {
  background: rgba(255, 255, 255, 0.04);
}

.spec-table tr.highlight-row td {
  color: #ffffff;
}

.spec-table tr.highlight-row td:first-child {
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}

.spec-table tr.highlight-row td:last-child {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

.solution-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.solution-name {
  font-weight: 600;
  color: #ffffff;
}

/* Visual Metric Bar Components in Table */
.metric-cell {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 140px;
}

.metric-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.metric-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.22);
  transition: width 0.3s ease;
}

.metric-bar-lead {
  background: var(--status-green);
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.4);
}

.metric-value-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.metric-value {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-val-lead {
  color: #ffffff;
  font-weight: 600;
}

/* Micro-badges for technology tags */
.badge-rust {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f4f5;
  letter-spacing: 0.02em;
}

.badge-go, .badge-node {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* ── Code Blocks & Previews ──────────────────────────────────────────────── */
.code-wrapper {
  position: relative;
  background: var(--bg-code);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #f4f4f5;
  overflow-x: auto;
  margin: 1.25rem 0;
}

.code-wrapper pre {
  margin: 0;
  line-height: 1.6;
}

.copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* ── Quickstart Modal ────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 620px;
  background: var(--bg-modal);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.modal-nav-links {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.modal-nav-links ul {
  margin: 0.5rem 0 1.25rem 1.25rem;
  color: var(--text-secondary);
}

.modal-nav-links strong {
  color: #ffffff;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ── Documentation Page Layout (Compatibility) ───────────────────────────── */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  padding: 2.5rem 0 5rem;
}

.docs-sidebar {
  position: sticky;
  top: 90px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 1rem;
}

.docs-nav-group {
  margin-bottom: 1.75rem;
}

.docs-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.docs-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.docs-nav-item a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.docs-nav-item a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.docs-nav-item a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.docs-content {
  min-width: 0;
  max-width: 820px;
}

.docs-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: #ffffff;
}

.docs-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  color: #ffffff;
}

.docs-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  color: #ffffff;
}

.docs-content p, .docs-content ul, .docs-content ol {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.docs-content ul, .docs-content ol {
  padding-left: 1.5rem;
}

.docs-content li {
  margin-bottom: 0.4rem;
}

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

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(9, 9, 11, 0.85);
  padding: 2.5rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

/* ── Responsive Breakpoints ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .docs-sidebar {
    position: static;
    height: auto;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.15rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .quickstart-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .quickstart-tabs {
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .mock-browser-header {
    padding: 0.5rem 0.75rem;
  }
  .mock-browser-controls {
    width: auto;
    gap: 4px;
  }
  .mock-browser-url {
    max-width: 170px;
    font-size: 0.6875rem;
    padding: 0.2rem 0.5rem;
  }
  .mock-browser-badge {
    width: auto;
  }
  .mock-browser-body {
    min-height: 480px;
    max-height: none;
    aspect-ratio: auto;
  }
  .feature-card {
    padding: 1.25rem;
  }
  .badge-showcase-card {
    padding: 1.25rem;
  }
  .benchmark-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .nav-gh-sep,
  #gh-tag-name {
    display: none;
  }
}

/* ── Fast Client-Side Search Modal & Utilities ────────────────────────────── */
#search-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1rem 2rem 1rem;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#search-modal.hidden {
  display: none !important;
}

.search-modal-container {
  width: 100%;
  max-width: 38rem;
  background-color: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: searchModalSlideIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes searchModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-header {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.search-header input {
  width: 100%;
  background: transparent;
  padding: 0.9rem 0.75rem;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  border: none;
  outline: none;
}

.search-header input::placeholder {
  color: #71717a;
}

.search-results-list {
  max-height: 24rem;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-result-item {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: transparent;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.search-result-item:hover,
.search-result-item.active {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.search-result-item mark,
mark.bg-emerald-500\/30 {
  background-color: rgba(16, 185, 129, 0.3) !important;
  color: #6ee7b7 !important;
  border-radius: 2px;
  padding: 0.05rem 0.25rem;
}

.search-footer {
  padding: 0.65rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #71717a;
}

.search-footer kbd,
.search-header kbd,
.search-trigger-btn kbd,
#search-trigger kbd,
#search-trigger-sidebar kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem 0.35rem;
  font-size: 0.625rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  border-radius: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1;
}

.search-trigger-btn,
#search-trigger,
#search-trigger-sidebar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  padding: 0.375rem 0.75rem !important;
  font-size: 0.75rem !important;
  font-family: var(--font-mono) !important;
  color: #a1a1aa !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0.5rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.search-trigger-btn:hover,
#search-trigger:hover,
#search-trigger-sidebar:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.search-trigger-btn svg,
#search-trigger svg,
#search-trigger-sidebar svg {
  width: 1rem !important;
  height: 1rem !important;
  flex-shrink: 0 !important;
}

.search-trigger-btn kbd,
#search-trigger kbd,
#search-trigger-sidebar kbd {
  margin-left: auto;
}

/* Strict SVG & layout sizing utilities */
.w-4 { width: 1rem !important; }
.h-4 { height: 1rem !important; }
.w-5 { width: 1.25rem !important; }
.h-5 { height: 1.25rem !important; }
.shrink-0 { flex-shrink: 0 !important; }
.inline-flex { display: inline-flex !important; }

/* Modal utility mappings */
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.bg-black\/70 { background-color: rgba(0, 0, 0, 0.7); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.pt-20 { padding-top: 5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.max-w-xl { max-width: 36rem; }
.bg-zinc-950 { background-color: #09090b; }
.rounded-2xl { border-radius: 1rem; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85); }
.overflow-hidden { overflow: hidden; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.max-h-96 { max-height: 24rem; }
.overflow-y-auto { overflow-y: auto; }
.p-2 { padding: 0.5rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.text-emerald-400 { color: #34d399; }
.text-emerald-300 { color: #6ee7b7; }
.bg-emerald-500\/30 { background-color: rgba(16, 185, 129, 0.3); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.text-neutral-400 { color: #a3a3a3; }
.text-neutral-500 { color: #737373; }
.text-neutral-300 { color: #d4d4d4; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded { border-radius: 0.25rem; }
.font-mono { font-family: var(--font-mono); }
.font-semibold { font-weight: 600; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-white { color: #ffffff; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cursor-pointer { cursor: pointer; }
.block { display: block; }
.mb-1 { margin-bottom: 0.25rem; }
.p-3 { padding: 0.75rem; }
.p-6 { padding: 1.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.tracking-wider { letter-spacing: 0.05em; }
.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 15px; }
.text-center { text-align: center; }
.leading-relaxed { line-height: 1.625; }
.px-0\.5 { padding-left: 0.125rem; padding-right: 0.125rem; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.text-yellow-400 { color: #facc15; }
.text-rose-400 { color: #fb7185; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.mr-1 { margin-right: 0.25rem; }



