/* Text Morph — Originkit port (goo filter + morph/hold slots) */

.morph-text-root {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  user-select: none;
}

.morph-text-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-family: Inter, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: visible;
}

.morph-text-hero,
.morph-text-hero .morph-word {
  color: #818cf8;
}

body.dark .morph-text-hero,
body.dark .morph-text-hero .morph-word {
  color: #c4b5fd;
}

.morph-word-rotator {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  line-height: 1.2;
  min-height: 1.2em;
  overflow: visible;
}

.morph-word-anchor {
  visibility: hidden;
  white-space: nowrap;
  display: inline-block;
  pointer-events: none;
}

.morph-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  will-change: opacity, filter, transform;
}

.morph-subtext {
  margin-top: 1.25rem;
  opacity: 0;
  animation: morph-fade-up 1s ease-out 1s forwards;
}

@keyframes morph-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .morph-word {
    animation: none !important;
    opacity: 0;
    filter: none !important;
  }
  .morph-word:nth-child(2) {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  .morph-subtext {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .morph-text-container {
    filter: none !important;
  }
}
