/* 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);
}
/* whyus v19 — fluid clamp() heading (Tailwind has no bare clamp() utility) */
.whyus-glitch-stack__heading {
    font-size: clamp(1.75rem, 1.3rem + 1.8vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
}

/* Geometry shared by both CSS frameworks (Bootstrap has no utilities for it) */
.mxw-3xl {
    max-width: 48rem !important;
}

.whyus-glitch-stack__head,
.whyus-glitch-stack__media {
    margin: 0 0 2.5rem;
}

.whyus-glitch-stack__media-img {
    height: 16rem;
}

.whyus-glitch-stack__card--offset {
    margin-top: 2.5rem;
}

.whyus-glitch-stack__card-title {
    font-size: 1.125rem;
}

/* sticky reading-progress bar — JS sets --wpg-progress (0..1), CSS turns it into a scaleX */
.whyus-glitch-stack__progress {
    height: 0.25rem;
    overflow: hidden;
}

.whyus-glitch-stack__progress-fill {
    transform: scaleX(var(--wpg-progress, 0));
    transform-origin: left center;
    will-change: transform;
}

/* responsive art-direction crop for the section hero image (BS has no object-fit util) */
.whyus-glitch-stack__media-img {
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    .whyus-glitch-stack__media-img {
        height: 20rem;
        object-position: center 35%;
    }
}

/* scale-up-on-load reveal, staggered per card by JS (IntersectionObserver adds is-visible) */
.whyus-glitch-stack__reveal {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 550ms ease, transform 550ms ease;
}

.whyus-glitch-stack__reveal.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* cursor-follow spotlight — currentColor keeps this file color-free, opacity/lightness only */
.whyus-glitch-stack__card {
    isolation: isolate;
}

.whyus-glitch-stack__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), currentColor, transparent 60%);
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
}

.whyus-glitch-stack__card:hover::after {
    opacity: 0.05;
}

/* cross-hatch corner marks — repeating-linear-gradient on currentColor, no hardcoded color */
.whyus-glitch-stack__hatch {
    width: 1.5rem;
    height: 1.5rem;
    pointer-events: none;
}

.whyus-glitch-stack__hatch::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, currentColor 0 1px, transparent 1px 4px);
    opacity: 0.6;
}

.whyus-glitch-stack__hatch--tl {
    top: 0;
    inset-inline-start: 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.whyus-glitch-stack__hatch--br {
    bottom: 0;
    inset-inline-end: 0;
    clip-path: polygon(100% 100%, 100% 0, 0 100%);
}

/* native details marker rotates open/closed instead of the UA default triangle */
.whyus-glitch-stack__summary {
    list-style: none;
    cursor: pointer;
}

.whyus-glitch-stack__summary::-webkit-details-marker {
    display: none;
}

.whyus-glitch-stack__chevron {
    transition: transform 200ms ease;
}

details[open] > .whyus-glitch-stack__summary .whyus-glitch-stack__chevron {
    transform: rotate(45deg);
}

.intro-cta-content {
    max-width: 56rem;
}

/* advantages versus — decorative corner ring (size/position only, no colors) */
.advantages-versus__ring {
    width: 18rem;
    height: 18rem;
    top: -5rem;
    left: -5rem;
}

.orbit-spotlight-quote__portrait {
    width: 6rem;
    height: 6rem;
}

/* Bootstrap: blur-орби, ранг, нижня лінія (імена без номера варіанту) */
.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;
}

.stats__bottom-line-bar {
  height: 0.25rem;
}

.stats-card-hover {
  transition:
    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-bottom-bar-hover {
  transition: opacity 0.5s ease;
  opacity: 0;
}

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

.content-column__body {
    column-gap: 2.5rem;
}

.content-column__body p {
    break-inside: avoid;
}

@media (min-width: 768px) {
    .content-column__body {
        column-count: 2;
    }
}

@media (min-width: 1200px) {
    .content-column__body {
        column-count: 3;
    }
}

/* subscribe v13 — slim row decor float/pulse & thank-you reveal (layout/animation only) */
@keyframes mailing-slim-row-ring-pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.08);
    }
}

@keyframes mailing-slim-row-orbit-float {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(calc(-50% - 0.45rem)) translateX(-0.2rem);
    }
}

@keyframes mailing-slim-row-mail-bob {
    0%, 100% {
        transform: translateY(-50%) rotate(-4deg);
    }
    50% {
        transform: translateY(calc(-50% - 0.35rem)) rotate(4deg);
    }
}

@keyframes mailing-slim-row-dot-drift {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.55;
    }
    50% {
        transform: translateY(-0.35rem);
        opacity: 1;
    }
}

@keyframes mailing-slim-row-dot-drift-centered {
    0%, 100% {
        transform: translateY(-50%);
        opacity: 0.55;
    }
    50% {
        transform: translateY(calc(-50% - 0.35rem));
        opacity: 1;
    }
}

@keyframes mailing-slim-row-thanks-in {
    from {
        opacity: 0;
        transform: translateX(0.75rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Geometry shared by both CSS frameworks (Bootstrap has no utilities for it) */
.mailing-slim-row__section--py-2xl {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mailing-slim-row__decor {
    width: 40%;
    max-width: 24rem;
}

.mailing-slim-row__bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.mailing-slim-row__group,
.mailing-slim-row__fields,
.mailing-slim-row__min0 {
    min-width: 0;
}

.mailing-slim-row__group,
.mailing-slim-row__fields {
    flex-direction: column;
    align-items: stretch;
}

.mailing-slim-row__group {
    gap: 0.75rem;
}

.mailing-slim-row__fields {
    gap: 0.5rem;
}

.mailing-slim-row__input {
    min-width: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.mailing-slim-row__cta {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .mailing-slim-row__bar,
    .mailing-slim-row__group,
    .mailing-slim-row__fields {
        flex-direction: row;
        align-items: center;
    }

    .mailing-slim-row__input {
        max-width: 20rem;
    }

    .mailing-slim-row__cta {
        width: auto;
    }
}

.mailing-slim-row__ring {
    top: 50%;
    inset-inline-end: 1.5rem;
    width: 8rem;
    height: 8rem;
    transform: translateY(-50%);
    animation: mailing-slim-row-ring-pulse 5s ease-in-out infinite;
}

.mailing-slim-row__orb {
    top: 50%;
    inset-inline-end: 4rem;
    width: 5rem;
    height: 5rem;
    transform: translateY(-50%);
    animation: mailing-slim-row-orbit-float 4.5s ease-in-out infinite;
    animation-delay: 0.4s;
}

.mailing-slim-row__mail {
    top: 50%;
    inset-inline-end: 3rem;
    transform: translateY(-50%);
    animation: mailing-slim-row-mail-bob 3.5s ease-in-out infinite;
}

.mailing-slim-row__dot--a {
    top: 50%;
    inset-inline-end: 6rem;
    width: 0.75rem;
    height: 0.75rem;
    transform: translateY(-50%);
    animation: mailing-slim-row-dot-drift-centered 3s ease-in-out infinite;
}

.mailing-slim-row__dot--b {
    top: 38%;
    inset-inline-end: 2.5rem;
    width: 0.5rem;
    height: 0.5rem;
    animation: mailing-slim-row-dot-drift 3.6s ease-in-out infinite;
    animation-delay: 0.8s;
}

.mailing-slim-row__dot--c {
    top: 62%;
    inset-inline-end: 3.5rem;
    width: 0.5rem;
    height: 0.5rem;
    animation: mailing-slim-row-dot-drift 2.8s ease-in-out infinite;
    animation-delay: 1.5s;
}

.mailing-slim-row__thanks-in {
    animation: mailing-slim-row-thanks-in 0.45s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .mailing-slim-row__ring,
    .mailing-slim-row__orb,
    .mailing-slim-row__mail,
    .mailing-slim-row__dot--a,
    .mailing-slim-row__dot--b,
    .mailing-slim-row__dot--c,
    .mailing-slim-row__thanks-in {
        animation: none;
    }
}

