/* Hero v5 Animation Styles */

@keyframes hero-v5-particle-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-40px) scale(1.2);
        opacity: 0.7;
    }
}

@keyframes hero-v5-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.particle {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: hero-v5-particle-float 6s ease-in-out infinite;
}

.hero-v5-particle--1 { animation-delay: 0s; top: 20%; left: 10%; }
.hero-v5-particle--2 { animation-delay: 1s; top: 40%; left: 30%; }
.hero-v5-particle--3 { animation-delay: 2s; top: 60%; left: 50%; }
.hero-v5-particle--4 { animation-delay: 3s; top: 30%; left: 70%; }
.hero-v5-particle--5 { animation-delay: 4s; top: 50%; left: 90%; }
.hero-v5-particle--6 { animation-delay: 5s; top: 70%; left: 20%; }

.animate-fade-in-up {
    animation: hero-v5-fade-in-up 0.8s ease-out both;
}

.hero-v5-fade--1 { animation-delay: 0.2s; }
.hero-v5-fade--2 { animation-delay: 0.4s; }
.hero-v5-fade--3 { animation-delay: 0.6s; }
.hero-v5-fade--4 { animation-delay: 1s; }
.hero-v5-fade--5 { animation-delay: 1.2s; }

.hero-v5-blob--delayed { animation-delay: 2s; }

.hero-v5-bounce--1 { animation-delay: 0.5s; }
.hero-v5-bounce--2 { animation-delay: 1s; }

.hero-v5-ring--slow {
    top: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    max-width: 100%;
    animation-duration: 20s;
}

.hero-v5-ring--reverse {
    top: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    max-width: 100%;
    animation-duration: 15s;
    animation-direction: reverse;
}

.hero-v5-scroll-track {
    width: 1.5rem;
    height: 2.5rem;
}

.hero-v5-scroll-thumb {
    width: 0.25rem;
    height: 0.75rem;
}

.hero-v5-scroll-wrap {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    margin-left: -0.75rem;
}

.hero-v5-max-desc {
    max-width: 42rem;
}

.hero-v5-blob-nw {
    top: 3rem;
    left: 3rem;
    width: 18rem;
    height: 18rem;
    filter: blur(64px);
}

.hero-v5-blob-se {
    bottom: 3rem;
    right: 3rem;
    width: 24rem;
    height: 24rem;
    filter: blur(64px);
}

.hero-v5-card-fixed {
    width: 24rem;
    height: 24rem;
    max-width: 100%;
}

.hero-v5-card-glass {
    backdrop-filter: blur(4px);
}

.hero-v5-overlay-inner {
    top: 1rem;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
}

.hero-v5-dot--top-end {
    top: -0.5rem;
    right: -0.5rem;
    width: 2rem;
    height: 2rem;
}

.hero-v5-dot--bottom-start {
    bottom: -0.5rem;
    left: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

.hero-v5-dot--mid-end {
    top: 50%;
    right: -2rem;
    width: 1rem;
    height: 1rem;
}

.hero-v5-btn-ghost {
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-v5-btn-ghost:hover,
.hero-v5-btn-ghost:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    border-color: #fff !important;
}

/* -- Button hover states -- */
.hero-btn-primary {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.hero-btn-primary:hover,
.hero-btn-primary:focus {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.hero-btn-outline-secondary {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-btn-outline-secondary:hover,
.hero-btn-outline-secondary:focus {
    background-color: var(--bs-secondary) !important;
    color: #fff !important;
    border-color: var(--bs-secondary) !important;
    transform: translateY(-1px);
}

.hero-btn-outline-primary-light {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-btn-outline-primary-light:hover,
.hero-btn-outline-primary-light:focus {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    border-color: var(--bs-primary) !important;
    transform: translateY(-1px);
}
/* v29 step funnel — badge fixed size (w-16 h-16 has no BS util) */
.perks-funnel__badge {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
}

/* connecting horizontal line — full-width (absolute, no BS util) */
.perks-funnel__line {
    pointer-events: none;
}

/* stagger reveal animation (IntersectionObserver adds .is-visible) */
.perks-funnel__step {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.perks-funnel__step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger delays (max 4 steps) */
.perks-funnel__step:nth-child(1) { transition-delay: 0s; }
.perks-funnel__step:nth-child(2) { transition-delay: 0.1s; }
.perks-funnel__step:nth-child(3) { transition-delay: 0.2s; }
.perks-funnel__step:nth-child(4) { transition-delay: 0.3s; }

/* Bootstrap: сетка + gap как у Tailwind (row + row-cols без col даёт слипание) */
.reasons-quad-columns__bs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .reasons-quad-columns__bs-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .reasons-quad-columns__bs-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.reasons-quad-columns__subtitle-max {
    max-width: 48rem;
}

/* Как mb-8 у Tailwind (2rem) */
.reasons-quad-columns__media-mb {
    margin-bottom: 2rem;
}

/* Как w-20 h-20 у Tailwind — у bs не было фиксированного квадрата */
.reasons-quad-thumb {
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
}

.reasons-quad-columns__item {
    min-height: 400px;
}

.content-river__arc {
    width: 18rem;
    height: 18rem;
}

.content-river__node {
    width: 0.75rem;
    height: 0.75rem;
    transform: translate(-50%, -50%);
}

@media (min-width: 768px) {
    .content-river__copy--right {
        grid-column-start: 2;
    }

    .content-river__copy--left {
        grid-column-start: 1;
        grid-row-start: 1;
    }

    .content-river__spacer--left {
        order: 2;
    }
}

.features-deck {
    position: relative;
    height: 340px;
}

.features-deck__card {
    position: absolute;
    inset: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.features-deck .feat-card-hover:hover {
    transform: none;
    box-shadow: none !important;
}

.features-deck__card[data-offset="0"] {
    transform: translateY(0) scale(1);
    opacity: 1;
    z-index: 5;
}

.features-deck__card[data-offset="1"] {
    transform: translateY(14px) scale(0.97);
    opacity: 0.6;
    z-index: 4;
}

.features-deck__card[data-offset="2"] {
    transform: translateY(25px) scale(0.94);
    opacity: 0.38;
    z-index: 3;
}

.features-deck__card[data-offset="3"] {
    transform: translateY(33px) scale(0.91);
    opacity: 0.18;
    z-index: 2;
}

.features-deck__card[data-offset="hidden"] {
    transform: translateY(-10px) scale(1.01);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

@keyframes features-deck-pulse-kf {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@keyframes features-deck-spin-kf {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes features-deck-bounce-kf {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

.features-deck__decor--pulse {
    filter: blur(48px);
    animation: features-deck-pulse-kf 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.features-deck__decor--spin {
    animation: features-deck-spin-kf 1s linear infinite;
}

.features-deck__decor--bounce {
    transform: rotate(12deg);
    animation: features-deck-bounce-kf 1s infinite;
}

.features-deck__decor--line {
    transform: rotate(-12deg);
}

.features-deck__decor--rotate-12 {
    transform: rotate(12deg);
}

.features-deck__decor--rotate-minus-6 {
    transform: rotate(-6deg);
}

.features-deck__btn--hover:hover {
    transform: scale(1.05);
}

/* -- Feature card hover -- */
.feat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.12) !important;
}

/* -- Icon box sizing -- */
.feat-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
}
.feat-icon-box--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}
.feat-icon-box--xl {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
}
.feat-icon-box--circle {
    border-radius: 50%;
}

/* -- Nav/filmstrip button hover -- */
.feat-btn-nav {
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.feat-btn-nav:hover {
    transform: scale(1.1);
}

/* -- Table row hover -- */
.feat-table-row-hover {
    transition: background-color 0.15s ease;
}
.feat-table-row-hover:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* -- Accordion item hover -- */
.feat-accordion-hover summary:hover {
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 0.75rem;
}

/* -- DL item hover -- */
.feat-dl-item-hover {
    transition: background-color 0.15s ease;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.feat-dl-item-hover:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* -- Deck button hover -- */
.feat-deck-btn {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.feat-deck-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
/* BS-mode decorative shapes � subtle, non-intrusive */
.features-deck__decor--bs-blob {
    width: 16rem;
    height: 16rem;
    background-color: var(--bs-primary-bg-subtle);
    opacity: 0.35;
    filter: blur(48px);
}
.features-deck__decor--bs-shape {
    opacity: 0.15;
}
.features-deck__decor--bs-line {
    border-left: 1px solid var(--bs-primary-border-subtle);
    opacity: 0.2;
}
/* Bootstrap: blur-орби (TW — у @sem); без номера варіанту в іменах */
.stats__decor-blur-tl {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 16rem;
  height: 16rem;
  filter: blur(64px);
}

.stats__decor-blur-br {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 20rem;
  height: 20rem;
  filter: blur(64px);
}

.stats__rank-badge {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
}

/* Висота смуги; TW — градієнт у @sem, BS — bg у @sem */
.stats__bottom-line-bar {
  height: 0.25rem;
}

/* Hover та градієнти — розміри/позиції в @sem */
.stats-card-hover {
  transition:
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    transform 0.5s ease;
}

.stats-card-hover:hover {
  box-shadow:
    0 25px 50px -12px rgb(0 0 0 / 0.25);
  transform: scale(1.05);
}

.stats-gradient-overlay-hover {
  transition: opacity 0.5s ease;
  opacity: 0;
}

.stats-card-hover:hover .stats-gradient-overlay-hover {
  opacity: 1;
}

.stats-media-hover {
  transition: transform 0.3s ease;
}

.stats-card-hover:hover .stats-media-hover {
  transform: scale(1.1);
}

.stats-bottom-bar-hover {
  transition: opacity 0.5s ease;
  opacity: 0;
}

.stats-card-hover:hover .stats-bottom-bar-hover {
  opacity: 1;
}

.compare-toggle-cards__is-hidden {
    display: none !important;
}

.compare-toggle-cards__mode--active {
    filter: brightness(1.06);
}

.compare-toggle-cards__mode--idle {
    filter: brightness(0.94);
}

.compare-toggle-cards__meter-bar {
    width: 90%;
}

/* BS: індикатори як TW w-3 h-3 (padding на колі конфліктував з розміром) */
.compare-toggle-cards__status-dot {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
}

/* cta waves — SVG wave scroll (colors via currentColor in Blade) */
.cta-waves__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cta-waves__track {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 46%;
  display: flex;
  flex-direction: row;
  animation: cta-waves-flow 24s linear infinite;
  will-change: transform;
}

.cta-waves__track--front {
  bottom: 6%;
  height: 34%;
  animation-duration: 17s;
  animation-delay: -6s;
}

.cta-waves__svg {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  display: block;
}

@keyframes cta-waves-flow {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-waves__track {
    animation: none;
    transform: translateX(-25%);
  }
}

