.touchscreen-demos-section {
  position: relative;
  padding: 92px 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 240, 255, 0.11), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(139, 92, 246, 0.1), transparent 28%);
}

.touchscreen-demos-section .section-desc {
  max-width: 840px;
  margin-inline: auto;
}

.touchscreen-demos-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 30px 0 14px;
}

.touchscreen-demos-filter {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #cbd5e1;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.touchscreen-demos-filter:hover,
.touchscreen-demos-filter:focus-visible,
.touchscreen-demos-filter.is-active {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.13);
  color: #ecfeff;
}

.touchscreen-demos-status {
  min-height: 24px;
  margin: 0 0 18px;
  color: #94a3b8;
  text-align: center;
  font-size: 13px;
}

.touchscreen-demos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.touchscreen-demos-grid .demo-card {
  grid-column: span 1;
  height: 100%;
}

.touchscreen-demos-grid .demo-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.touchscreen-capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 2px 0 16px;
}

.touchscreen-capability {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 7px;
  background: rgba(16, 185, 129, 0.1);
  color: #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.touchscreen-capability--hardware {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
}

.touchscreen-capability--optional {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.12);
  color: #ddd6fe;
}

.touchscreen-demos-empty {
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  color: #cbd5e1;
  text-align: center;
}

.touchscreen-demos-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.touchscreen-demos-more-wrap[hidden] {
  display: none;
}

@media (max-width: 992px) {
  .touchscreen-demos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .touchscreen-demos-section {
    padding: 68px 0;
  }

  .touchscreen-demos-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-inline: -20px;
    padding-inline: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .touchscreen-demos-filter {
    flex: 0 0 auto;
  }

  .touchscreen-demos-grid {
    grid-template-columns: 1fr;
  }
}
