/**
 * Ghost Traffic Observatory - Design System & Stylesheet
 * Theme: Cosmic Dark Observatory / Scientific Radar Visuals
 */

:root {
  --bg-space: #060913;
  --bg-panel: #0d1322;
  --bg-panel-subtle: rgba(18, 26, 44, 0.7);
  --bg-card: #121a2e;
  --bg-input: #0a0e1a;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(0, 240, 255, 0.3);
  --border-glow: rgba(0, 240, 255, 0.6);

  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-white: #ffffff;

  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.25);
  --accent-purple: #a855f7;
  --accent-purple-glow: rgba(168, 85, 247, 0.25);
  --accent-orange: #f97316;
  --accent-danger: #ef4444;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', 'SF Mono', Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-panel: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px var(--border-light);
  --shadow-glow-cyan: 0 0 20px -5px var(--accent-cyan-glow);
}

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

body {
  background-color: var(--bg-space);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.stars-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 100px 150px, rgba(0, 240, 255, 0.7), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 240px 320px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 400px 180px, rgba(168, 85, 247, 0.6), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 600px 450px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 800px 220px, rgba(16, 185, 129, 0.6), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 850px 850px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.grid-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.text-container {
  max-width: 860px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #67e8f9;
}

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

code {
  background: rgba(0, 240, 255, 0.1);
  color: #67e8f9;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.88em;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.text-muted { color: var(--text-muted); }
.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-amber { color: var(--accent-amber); }
.text-purple { color: var(--accent-purple); }
.text-success { color: var(--accent-emerald); }
.text-danger { color: var(--accent-danger); }
.text-dim { color: var(--text-dim); }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-5 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.text-center { text-align: center; }

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  padding: 14px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 18px;
}

.radar-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

.pulse-mini-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  box-shadow: 0 0 6px var(--accent-cyan);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px var(--accent-cyan); }
  50% { transform: scale(1.4); opacity: 0.7; box-shadow: 0 0 16px var(--accent-cyan); }
}

.brand-name { color: var(--text-white); }
.brand-accent { color: var(--accent-cyan); }

.brand-badge {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent-cyan);
}

.sponsor-pill {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.sponsor-pill:hover {
  background: rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 12px var(--accent-amber-glow);
  color: #fff;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 40px;
}

.live-signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.pulse-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 32px;
  line-height: 1.6;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff, #0099ff);
  color: #030814;
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #33f3ff, #1aa3ff);
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
  color: #030814;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-white);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background: #1c2742;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* KPI Cards */
.kpi-section { padding: 10px 0 40px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.kpi-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-panel);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover { transform: translateY(-2px); }
.kpi-card.glow-cyan { border-top: 3px solid var(--accent-cyan); }
.kpi-card.glow-emerald { border-top: 3px solid var(--accent-emerald); }
.kpi-card.glow-amber { border-top: 3px solid var(--accent-amber); }
.kpi-card.glow-purple { border-top: 3px solid var(--accent-purple); }

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 34px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 6px;
}

.kpi-subtext {
  font-size: 12px;
  color: var(--text-dim);
}

/* Panels & Grid */
.dashboard-grid-section { padding-bottom: 40px; }

.grid-layout-2col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

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

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.panel-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title { font-size: 17px; font-weight: 700; }
.panel-subtitle { font-size: 12px; color: var(--text-muted); display: block; }
.panel-body { padding: 24px; }
.panel-link { font-size: 13px; font-weight: 600; }

.status-indicator {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* Charts */
.chart-container {
  height: 200px;
  width: 100%;
  margin-bottom: 16px;
  position: relative;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-cyan { background: var(--accent-cyan); box-shadow: 0 0 6px var(--accent-cyan); }
.dot-amber { background: var(--accent-amber); box-shadow: 0 0 6px var(--accent-amber); }
.dot-emerald { background: var(--accent-emerald); box-shadow: 0 0 6px var(--accent-emerald); }

/* Bars */
.classification-bars { display: flex; flex-direction: column; gap: 16px; }
.bar-info { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.bar-name { font-weight: 500; }
.bar-val { font-family: var(--font-mono); font-weight: 600; }

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill { height: 100%; border-radius: var(--radius-full); transition: width 0.6s ease; }
.fill-cyan { background: var(--accent-cyan); }
.fill-amber { background: var(--accent-amber); }
.fill-purple { background: var(--accent-purple); }
.fill-orange { background: var(--accent-orange); }
.fill-emerald { background: var(--accent-emerald); }

/* Simulator Section */
.simulator-section { padding-bottom: 40px; }
.simulator-panel {
  border-color: rgba(0, 240, 255, 0.25);
  background: linear-gradient(180deg, rgba(13, 19, 34, 0.95), rgba(10, 14, 26, 0.95));
}

.form-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 16px;
  align-items: flex-end;
}

@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-white);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
}

.form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.sim-result-box {
  margin-top: 20px;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.sim-result-box.hidden { display: none; }
.sim-result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sim-res-badge { font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: var(--radius-full); background: var(--accent-cyan); color: #000; }
.sim-res-time { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); }
.sim-result-details { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* AI Behavioral Insights Portal Styles */
.insights-highlights-section {
  padding-bottom: 30px;
}

.insights-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.insight-highlight-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.insight-highlight-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.insight-number {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.insight-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.insight-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Positional Bias Styles */
.bias-section {
  padding-bottom: 40px;
}

.bias-bars-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.bias-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bias-label-wrap {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.bias-pos-name { font-weight: 600; }
.bias-finding-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 13px;
  color: #fde68a;
  line-height: 1.5;
}

/* Topology List */
.topology-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topology-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.topology-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.topology-title { font-weight: 700; font-size: 14px; }
.topology-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* Mini Bar Wrap for Matrix */
.capabilities-matrix-section {
  padding-bottom: 40px;
}

.mini-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-track {
  width: 70px;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.mini-fill { height: 100%; border-radius: var(--radius-full); }

/* Probe Cards Grid */
.probe-hub-section {
  padding-bottom: 60px;
}

.probe-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.probe-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.probe-card:hover { transform: translateY(-2px); }
.probe-card.highlight-cyan { border-color: rgba(0, 240, 255, 0.35); }
.probe-card.highlight-purple { border-color: rgba(168, 85, 247, 0.35); }

.probe-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.probe-title { font-size: 17px; margin-bottom: 8px; }
.probe-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 20px; }

/* Dynamic JS Probe Box */
.js-probe-box {
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 20px 0;
  text-align: center;
}

.probe-loading {
  font-size: 14px;
  color: var(--text-muted);
}

/* Tables & Badges */
.telemetry-feed-section { padding-bottom: 40px; }
.table-responsive { overflow-x: auto; }

.telemetry-table, .spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.telemetry-table th, .spec-table th {
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
}

.telemetry-table td, .spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.family-tag { font-weight: 600; color: var(--text-white); }
.beacon-yes { color: var(--accent-emerald); font-weight: 600; font-family: var(--font-mono); font-size: 11px; }
.beacon-no { color: var(--text-dim); font-family: var(--font-mono); font-size: 11px; }

.badge { display: inline-block; padding: 3px 8px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; }
.badge-cyan { background: rgba(0, 240, 255, 0.12); color: var(--accent-cyan); border: 1px solid rgba(0, 240, 255, 0.3); }
.badge-amber { background: rgba(245, 158, 11, 0.12); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-purple { background: rgba(168, 85, 247, 0.12); color: var(--accent-purple); border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-orange { background: rgba(249, 115, 22, 0.12); color: var(--accent-orange); border: 1px solid rgba(249, 115, 22, 0.3); }
.badge-emerald { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-muted { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }
.badge-outline { border: 1px solid var(--border-light); color: var(--text-muted); background: transparent; }

.tag-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

/* Sponsor Card */
.sponsor-section { padding-bottom: 40px; }
.sponsor-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(13, 19, 34, 0.9));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.sponsor-badge-top {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 16px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.sponsor-card-inner {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

@media (max-width: 768px) { .sponsor-card-inner { grid-template-columns: 1fr; } }

.sponsor-meta { font-size: 11px; font-weight: 700; color: #fbbf24; letter-spacing: 0.05em; margin-bottom: 4px; }
.sponsor-name { font-size: 22px; margin-bottom: 8px; }
.sponsor-brand { color: #fbbf24; }
.sponsor-text { font-size: 14px; color: var(--text-muted); max-width: 650px; margin-bottom: 12px; }
.sponsor-compliance-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }

.btn-sponsor {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

.btn-sponsor:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 20px var(--accent-amber-glow);
  color: #000;
}

.sponsor-inquiry-link { font-size: 11px; margin-top: 8px; text-align: right; }
@media (max-width: 768px) { .sponsor-inquiry-link { text-align: left; } }

/* Lab Benchmark UI */
.lab-stage-container { padding: 40px 0 80px; }
.lab-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 30px -10px var(--accent-cyan-glow);
  padding: 36px;
}

.lab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.lab-breadcrumbs { font-size: 16px; font-weight: 700; }
.session-badge { font-size: 12px; color: var(--text-dim); }

.lab-prompt-box {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
}

.prompt-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--accent-cyan); margin-bottom: 6px; }
.prompt-text { font-size: 16px; font-weight: 600; color: var(--text-white); }
.links-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 14px; }
.links-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }

.lab-option-link {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lab-option-link:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  transform: translateX(4px);
  color: var(--accent-cyan);
}

.link-bullet {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
}

.link-label { flex-grow: 1; }
.link-arrow { color: var(--text-dim); font-size: 18px; }
.lab-footer-note { border-top: 1px solid var(--border-light); padding-top: 16px; font-size: 12px; color: var(--text-dim); text-align: center; }

.lab-status-banner {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.lab-status-banner.success { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); color: #a7f3d0; }
.lab-status-banner.error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }
.status-icon { font-size: 24px; font-weight: 800; }

/* Catalog & Markdown */
.catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.crawler-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.crawler-card:hover { transform: translateY(-2px); border-color: rgba(0, 240, 255, 0.3); }
.crawler-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.crawler-name { font-size: 18px; font-weight: 700; }
.crawler-operator { font-size: 12px; color: var(--text-dim); }
.crawler-behavior { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; }
.crawler-meta-list { display: flex; flex-direction: column; gap: 8px; font-size: 12px; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 12px; }
.meta-row { display: flex; justify-content: space-between; align-items: center; }
.meta-label { color: var(--text-dim); }
.meta-code { font-size: 11px; }
.meta-val { color: var(--text-muted); font-family: var(--font-mono); }

.page-header { padding: 50px 0 24px; }
.page-title { font-size: 38px; margin-bottom: 12px; }
.page-subtitle { font-size: 16px; color: var(--text-muted); max-width: 750px; }
.content-section { padding-bottom: 80px; }
.markdown-card { background: var(--bg-panel); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 36px; }
.markdown-card h2 { font-size: 22px; margin-top: 28px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 8px; }
.markdown-card h2:first-child { margin-top: 0; }
.markdown-card p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.markdown-card ul, .markdown-card ol { color: var(--text-muted); padding-left: 24px; margin-bottom: 20px; line-height: 1.7; }
.markdown-card li { margin-bottom: 8px; }

.rule-highlight-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
}

.rule-icon { font-size: 28px; color: var(--accent-cyan); }
.rule-text { font-size: 15px; color: var(--text-white); }

/* Site Footer */
.site-footer { background: #04060d; border-top: 1px solid var(--border-light); padding: 50px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { font-size: 16px; font-weight: 800; color: var(--text-white); margin-bottom: 10px; }
.footer-desc { font-size: 13px; color: var(--text-dim); max-width: 400px; margin-bottom: 16px; }
.zero-cost-badge { display: inline-block; background: rgba(16, 185, 129, 0.1); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.25); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-full); }
.footer-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-white); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-dim); font-size: 13px; }
.footer-links a:hover { color: var(--accent-cyan); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); }
@media (max-width: 768px) { .footer-bottom { flex-direction: column; gap: 8px; } }
