/* intro v22 — Lavazza brutalist: blueprint grid, aurora sweep, outlined heading, progressive stagger */

/* Blueprint engineering-paper grid (colour from Tailwind text-*, lines via currentColor) */
.intro-blue__grid {
    background-image:
        repeating-linear-gradient(0deg, currentColor 0 1px, transparent 1px 28px),
        repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 28px);
    opacity: 0.16;
}

/* Aurora wave sweep horizontal */
.intro-blue__aurora {
    background-size: 200% 100%;
    opacity: 0.3;
    animation: intro-blue-aurora 7s ease-in-out infinite;
}
@keyframes intro-blue-aurora {
    0%, 100% { background-position: 0% 0%; }
    50%      { background-position: 100% 0%; }
}

/* Text-stroke outlined heading (hollow fill, stroke = the element's Tailwind colour) */
.intro-blue__title {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px currentColor;
    text-stroke: 2px currentColor;
    letter-spacing: -0.02em;
}

/* Progressive stagger reveal — pure CSS on the reliable [data-lane-item] attribute; always ends visible */
@keyframes intro-blue-rise {
    from { opacity: 0; transform: translateY(1.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}
.intro-blue [data-lane-item] { animation: intro-blue-rise 500ms ease both; }
.intro-blue [data-lane-item]:nth-child(2) { animation-delay: 120ms; }
.intro-blue [data-lane-item]:nth-child(3) { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
    .intro-blue__aurora { animation: none; }
    .intro-blue [data-lane-item] { animation: none; }
}

/* Features v24 — sidebar nav state */
.features-sidebar-nav__btn {
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    border: none !important;
    outline: none;
    /* Left accent via inset box-shadow — reliable across all BS versions */
    box-shadow: inset 3px 0 0 transparent;
}

.features-sidebar-nav__btn.features-sidebar-nav__btn--active {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary) !important;
    box-shadow: inset 3px 0 0 var(--bs-primary);
    font-weight: 700;
}

.features-sidebar-nav__btn.features-sidebar-nav__btn--idle {
    background-color: transparent;
    color: var(--bs-body-color);
    box-shadow: inset 3px 0 0 transparent;
    font-weight: 400;
}

.features-sidebar-nav__btn.features-sidebar-nav__btn--idle:hover {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-emphasis-color);
    box-shadow: inset 3px 0 0 var(--bs-primary-bg-subtle);
}

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

@keyframes features-sidebar-nav-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); }
}

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

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

.features-sidebar-nav__decor--bounce {
    transform: rotate(45deg);
    animation: features-sidebar-nav-bounce-kf 1s infinite;
}

.features-sidebar-nav__decor--spin {
    animation: features-sidebar-nav-spin-kf 1s linear infinite;
}

.features-sidebar-nav__decor--pulse-rotated {
    transform: rotate(45deg);
    animation: features-sidebar-nav-pulse-kf 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* -- 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;
}
/* Geometry shared by both CSS frameworks (Bootstrap has no utilities for it) */
.whyus-honeycomb {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mxw-6xl {
    max-width: 72rem !important;
}

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

.whyus-honeycomb__head {
    margin-bottom: 2.5rem;
}

.whyus-honeycomb__heading {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: 0.025em;
}

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

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

.whyus-honeycomb__block {
    padding-inline-start: 1.25rem;
}

.whyus-honeycomb__num {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.whyus-honeycomb__block-title {
    font-size: 1.125rem;
    font-weight: 900;
    letter-spacing: 0.025em;
}

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

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

    .whyus-honeycomb__head {
        margin-bottom: 3.5rem;
    }

    .whyus-honeycomb__heading {
        font-size: 3rem;
    }

    .whyus-honeycomb__lead,
    .whyus-honeycomb__block-desc {
        font-size: 1rem;
    }

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

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

    .whyus-honeycomb__block {
        padding-inline-start: 1.5rem;
    }

    .whyus-honeycomb__block-title {
        font-size: 1.25rem;
    }
}

/* whyus v30 — Y2K bold header with open benefit text blocks */

/* decorative gradient overlay — small-amplitude hue-rotate cycle (filter only, no color values) */
@keyframes whyus-honeycomb-hue {
    0%   { filter: hue-rotate(0deg); }
    50%  { filter: hue-rotate(10deg); }
    100% { filter: hue-rotate(0deg); }
}

.whyus-honeycomb__aurora {
    opacity: 0.2;
    animation: whyus-honeycomb-hue 9s ease-in-out infinite;
}

/* icons-in-circles decorative field — fixed sizes, scattered positions */
.whyus-honeycomb__icon-dot {
    position: absolute;
    opacity: 0.2;
}

.whyus-honeycomb__icon-dot--1 { width: 3.5rem;  height: 3.5rem;  top: 6%;    left: 8%; }
.whyus-honeycomb__icon-dot--2 { width: 2.75rem; height: 2.75rem; top: 18%;   right: 12%; }
.whyus-honeycomb__icon-dot--3 { width: 4rem;    height: 4rem;    bottom: 22%; left: 5%; }
.whyus-honeycomb__icon-dot--4 { width: 2.5rem;  height: 2.5rem;  bottom: 10%; right: 20%; }
.whyus-honeycomb__icon-dot--5 { width: 3rem;    height: 3rem;    top: 45%;   right: 4%; }

/* divider extends first (scaleX 0 -> 1) */
@keyframes whyus-honeycomb-line {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.whyus-honeycomb__divider {
    width: 7rem;
    height: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    transform-origin: center;
    animation: whyus-honeycomb-line 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* text blocks — staggered fade-in after divider */
@keyframes whyus-honeycomb-block-in {
    from { opacity: 0; transform: translateY(0.75rem); }
    to   { opacity: 1; transform: translateY(0); }
}

.whyus-honeycomb__block {
    animation: whyus-honeycomb-block-in 420ms ease-out both;
}

.whyus-honeycomb__block:nth-child(2n + 1) { animation-delay: 520ms; }
.whyus-honeycomb__block:nth-child(2n)     { animation-delay: 620ms; }

@media (prefers-reduced-motion: reduce) {
    .whyus-honeycomb__aurora,
    .whyus-honeycomb__divider,
    .whyus-honeycomb__block {
        animation: none;
    }
}

.folio-grid-bg {
    background-image:
        linear-gradient(rgba(var(--bs-emphasis-color-rgb, 33, 37, 41), 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--bs-emphasis-color-rgb, 33, 37, 41), 0.06) 1px, transparent 1px);
    background-size: 1.5rem 1.5rem;
}

.dark .folio-grid-bg {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.folio-glow {
    width: 24rem;
    height: 24rem;
    filter: blur(3rem);
    bottom: 0;
    left: -6rem;
}

.folio-cap {
    border-color: rgba(var(--bs-emphasis-color-rgb), 0.12);
}

.folio-sq-9 {
    width: 2.25rem;
    height: 2.25rem;
}

/* Вертикальний tagline на md+ */
@media (min-width: 768px) {
    .folio-rail-tagline {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        text-orientation: mixed;
        max-height: 22rem;
    }
}

.folio-rail-bs {
    width: min(100%, 16rem);
    min-height: min(22rem, 50vh);
    padding-right: 1.75rem;
    border-color: rgba(var(--bs-emphasis-color-rgb), 0.15) !important;
}

.folio-title-rule-bs {
    width: 4rem;
    height: 0.25rem;
    background-color: var(--bs-primary);
}

.folio-tile-bs {
    border: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.12);
    border-radius: var(--bs-border-radius-xl, 0.75rem);
    background-color: var(--bs-body-bg);
    padding: 1rem;
    box-shadow: var(--bs-box-shadow-sm);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.folio-tile-bs:hover {
    border-color: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.35) !important;
    box-shadow: var(--bs-box-shadow);
}

.folio-cta {
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.folio-cta:hover {
    transform: translateY(-2px);
}

