/* ---- card stack (vanilla, mirrors the React CardStack component) ---- */
.fx-cardstack {
  width: 100%;
  max-width: 900px;
  margin: 80px auto 120px;
  padding: 0 24px;
  position: relative;
}

.fx-cardstack-title {
  font-family: var(--font-geist-sans), Geist, ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  text-align: center;
}

.fx-cardstack-stage {
  position: relative;
  width: 100%;
  height: 420px;
  perspective: 1100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.fx-cardstack-card {
  position: absolute;
  bottom: 0;
  width: 320px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.35s ease,
              box-shadow 0.3s ease;
  transform-style: preserve-3d;
  user-select: none;
}

.fx-cardstack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-drag: none;
}

.fx-cardstack-card .fx-cardstack-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  pointer-events: none;
}

.fx-cardstack-card .fx-cardstack-label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  pointer-events: none;
}

.fx-cardstack-card.active {
  cursor: grab;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  z-index: 100;
}

.fx-cardstack-card.active:active {
  cursor: grabbing;
}

.fx-cardstack-dots {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fx-cardstack-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.fx-cardstack-dot.active {
  background: #fff;
  transform: scale(1.25);
}

@media (max-width: 640px) {
  .fx-cardstack-card { width: 240px; height: 160px; }
  .fx-cardstack-stage { height: 320px; }
}