/* Hero v8 Animation Styles */

/* Initial fade — do NOT use Bootstrap .opacity-0 (it uses !important and blocks the animation end state) */
.hero-v8-fade--1,
.hero-v8-fade--2,
.hero-v8-fade--3,
.hero-v8-fade--4,
.hero-v8-fade--5 {
    opacity: 0;
}

.hero-v8-fade--1.animate-fade-in-up { animation-delay: 0.2s; }
.hero-v8-fade--2.animate-fade-in-up { animation-delay: 0.4s; }
.hero-v8-fade--3.animate-fade-in-up { animation-delay: 0.6s; }
.hero-v8-fade--4.animate-fade-in-up { animation-delay: 0.8s; }
.hero-v8-fade--5.animate-fade-in-up { animation-delay: 1s; }

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

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(0px);
    }
    75% {
        transform: translateY(10px);
    }
}

.animate-wave {
    animation: wave 3s ease-in-out infinite;
}

.hero-v8-decor-top {
    position: absolute;
    top: -5rem;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-v8-dot--1 { animation-delay: 0s; top: 5rem; left: 4rem; }
.hero-v8-dot--2 { animation-delay: 1s; top: 8rem; right: 5rem; }
.hero-v8-dot--3 { animation-delay: 2s; bottom: 6rem; left: 5rem; }
.hero-v8-dot--4 { animation-delay: 3s; bottom: 8rem; right: 4rem; }
.hero-v8-dot--5 { animation-delay: 4s; top: 50%; left: 25%; }
.hero-v8-dot--6 { animation-delay: 5s; top: 33%; right: 33%; }

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

.hero-v8-glow--top { top: 5rem; left: 5rem; }
.hero-v8-glow--bottom { bottom: 5rem; right: 5rem; }

/* Description max width when Bootstrap omits max-w-2xl */
.hero-v8-desc-max {
    max-width: 42rem;
}

.hero-testimonial-overlay__wave-line {
    height: var(--wave-h);
    animation-delay: var(--wave-d);
}

/* -- 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);
}
.features-timeline__decor--pulse {
    animation: features-timeline-pulse-kf 2s infinite;
}
.features-timeline__decor--bounce {
    animation: features-timeline-bounce-kf 2s infinite;
    transform: rotate(12deg);
}
.features-timeline__decor--spin {
    animation: features-timeline-spin-kf 4s linear infinite;
}
.features-timeline__decor--pulse-small {
    animation: features-timeline-pulse-kf 2s infinite;
}
.features-timeline__item:hover .features-timeline__icon {
    transform: scale(1.1);
    transition: transform 0.25s ease;
}
.features-timeline__item:hover .features-timeline__title {
    color: var(--bs-primary);
}

/* ?? step number (BS mode) ?? */
.features-timeline__num-bs {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    color: var(--bs-primary-border-subtle);
    opacity: 0.8;
    min-width: 2.75rem;
    flex-shrink: 0;
    transition: color 0.25s ease, opacity 0.25s ease;
}
.features-timeline__item:hover .features-timeline__num-bs {
    color: var(--bs-primary);
    opacity: 1;
}

@keyframes features-timeline-pulse-kf {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
@keyframes features-timeline-bounce-kf {
    0%, 100% { transform: translateY(-25%) rotate(12deg); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: none rotate(12deg); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}
@keyframes features-timeline-spin-kf {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* -- 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-decor__bs-blob {
    background-color: var(--bs-primary-bg-subtle);
    opacity: 0.35;
    filter: blur(48px);
}
.features-decor__bs-shape {
    opacity: 0.15;
}
.features-decor__bs-line {
    border-left: 1px solid var(--bs-primary-border-subtle);
    opacity: 0.18;
}

/* ?? v19 timeline connector line ?? */
.features-timeline__connector {
    position: absolute;
    left: 1.75rem;
    top: 1.75rem;
    bottom: 2rem;
    width: 1px;
    background: linear-gradient(to bottom, var(--bs-primary), rgba(var(--bs-primary-rgb), 0.3), transparent);
    pointer-events: none;
}

/* ?? v19 number watermark ?? */
.features-timeline__number {
    left: -0.25rem;
    top: -0.75rem;
    line-height: 1;
    font-size: 3rem;
    font-weight: 900;
    color: var(--bs-border-color);
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
    position: absolute;
    z-index: 0;
}
/* Block: advantages-split-border-bars */
.advantages-split-border-bars__bar--hover {
    transition: transform 0.2s ease;
}

.advantages-split-border-bars__bar--hover:hover {
    transform: scale(1.05);
}

.advantages-split-border-bars__decor-circle--top {
    animation: advantages-split-border-bars-decor-drift-kf 9s ease-in-out infinite;
}

.advantages-split-border-bars__decor-circle--bottom {
    animation: advantages-split-border-bars-decor-drift-kf 12s ease-in-out infinite reverse;
}

@keyframes advantages-split-border-bars-decor-drift-kf {
    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-24px) scale(1.04);
    }
}

.perks-triple-band__tile,
.perks-triple-band__hero-img {
    transition: transform 0.2s ease;
}

.perks-triple-band__thumb {
    width: 3rem;
    height: 3rem;
}

.perks-triple-band__hero-img {
    max-height: 25rem;
    object-fit: contain;
}

@media (min-width: 640px) {
    .perks-triple-band__tile:hover {
        transform: scale(1.05);
    }

    .perks-triple-band__hero-img:hover {
        transform: scale(1.05);
    }
}

.rounded-stack-quote__portrait {
    width: 5rem;
    height: 5rem;
}

/* Лише layout / рух; кольори теми — у Blade */
.socialproof-card-hover {
    transition:
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.socialproof__stat-value,
.socialproof__stat-label {
    transition: transform 0.3s ease, color 0.2s ease;
}

@media (hover: hover) {
    .socialproof-card-hover:hover {
        box-shadow: 0 22px 44px -18px rgba(15, 23, 42, 0.2);
    }

    .dark .socialproof-card-hover:hover {
        box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.5);
    }

    .socialproof-card-hover:hover .socialproof__stat-value {
        transform: scale(1.08);
    }
}

@media (hover: hover) and (min-width: 640px) {
    .socialproof-card-hover--lift:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .socialproof-card-hover,
    .socialproof__stat-value,
    .socialproof__stat-label {
        transition: none;
    }

    .socialproof-card-hover:hover,
    .socialproof-card-hover:hover .socialproof__stat-value,
    .socialproof-card-hover--lift:hover {
        transform: none;
    }
}

.socialproof__scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 2rem 3rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.socialproof__scroll::-webkit-scrollbar { display: none; }
.socialproof__scroll.dragging { cursor: grabbing; scroll-behavior: auto; }

.socialproof__card {
    scroll-snap-align: center;
    flex-shrink: 0;
    width: 280px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.socialproof__card:hover {
    transform: scale(1.02);
}

.socialproof__glow {
    display: none;
}

.socialproof__value-text {
    font-variant-numeric: tabular-nums;
}

.socialproof__min-shrink {
    min-width: 0;
}

.socialproof__hand {
    animation: socialproof__hand-wiggle 1.4s ease-in-out infinite;
}

@keyframes socialproof__hand-wiggle {
    0% {
        transform: translateX(0);
        opacity: 0.6;
    }
    30% {
        transform: translateX(4px);
        opacity: 1;
    }
    60% {
        transform: translateX(-2px);
        opacity: 0.9;
    }
    100% {
        transform: translateX(0);
        opacity: 0.6;
    }
}

.frame-scroll-container { -webkit-overflow-scrolling: touch; }

/* BS (прев’ю + експорт): картки ~вдвічі вужчі за w-72; TW без змін */
.about-frame-strip--bs .frame-scroll-container > li:not([aria-hidden="true"]),
#section-preview-root.section-preview--bootstrap .frame-scroll-container > li:not([aria-hidden="true"]),
[data-preview-framework="bootstrap"] .frame-scroll-container > li:not([aria-hidden="true"]) {
    flex: 0 0 16rem !important;
    width: 16rem !important;
    max-width: min(16rem, 85vw) !important;
}

.frame-sq-12 { width: 3rem; height: 3rem; flex-shrink: 0; }

.frame-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.frame-card-hover:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--bs-box-shadow);
}

.frame-icon-hover {
    transition: transform 0.2s ease;
}

.frame-card-hover:hover .frame-icon-hover {
    transform: scale(1.05);
}

.frame-title-hover {
    transition: color 0.2s ease;
}

.frame-card-hover:hover .frame-title-hover {
    color: var(--bs-primary);
}

.register-aside-blobs__card {
    max-width: 56rem;
}

.register-aside-blobs__halo {
    width: 16rem;
    height: 16rem;
}

.register-aside-blobs__wash {
    width: 10rem;
    height: 10rem;
}


/* BS fallback: w-1 has no BS utility */
.pitch-beacon__timeline-line {
    width: 0.25rem;
}

.pitch-beacon__timeline-node {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

.pitch-beacon__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.pitch-beacon__inner {
    max-width: 56rem;
}

.pitch-beacon__story--rise:hover { transform: scale(1.05); transition: transform .2s ease; }

.pitch-beacon__jump--rise:hover { transform: scale(1.05); transition: transform .2s ease; }

