.professionals-intro {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 100px 120px;
}

.professionals-intro-left {
    flex: 0 0 585px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.professionals-intro-title {
    font-size: 77px;
    font-weight: 700;
    line-height: 1.218;
    color: var(--dark-100);
    margin: 0;
}

.professionals-intro-description {
    font-size: 16px;
    line-height: 1.4;
    color: var(--dark-60);
    margin: 0;
}

.professionals-cta-btn {
    width: fit-content;
    min-width: 175px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.333;
    letter-spacing: -0.015em;
    padding: 10px 8px;
}

.professionals-intro-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.professionals-intro-animation {
    position: relative;
    container-type: inline-size;
    width: 100%;
    max-width: 585px;
    aspect-ratio: 585 / 554;
    border-radius: 24px;
    overflow: hidden;
    background: url('../../assets/images/professionals_hero_animation_bg.webp') center / cover no-repeat;
}

.professionals-chat-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.professionals-chat-icon img {
    width: 27px;
    height: 27px;
}

.professionals-chat-input {
    position: absolute;
    top: 45.1%;
    height: 9.8%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    animation: professionals-chat-input 16s ease-in-out infinite;
}

@keyframes professionals-chat-input {
    0%, 5.25% {
        left: 45.98%;
        width: 8.2%;
        padding: 4px;
        opacity: 1;
    }
    12% {
        left: 9.4%;
        width: 81.4%;
        padding: 4px 16px 4px 2px;
        opacity: 1;
    }
    36.75% {
        left: 9.4%;
        width: 81.4%;
        padding: 4px 16px 4px 2px;
        opacity: 1;
    }
    41.25% {
        left: 9.4%;
        width: 81.4%;
        padding: 4px 16px 4px 2px;
        opacity: 0;
    }
    98.25% {
        left: 45.98%;
        width: 8.2%;
        padding: 4px;
        opacity: 0;
    }
    100% {
        left: 45.98%;
        width: 8.2%;
        padding: 4px;
        opacity: 1;
    }
}

.professionals-chat-typed {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.333;
    letter-spacing: -0.016em;
    color: var(--dark-100);
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    animation: professionals-chat-typed 16s linear infinite;
}

@keyframes professionals-chat-typed {
    0%, 18.75% {
        max-width: 0;
        opacity: 0;
    }
    20.25% {
        max-width: 0;
        opacity: 1;
    }
    33% {
        max-width: 100%;
        opacity: 1;
    }
    37.5% {
        max-width: 100%;
        opacity: 1;
    }
    41.25% {
        max-width: 100%;
        opacity: 0;
    }
    100% {
        max-width: 0;
        opacity: 0;
    }
}

.professionals-chat-cursor {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--dark-100);
    visibility: hidden;
    animation: professionals-chat-cursor-vis 16s step-end infinite,
    professionals-chat-cursor-blink 0.8s step-end 1.92s infinite;
}

@keyframes professionals-chat-cursor-vis {
    0%, 11.25% {
        visibility: hidden;
    }
    12%, 19.5% {
        visibility: visible;
    }
    20.25%, 100% {
        visibility: hidden;
    }
}

@keyframes professionals-chat-cursor-blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.professionals-chat-window {
    position: absolute;
    top: 5.1%;
    left: 3.6%;
    width: 93%;
    height: 89.8%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 24px;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    animation: professionals-chat-window 16s ease-in-out infinite;
}

@keyframes professionals-chat-window {
    0%, 39% {
        opacity: 0;
    }
    43.5% {
        opacity: 1;
    }
    74.75% {
        opacity: 1;
    }
    79.25% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.professionals-chat-msg {
    flex: 1;
    background: rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 12px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.016em;
    color: #000;
}

.professionals-chat-msg p {
    animation: professionals-chat-p-reveal 16s linear 6.96s infinite backwards;
}

.professionals-chat-msg p:nth-child(2) { animation-delay: 7.45s; }
.professionals-chat-msg p:nth-child(3) { animation-delay: 7.94s; }
.professionals-chat-msg p:nth-child(4) { animation-delay: 8.43s; }
.professionals-chat-msg p:nth-child(5) { animation-delay: 8.92s; }
.professionals-chat-msg p:nth-child(6) { animation-delay: 9.41s; }
.professionals-chat-msg p:nth-child(7) { animation-delay: 9.90s; }
.professionals-chat-msg p:nth-child(8) { animation-delay: 10.39s; }

@keyframes professionals-chat-p-reveal {
    0% { clip-path: inset(0 100% 0 0); }
    3% { clip-path: inset(0 0% 0 0); }
    70% { clip-path: inset(0 0% 0 0); }
    70.1%, 100% { clip-path: inset(0 100% 0 0); }
}

.professionals-chat-msg p {
    margin: 0 0 6px;
}

.professionals-chat-msg p:last-child {
    margin-bottom: 0;
}

.professionals-chat-bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 4px 16px 4px 2px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.016em;
    color: var(--dark-100);
    white-space: nowrap;
    overflow: hidden;
}

.professionals-chat-title-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    animation: professionals-chat-title-layer 16s ease-in-out infinite;
    text-align: center;
}

@keyframes professionals-chat-title-layer {
    0%, 79.25% {
        opacity: 0;
    }
    83.75% {
        opacity: 1;
    }
    93.75% {
        opacity: 1;
    }
    98.25% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.professionals-chat-by {
    position: absolute;
    left: 42.4%;
    top: 43.5%;
    margin: 0;
    font-family: 'Proxima Nova', 'Proxima Nova Alt', sans-serif;
    font-size: clamp(10px, 2.74cqw, 16px);
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    white-space: nowrap;
}

.professionals-chat-app {
    position: absolute;
    left: 12.3%;
    top: 48%;
    margin: 0;
    width: 75.6%;
    font-family: 'Proxima Nova', 'Proxima Nova Alt', sans-serif;
    font-size: clamp(18px, 5.81cqw, 34px);
    font-weight: 700;
    line-height: 1.218;
    color: #000;
}

@media (prefers-reduced-motion: reduce) {
    .professionals-chat-input {
        animation: none;
        left: 9.4%;
        width: 81.4%;
        padding: 4px 16px 4px 2px;
        opacity: 1;
    }

    .professionals-chat-typed {
        animation: none;
        max-width: 100%;
        opacity: 1;
    }

    .professionals-chat-cursor {
        animation: none;
        visibility: hidden;
    }

    .professionals-chat-window {
        animation: none;
        opacity: 0;
    }

    .professionals-chat-msg p {
        animation: none;
        clip-path: none;
    }

    .professionals-chat-title-layer {
        animation: none;
        opacity: 0;
    }
}

.professionals-cards {
    padding: 0 120px 80px;
}

.professionals-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.professionals-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--dark-5);
    border-radius: 16px;
    overflow: hidden;
}

.professionals-card-img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.professionals-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 32px;
}

.professionals-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.218;
    color: var(--dark-100);
    margin: 0;
}

.professionals-card-description {
    font-size: 20px;
    line-height: 1.4;
    color: var(--dark-60);
    margin: 0;
}

.professionals-backtesting {
    background: var(--home-background) url("../../assets/images/professionals_backtesting_bg.webp") center top / cover no-repeat;
    padding: 150px 120px 200px;
    display: flex;
    flex-direction: column;
    gap: 150px;
}

.professionals-backtesting-top {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.professionals-backtesting-header {
    flex: 0 0 688px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.professionals-backtesting-title {
    font-size: 77px;
    font-weight: 700;
    line-height: 1.218;
    color: var(--white);
    margin: 0;
}

.professionals-backtesting-description {
    flex: 1;
    padding-top: 212px;
    font-size: 20px;
    line-height: 1.4;
    color: var(--white);
    margin: 0;
}

.professionals-backtesting-features {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.professionals-features-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.218;
    color: var(--white);
    margin: 0;
}

.professionals-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 88px 132px;
}

.professionals-feature {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.professionals-feature-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.218;
    color: var(--white);
    margin: 0;
}

.professionals-feature-description {
    font-size: 20px;
    line-height: 1.4;
    color: var(--dark-5);
    margin: 0;
}

@media screen and (max-width: 1280px) {
    .professionals-intro-title,
    .professionals-backtesting-title {
        font-size: 60px;
    }

    .professionals-intro-left {
        flex: 0 0 480px;
    }

    .professionals-features-grid {
        gap: 64px 80px;
    }
}

@media screen and (max-width: 960px) {
    .professionals-intro {
        flex-direction: column;
        padding: 64px 40px;
    }

    .professionals-intro-left {
        flex: none;
        width: 100%;
    }

    .professionals-intro-right {
        width: 100%;
    }

    .professionals-intro-title,
    .professionals-backtesting-title {
        font-size: 48px;
    }

    .professionals-cards {
        padding: 0 40px 60px;
    }

    .professionals-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .professionals-backtesting {
        padding: 80px 40px 120px;
        gap: 80px;
    }

    .professionals-backtesting-top {
        flex-direction: column;
        gap: 24px;
    }

    .professionals-backtesting-header {
        flex: none;
        width: 100%;
    }

    .professionals-backtesting-description {
        padding-top: 0;
    }

    .professionals-features-title {
        font-size: 34px;
    }

    .professionals-features-grid {
        gap: 48px 60px;
    }
}

@media screen and (max-width: 590px) {
    .professionals-intro {
        padding: 40px 16px;
    }

    .professionals-chat-icon {
        width: 24px;
        height: 24px;
    }

    .professionals-chat-icon img {
        width: 12px;
        height: 12px;
    }

    .professionals-chat-input, .professionals-chat-bar {
        border-radius: 8px;
    }

    .professionals-chat-typed, .professionals-chat-bar {
        font-size: 11px;
    }

    .professionals-chat-msg {
        font-size: 10px;
    }

    .professionals-chat-msg p:last-child {
        display: none;
    }

    .professionals-intro-title,
    .professionals-backtesting-title {
        font-size: 34px;
    }

    .professionals-cards {
        padding: 0 16px 40px;
    }

    .professionals-cards-grid {
        grid-template-columns: 1fr;
    }

    .professionals-card-img {
        height: 220px;
    }

    .professionals-backtesting {
        padding: 60px 16px 80px;
        gap: 60px;
    }

    .professionals-features-title {
        font-size: 28px;
    }

    .professionals-features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
