body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.6;
  background: #f8fafc;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

nav {
  padding: 1.5rem 0;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #c41e3a;
}

.logo span {
  color: #64748b;
  font-weight: 400;
}

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

.links a {
  text-decoration: none;
  color: #64748b;
  font-weight: 600;
  transition: color 0.2s;
}

.links a:hover {
  color: #c41e3a;
}

.btn-outline {
  border: 2px solid #e2e8f0;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
}

.hero {
  padding: 6rem 0;
  text-align: center;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: #0f172a;
}

.hero h1 span {
  color: #c41e3a;
}

.hero p {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.btn-primary {
  background: #c41e3a;
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: 0 10px 15px -3px rgba(196, 30, 58, 0.3);
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.install-cmd {
  background: #f1f5f9;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  color: #475569;
}

.docs {
  padding: 6rem 0;
}

.doc-card {
  background: white;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
}

footer {
  padding: 4rem 0;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Telemetry Configuration (px-9000 protocol) */
.telemetry-config-bridge {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Preview Section */
.preview {
  padding: 6rem 0;
  background: #f1f5f9;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.preview-text h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}

.preview-text p {
  font-size: 1.125rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #334155;
}

.preview-chart-wrapper {
  perspective: 1000px;
}

.preview-card {
  background: white;
  padding: 1.5rem;
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: rotateY(-3deg) rotateX(1deg);
  transition: transform 0.3s ease;
}

.preview-card:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.control-panel {
  max-width: 600px;
  width: 100%;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.panel-title h4 {
  margin: 0;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 800;
}

.panel-title .subtitle {
  margin: 2px 0 0 0;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
}

.panel-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #10b981;
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-item {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.metric-item .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.metric-item .value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.metric-item .subtext {
  font-size: 0.75rem;
  color: #94a3b8;
}

.subtext.trend-up {
  color: #10b981;
  font-weight: 600;
}

/* Panel Tabs */
.panel-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  background: #f1f5f9;
  padding: 0.35rem;
  border-radius: 12px;
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: #0f172a;
}

.tab-btn.active {
  background: white;
  color: #0f172a;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.panel-grid-inner {
  position: relative;
  min-height: 250px;
  /* Keep container stable */
}

.chart-wrapper.tab-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.chart-wrapper.tab-content.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.chart-wrapper h5 {
  font-size: 0.85rem;
  margin: 0 0 0.75rem 0;
  color: #475569;
}

.canvas-container {
  height: 220px;
  position: relative;
}

/* Status Dot and Pulse remains the same below */
.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0px rgba(16, 185, 129, 0.4);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0px rgba(16, 185, 129, 0);
  }
}

@media (max-width: 768px) {
  .preview-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .preview-text h2 {
    text-align: center;
  }

  .feature-list li {
    justify-content: center;
  }

  .panel-grid-inner {
    grid-template-columns: 1fr;
  }
}