
:root {
    --rf-violet: #7c3aed;
    --rf-indigo: #4f46e5;
    --rf-ink: #14112b;
    --rf-text: #4b4a63;
    --rf-line: rgba(124, 58, 237, .14);
    --rf-ease: cubic-bezier(.22, 1, .36, 1);
}

.target-audience,
.how-it-works,
.services-route,
.testimonials {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.target-audience::before,
.how-it-works::before,
.services-route::before,
.testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.target-audience::before {
    background:
        radial-gradient(60% 50% at 50% 0%, rgba(124, 58, 237, .09), transparent 70%),
        radial-gradient(40% 40% at 100% 100%, rgba(79, 70, 229, .06), transparent 70%);
}

.how-it-works {
    background: linear-gradient(180deg, #faf9ff 0%, #f4f2ff 100%) !important;
}

.how-it-works::before {
    background-image: radial-gradient(rgba(124, 58, 237, .16) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 80%);
    mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 80%);
}

.services-route::before {
    background:
        radial-gradient(45% 40% at 0% 20%, rgba(124, 58, 237, .08), transparent 70%),
        radial-gradient(45% 40% at 100% 85%, rgba(79, 70, 229, .08), transparent 70%);
}

.testimonials::before {
    background: radial-gradient(55% 45% at 50% 0%, rgba(124, 58, 237, .07), transparent 70%);
}

.target-audience .section-header,
.how-it-works .section-header,
.services-route .section-header,
.testimonials .section-header {
    margin-bottom: 3.6rem;
}

.target-audience .section-tag,
.how-it-works .section-tag,
.services-route .section-tag,
.testimonials .section-tag {
    background: rgba(124, 58, 237, .09);
    border: 1px solid rgba(124, 58, 237, .18);
    box-shadow: 0 6px 20px -10px rgba(124, 58, 237, .45);
    letter-spacing: .08em;
}

.target-audience .section-header h2,
.how-it-works .section-header h2,
.services-route .section-header h2,
.testimonials .section-header h2 {
    font-size: clamp(2.1rem, 4.2vw, 3.3rem);
    letter-spacing: -.035em;
    line-height: 1.12;
}

.target-audience .section-header h2 .highlight,
.how-it-works .section-header h2 .highlight,
.services-route .section-header h2 .highlight,
.testimonials .section-header h2 .highlight {
    background: linear-gradient(100deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.rf-ico {
    width: 1em;
    height: 1em;
    display: block;
}

.audience-card.dark-card-style {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, .22);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(124, 58, 237, .38), transparent 60%),
        linear-gradient(160deg, #181437 0%, #0f0c26 100%);
    transition: transform .5s var(--rf-ease), box-shadow .5s var(--rf-ease), border-color .5s;
}

.audience-card.dark-card-style::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .09) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform .9s var(--rf-ease);
    pointer-events: none;
}

.audience-card.dark-card-style:hover {
    transform: translateY(-8px);
    border-color: rgba(196, 181, 253, .5);
    box-shadow: 0 34px 60px -26px rgba(76, 29, 149, .6);
}

.audience-card.dark-card-style:hover::after {
    transform: translateX(120%);
}

.audience-icon-badge {
    width: 54px !important;
    height: 54px !important;
    border-radius: 16px !important;
    display: grid !important;
    place-items: center;
    font-size: 26px !important;
    color: #e9ddff;
    background: linear-gradient(145deg, rgba(167, 139, 250, .32), rgba(79, 70, 229, .18)) !important;
    border: 1px solid rgba(196, 181, 253, .32) !important;
    box-shadow: 0 10px 28px -10px rgba(124, 58, 237, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: transform .5s var(--rf-ease);
}

.audience-card.dark-card-style:hover .audience-icon-badge {
    transform: scale(1.08) rotate(-4deg);
}

@media (min-width: 993px) {
    .steps-connector {
        position: relative;
        gap: 1.6rem;
        align-items: stretch;
    }

    .steps-connector::before {
        content: '';
        position: absolute;
        top: 31px;
        left: 16.66%;
        right: 16.66%;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, #7c3aed, #4f46e5 50%, #a855f7);
        opacity: .55;
        transform-origin: left center;
        animation: rfLine 1.4s var(--rf-ease) both;
    }

    .step-connector {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .step-line {
        display: none !important;
    }

    .step-circle {
        width: 62px;
        height: 62px;
        font-size: 1.5rem;
        margin: 0 auto 2.9rem;
        z-index: 3;
        background: linear-gradient(145deg, #8b5cf6, #4f46e5);
        box-shadow: 0 0 0 8px #f4f2ff, 0 14px 30px -10px rgba(79, 70, 229, .7);
        transition: transform .5s var(--rf-ease);
    }

    .step-connector:hover .step-circle {
        transform: scale(1.1) rotate(-6deg);
    }

    .step-content {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        flex: 1;
        min-height: 190px;
        padding: 3.2rem 1.8rem 2rem;
        border-radius: 26px;
        background: rgba(255, 255, 255, .78);
        border: 1px solid rgba(124, 58, 237, .13);
        box-shadow: 0 20px 44px -28px rgba(76, 29, 149, .35);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        transition: transform .5s var(--rf-ease), box-shadow .5s var(--rf-ease), border-color .5s;
    }

    .step-connector:hover .step-content {
        transform: translateY(-6px);
        border-color: rgba(124, 58, 237, .32);
        box-shadow: 0 32px 54px -26px rgba(76, 29, 149, .45);
    }

    .step-content h3 {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, -50%);
        width: max-content;
        max-width: 90%;
        margin: 0;
        padding: .6rem 1.3rem;
        border-radius: 999px;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: -.005em;
        color: #2a1a63;
        background: linear-gradient(145deg, #ffffff, #f1ebff);
        border: 1px solid rgba(124, 58, 237, .28);
        box-shadow: 0 12px 26px -12px rgba(76, 29, 149, .5);
    }

    .step-connector:last-child .step-content h3 {
        border-radius: 22px;
    }

    .step-content p {
        margin: 0;
        font-size: .98rem;
        line-height: 1.65;
        color: var(--rf-text);
        text-align: center;
    }
}

@keyframes rfLine {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (min-width: 993px) {
    .route-timeline {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.6rem;
        padding: 0 !important;
        max-width: 1100px;
        margin: 0 auto;
        counter-reset: rfn;
    }

    .route-timeline::before,
    .route-node .node-marker {
        display: none !important;
    }

    .route-node {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        counter-increment: rfn;
    }

    .node-card {
        position: relative;
        height: 100%;
        overflow: hidden;
        padding: 2.1rem 2rem 2.2rem !important;
        border-radius: 28px !important;
        background: linear-gradient(165deg, #ffffff 0%, #faf8ff 100%) !important;
        border: 1px solid rgba(124, 58, 237, .13) !important;
        box-shadow: 0 22px 46px -30px rgba(76, 29, 149, .4) !important;
        transition: transform .55s var(--rf-ease), box-shadow .55s var(--rf-ease), border-color .55s !important;
    }

    .node-card::before {
        content: '0' counter(rfn);
        position: absolute;
        top: 1.1rem;
        right: 1.6rem;
        font-size: 4.2rem;
        font-weight: 800;
        letter-spacing: -.05em;
        line-height: 1;
        color: transparent;
        -webkit-text-stroke: 1.5px rgba(124, 58, 237, .16);
        pointer-events: none;
    }

    .node-card::after {
        content: '';
        position: absolute;
        width: 280px;
        height: 280px;
        right: -110px;
        bottom: -140px;
        border-radius: 50%;
        background: radial-gradient(closest-side, rgba(124, 58, 237, .16), transparent);
        opacity: 0;
        transition: opacity .6s;
        pointer-events: none;
    }

    .node-card:hover {
        transform: translateY(-8px) !important;
        border-color: rgba(124, 58, 237, .38) !important;
        box-shadow: 0 36px 60px -28px rgba(76, 29, 149, .5) !important;
    }

    .node-card:hover::after {
        opacity: 1;
    }

    .node-card h3 {
        font-size: 1.32rem;
        letter-spacing: -.015em;
        margin: 1.3rem 0 .55rem;
    }

    .node-card p {
        font-size: 1rem;
        line-height: 1.65;
        color: var(--rf-text);
        max-width: 38ch;
    }
}

.node-icon {
    width: 58px !important;
    height: 58px !important;
    border-radius: 18px !important;
    display: grid !important;
    place-items: center;
    font-size: 28px !important;
    color: #fff;
    background: linear-gradient(145deg, #8b5cf6, #4f46e5) !important;
    box-shadow: 0 14px 28px -12px rgba(79, 70, 229, .75), inset 0 1px 0 rgba(255, 255, 255, .3);
    transition: transform .55s var(--rf-ease);
}

.node-card:hover .node-icon {
    transform: scale(1.1) rotate(-6deg);
}

.testimonial-slider-container {
    max-width: 1180px;
    margin: 0 auto;
}

.testimonial-grid {
    gap: 1.1rem !important;
    padding: .4rem .2rem 1.4rem !important;
    margin-bottom: 0 !important;
    align-items: stretch;
}

.gr-card.testimonial-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(25% - .85rem);
    min-width: 250px;
    padding: 1.15rem 1.2rem 1.1rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 2px rgba(60, 64, 67, .08);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: box-shadow .3s var(--rf-ease), border-color .3s, transform .3s var(--rf-ease);
}

.gr-card.testimonial-card:hover {
    transform: translateY(-3px);
    border-color: #c6cad0;
    box-shadow: 0 10px 26px -12px rgba(60, 64, 67, .28);
}

.gr-head {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.gr-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .02em;
}

.gr-who {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.gr-name {
    font-size: .95rem;
    font-weight: 600;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-sub {
    font-size: .72rem;
    color: #70757a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-g {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.gr-meta {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: .8rem 0 .55rem;
}

.gr-stars {
    display: inline-flex;
    gap: 1px;
}

.gr-stars svg {
    width: 15px;
    height: 15px;
    fill: #fbbc04;
}

.gr-date {
    font-size: .78rem;
    color: #70757a;
}

.gr-text {
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
    color: #3c4043;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
}

.gr-text.gr-open {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

.gr-more {
    align-self: flex-start;
    margin-top: .35rem;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    color: #1a73e8;
    cursor: pointer;
}

.gr-more:hover {
    text-decoration: underline;
}

.gr-photo {
    position: relative;
    margin-top: auto;
    align-self: flex-start;
    width: 78px;
    height: 78px;
    padding: 0;
    border: 1px solid #dadce0;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f3f4;
    cursor: zoom-in;
    transition: transform .3s var(--rf-ease), box-shadow .3s;
}

.gr-card .gr-text + .gr-photo,
.gr-card .gr-more + .gr-photo {
    margin-top: .9rem;
}

.gr-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gr-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 18px -8px rgba(60, 64, 67, .5);
}

.gr-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    max-width: 760px;
    margin: 0 auto 1.8rem;
    padding: .9rem 1.2rem .9rem 1.3rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 2px rgba(60, 64, 67, .08);
}

.gr-sum-left {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.gr-sum-g {
    width: 34px;
    height: 34px;
}

.gr-sum-rating {
    display: flex;
    align-items: center;
    gap: .5rem;
    line-height: 1;
}

.gr-sum-rating b {
    font-size: 1.7rem;
    font-weight: 600;
    color: #202124;
    letter-spacing: -.02em;
}

.gr-sum-label {
    display: block;
    margin-top: .3rem;
    font-size: .8rem;
    color: #70757a;
}

.gr-write {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem 1.15rem;
    border-radius: 999px;
    border: 1px solid #dadce0;
    background: #fff;
    color: #1a73e8;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .25s, box-shadow .25s, transform .25s var(--rf-ease);
}

.gr-write:hover {
    background: #f6fafe;
    box-shadow: 0 6px 16px -8px rgba(26, 115, 232, .55);
    transform: translateY(-1px);
}

.gr-write svg {
    width: 18px;
    height: 18px;
}

.rv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    background: rgba(12, 10, 28, .78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity .3s;
}

.rv-lightbox.active {
    opacity: 1;
}

.rv-lb-fig {
    margin: 0;
    max-width: min(92vw, 880px);
    transform: scale(.94);
    transition: transform .45s var(--rf-ease);
}

.rv-lightbox.active .rv-lb-fig {
    transform: none;
}

.rv-lb-fig img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}

.rv-lb-cap {
    margin-top: .9rem;
    text-align: center;
    color: #e9e6ff;
    font-size: .9rem;
}

.rv-lb-cap small {
    display: block;
    margin-top: .2rem;
    color: #86efac;
    font-size: .78rem;
    font-weight: 600;
}

.rv-lb-close {
    position: absolute;
    top: 22px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .25s, transform .25s var(--rf-ease);
}

.rv-lb-close:hover {
    background: rgba(255, 255, 255, .24);
    transform: rotate(90deg);
}

.rv-lb-close svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 992px) {
    .gr-card.testimonial-card {
        flex: 0 0 min(84%, 320px);
    }

    .gr-summary {
        justify-content: center;
        text-align: center;
    }
}

.slider-arrow {
    border: 1px solid rgba(124, 58, 237, .2) !important;
    box-shadow: 0 12px 26px -12px rgba(76, 29, 149, .5) !important;
    transition: transform .3s var(--rf-ease), background .3s, color .3s !important;
}

@media (hover: hover) {
    .slider-arrow:hover {
        background: linear-gradient(145deg, #8b5cf6, #4f46e5) !important;
        color: #fff !important;
        transform: translateY(-50%) scale(1.08) !important;
    }
}

.slider-arrow:active {
    transform: translateY(-50%) scale(.94) !important;
}

.slider-arrow {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.rf-rv {
    opacity: 0;
    transform: translateY(34px) scale(.985);
    transition: opacity .9s var(--rf-ease), transform .9s var(--rf-ease);
    transition-delay: var(--rf-d, 0s);
    will-change: opacity, transform;
}

.rf-rv.rf-in {
    opacity: 1;
    transform: none;
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .rf-rv { opacity: 1; transform: none; transition: none; }
    .steps-connector::before { animation: none; }
    .audience-card.dark-card-style,
    .audience-card.dark-card-style::after { transition: none; }
}

[data-theme="dark"] .how-it-works {
    background: linear-gradient(180deg, #0f0d1f 0%, #14112b 100%) !important;
}

[data-theme="dark"] .how-it-works::before {
    background-image: radial-gradient(rgba(167, 139, 250, .16) 1px, transparent 1px);
}

[data-theme="dark"] .step-content,
[data-theme="dark"] .node-card {
    background: linear-gradient(165deg, rgba(30, 26, 58, .92), rgba(20, 17, 43, .92)) !important;
    border-color: rgba(167, 139, 250, .2) !important;
    box-shadow: 0 22px 46px -28px rgba(0, 0, 0, .7) !important;
}

[data-theme="dark"] .step-content h3 {
    color: #efe9ff;
    background: linear-gradient(145deg, #2b2358, #1d1840);
    border-color: rgba(167, 139, 250, .4);
}

[data-theme="dark"] .step-circle {
    box-shadow: 0 0 0 8px #14112b, 0 14px 30px -10px rgba(79, 70, 229, .7) !important;
}

[data-theme="dark"] .step-content p,
[data-theme="dark"] .node-card p {
    color: #b9b6d6;
}

[data-theme="dark"] .node-card::before {
    -webkit-text-stroke-color: rgba(167, 139, 250, .22);
}

[data-theme="dark"] .gr-card.testimonial-card,
[data-theme="dark"] .gr-summary {
    background: #1f1d36;
    border-color: rgba(167, 139, 250, .22);
}

[data-theme="dark"] .gr-name,
[data-theme="dark"] .gr-sum-rating b {
    color: #f3f1ff;
}

[data-theme="dark"] .gr-text {
    color: #cfcbe8;
}

[data-theme="dark"] .gr-sub,
[data-theme="dark"] .gr-date,
[data-theme="dark"] .gr-sum-label {
    color: #9a97b8;
}

[data-theme="dark"] .gr-write {
    background: transparent;
    color: #9ec1ff;
    border-color: rgba(167, 139, 250, .3);
}
