/*
 * CompuFixGuru Web F65 — editorial homepage polish.
 * Original implementation influenced by cinematic technology storytelling:
 * large editorial type, layered surfaces, generous rhythm and restrained motion.
 * No third-party source code or proprietary assets are copied here.
 */

.home {
    --cfg-editorial-line: rgba(255, 255, 255, .085);
    --cfg-editorial-muted: #aebdc4;
    --cfg-editorial-glow: rgba(98, 244, 207, .16);
    --cfg-editorial-crimson-glow: rgba(200, 16, 46, .22);
    text-rendering: optimizeLegibility;
    font-synthesis: none;
}

.home .cfg-hero-content {
    position: relative;
    z-index: 2;
}

.home .cfg-hero-content::before {
    position: absolute;
    top: -42px;
    left: -32px;
    width: 92px;
    height: 92px;
    border-top: 1px solid rgba(98, 244, 207, .34);
    border-left: 1px solid rgba(98, 244, 207, .34);
    border-radius: 24px 0 0;
    content: "";
    pointer-events: none;
}

.home .cfg-hero h1 {
    text-wrap: balance;
}

.home .cfg-hero-copy {
    max-width: 610px;
    text-wrap: pretty;
}

.home .cfg-hero-actions .cfg-button {
    position: relative;
    overflow: hidden;
}

.home .cfg-hero-actions .cfg-button::after {
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.home .cfg-hero-actions .cfg-button:hover::after,
.home .cfg-hero-actions .cfg-button:focus-visible::after {
    transform: translateX(3px) rotate(45deg);
}

.home .cfg-hero-showcase {
    transform: rotate(.7deg);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.home .cfg-hero-showcase:hover,
.home .cfg-hero-showcase:focus-within {
    border-color: rgba(98, 244, 207, .26);
    box-shadow: 0 42px 110px rgba(0, 0, 0, .52);
    transform: translateY(-5px) rotate(0deg);
}

.home .cfg-showcase-feature,
.home .cfg-showcase-grid a {
    transition: transform .24s ease, border-color .24s ease, background-color .24s ease, box-shadow .24s ease;
}

.home .cfg-showcase-feature:hover,
.home .cfg-showcase-feature:focus-visible {
    box-shadow: 0 18px 42px rgba(98, 244, 207, .12);
    transform: translateY(-3px);
}

.home .cfg-showcase-grid a:hover,
.home .cfg-showcase-grid a:focus-visible {
    transform: translateY(-3px);
}

.home .cfg-trust-grid {
    counter-reset: cfg-trust;
}

.home .cfg-trust-item {
    position: relative;
    min-height: 126px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background-color .22s ease, transform .22s ease;
}

.home .cfg-trust-item:hover {
    background: #fafbfc;
    transform: translateY(-2px);
}

.home .cfg-trust-item strong {
    font-size: 1.02rem;
    letter-spacing: -.015em;
}

.home .cfg-trust-item > div > span {
    display: block;
    margin-top: 4px;
    line-height: 1.45;
}

.home .cfg-section-head {
    position: relative;
    margin-bottom: 48px;
}

.home .cfg-section-head::after {
    position: absolute;
    right: 0;
    bottom: -20px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, currentColor 0 12%, transparent 12% 100%);
    content: "";
    opacity: .16;
}

.home .cfg-section-head h2 {
    max-width: 760px;
    font-size: clamp(2.65rem, 4.8vw, 5rem);
    line-height: .96;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.home .cfg-section-head p {
    max-width: 520px;
    text-wrap: pretty;
}

.home .cfg-card-grid .cfg-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 30px;
}

.home .cfg-card-grid .cfg-card::after {
    position: absolute;
    z-index: -1;
    right: -84px;
    bottom: -92px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(98, 244, 207, .14);
    border-radius: 50%;
    content: "";
    transition: transform .35s ease, border-color .35s ease;
}

.home .cfg-card-grid .cfg-card:hover::after,
.home .cfg-card-grid .cfg-card:focus-visible::after {
    border-color: rgba(98, 244, 207, .34);
    transform: scale(1.18);
}

.home .cfg-card-grid .cfg-card h3 {
    max-width: 260px;
    font-size: clamp(1.35rem, 2vw, 1.72rem);
    line-height: 1.06;
    letter-spacing: -.035em;
}

.home .cfg-card-grid .cfg-card p {
    text-wrap: pretty;
}

.home .cfg-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home .cfg-brand-wall__head h2,
.home .cfg-b2b h2,
.home .cfg-cta h2 {
    text-wrap: balance;
}

.home .cfg-brand-marquee {
    padding-top: 14px;
    padding-bottom: 28px;
}

.home .cfg-brand-logo {
    position: relative;
}

.home .cfg-brand-logo::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
    content: "";
    pointer-events: none;
}

.home .cfg-b2b {
    gap: clamp(48px, 8vw, 112px);
}

.home .cfg-b2b > div:first-child {
    align-self: center;
}

.home .cfg-b2b h2 {
    max-width: 700px;
    margin-block: 18px 22px;
    font-size: clamp(2.7rem, 4.8vw, 5rem);
    line-height: .96;
    letter-spacing: -.055em;
}

.home .cfg-b2b-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.home .cfg-b2b-panel::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(var(--cfg-editorial-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--cfg-editorial-line) 1px, transparent 1px);
    background-size: 34px 34px;
    content: "";
    opacity: .36;
    mask-image: linear-gradient(135deg, #000, transparent 68%);
}

.home .cfg-b2b-panel > strong {
    max-width: 520px;
    font-size: clamp(1.9rem, 3vw, 3.15rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.home .cfg-products .cfg-section-head {
    margin-bottom: 54px;
}

.home .woocommerce ul.products li.product a img,
.home .woocommerce-page ul.products li.product a img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
}

.home .woocommerce ul.products li.product .woocommerce-loop-product__title,
.home .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.06rem;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.home .cfg-cta h2 {
    max-width: 760px;
    margin-top: 0;
    font-size: clamp(2.55rem, 5vw, 5.2rem);
    line-height: .94;
    letter-spacing: -.06em;
}

.home .cfg-cta p {
    max-width: 640px;
    font-size: 1.06rem;
}

@media (min-width: 981px) {
    .home .cfg-card-grid .cfg-card:nth-child(2),
    .home .cfg-card-grid .cfg-card:nth-child(5) {
        transform: translateY(22px);
    }

    .home .cfg-card-grid .cfg-card:nth-child(2):hover,
    .home .cfg-card-grid .cfg-card:nth-child(2):focus-visible,
    .home .cfg-card-grid .cfg-card:nth-child(5):hover,
    .home .cfg-card-grid .cfg-card:nth-child(5):focus-visible {
        transform: translateY(16px);
    }

    .home .cfg-section-muted .cfg-card-grid {
        padding-bottom: 22px;
    }
}

@media (max-width: 980px) {
    .home .cfg-hero-content::before {
        top: -28px;
        left: -18px;
        width: 62px;
        height: 62px;
    }

    .home .cfg-hero-showcase {
        transform: none;
    }

    .home .cfg-section-head h2,
    .home .cfg-b2b h2,
    .home .cfg-cta h2 {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .home .cfg-hero-content::before {
        display: none;
    }

    .home .cfg-section-head {
        margin-bottom: 40px;
    }

    .home .cfg-section-head h2 {
        font-size: clamp(2.35rem, 12vw, 3.45rem);
    }

    .home .cfg-card-grid .cfg-card {
        padding: 24px;
    }

    .home .cfg-b2b h2,
    .home .cfg-cta h2 {
        font-size: clamp(2.4rem, 12vw, 3.6rem);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .home .cfg-hero-showcase {
        animation: cfg-f65-float 8s ease-in-out infinite;
    }

    .home .cfg-hero-showcase:hover,
    .home .cfg-hero-showcase:focus-within {
        animation-play-state: paused;
    }

    @keyframes cfg-f65-float {
        0%, 100% { translate: 0 0; }
        50% { translate: 0 -7px; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .home .cfg-hero-showcase {
        animation: none !important;
        transform: none;
    }
}
