/* ===============================
   FEATURE SHOWCASE
================================ */

.feature-showcase {
  padding: 120px 24px;
  background: #f8fafc;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px;
}

.badge {
  display: inline-block;
  background: #e6f4ff;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.section-header p {
  color: #64748b;
}

/* GRID */
.feature-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

/* MENU */
.feature-list-wrapper {
  position: relative;
  max-height: 420px;
  overflow-y: auto;
  padding-left: 20px;
}

.feature-list-wrapper::-webkit-scrollbar {
  width: 6px;
}

.feature-list-wrapper::-webkit-scrollbar-thumb {
  background: #dbeafe;
  border-radius: 20px;
}

.feature-indicator {
  position: absolute;
  left: 0;
  width: 4px;
  height: 60px;
  background: linear-gradient(180deg, #2563eb, #1e40af);
  border-radius: 10px;
  transition: top 0.3s ease;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-item {
  padding: 20px 22px;
  border-radius: 16px;
  background: white;
  cursor: pointer;
  transition: all 0.25s ease;
}

.feature-item h4 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: #64748b;
}

.feature-item:hover {
  transform: translateX(6px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

.feature-item.active {
  background: #f0f9ff;
}

/* PREVIEW */
.preview-card {
  background: white;
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 40px 80px rgba(15,23,42,0.12);
}

.preview-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  object-fit: fill;
  display: block;
  transition: opacity 0.3s ease;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 980px) {

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .feature-preview {
    order: -1;
  }

  /* Wrapper horizontal estilo app */
  .feature-list-wrapper {
    max-height: unset;
    overflow-x: auto;
    overflow-y: hidden;

    padding-left: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .feature-list {
    flex-direction: row;
    gap: 16px;
  }

  /* CARD MENOR PRA MOSTRAR O PRÓXIMO */
  .feature-item {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  /* Remove scrollbar visual */
  .feature-list-wrapper::-webkit-scrollbar {
    display: none;
  }

  .feature-indicator {
    display: none;
  }

  /* Linha ativa continua funcionando */
  .feature-item {
    position: relative;
  }

  .feature-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #1e40af);
    border-radius: 10px;
    transition: width 0.3s ease;
  }

  .feature-item.active::after {
    width: calc(100% - 40px);
  }

}