/* Barra de progresso de leitura */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 9999;
}

.reading-progress-bar {
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  width: 0%;
  transition: width 0.1s ease;
}

/* Estilos específicos para a página do projeto */
.page-container {
  padding: 2rem 0;
  min-height: calc(100vh - 80px - 300px);
  /* Garante espaço suficiente para conteúdo */
}

/* Estilos para a navegação de detalhes */
.detail-nav {
  display: flex;
  align-items: center;
}

.detail-nav .nav-link {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
}

.detail-nav .nav-link i {
  margin-right: 0.5rem;
  transition: transform var(--transition-fast);
}

.detail-nav .nav-link:hover i {
  transform: translateX(-3px);
}

.section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray);
  max-width: 800px;
  margin: 0 auto;
}

/* Card styles */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card h2 {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
  font-size: 1.75rem;
}

.card h2 i {
  margin-right: 0.75rem;
  font-size: 1.5rem;
}

/* Feature list styles */
.feature-list h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

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

.feature-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
}

.feature-list li i {
  margin-right: 0.75rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* Feature grid styles */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-card {
  background-color: var(--light);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  transition: transform var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-card ul {
  padding-left: 1.25rem;
}

.feature-card li {
  margin-bottom: 0.5rem;
}

/* Code block styles */
.code-block {
  background-color: var(--dark);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
}

.code-block code {
  color: white;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Tab styles */
.tabs {
  margin: 1.5rem 0;
}

.tab-header {
  display: flex;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--light-dark);
  overflow-x: auto;
  padding-bottom: 1px;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: -2px;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-btn:hover:not(.active) {
  color: var(--dark);
}

.tab-content {
  display: none;
  padding: 1rem 0;
}

.tab-content.active {
  display: block;
}

/* Check list styles */
.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  padding: 0.6rem 0;
  position: relative;
  padding-left: 1.75rem;
  border-bottom: 1px solid var(--light-dark);
}

.check-list li:last-child {
  border-bottom: none;
}

/* Polyglot persistence blocks (html_test styles) */
.max-w-6xl {
  max-width: 72rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.inline-block {
  display: inline-block;
}

.block {
  display: block;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-2 {
  padding: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-2xl {
  border-radius: 1.5rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded {
  border-radius: 0.25rem;
}

.bg-blue-900 {
  background-color: var(--primary);
}

.text-blue-300 {
  color: #ffffff;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.uppercase {
  text-transform: uppercase;
}

.border {
  border-width: 1px;
  border-style: solid;
  border-color: var(--light-dark);
}

.border-l-4 {
  border-left-width: 4px;
  border-left-style: solid;
}

.border-blue-700 {
  border-color: var(--primary-dark);
}

.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

.text-transparent {
  color: transparent;
}

.bg-gradient-to-r {
  background-image: linear-gradient(90deg,
    var(--tw-gradient-from, #60a5fa),
    var(--tw-gradient-via, #a78bfa),
    var(--tw-gradient-to, #34d399));
}

.from-blue-400 {
  --tw-gradient-from: #60a5fa;
}

.via-purple-400 {
  --tw-gradient-via: #a78bfa;
}

.to-emerald-400 {
  --tw-gradient-to: #34d399;
}

.text-brand-muted {
  color: var(--gray);
}

.text-brand-text {
  color: var(--dark);
}

.text-brand-pg {
  color: #10b981;
}

.text-brand-mg {
  color: #8b5cf6;
}

.text-brand-rd {
  color: #f59e0b;
}

.glass-card {
  background: #ffffff;
  color: var(--dark);
  border: 1px solid var(--light-dark);
  box-shadow: var(--shadow);
}

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.col-span-1 {
  grid-column: span 1 / span 1;
}

.gap-8 {
  gap: 2rem;
}

.gap-2 {
  gap: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.bg-slate-800 {
  background-color: var(--light);
}

.border-brand-rd {
  border-color: #f59e0b;
}

.border-brand-mg {
  border-color: #8b5cf6;
}

.border-brand-pg {
  border-color: #10b981;
}

.border-emerald-900 {
  border-color: #10b981;
}

.bg-emerald-900\/20 {
  background-color: rgba(16, 185, 129, 0.12);
}

.border-violet-900 {
  border-color: #8b5cf6;
}

.bg-violet-900\/20 {
  background-color: rgba(139, 92, 246, 0.12);
}

.border-amber-900 {
  border-color: #f59e0b;
}

.bg-amber-900\/20 {
  background-color: rgba(245, 158, 11, 0.12);
}

.chart-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  height: 320px;
  max-height: 400px;
}

@media (min-width: 768px) {
  .md\:p-8 {
    padding: 2rem;
  }

  .md\:text-6xl {
    font-size: 3.75rem;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-container {
    height: 380px;
  }
}

.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Notice box styles */
.notice {
  background-color: rgba(0, 200, 170, 0.1);
  border-left: 4px solid var(--secondary);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.notice p {
  margin: 0;
}

/* Text utilities */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

/* Footer enhancements for project page */
.footer-grid {
  gap: 2.5rem;
}

.footer-branding {
  max-width: 300px;
}

.footer-branding img {
  max-width: 150px;
  margin-bottom: 1rem;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding-left: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contact a {
  color: var(--gray);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: white;
}

.footer-links i,
.footer-contact i {
  margin-right: 0.5rem;
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  text-align: center;
  color: var(--gray);
  font-size: 0.875rem;
}

/* ===== Header (moved from inline styles) ===== */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.header-logo-image {
  height: 36px;
  width: auto;
  display: block;
}

.header-logo-text {
  color: var(--text, #111);
  font-size: 1rem;
  font-weight: 700;
}

/* Desktop nav list moved from inline */
.nav-desktop .nav-list {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Back link button style (moved from inline) */
.back-link.btn-ghost {
  margin-left: 8px;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  background: transparent;
  color: inherit;
}

/* Mobile nav default (controlled by main CSS/mobile rules) */
.nav-mobile {
  display: none;
  /* shown by mobile media query */
}

/* ===== Footer styles (moved from inline) ===== */
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo-image {
  height: 48px;
  width: auto;
  display: block;
}

.footer-tagline {
  margin: 0;
  color: var(--muted, #666);
  font-size: 0.95rem;
}

.footer-links-row {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--link, #5b4bff);
  text-decoration: none;
  transition: color .18s ease;
}

.footer-link:hover {
  color: darken(var(--link, #5b4bff), 6%);
}

.footer-copyright {
  margin-top: 0.5rem;
  color: var(--muted, #888);
  font-size: 0.875rem;
}

/* Persona cards styling */
.persona-card {
  background: linear-gradient(135deg, rgba(58, 54, 224, 0.05), rgba(0, 200, 170, 0.05));
  border-left: 4px solid var(--primary);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.persona-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.persona-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.persona-header i {
  font-size: 2rem;
  color: var(--primary);
}

.persona-header h4 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--dark);
}

.persona-quote {
  font-style: italic;
  color: var(--dark-light);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--secondary);
}

.persona-needs strong {
  color: var(--primary);
  font-weight: 600;
}

.persona-needs ul {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

/* User stories styling */
.user-stories {
  margin-top: 1rem;
}

.story-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--light);
  border-radius: var(--border-radius-sm);
  transition: transform 0.2s ease;
}

.story-item:hover {
  transform: translateX(5px);
  background: rgba(58, 54, 224, 0.05);
}

.story-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-weight: 700;
  border-radius: 50%;
  font-size: 1.1rem;
}

.story-item p {
  margin: 0;
  color: var(--dark-light);
}

/* Tech grid styling */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.tech-card {
  background: white;
  border: 1px solid var(--light-dark);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.tech-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tech-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.tech-card h4 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: var(--dark);
}

.tech-card ul {
  padding-left: 1.25rem;
  margin: 0;
}

.tech-card li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--dark-light);
}

/* Tab buttons with icons */
.tab-btn i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

/* Spacing utilities */
.section-spacing {
  margin-top: 2rem;
}

/* Desktop nav visible by default */
.nav-desktop {
  display: block;
  margin-left: auto;
}

/* ensure mobile stacking is preserved */
@media (max-width: 768px) {
  .nav-desktop {
    display: none !important;
  }

  .nav-mobile {
    display: block;
  }

  .footer-container {
    padding: 1.25rem 0;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .persona-card {
    padding: 1rem;
  }

  .story-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Melhorias adicionais no design */
.animate-on-scroll.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.animate-on-scroll.fade-in {
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Estilo para o botão de voltar no final da página */
.text-center .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.text-center .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.text-center .btn-primary i {
  transition: transform var(--transition-fast);
}

.text-center .btn-primary:hover i {
  transform: translateX(-3px);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .page-container {
    padding: 1rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  .card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .card h2 {
    font-size: 1.5rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tab-header {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
  }

  .code-block {
    padding: 1rem;
  }

  .code-block code {
    font-size: 0.8rem;
  }
}

/* Mockups styles */
.mockup-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mockup-controls .mockup-note {
  color: var(--muted, #666);
  font-size: 0.9rem;
}

.btn.btn-outline {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--light-dark);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.mockup-item {
  text-align: center;
}

.mockup-thumb {
  position: relative;
  display: inline-block;
}

.mockup-img {
  width: 100%;
  max-width: 380px;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto 0.5rem auto;
  transition: transform 0.18s ease;
}

.mockup-thumb:hover .mockup-img {
  transform: scale(1.03);
}

.architecture-grid {
  grid-template-columns: 1fr;
  justify-items: center;
}

.architecture-grid .mockup-thumb {
  width: min(100%, 560px);
}

.architecture-grid .architecture-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}

.architecture-grid .zoom-indicator {
  position: absolute;
  left: 0.6rem;
  bottom: 1rem;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  pointer-events: none;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .mockup-img {
    max-width: 100%;
    height: 200px;
  }

  .architecture-grid .architecture-img {
    height: auto;
  }
}

/* Lightbox / modal for full-size preview */
.mockup-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.mockup-modal.open {
  display: flex;
}

.mockup-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.mockup-modal .close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* ===== Demo MVP Video Section - 2x2 Grid Layout ===== */
.demo-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.demo-video-item {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-video-item:nth-child(1) {
  border-left-color: #3a36e0;
}

.demo-video-item:nth-child(2) {
  border-left-color: #00c8aa;
}

.demo-video-item:nth-child(3) {
  border-left-color: #f59e0b;
}

.demo-video-item:nth-child(4) {
  border-left-color: #ef4444;
}

.demo-video-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Video placeholder - lazy loading overlay */
.video-placeholder {
  cursor: pointer;
}

.video-placeholder::before,
.video-placeholder::after {
  display: none;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  z-index: 5;
  background: linear-gradient(135deg, rgba(58, 54, 224, 0.15) 0%, rgba(0, 200, 170, 0.15) 100%);
  transition: background 0.3s ease;
}

.video-placeholder:hover .video-play-overlay {
  background: linear-gradient(135deg, rgba(58, 54, 224, 0.25) 0%, rgba(0, 200, 170, 0.25) 100%);
}

.video-play-overlay i {
  font-size: 4rem;
  color: white;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease, color 0.3s ease;
}

.video-placeholder:hover .video-play-overlay i {
  transform: scale(1.15);
  color: var(--primary-light, #6c63ff);
}

.video-play-overlay span {
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Loading state when video is being loaded */
.video-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: video-spinner 0.8s linear infinite;
  z-index: 10;
}

.video-loading::after {
  content: 'A carregar vídeo...';
  position: absolute;
  top: calc(50% + 35px);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  z-index: 10;
}

@keyframes video-spinner {
  to {
    transform: rotate(360deg);
  }
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius-sm);
  z-index: 2;
}

.demo-video-item figcaption {
  margin-top: 1rem;
  text-align: center;
}

.demo-video-item figcaption strong {
  display: block;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.demo-video-item:nth-child(1) figcaption strong {
  color: #3a36e0;
}

.demo-video-item:nth-child(2) figcaption strong {
  color: #00a88e;
}

.demo-video-item:nth-child(3) figcaption strong {
  color: #d97706;
}

.demo-video-item:nth-child(4) figcaption strong {
  color: #dc2626;
}

.demo-video-item figcaption span {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* First video has larger text */
.demo-video-item:first-child figcaption strong {
  font-size: 1.25rem;
}

.demo-video-item:first-child figcaption span {
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .demo-videos-grid {
    grid-template-columns: 1fr;
  }

  .demo-video-item:first-child {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .demo-video-item {
    padding: 0.75rem;
  }

  .demo-video-item figcaption strong {
    font-size: 1rem;
  }

  .demo-video-item:first-child figcaption strong {
    font-size: 1.1rem;
  }

  .demo-video-item figcaption span {
    font-size: 0.85rem;
  }
}