/* ==========================================================================
   OXIDE STUDIO — SOTA DARK CARBON STUDIO DESIGN SYSTEM
   Design Tokens & Craft Floor Baseline (frontend-craft)
   ========================================================================== */

:root {
  /* Core Void & Carbon Surfaces */
  --void-bg: #07080a;
  --surface-base: #111318;
  --surface-card: #151821;
  --surface-elevated: #1a1e29;
  --surface-sunken: #0b0d12;
  --surface-hover: #202533;
  --surface-border: #242a38;
  --surface-border-subtle: #1c212c;
  --surface-border-highlight: #3a4358;

  /* Studio Signal Accents */
  --signal-amber: #ffbe00;
  --signal-amber-glow: rgba(255, 190, 0, 0.22);
  --signal-amber-dim: #997200;
  --laser-cyan: #00d2ff;
  --laser-cyan-glow: rgba(0, 210, 255, 0.24);
  --laser-cyan-dim: #007c99;
  --meter-green: #00e676;
  --meter-green-glow: rgba(0, 230, 118, 0.22);
  --transient-pink: #ff007f;
  --transient-pink-glow: rgba(255, 0, 127, 0.25);

  /* Inks & Contrast (Surface-tinted, WCAG AAA compliant) */
  --text-primary: #f2f5f9;
  --text-secondary: #9aa5b8;
  --text-muted: #647085;
  --text-dim: #434c5c;

  /* Typography */
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, monospace;

  /* Geometry: 0px to 2px industrial micro-bevels */
  --radius-xs: 1px;
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 3px;

  /* Audio reactive bridges */
  --audio-kick: 0.000;
  --audio-bass: 0.000;
}

/* Browser Surface Theming Standard */
::selection {
  background: var(--laser-cyan);
  color: var(--void-bg);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--surface-sunken);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-border);
  border-radius: var(--radius-xs);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--surface-border-highlight);
}

:focus-visible {
  outline: 2px solid var(--laser-cyan);
  outline-offset: 2px;
}

input, textarea, select {
  caret-color: var(--laser-cyan);
  font-family: inherit;
  color: inherit;
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */

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

body {
  font-family: var(--font-display);
  line-height: 1.5;
  background: radial-gradient(circle at 50% 0%, #151822 0%, var(--void-bg) 60%);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--text-primary);
}

p, li {
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--laser-cyan);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: #5ce1ff;
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Studio Navigation Bar
   ========================================================================== */

.studio-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 52px;
  background: rgba(7, 8, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
}

.studio-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-anchor {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--signal-amber);
  color: var(--void-bg);
  font-weight: 900;
  font-size: 15px;
  border-radius: var(--radius-xs);
  letter-spacing: -0.05em;
  box-shadow: 0 0 12px var(--signal-amber-glow);
}

.brand-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--signal-amber);
  background: rgba(255, 190, 0, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 190, 0, 0.25);
  margin-left: 4px;
}

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

.nav-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.15s ease;
}
.nav-link:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Tactile 3-Layer Industrial Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  font-family: var(--font-mono);
  transition: all 0.08s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--signal-amber);
  color: #07080a;
  border: 1px solid #ffd043;
  border-bottom: 2px solid #b38600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 16px var(--signal-amber-glow);
}
.btn-primary:hover {
  background: #ffc926;
}
.btn-primary:active {
  transform: translateY(1px);
  border-bottom-width: 1px;
}

.btn-cyan {
  background: var(--laser-cyan);
  color: #07080a;
  border: 1px solid #4de0ff;
  border-bottom: 2px solid #008ba8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 16px var(--laser-cyan-glow);
}
.btn-cyan:hover {
  background: #33d9ff;
}
.btn-cyan:active {
  transform: translateY(1px);
  border-bottom-width: 1px;
}

.btn-tactile {
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
  border-bottom: 2px solid var(--surface-sunken);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.btn-tactile:hover {
  background: var(--surface-hover);
  border-color: var(--surface-border-highlight);
  color: #fff;
}
.btn-tactile:active, .btn-tactile.active {
  background: var(--surface-sunken);
  border-color: var(--laser-cyan);
  border-bottom-width: 1px;
  transform: translateY(1px);
  color: var(--laser-cyan);
}

.btn-sm {
  padding: 4px 10px;
  font-size: 11px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding: 60px 0 40px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--laser-cyan);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--meter-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--meter-green);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.hero-title .highlight-amber {
  color: var(--signal-amber);
}
.hero-title .highlight-cyan {
  color: var(--laser-cyan);
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 78ch;
  margin-bottom: 28px;
}

.hero-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.spec-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font-mono);
}
.spec-pill .k {
  color: var(--text-muted);
}
.spec-pill .v {
  color: var(--text-primary);
  font-weight: 700;
}

/* ==========================================================================
   In-Browser Oxide Web Playground
   ========================================================================== */

.playground-shell {
  background: var(--surface-base);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  margin-top: 24px;
}

.playground-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #0d0f14;
  border-bottom: 1px solid var(--surface-border);
}

.transport-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.transport-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bpm-control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
}

.bpm-control input[type="range"] {
  width: 90px;
  accent-color: var(--signal-amber);
}

.telemetry-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--meter-green);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* DSP Visualizer Deck */
.visualizer-deck {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1px;
  background: var(--surface-border);
  padding: 1px;
}

@media (max-width: 980px) {
  .visualizer-deck {
    grid-template-columns: 1fr;
  }
}

.vis-card {
  background: var(--surface-sunken);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.vis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.vis-header .title {
  color: var(--text-secondary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vis-canvas {
  width: 100%;
  height: 140px;
  background: #050608;
  border: 1px solid var(--surface-border-subtle);
  border-radius: var(--radius-xs);
  display: block;
}

.interactive-hint {
  font-size: 10px;
  color: var(--laser-cyan);
  font-family: var(--font-mono);
  text-align: right;
  margin-top: 4px;
}

/* Playground Workstation Body */
.playground-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1px;
  background: var(--surface-border);
  padding: 1px;
}

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

.rack-panel {
  background: var(--surface-card);
  padding: 18px;
}

.panel-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--surface-border-subtle);
}

.panel-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.preset-select {
  background: var(--surface-sunken);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  outline: none;
}

/* TR-909 Sequencer Grid */
.sequencer-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seq-track {
  display: grid;
  grid-template-columns: 90px repeat(16, 1fr);
  gap: 4px;
  align-items: center;
}

.seq-track-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 6px;
}

.track-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.track-ms {
  display: flex;
  gap: 2px;
}

.btn-ms {
  padding: 2px 4px;
  font-size: 9px;
  font-family: var(--font-mono);
  background: var(--surface-sunken);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-xs);
}
.btn-ms.active-m {
  background: #ff3344;
  color: #fff;
  border-color: #ff3344;
}
.btn-ms.active-s {
  background: var(--signal-amber);
  color: #000;
  border-color: var(--signal-amber);
}

.seq-step {
  height: 28px;
  background: #191c24;
  border: 1px solid #232733;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.05s ease;
  position: relative;
}

/* Beat bar groupings */
.seq-step:nth-child(4n+2) {
  border-left: 2px solid #363d4e;
}

.seq-step:hover {
  background: #232733;
}

.seq-step.active {
  background: var(--signal-amber);
  border-color: #ffd043;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4), 0 0 8px var(--signal-amber-glow);
}

.seq-step.active-snare {
  background: var(--laser-cyan);
  border-color: #5ce1ff;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4), 0 0 8px var(--laser-cyan-glow);
}

.seq-step.active-hat {
  background: var(--meter-green);
  border-color: #69f0ae;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4), 0 0 8px var(--meter-green-glow);
}

.seq-step.active-clap {
  background: var(--transient-pink);
  border-color: #ff409f;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4), 0 0 8px var(--transient-pink-glow);
}

.seq-step.playhead::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border: 2px solid #ffffff;
  pointer-events: none;
  border-radius: var(--radius-xs);
}

/* Synth Parameter Sliders */
.synth-controls-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .synth-controls-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.control-block {
  background: var(--surface-sunken);
  padding: 10px;
  border: 1px solid var(--surface-border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-block label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.control-block input[type="range"] {
  width: 100%;
  accent-color: var(--laser-cyan);
}

.control-val {
  color: var(--laser-cyan);
  font-weight: 700;
}

/* On-Screen Piano Keyboard */
.piano-keyboard-wrap {
  margin-top: 12px;
}

.piano-keys {
  display: flex;
  height: 64px;
  position: relative;
  user-select: none;
}

.piano-key {
  flex: 1;
  background: #252a36;
  border: 1px solid #14171f;
  border-radius: 0 0 2px 2px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #606b80;
  transition: background 0.05s ease;
}

.piano-key:active, .piano-key.active {
  background: var(--laser-cyan);
  color: #07080a;
}

.piano-key.black {
  position: absolute;
  height: 40px;
  width: 5%;
  background: #0f1117;
  border: 1px solid #000;
  z-index: 2;
  color: #8c98ad;
}

.piano-key.black:active, .piano-key.black.active {
  background: var(--signal-amber);
  color: #07080a;
}

/* Key binding positions (approximate layout) */
.key-cs { left: 4.8%; }
.key-ds { left: 12.0%; }
.key-fs { left: 26.2%; }
.key-gs { left: 33.4%; }
.key-as { left: 40.5%; }
.key-cs2 { left: 54.8%; }
.key-ds2 { left: 62.0%; }
.key-fs2 { left: 76.2%; }
.key-gs2 { left: 83.4%; }
.key-as2 { left: 90.5%; }

/* Keyboard Help Bar */
.keyboard-help-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.kbd {
  display: inline-block;
  padding: 1px 5px;
  background: var(--surface-sunken);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
}

/* ==========================================================================
   Section Headers & Common Layout
   ========================================================================== */

.section {
  padding: 80px 0;
  border-top: 1px solid var(--surface-border-subtle);
}

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

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-amber);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 72ch;
}

/* ==========================================================================
   Beyond Stock Ableton: Purpose-Built for Electronic Producers
   (Asymmetric Bento Grid)
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card.col-6 {
  grid-column: span 6;
}
.bento-card.col-4 {
  grid-column: span 4;
}
.bento-card.col-8 {
  grid-column: span 8;
}
.bento-card.col-12 {
  grid-column: span 12;
}

@media (max-width: 900px) {
  .bento-card.col-6,
  .bento-card.col-4,
  .bento-card.col-8 {
    grid-column: span 12;
  }
}

.bento-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(255, 190, 0, 0.12);
  color: var(--signal-amber);
  border: 1px solid rgba(255, 190, 0, 0.25);
  border-radius: var(--radius-xs);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.bento-tag.cyan {
  background: rgba(0, 210, 255, 0.12);
  color: var(--laser-cyan);
  border-color: rgba(0, 210, 255, 0.25);
}

.bento-tag.pink {
  background: rgba(255, 0, 127, 0.12);
  color: var(--transient-pink);
  border-color: rgba(255, 0, 127, 0.25);
}

.bento-tag.green {
  background: rgba(0, 230, 118, 0.12);
  color: var(--meter-green);
  border-color: rgba(0, 230, 118, 0.25);
}

.bento-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.bento-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.bento-comparison {
  background: var(--surface-sunken);
  border: 1px solid var(--surface-border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 11px;
  font-family: var(--font-mono);
  margin-top: auto;
}

.comp-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--surface-border-subtle);
}
.comp-row:last-child {
  border-bottom: none;
}
.comp-label {
  color: var(--text-muted);
}
.comp-ableton {
  color: #ff6b7d;
}
.comp-oxide {
  color: var(--meter-green);
  font-weight: 700;
}

/* ==========================================================================
   In-App AI Copilot Showcase ("Knows What We're Doing")
   ========================================================================== */

.copilot-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
}

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

.copilot-mock-window {
  background: var(--surface-base);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.copilot-window-header {
  background: #0d0f14;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--surface-border);
}

.copilot-context-card {
  background: var(--surface-sunken);
  border: 1px solid var(--surface-border-subtle);
  border-left: 3px solid var(--signal-amber);
  padding: 10px 14px;
  margin: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.context-title {
  color: var(--signal-amber);
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.context-item {
  color: var(--text-secondary);
  line-height: 1.6;
}
.context-item span {
  color: var(--text-primary);
  font-weight: 600;
}

.copilot-chat-history {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  max-width: 90%;
  line-height: 1.45;
}

.chat-bubble.user {
  background: #1e2433;
  color: #fff;
  align-self: flex-end;
  border-left: 2px solid var(--laser-cyan);
}

.chat-bubble.copilot {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  align-self: flex-start;
  color: var(--text-secondary);
}
.chat-bubble.copilot p {
  color: var(--text-primary);
  margin-bottom: 6px;
}

.mcp-executed-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--laser-cyan);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  margin: 2px 2px 0 0;
}

.copilot-chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: #0d0f14;
  border-top: 1px solid var(--surface-border-subtle);
}

.copilot-chip {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.1s ease;
}
.copilot-chip:hover {
  background: var(--surface-hover);
  color: var(--laser-cyan);
  border-color: var(--laser-cyan);
}

/* ==========================================================================
   76 Native MCP Tools Explorer
   ========================================================================== */

.mcp-explorer-shell {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.mcp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
  justify-content: space-between;
}

.mcp-search-input {
  flex: 1;
  min-width: 240px;
  max-width: 400px;
  background: var(--surface-sunken);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  outline: none;
}
.mcp-search-input:focus {
  border-color: var(--laser-cyan);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  background: var(--surface-sunken);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.1s ease;
}
.cat-pill:hover {
  color: var(--text-primary);
  border-color: var(--surface-border-highlight);
}
.cat-pill.active {
  background: var(--laser-cyan);
  color: #07080a;
  border-color: var(--laser-cyan);
  font-weight: 700;
}

.mcp-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.tool-card {
  background: var(--surface-sunken);
  border: 1px solid var(--surface-border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.1s ease;
}
.tool-card:hover {
  border-color: var(--surface-border-highlight);
}

.tool-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.tool-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--laser-cyan);
}

.tool-category-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  background: #171c26;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

.tool-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 8px;
}

.tool-copy-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  margin-top: auto;
}
.tool-copy-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ==========================================================================
   Architecture & Subsystem Tabs
   ========================================================================== */

.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.tab-btn:hover {
  color: var(--text-primary);
}
.tab-btn.active {
  color: var(--signal-amber);
  border-bottom-color: var(--signal-amber);
}

.crates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.crate-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.crate-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--signal-amber);
  margin-bottom: 6px;
}

.crate-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.crate-invariants {
  list-style: none;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.crate-invariants li::before {
  content: "• ";
  color: var(--meter-green);
}

/* ==========================================================================
   FAQ & Clean-Room Governance
   ========================================================================== */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.faq-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.faq-answer strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.studio-footer {
  padding: 48px 0;
  background: #050608;
  border-top: 1px solid var(--surface-border);
  margin-top: 80px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-disclaimer {
  max-width: 650px;
  font-size: 11px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 16px;
  list-style: none;
  font-family: var(--font-mono);
}
