/* =========================================================
   TENACITY SOFT
   BUSINESS PROBLEMS SECTION
========================================================= */

.ts-problems,
.ts-problems *,
.ts-problems *::before,
.ts-problems *::after {
    box-sizing: border-box;
}


.ts-problems {
    --problems-blue: #1688ff;
    --problems-blue-light: #63beff;
    --problems-yellow: #ffc400;

    --problems-text: #f3f7fc;
    --problems-muted: #9eacbd;
    --problems-border: rgba(78, 157, 236, 0.14);

    position: relative;

    z-index: 3;

    margin-top: -2px;

    padding:
        92px 0
        112px;

    overflow: visible;

    isolation: isolate;

    background:
        radial-gradient(
            circle at 82% 8%,
            rgba(16, 105, 216, 0.09),
            transparent 31%
        ),
        radial-gradient(
            circle at 8% 70%,
            rgba(0, 105, 255, 0.065),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #020914 0%,
            #020a16 44%,
            #020b18 100%
        );
}


.ts-problems::before {
    content: "";

    position: absolute;

    top: -160px;
    left: 0;
    right: 0;

    height: 300px;

    z-index: -3;

    background:
        linear-gradient(
            to bottom,
            rgba(2, 9, 20, 0),
            #020914 55%,
            rgba(2, 9, 20, 0)
        );

    pointer-events: none;
}


/* =========================================================
   BACKGROUND
========================================================= */

.ts-problems__background {
    position: absolute;

    inset: 0;

    z-index: -2;

    overflow: visible;

    pointer-events: none;
}


.ts-problems__grid {
    position: absolute;

    inset: 0;

    opacity: 0.12;

    background-image:
        linear-gradient(
            rgba(46, 127, 217, 0.075) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(46, 127, 217, 0.075) 1px,
            transparent 1px
        );

    background-size: 86px 86px;

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            transparent,
            #000 17%,
            #000 84%,
            transparent
        );

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            #000 17%,
            #000 84%,
            transparent
        );
}


.ts-problems__glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(135px);
}


.ts-problems__glow--left {
    width: 420px;
    height: 420px;

    left: -280px;
    top: 27%;

    opacity: 0.08;

    background: var(--problems-blue);
}


.ts-problems__glow--right {
    width: 560px;
    height: 560px;

    right: -300px;
    top: -150px;

    opacity: 0.075;

    background: var(--problems-blue);
}


/* =========================================================
   HERO → PROBLEMS TRANSITION
========================================================= */

.ts-problems__transition {
    position: absolute;

    width:
        min(
            calc(100% - 64px),
            1380px
        );

    height: 58px;

    left: 50%;
    top: 0;

    z-index: 20;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        58px
        minmax(0, 1fr);

    align-items: center;

    overflow: visible;

    transform:
        translate(-50%, -50%);
}


.ts-problems__transition-line {
    position: relative;

    height: 1px;

    display: block;
}


.ts-problems__transition-line--blue {
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(22, 136, 255, 0.08) 20%,
            rgba(22, 136, 255, 0.42) 100%
        );
}


.ts-problems__transition-line--gold {
    background:
        linear-gradient(
            90deg,
            rgba(255, 196, 0, 0.4) 0%,
            rgba(255, 196, 0, 0.08) 80%,
            transparent 100%
        );
}


.ts-problems__transition-node {
    position: relative;

    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    overflow: visible;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(22, 136, 255, 0.2) 0%,
            rgba(22, 136, 255, 0.08) 38%,
            transparent 72%
        );
}


.ts-problems__transition-node::before {
    content: "";

    position: relative;

    z-index: 3;

    width: 10px;
    height: 10px;

    border:
        2px solid rgba(173, 226, 255, 0.96);

    border-radius: 50%;

    background: #1688ff;

    box-shadow:
        0 0 8px rgba(105, 199, 255, 1),
        0 0 18px rgba(22, 136, 255, 0.78),
        0 0 36px rgba(22, 136, 255, 0.35);
}


.ts-problems__transition-node::after {
    content: "";

    position: absolute;

    inset: 7px;

    z-index: 2;

    border:
        1px solid rgba(85, 184, 255, 0.24);

    border-radius: 50%;

    box-shadow:
        inset 0 0 14px rgba(22, 136, 255, 0.1),
        0 0 16px rgba(22, 136, 255, 0.08);

    animation:
        tsProblemsTransitionPulse
        5.5s ease-in-out infinite;
}


@keyframes tsProblemsTransitionPulse {

    0%,
    100% {
        opacity: 0.35;

        transform: scale(0.82);
    }

    50% {
        opacity: 0.9;

        transform: scale(1);
    }

}


/* =========================================================
   CONTAINER
========================================================= */

.ts-problems__container {
    position: relative;

    width:
        min(
            calc(100% - 64px),
            1380px
        );

    margin-inline: auto;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.ts-problems__header {
    margin-bottom:
        clamp(38px, 5vw, 64px);
}


.ts-section-label {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 22px;

    color: var(--problems-blue-light);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.105em;
    text-transform: uppercase;
}


.ts-section-label__number {
    color: var(--problems-yellow);
}


.ts-section-label__line {
    width: 34px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--problems-yellow),
            rgba(255, 196, 0, 0.16)
        );
}


.ts-problems__heading-grid {
    display: grid;

    grid-template-columns:
        minmax(420px, 0.92fr)
        minmax(380px, 0.75fr);

    justify-content: space-between;
    align-items: end;

    gap:
        clamp(40px, 7vw, 120px);
}


.ts-problems__title {
    max-width: 680px;

    margin: 0;

    color: var(--problems-text);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(
            38px,
            3.25vw,
            55px
        );

    font-weight: 700;

    line-height: 1.06;

    letter-spacing: -0.045em;
}


.ts-problems__title span {
    color: var(--problems-yellow);
}


.ts-problems__intro {
    max-width: 540px;

    margin:
        0 0 4px auto;

    color: var(--problems-muted);

    font-size: 16px;

    line-height: 1.75;
}


/* =========================================================
   CARDS
========================================================= */

.ts-problems__cards {
    position: relative;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 14px;
}


.ts-problems__cards::before {
    content: "";

    position: absolute;

    left: 3%;
    right: 3%;
    bottom: -33px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(22, 136, 255, 0.3) 18%,
            rgba(22, 136, 255, 0.22) 47%,
            rgba(255, 196, 0, 0.27) 74%,
            transparent
        );
}


.ts-problems__cards::after {
    content: "";

    position: absolute;

    width: 8px;
    height: 8px;

    left: 50%;
    bottom: -36px;

    border-radius: 50%;

    background: var(--problems-yellow);

    box-shadow:
        0 0 14px rgba(255, 196, 0, 0.75),
        0 0 28px rgba(255, 196, 0, 0.25);

    transform:
        translateX(-50%);
}


.ts-problem-card {
    position: relative;

    min-height: 286px;

    display: flex;
    flex-direction: column;

    padding:
        25px 22px 22px;

    overflow: hidden;

    border:
        1px solid var(--problems-border);

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(7, 25, 47, 0.78),
            rgba(3, 14, 29, 0.9)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 18px 45px rgba(0, 0, 0, 0.18);

    transition:
        border-color 250ms ease,
        background 250ms ease,
        transform 250ms ease,
        box-shadow 250ms ease;
}


.ts-problem-card::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    top: -100px;
    right: -85px;

    border-radius: 50%;

    opacity: 0;

    background:
        radial-gradient(
            circle,
            rgba(22, 136, 255, 0.24),
            transparent 70%
        );

    filter: blur(4px);

    transition:
        opacity 250ms ease,
        transform 350ms ease;
}


.ts-problem-card::after {
    content: "";

    position: absolute;

    left: 20px;
    right: 20px;
    bottom: 0;

    height: 1px;

    opacity: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--problems-blue),
            transparent
        );

    transition:
        opacity 250ms ease;
}


.ts-problem-card:hover {
    border-color:
        rgba(78, 171, 255, 0.29);

    background:
        linear-gradient(
            145deg,
            rgba(8, 31, 59, 0.88),
            rgba(3, 16, 33, 0.95)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 25px 55px rgba(0, 0, 0, 0.28),
        0 0 30px rgba(0, 105, 255, 0.055);

    transform:
        translateY(-7px);
}


.ts-problem-card:hover::before {
    opacity: 1;

    transform: scale(1.15);
}


.ts-problem-card:hover::after {
    opacity: 0.75;
}


.ts-problem-card--featured {
    border-color:
        rgba(255, 196, 0, 0.18);

    background:
        linear-gradient(
            145deg,
            rgba(20, 29, 40, 0.82),
            rgba(6, 17, 30, 0.95)
        );
}


.ts-problem-card--featured::after {
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--problems-yellow),
            transparent
        );
}


.ts-problem-card--featured:hover {
    border-color:
        rgba(255, 196, 0, 0.32);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 25px 55px rgba(0, 0, 0, 0.28),
        0 0 34px rgba(255, 196, 0, 0.05);
}


/* =========================================================
   CARD CONTENT
========================================================= */

.ts-problem-card__top {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 28px;
}


.ts-problem-card__index {
    color:
        rgba(132, 161, 191, 0.48);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.08em;
}


.ts-problem-card__icon {
    width: 49px;
    height: 49px;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(50, 151, 255, 0.24);

    border-radius: 13px;

    color: var(--problems-blue-light);

    background:
        linear-gradient(
            145deg,
            rgba(22, 136, 255, 0.13),
            rgba(22, 136, 255, 0.035)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 8px 24px rgba(0, 0, 0, 0.16);

    transition:
        border-color 250ms ease,
        color 250ms ease,
        transform 250ms ease,
        box-shadow 250ms ease;
}


.ts-problem-card--featured
.ts-problem-card__icon {
    border-color:
        rgba(255, 196, 0, 0.25);

    color: var(--problems-yellow);

    background:
        linear-gradient(
            145deg,
            rgba(255, 196, 0, 0.12),
            rgba(255, 196, 0, 0.025)
        );
}


.ts-problem-card:hover
.ts-problem-card__icon {
    border-color:
        rgba(70, 172, 255, 0.43);

    color: #ffffff;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 22px rgba(22, 136, 255, 0.15);

    transform:
        translateY(-2px);
}


.ts-problem-card__icon svg {
    width: 24px;
    height: 24px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.55;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.ts-problem-card h3 {
    margin:
        0 0 13px;

    color: var(--problems-text);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 18px;
    font-weight: 650;

    line-height: 1.28;

    letter-spacing: -0.025em;
}


.ts-problem-card p {
    margin: 0;

    color: var(--problems-muted);

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   CARD SIGNAL
========================================================= */

.ts-problem-card__signal {
    display: flex;
    align-items: center;

    gap: 5px;

    margin-top: auto;

    padding-top: 24px;
}


.ts-problem-card__signal span {
    height: 3px;

    display: block;

    border-radius: 999px;

    background:
        rgba(22, 136, 255, 0.25);

    transition:
        width 250ms ease,
        background-color 250ms ease,
        box-shadow 250ms ease;
}


.ts-problem-card__signal span:nth-child(1) {
    width: 11px;
}


.ts-problem-card__signal span:nth-child(2) {
    width: 22px;
}


.ts-problem-card__signal span:nth-child(3) {
    width: 7px;
}


.ts-problem-card:hover
.ts-problem-card__signal span {
    background:
        rgba(22, 136, 255, 0.8);

    box-shadow:
        0 0 8px rgba(22, 136, 255, 0.4);
}


.ts-problem-card:hover
.ts-problem-card__signal span:nth-child(2) {
    width: 31px;
}


.ts-problem-card--featured
.ts-problem-card__signal span {
    background:
        rgba(255, 196, 0, 0.32);
}


/* =========================================================
   SECTION FOOTER
========================================================= */

.ts-problems__footer {
    position: relative;

    max-width: 900px;

    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    gap: 20px;

    margin:
        76px auto 0;

    padding:
        20px 22px;

    border:
        1px solid rgba(78, 157, 236, 0.13);

    border-radius: 14px;

    background:
        linear-gradient(
            90deg,
            rgba(7, 24, 45, 0.7),
            rgba(3, 15, 30, 0.84)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.022),
        0 18px 46px rgba(0, 0, 0, 0.17);
}


.ts-problems__footer-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(255, 196, 0, 0.22);

    border-radius: 50%;

    color: var(--problems-yellow);

    background:
        rgba(255, 196, 0, 0.055);
}


.ts-problems__footer-icon svg {
    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.ts-problems__footer p {
    margin: 0;

    color: var(--problems-muted);

    font-size: 13px;

    line-height: 1.55;
}


.ts-problems__footer > a {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: var(--problems-text);

    font-size: 12px;
    font-weight: 750;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 200ms ease;
}


.ts-problems__footer > a:hover {
    color: var(--problems-yellow);
}


.ts-problems__footer > a svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform 200ms ease;
}


.ts-problems__footer > a:hover svg {
    transform: translateX(4px);
}


/* =========================================================
   REVEAL
========================================================= */

[data-problems-reveal] {
    opacity: 0;

    transform:
        translate3d(0, 24px, 0);

    transition:
        opacity 700ms ease,
        transform 700ms
        cubic-bezier(
            0.18,
            0.75,
            0.2,
            1
        );
}


[data-problems-reveal].is-visible {
    opacity: 1;

    transform:
        translate3d(0, 0, 0);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1280px) {

    .ts-problems__container,
    .ts-problems__transition {
        width:
            min(
                calc(100% - 48px),
                1220px
            );
    }


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


    .ts-problem-card:nth-child(4) {
        grid-column:
            1 / span 1;
    }


    .ts-problem-card:nth-child(5) {
        grid-column:
            2 / span 2;
    }

}


@media (max-width: 900px) {

    .ts-problems {
        padding:
            78px 0
            94px;
    }


    .ts-problems__container,
    .ts-problems__transition {
        width:
            min(
                calc(100% - 38px),
                760px
            );
    }


    .ts-problems__heading-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }


    .ts-problems__intro {
        max-width: 620px;

        margin: 0;
    }


    .ts-problems__cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .ts-problem-card:nth-child(4) {
        grid-column: auto;
    }


    .ts-problem-card:nth-child(5) {
        grid-column:
            1 / -1;
    }


    .ts-problems__footer {
        grid-template-columns:
            auto 1fr;
    }


    .ts-problems__footer > a {
        grid-column: 2;
    }

}


@media (max-width: 620px) {

    .ts-problems {
        padding:
            68px 0
            76px;
    }


    .ts-problems__container,
    .ts-problems__transition {
        width:
            calc(100% - 28px);
    }


    .ts-problems__transition {
        height: 46px;

        grid-template-columns:
            minmax(0, 1fr)
            46px
            minmax(0, 1fr);
    }


    .ts-problems__transition-node {
        width: 46px;
        height: 46px;
    }


    .ts-problems__transition-node::before {
        width: 8px;
        height: 8px;

        border-width: 1px;
    }


    .ts-problems__transition-node::after {
        inset: 6px;
    }


    .ts-problems__title {
        font-size:
            clamp(
                35px,
                10vw,
                46px
            );
    }


    .ts-problems__intro {
        font-size: 15px;

        line-height: 1.65;
    }


    .ts-problems__cards {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    .ts-problem-card,
    .ts-problem-card:nth-child(4),
    .ts-problem-card:nth-child(5) {
        min-height: 0;

        grid-column: auto;

        padding:
            21px 20px;
    }


    .ts-problems__footer {
        grid-template-columns:
            auto 1fr;

        gap: 14px;

        margin-top: 64px;

        padding: 18px;
    }


    .ts-problems__footer > a {
        grid-column:
            1 / -1;

        justify-content: center;

        min-height: 42px;

        border:
            1px solid rgba(74, 166, 255, 0.15);

        border-radius: 9px;

        background:
            rgba(22, 136, 255, 0.05);
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ts-problems *,
    .ts-problems *::before,
    .ts-problems *::after {
        animation-duration:
            0.01ms !important;

        transition-duration:
            0.01ms !important;
    }


    [data-problems-reveal] {
        opacity: 1;

        transform: none;
    }

}