/* 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);
}
.intro-instructor__media {
    width: 20rem;
    height: 24rem;
}

.intro-instructor__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.services__tile--lift {
  transition: transform 0.3s ease;
}

.services__tile--lift:hover {
  transform: scale(1.05);
}

.services__cta--lift {
  transition: transform 0.3s ease;
}

.services__cta--lift:hover {
  transform: scale(1.05);
}

.services__marker--offset {
  top: 0.5rem;
  inset-inline-end: 0.5rem;
}

.services__marker--reveal {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.services__tile:hover .services__marker--reveal {
  opacity: 1;
}

/* v27 pill reveal — button transition (active colors via TW/BS classes in blade + JS) */
.perks-pill-reveal__pill {
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Geometry shared by both CSS frameworks (Bootstrap has no utilities for it) */
.whyus-cryptic {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mxw-3xl {
    max-width: 48rem !important;
}

.whyus-cryptic__bleed {
    bottom: -6rem;
    inset-inline-end: -6rem;
    width: 24rem;
    height: 24rem;
    opacity: 0.4;
    filter: blur(64px);
}

.whyus-cryptic__head {
    margin-bottom: 3rem;
}

.whyus-cryptic__overline,
.whyus-cryptic__num,
.whyus-cryptic__chip,
.whyus-cryptic__cta-icon {
    font-size: 0.75rem;
}

.whyus-cryptic__overline {
    letter-spacing: 0.1em;
}

.whyus-cryptic__chip,
.whyus-cryptic__cta {
    letter-spacing: 0.025em;
}

.whyus-cryptic__title {
    font-size: 1.875rem;
}

.whyus-cryptic__lead {
    font-size: 1rem;
}

.whyus-cryptic__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

.whyus-cryptic__card-desc {
    font-size: 0.875rem;
}

.whyus-cryptic__cta {
    transition: transform 150ms ease;
}

/* hover — `:where()` keeps specificity at 0-1-0 so Tailwind's own hover: utilities win there */
:where(.whyus-cryptic__cta):hover {
    transform: scale(1.05);
}

:where(.whyus-cryptic__card):hover {
    box-shadow: 0 0 0 2px var(--bs-primary-border-subtle);
}

@media (min-width: 768px) {
    .whyus-cryptic {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .whyus-cryptic__head,
    .whyus-cryptic__grid {
        margin-bottom: 4rem;
    }

    .whyus-cryptic__title {
        font-size: 2.25rem;
    }

    .whyus-cryptic__card-desc {
        font-size: 1rem;
    }

    .whyus-cryptic__lead {
        font-size: 1.125rem;
    }

    .whyus-cryptic__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .whyus-cryptic__title {
        font-size: 3rem;
    }

    .whyus-cryptic__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* whyus v27 — architectural benefit card grid */

.whyus-cryptic__decor-lines {
    background-image:
        repeating-linear-gradient(90deg, currentColor 0, currentColor 1px, transparent 1px, transparent 96px),
        repeating-linear-gradient(0deg, currentColor 0, currentColor 1px, transparent 1px, transparent 96px);
    opacity: 0.05;
}

.whyus-cryptic__card {
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 600ms ease, transform 600ms ease, box-shadow 150ms ease;
}

.whyus-cryptic__card.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.whyus-cryptic__card:nth-child(1) { transition-delay: 0.05s; }
.whyus-cryptic__card:nth-child(2) { transition-delay: 0.1s; }
.whyus-cryptic__card:nth-child(3) { transition-delay: 0.15s; }
.whyus-cryptic__card:nth-child(4) { transition-delay: 0.2s; }
.whyus-cryptic__card:nth-child(5) { transition-delay: 0.25s; }
.whyus-cryptic__card:nth-child(6) { transition-delay: 0.3s; }

.whyus-cryptic__word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.6em);
    transition: opacity 550ms ease, transform 550ms ease;
    will-change: transform, opacity;
}

.whyus-cryptic__word.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.whyus-cryptic__word:nth-child(1) { transition-delay: 0ms; }
.whyus-cryptic__word:nth-child(2) { transition-delay: 70ms; }
.whyus-cryptic__word:nth-child(3) { transition-delay: 140ms; }
.whyus-cryptic__word:nth-child(4) { transition-delay: 210ms; }
.whyus-cryptic__word:nth-child(5) { transition-delay: 280ms; }
.whyus-cryptic__word:nth-child(6) { transition-delay: 350ms; }
.whyus-cryptic__word:nth-child(7) { transition-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
    .whyus-cryptic__card,
    .whyus-cryptic__word {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.stats__icon-dim {
  width: 4rem;
  height: 4rem;
}

.stats__decor-corner-ring {
  bottom: 1rem;
  right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
}

.stats__decor-corner-dot {
  bottom: 1rem;
  left: 1rem;
  width: 0.75rem;
  height: 0.75rem;
}

.stats-card-hover {
  transition:
    box-shadow 0.5s ease,
    transform 0.5s ease;
}

.stats-card-hover:hover {
  box-shadow:
    0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  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-icon-box-hover {
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.stats-card-hover:hover .stats-icon-box-hover {
  box-shadow:
    0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  transform: scale(1.1) rotate(3deg);
}

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

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

.stats-decor-ring-hover {
  opacity: 0.2;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.stats-card-hover:hover .stats-decor-ring-hover {
  opacity: 0.4;
  transform: scale(1.5);
}

.stats-decor-dot-hover {
  opacity: 0.3;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.stats-card-hover:hover .stats-decor-dot-hover {
  opacity: 0.6;
  transform: scale(1.25);
}

/* Лише 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__card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.socialproof__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.socialproof__card:hover .socialproof__img {
    transform: scale(1.08);
}

.socialproof__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 40%, rgba(0,0,0,0.3) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.socialproof__card:hover .socialproof__overlay,
.socialproof__card:focus-within .socialproof__overlay {
    opacity: 1;
}

.socialproof__static {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    transition: opacity 0.4s ease;
}

.socialproof__card:hover .socialproof__static {
    opacity: 0;
}

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

/* process works — marquee ticker, title scale, list rows, background logo (no colors) */
.process-works__marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 3rem;
    animation: process-works-marquee 32s linear infinite;
}
.process-works__marquee-item {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}
.process-works__title {
    word-break: break-word;
}
.process-works__row {
    transition: transform 200ms ease;
}
.process-works__row:hover {
    transform: translateX(0.25rem);
}
.process-works__logo {
    min-height: 16rem;
    pointer-events: none;
}
.process-works__logo-mark {
    width: 14rem;
    height: 14rem;
    flex-shrink: 0;
    animation: process-works-drift 8s ease-in-out infinite;
}
.process-works__logo-mark svg {
    display: block;
    width: 100%;
    height: 100%;
}
.process-works__logo-mark svg,
.process-works__logo-mark svg :is(path, circle, rect, polygon) {
    fill: currentColor !important;
}
@keyframes process-works-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}
@keyframes process-works-drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0.5rem, -0.75rem, 0);
    }
}
@media (min-width: 768px) {
    .process-works__logo {
        min-height: 20rem;
    }
    .process-works__logo-mark {
        width: 18rem;
        height: 18rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .process-works__marquee-track,
    .process-works__logo-mark {
        animation: none;
    }
    .process-works__row:hover {
        transform: none;
    }
}

/* v27 - folded paper corner (clip-path fold has no TW/BS utility) */
[data-fold-card] {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 1.25rem 100%, 0 calc(100% - 1.25rem));
    transition: clip-path 200ms ease;
}

[data-fold-card]:hover {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0.5rem 100%, 0 calc(100% - 0.5rem));
}

/* Three-column grid — real CSS grid, framework-agnostic (never row/col-* + gap together) */
.parchment-trio__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .parchment-trio__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Fixed icon badge size — no Bootstrap utility beyond w-25/50/75/100 */
.parchment-trio__badge {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ v6 — JS hooks */
.guides-solver-content-tucked {
    display: none;
}

.guides-solver-symbol-reveal {
    transform: rotate(180deg);
}

/* Cluster positions */
.guides-solver__cluster-a { top: 4rem; left: 4rem; }
.guides-solver__cluster-b { bottom: 5rem; right: 5rem; }

/* Standalone dot positions and sizes */
.guides-solver__dot-a { top: 33%; left: 3rem; width: 0.5rem; height: 0.5rem; }
.guides-solver__dot-b { top: 66%; right: 4rem; width: 0.75rem; height: 0.75rem; }
.guides-solver__dot-c { top: 25%; right: 33%; width: 0.5rem; height: 0.5rem; }

/* Inner cluster child positions */
.guides-solver__accent--inner-a { top: 1rem; left: 1.5rem; width: 0.75rem; height: 0.75rem; }
.guides-solver__accent--inner-b { top: 2rem; left: 3rem; width: 0.5rem; height: 0.5rem; }
.guides-solver__accent--inner-c { top: -0.5rem; left: 2rem; width: 1rem; height: 1rem; }

/* Decorative lines */
.guides-solver__line-a { top: 0.25rem; left: 0.25rem; width: 1.5rem; height: 0.125rem; transform: rotate(45deg); }
.guides-solver__line-b { top: 1.25rem; left: 1.75rem; width: 2rem; height: 0.125rem; transform: rotate(12deg); }
.guides-solver__line-c { top: -0.75rem; left: -0.5rem; width: 2.5rem; height: 0.125rem; transform: rotate(-12deg); }
.guides-solver__line-d-pos { top: -0.25rem; left: 1rem; width: 1.5rem; height: 0.125rem; transform: rotate(45deg); }

/* Animation delays */
.guides-solver__accent--delay-1 { animation-delay: 0.3s; }
.guides-solver__accent--delay-2 { animation-delay: 0.5s; }
.guides-solver__accent--delay-4 { animation-delay: 1s; }
.guides-solver__accent--delay-5 { animation-delay: 1.3s; }
.guides-solver__accent--delay-6 { animation-delay: 1.6s; }
.guides-solver__accent--delay-7 { animation-delay: 1.8s; }

@keyframes guides-solver-accent-blink-seq {
    0%, 100% { opacity: 1; }
    50%       { opacity: .5; }
}
.guides-solver__accent--blink {
    animation: guides-solver-accent-blink-seq 2s cubic-bezier(.4,0,.6,1) infinite;
}

@keyframes guides-solver-accent-ripple-seq {
    75%, 100% { transform: scale(2); opacity: 0; }
}
.guides-solver__accent--ripple {
    animation: guides-solver-accent-ripple-seq 1s cubic-bezier(0,0,.2,1) infinite;
}

.guides-solver__accent--offset { top: -1.5rem; left: -1rem; }

.guides-solver__handle--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

.guides-solver__symbol--glow:hover { transform: scale(1.1); transition: transform .2s ease; }


.appeal-signup__appeal--shift:hover { transform: scale(1.05); transition: transform .2s ease; }

.appeal-signup__shell--py-4xl {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

