/* ==========================================================================
   ULTSQL — Minimalist Monochrome Design System
   Inspired by Bklit UI & shadcn/ui (Strictly Black & White)
   Powered by Anime.js v4 Kinetic Motion
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Strictly Monochrome Black & White (Dark Default) */
  --bg-base: #000000;
  --bg-surface: #0a0a0c;
  --bg-surface-elevated: #121214;
  --bg-surface-hover: #1c1c20;
  --bg-glass: rgba(10, 10, 12, 0.85);
  --bg-glass-card: rgba(14, 14, 16, 0.7);
  --bg-glass-input: #050507;

  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.18);
  --border-strong: rgba(255, 255, 255, 0.35);
  --border-glow: rgba(255, 255, 255, 0.25);

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --text-inverse: #000000;

  /* Monochrome Chart & Accent Tokens */
  --accent-primary: #ffffff;
  --accent-primary-hover: #e4e4e7;
  --accent-primary-glow: rgba(255, 255, 255, 0.15);

  --chart-1: #ffffff;
  --chart-2: #d4d4d8;
  --chart-3: #a1a1aa;
  --chart-4: #71717a;
  --chart-5: #3f3f46;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spatial Scales */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 35px rgba(255, 255, 255, 0.08);

  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode (Strictly Minimal White & Black) */
[data-theme="light"] {
  --bg-base: #ffffff;
  --bg-surface: #fafafa;
  --bg-surface-elevated: #f4f4f5;
  --bg-surface-hover: #e4e4e7;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-glass-card: rgba(250, 250, 250, 0.85);
  --bg-glass-input: #ffffff;

  --border-subtle: rgba(0, 0, 0, 0.09);
  --border-medium: rgba(0, 0, 0, 0.16);
  --border-strong: rgba(0, 0, 0, 0.35);
  --border-glow: rgba(0, 0, 0, 0.15);

  --text-primary: #000000;
  --text-secondary: #52525b;
  --text-tertiary: #a1a1aa;
  --text-inverse: #ffffff;

  --accent-primary: #000000;
  --accent-primary-hover: #27272a;
  --accent-primary-glow: rgba(0, 0, 0, 0.1);

  --chart-1: #000000;
  --chart-2: #27272a;
  --chart-3: #52525b;
  --chart-4: #a1a1aa;
  --chart-5: #e4e4e7;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(0, 0, 0, 0.05);
}

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

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

body {
  overflow-x: clip;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-base);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Bklit UI Signature Dot Matrix Background with Cursor Spotlight */
.bklit-dot-grid-base {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

[data-theme="light"] .bklit-dot-grid-base {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.14) 1.2px, transparent 1.2px);
}

.bklit-dot-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle 550px at var(--mouse-x, 50%) var(--mouse-y, 30%), black 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 550px at var(--mouse-x, 50%) var(--mouse-y, 30%), black 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
}

[data-theme="light"] .bklit-dot-grid {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.30) 1.5px, transparent 1.5px);
  mask-image: radial-gradient(circle 550px at var(--mouse-x, 50%) var(--mouse-y, 30%), black 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 550px at var(--mouse-x, 50%) var(--mouse-y, 30%), black 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}

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

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

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

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

/* Reading Progress Bar (Minimal Monochrome) */
.scroll-progress-bar {
  position: fixed;
  top: 24px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--text-primary);
  z-index: 10002;
  pointer-events: none;
}

/* Header & Nav (Minimalist Floating Pill - Fixed on Scroll) */
.header-wrapper {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  padding: 0 1.25rem;
  pointer-events: none;
}

.navbar-pill {
  pointer-events: auto;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-normal);
}

.navbar-pill:hover {
  border-color: var(--border-medium);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.nav-brand img {
  filter: grayscale(1) brightness(1.2);
}

[data-theme="light"] .nav-brand img {
  filter: grayscale(1) brightness(0.2);
}

.nav-version-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

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

.nav-item-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.nav-item-link:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.nav-item-link.active {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

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

/* Command Palette Trigger Button */
.cmd-k-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.65rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cmd-k-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.kbd-shortcut {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 0.1rem 0.3rem;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
}

/* Buttons (Strictly Minimal Black & White) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.btn-glass {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-glass:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
}

.btn-cyan {
  background: var(--text-primary);
  color: var(--text-inverse);
}

.btn-cyan:hover {
  background: var(--accent-primary-hover);
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 5rem 0 5.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.8rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-primary);
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.text-gradient-primary, .text-gradient-cyan, .text-gradient-violet {
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: initial;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 540px;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-cli-install {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.45rem 0.35rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: border-color var(--transition-fast);
}

.hero-cli-install:hover {
  border-color: var(--border-medium);
}

.cli-prompt {
  color: var(--text-primary);
  font-weight: 700;
}

.cli-copy-btn {
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.cli-copy-btn:hover {
  color: var(--text-inverse);
  background: var(--text-primary);
}

.hero-specs-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.spec-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ==========================================================================
   HERO INTERACTIVE CANVA (MONOCHROME KINETIC SIMULATOR)
   ========================================================================== */
.hero-visual-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.hero-visual-card:hover {
  border-color: var(--border-strong);
}

.canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 0.35rem;
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-medium);
}
.window-dot.red, .window-dot.yellow, .window-dot.green {
  background: var(--border-strong);
}

.canvas-status {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-primary);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

#heroCanvas {
  width: 100%;
  height: 320px;
  display: block;
  border-radius: var(--radius-xs);
  background: transparent;
  cursor: crosshair;
}

.canvas-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.canvas-legend {
  display: flex;
  gap: 0.85rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-color {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* ==========================================================================
   SECTIONS GENERAL (MINIMAL)
   ========================================================================== */
.section-wrapper {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE PLAYGROUND SECTION (MINIMAL B&W)
   ========================================================================== */
.playground-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.playground-nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.85rem;
}

.preset-tabs-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.preset-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.preset-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.preset-tab-btn.active {
  color: var(--text-primary);
  background: var(--bg-surface);
  border-color: var(--border-medium);
}

.engine-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.engine-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-primary);
}

.playground-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
}

@media (max-width: 900px) {
  .playground-split {
    grid-template-columns: 1fr;
  }
}

.editor-pane {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-base);
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.sql-editor-textarea {
  flex: 1;
  width: 100%;
  min-height: 350px;
  padding: 1.15rem;
  background: transparent;
  color: var(--text-primary);
  border: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  tab-size: 2;
  white-space: pre;
}

.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
}

.results-pane {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  overflow: hidden;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.results-body {
  flex: 1;
  overflow: auto;
  padding: 0.85rem;
  min-height: 350px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.results-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  position: sticky;
  top: 0;
}

.results-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.results-table tr:hover td {
  background: var(--bg-surface-hover);
}

/* ==========================================================================
   4 CONVERGED PILLARS (MINIMAL B&W CARDS)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.pillar-badge-strip {
  display: none;
}

.pillar-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.pillar-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pillar-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.pillar-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.pillar-features-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pillar-features-list li svg {
  color: var(--text-primary);
  flex-shrink: 0;
}

.pillar-code-snippet {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  overflow-x: auto;
}

/* ==========================================================================
   INTERACTIVE BENCHMARKS WITH ANIME.JS (BKLIT MONOCHROME CHART STYLE)
   ========================================================================== */
.benchmarks-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.benchmark-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 0.85rem;
}

.benchmark-tabs {
  display: flex;
  gap: 0.35rem;
  background: var(--bg-surface-elevated);
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.benchmark-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.benchmark-tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.benchmark-graph-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.benchmark-bar-row {
  display: grid;
  grid-template-columns: 160px 1fr 100px;
  align-items: center;
  gap: 1.25rem;
}

@media (max-width: 650px) {
  .benchmark-bar-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

.bar-engine-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.bar-track {
  height: 32px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-xs);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
}

.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-xs);
  background: var(--bar-color, #ffffff);
  transition: width 0.1s linear;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.65rem;
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 0.74rem;
  font-family: var(--font-mono);
}

.bar-metric-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  text-align: right;
}

/* ==========================================================================
   FEATURE ARCHITECTURE MATRIX (MINIMAL)
   ========================================================================== */
.feature-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: all var(--transition-normal);
}

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

.feature-tag {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.feature-box-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-box-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   SDK INSTALL & QUICKSTART SECTION
   ========================================================================== */
.install-tabs-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.install-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.install-tabs-nav {
  display: flex;
  gap: 0.35rem;
}

.install-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.install-tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.install-code-box {
  padding: 1.25rem;
  background: var(--bg-base);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-primary);
  position: relative;
  overflow-x: auto;
}

/* ==========================================================================
   GLOBAL COMMAND PALETTE (MODAL)
   ========================================================================== */
.cmd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

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

.cmd-modal-panel {
  width: 90%;
  max-width: 580px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-fast);
}

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

.cmd-search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.65rem;
}

.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.cmd-results-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 0.4rem;
  list-style: none;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.cmd-item:hover, .cmd-item.selected {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.cmd-item-icon {
  margin-right: 0.65rem;
}

.cmd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* ==========================================================================
   TOAST NOTIFICATION (MINIMAL B&W)
   ========================================================================== */
.toast-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  color: var(--text-inverse);
  font-size: 0.82rem;
  font-weight: 700;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.toast-bubble.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   FOOTER (MINIMAL)
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-base);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 850px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  margin-top: 0.75rem;
  max-width: 300px;
  line-height: 1.55;
}

.footer-column-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* ==========================================================================
   MOBILE DRAWER
   ========================================================================== */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.25rem;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.35rem 0;
}

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

@media (max-width: 860px) {
  .nav-links, .cmd-k-btn {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-visual-card {
    order: -1;
  }
}

/* ==========================================================================
   ANALOG NOISE / FILM GRAIN OVERLAY ("Imperfection & Tactile Depth")
   ========================================================================== */
.analog-grain-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

[data-theme="light"] .analog-grain-overlay {
  opacity: 0.022;
  filter: invert(1);
}

/* ==========================================================================
   ARCHITECTURAL CAD RULER & TELEMETRY SYSTEM
/* ==========================================================================
   ARCHITECTURAL CAD RULER, GUIDELINES & TELEMETRY SYSTEM
   ========================================================================== */
.architectural-ruler-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-tertiary);
  user-select: none;
  overflow: visible;
}

.ruler-ticks-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0.45;
  overflow: hidden;
  background-image: repeating-linear-gradient(to right, transparent, transparent 11px, var(--border-medium) 11px, var(--border-medium) 12px);
}

.ruler-tick {
  flex: 0 0 12px;
  height: 5px;
  border-right: 1px solid var(--border-medium);
}
.ruler-tick.major {
  height: 11px;
  border-right-color: var(--text-secondary);
}

/* Needle Marker sitting directly on the ruler at X coordinate */
.ruler-indicator-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--text-primary);
  pointer-events: none;
  display: block;
  z-index: 10;
  transform: translateX(-100px);
}

.ruler-indicator-marker::after {
  content: '';
  position: absolute;
  top: 0;
  left: -3px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 5px solid var(--text-primary);
}

/* CAD Crosshair Guidelines Dropping from Ruler through Cursor */
.cad-guideline-v {
  position: fixed;
  top: 24px;
  bottom: 0;
  left: 0;
  width: 1px;
  border-left: 1px dashed rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 9995;
  transform: translateX(-100px);
  transition: opacity 0.2s ease;
}

.cad-guideline-h {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 9995;
  transform: translateY(-100px);
  transition: opacity 0.2s ease;
}

[data-theme="light"] .cad-guideline-v {
  border-left: 1px dashed rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .cad-guideline-h {
  border-top: 1px dashed rgba(0, 0, 0, 0.18);
}

.ruler-toggle-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.15rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ruler-toggle-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.ruler-telemetry {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 2;
}

.ruler-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ruler-dot-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-primary);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Adjust header navbar top position to account for the top ruler */
.header-wrapper {
  top: calc(24px + 0.85rem) !important;
}

/* ==========================================================================
   CAD ARCHITECTURE HUD & LIVE ENGINE TELEMETRY
   ========================================================================== */
.cad-hud-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.cad-hud-title-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cad-hud-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-primary);
  animation: pulseGlow 1.8s infinite ease-in-out;
}

.cad-hud-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.cad-hud-version {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-tertiary);
  padding: 0.1rem 0.35rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
}

.cad-hud-mode-selector {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-base);
  padding: 0.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.cad-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.cad-mode-btn:hover {
  color: var(--text-primary);
}

.cad-mode-btn.active {
  color: var(--text-inverse);
  background: var(--text-primary);
}

.cad-mode-num {
  opacity: 0.65;
  font-size: 0.58rem;
}

.cad-hud-stage {
  position: relative;
  min-height: 310px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  margin: 0.75rem 0;
  overflow: hidden;
}

.cad-view {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 310px;
  padding: 0.85rem;
  gap: 0.65rem;
}

/* Pipeline View */
.cad-pipeline-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cad-pipeline-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-tertiary);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cad-model-chips {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.cad-chip {
  padding: 0.18rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cad-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.cad-chip.active {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border-color: var(--text-primary);
  font-weight: 600;
}

.cad-blueprint-diagram {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.cad-flow-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
}

.cad-node {
  padding: 0.4rem 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
  overflow: hidden;
}

.cad-node.pulse-node {
  border-color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.cad-node-badge {
  font-size: 0.52rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.1rem;
  letter-spacing: 0.05em;
}

.cad-node-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cad-node-sub {
  display: block;
  font-size: 0.56rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cad-flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 18px;
}

.cad-laser-beam {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--border-medium);
  top: 50%;
  transform: translateY(-50%);
  transition: all var(--transition-fast);
}

.cad-laser-beam.active-beam {
  background: var(--text-primary);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.cad-connector-arrow {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.cad-live-console {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.6rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cad-console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.4rem;
  font-size: 0.6rem;
  color: var(--text-tertiary);
}

.cad-console-time {
  color: var(--text-primary);
  font-weight: 700;
}

.cad-console-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cad-console-line {
  line-height: 1.5;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cad-console-line .c-dim {
  color: var(--text-tertiary);
  margin-right: 0.3rem;
}

.cad-console-line .c-key {
  color: var(--text-primary);
  font-weight: 600;
  margin-right: 0.3rem;
}

.cad-console-line.c-res {
  color: var(--text-primary);
  font-weight: 600;
}

/* Slotted Page View */
.slotted-page-hud {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 0.6rem;
}

.slotted-page-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
}

.slotted-page-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
}

.slotted-page-spec {
  font-size: 0.62rem;
  color: var(--text-tertiary);
  margin-left: 0.4rem;
}

.slotted-page-crc {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.slotted-page-crc .crc-val {
  color: var(--text-primary);
  font-weight: 700;
}

.slotted-memory-strip {
  display: flex;
  height: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
}

.mem-block {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 1px solid var(--border-subtle);
}

.mem-header {
  width: 65px;
  background: var(--bg-surface-hover);
  color: var(--text-secondary);
}

.mem-slots {
  width: 75px;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.mem-free {
  flex: 1;
  background: var(--bg-base);
  color: var(--text-tertiary);
  text-align: center;
}

.mem-tuples {
  width: 130px;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-right: none;
}

.slotted-records-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 140px;
  overflow-y: auto;
}

.slotted-rec-row {
  display: grid;
  grid-template-columns: 65px 110px 1fr auto;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.3rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  transition: all var(--transition-fast);
}

.slotted-rec-row:hover {
  border-color: var(--border-medium);
}

.rec-slot {
  font-weight: 700;
  color: var(--text-primary);
}

.rec-offset {
  color: var(--text-tertiary);
  font-size: 0.6rem;
}

.rec-data {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-tag {
  font-size: 0.52rem;
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.08rem 0.35rem;
  border-radius: var(--radius-xs);
  font-weight: 600;
}

.slotted-actions-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.slotted-status-msg {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-tertiary);
  margin-left: auto;
}

/* Vector Radar View */
.vector-radar-hud {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 0.45rem;
}

.vector-radar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.35rem;
}

.radar-label {
  color: var(--text-tertiary);
  margin-right: 0.25rem;
}

.radar-val {
  color: var(--text-primary);
  font-weight: 600;
}

.radar-canvas-container {
  position: relative;
  width: 100%;
  height: 195px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  overflow: hidden;
}

#cadRadarCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.radar-overlay-tip {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-tertiary);
  pointer-events: none;
}

.radar-readout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.35rem 0.65rem;
}

.radar-score-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-inverse);
  background: var(--text-primary);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
}

/* CAD HUD Footer */
.cad-hud-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.5rem;
  font-family: var(--font-mono);
  flex-wrap: wrap;
}

.cad-footer-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cad-footer-msg {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.cad-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cad-link-playground {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.cad-link-playground:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.btn-xs {
  padding: 0.25rem 0.65rem !important;
  font-size: 0.7rem !important;
}

/* ==========================================================================
   TECHNICAL CAD CORNER CROSSHAIRS
   ========================================================================== */
.with-corners {
  position: relative !important;
}

.corner-cross {
  position: absolute;
  width: 9px;
  height: 9px;
  pointer-events: none;
  z-index: 3;
  opacity: 0.35;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.with-corners:hover .corner-cross {
  opacity: 0.95;
  transform: scale(1.2);
}

.corner-cross.tl { top: -5px; left: -5px; }
.corner-cross.tr { top: -5px; right: -5px; }
.corner-cross.bl { bottom: -5px; left: -5px; }
.corner-cross.br { bottom: -5px; right: -5px; }

.corner-cross::before,
.corner-cross::after {
  content: '';
  position: absolute;
  background: var(--text-primary);
}

.corner-cross::before {
  top: 4px;
  left: 0;
  width: 9px;
  height: 1px;
}

.corner-cross::after {
  top: 0;
  left: 4px;
  width: 1px;
  height: 9px;
}

/* ==========================================================================
   CUSTOM KINETIC MONOCHROME CURSOR
   ========================================================================== */
body {
  cursor: crosshair;
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.22s ease,
              border-color 0.22s ease,
              border-radius 0.22s ease;
}

[data-theme="light"] .custom-cursor-ring {
  border-color: rgba(0, 0, 0, 0.35);
}

.custom-cursor-ring.cursor-hover {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--text-primary);
}

[data-theme="light"] .custom-cursor-ring.cursor-hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--text-primary);
}

.custom-cursor-ring.cursor-text {
  width: 4px;
  height: 24px;
  border-radius: 2px;
  border: none;
  background: var(--text-primary);
}

.custom-cursor-hud {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-sm);
  transform: translate(22px, 22px);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.custom-cursor-hud.active {
  opacity: 0.9;
}

/* Click Shockwave Ripple */
.click-ripple {
  position: fixed;
  border: 1px solid var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  animation: ripple-expand 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ripple-expand {
  0% {
    width: 0;
    height: 0;
    opacity: 0.8;
  }
  100% {
    width: 85px;
    height: 85px;
    opacity: 0;
  }
}

@media (hover: none) and (pointer: coarse) {
  .custom-cursor-dot,
  .custom-cursor-ring,
  .custom-cursor-hud {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .architectural-ruler-top .ruler-telemetry {
    display: none !important;
  }
}

/* Fixed Header Spacing Helpers for all subpages and main */
.hero-wrapper {
  padding-top: 5rem;
}

.docs-container,
.features-container,
.bench-container,
main.license-container,
main.container {
  padding-top: 6.75rem !important;
}

@media (max-width: 768px) {
  .hero-wrapper {
    padding-top: 4.5rem;
  }
  .docs-container,
  .features-container,
  .bench-container,
  main.license-container,
  main.container {
    padding-top: 5rem !important;
  }
}


