/* Evidence visuals — demos hub & homepage intelligence strip */

.nv-strip {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.nv-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .nv-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
  .nv-grid--3 {
    grid-template-columns: 1.1fr 0.9fr 1fr;
  }
}

.nv-panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 20px);
  padding: 20px;
  overflow: hidden;
}

.nv-panel h3 {
  font-size: 1rem;
  margin: 0.35rem 0 0.75rem;
}

.nv-eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
}

.nv-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
}

.nv-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.nv-compare-col {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.nv-compare-col.bad {
  border-color: rgba(255, 43, 43, 0.35);
  background: rgba(255, 43, 43, 0.06);
}

.nv-compare-col.good {
  border-color: rgba(219, 71, 34, 0.35);
  background: rgba(219, 71, 34, 0.08);
}

.nv-compare-col pre {
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--text2);
  white-space: pre-wrap;
  margin: 8px 0 0;
}

.nv-car-stage {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nv-car-stage svg {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.nv-sensor-dot {
  animation: nv-pulse 2.4s ease-in-out infinite;
}

@keyframes nv-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.nv-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.nv-scroll > article {
  flex: 0 0 min(340px, 88vw);
  scroll-snap-align: start;
}

.nv-scroll-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.nv-scroll-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border2);
  cursor: pointer;
  padding: 0;
}

.nv-scroll-dots button.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.nv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text3);
}

.nv-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

.nv-legend .l-baseline::before { background: #6b7280; }
.nv-legend .l-nadir::before { background: var(--accent); }
.nv-legend .l-danger::before { background: var(--red, #ff2b2b); }

/* Homepage product tabs polish */
.preview-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.preview-panel {
  display: none;
  animation: nv-fade 0.35s ease;
}

.preview-panel.active {
  display: block;
}

@keyframes nv-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.preview-panel-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  background: rgba(18, 20, 25, 0.6);
}
