/* Dodatkowe drobne style, jeśli potrzebne */
html {
  overflow-x: hidden;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* FAQ: kursor wskazujący na akordeonie (niezależnie od Tailwind purge) */
#faq details {
  cursor: pointer;
}
#faq details p {
  cursor: text;
}

/* -- NOWE Style dla sekcji HERO / Animacja Litera po Literze (Pure CSS) -- */

.text-hero-container {
  /* Zmieniono na normalny przepływ i usunięto height/width 100% */
  position: relative;
  display: inline-block;
  text-align: center;
}

/* -- NOWE Style dla sekcji HERO / Animacja Litera po Literze (Pure CSS) -- */

/* USUNIĘTO: .text-hero-container (zastąpiony małym div.relative) */

.laminatech-text {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 10vw, 8rem);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  /* Ten H1 ustala teraz wysokość */
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

/* 1. Tekst TŁA - Bazowy, Ciemny/Szary (Niewypalony materiał) */
.background-text {
  /* KLUCZOWA ZMIANA: Został w normalnym przepływie */
  color: transparent;
  display: block;
}

/* 2. Kontener Tekstu ODSŁANIANEGO */
.revealed-wrapper {
  /* KLUCZOWA ZMIANA: Nakładka względem nowego, małego kontenera nadrzędnego */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Dodajemy, aby pokryć cały h1 */
  color: white;
  z-index: 10;
  display: flex;
  justify-content: center;
}

/* Styl dla kontenera liter (pozostaje taki sam) */
.text-split {
  display: flex;
  justify-content: center;
}

.text-split span {
  display: inline-block;
  opacity: 0;
  color: transparent;
  /* Czerwony kontur lasera na początku */
  -webkit-text-stroke: 4px #ef4444;
  text-stroke: 4px #ef4444;

  /* Animacja dla każdej litery */
  animation: laser-cut 0.5s ease-out forwards;
  margin: 0;
  padding: 0;
  /* Zmniejszenie odstępów między literami */
  letter-spacing: -0.05em;
}
/* ... reszta animacji laser-cut i fade-in pozostaje bez zmian ... */

/* KLUCZOWA ANIMACJA WYCINANIA (Dla każdego <span>) */
@keyframes laser-cut {
  0% {
    opacity: 1;
    color: transparent;
    -webkit-text-stroke: 4px #ef4444;
    text-stroke: 4px #ef4444;
    filter: drop-shadow(0 0 8px #ef4444);
  }
  50% {
    opacity: 1;
    color: transparent;
    -webkit-text-stroke: 4px #ef4444;
    text-stroke: 4px #ef4444;
    filter: drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 8px #ef4444);
  }
  100% {
    opacity: 1;
    color: white;
    -webkit-text-stroke: 0;
    text-stroke: 0;
    filter: none;
  }
}

/* Prosta animacja fade-in dla elementów poniżej animacji lasera */
.animate-fade-in {
  opacity: 0;
  /* Krótsze opóźnienie — szybszy LCP (treść widoczna wcześniej) */
  animation: fade-in 0.75s ease-out forwards 1s;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .laminatech-text span {
    animation: none !important;
    opacity: 1 !important;
    color: #fff !important;
    -webkit-text-stroke: 0 !important;
  }
  .animate-fade-in {
    animation: none !important;
    opacity: 1 !important;
  }
}
