/* ── Demos Hero Section ── */
.demos-hero-section {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg-deep);
}

.demos-hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.6) 100%);
}

.demos-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}

.demos-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.4rem;
  background: linear-gradient(135deg, #f28b2a 0%, #58a6ff 50%, #f78166 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.demos-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

/* ── Demos List Section ── */
.demos-list-section {
  width: 100%;
  background: var(--color-bg);
  border-top: 1px solid var(--color-glass-border);
}

.new-demos-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
}

.new-demo-card {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.new-demo-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(242, 139, 42, 0.2);
  transform: translateY(-2px);
}

.new-demo-content {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}

.new-demo-thumbnail {
  position: relative;
  flex-shrink: 0;
  width: 320px;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-surface);
  cursor: pointer;
  border: 1px solid var(--color-glass-border);
}

.new-demo-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.new-demo-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(242, 139, 42, 0.15) 0%, rgba(88, 166, 255, 0.15) 100%);
  color: var(--color-brand-orange);
  font-size: 3rem;
}

.new-demo-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-text);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.new-demo-play-button:hover {
  background: rgba(242, 139, 42, 0.25);
  border-color: rgba(242, 139, 42, 0.6);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(242, 139, 42, 0.3);
}

.new-demo-play-button i {
  margin-left: 3px;
}

.new-demo-play-button .fa-times {
  margin-left: 0;
}

.new-demo-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.new-demo-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
}

.new-demo-description {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

.new-demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.new-demo-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(242, 139, 42, 0.08);
  color: var(--color-brand-orange);
  border: 1px solid rgba(242, 139, 42, 0.2);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.new-demo-tag:hover {
  background: rgba(242, 139, 42, 0.16);
  border-color: rgba(242, 139, 42, 0.4);
}

.new-demo-video-container {
  padding: 0 2rem 2rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 1000px;
  }
}

.new-demo-video {
  width: 100%;
  border-radius: 10px;
  background: #000000;
  outline: none;
  border: 1px solid var(--color-glass-border);
}

/* ── Empty State ── */
.new-demos-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--color-text-muted);
}

.new-demos-empty i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.4;
  display: block;
}

.new-demos-empty p {
  font-size: 1rem;
  margin: 0;
  color: var(--color-text-secondary);
}

/* ── CTA Section ── */
.demos-cta-section {
  width: 100%;
  background: var(--color-bg-deep);
  border-top: 1px solid var(--color-glass-border);
}

/* ── Responsive ── */
@media (width < 768px) {
  .new-demo-content {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.4rem;
  }

  .new-demo-thumbnail {
    width: 100%;
    height: 200px;
  }

  .new-demo-title {
    font-size: 1.2rem;
  }

  .new-demo-video-container {
    padding: 0 1.4rem 1.4rem;
  }

  .new-demos-list {
    gap: 1.5rem;
  }
}

@media (width < 480px) {
  .new-demo-content {
    padding: 1rem;
  }

  .new-demo-thumbnail {
    height: 180px;
  }

  .new-demo-play-button {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  .new-demo-video-container {
    padding: 0 1rem 1rem;
  }
}
