/* SystemPort home — demonstração do produto e implantação */

.product-showcase,
.product-showcase *,
.implementation,
.implementation * {
    font-family: Inter, "Segoe UI", "Segoe UI Variable", sans-serif !important;
    box-sizing: border-box;
}

.product-showcase {
    position: relative;
    overflow: visible;
    background: #FFFFFF !important;
    background-image: none !important;
}

.product-showcase::before,
.product-showcase::after,
.product-preview::before,
.product-preview::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

.product-showcase__container {
    width: min(calc(100% - 60px), 1210px);
    margin-inline: auto;
    padding: 80px 0 42px;
    background: #FFFFFF;
}

.product-showcase__workspace {
    display: grid;
    grid-template-columns: minmax(260px, 278px) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    background: #FFFFFF;
}

.product-showcase__eyebrow {
    margin: 0 0 14px;
    color: #537391;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.product-showcase__eyebrow::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 2px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 999px;
    background-color: #087CEB;
}

.product-showcase__title {
    max-width: 520px;
    margin: 0;
    color: #082B4C;
    font-size: clamp(32px, 3vw, 44px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.product-showcase__description {
    max-width: 580px;
    margin: 17px 0 0;
    color: #627D98;
    font-size: 15px;
    line-height: 1.6;
}

.product-showcase__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.product-showcase__copy .product-tabs {
    width: 278px;
    margin-top: 34px;
}

.product-preview {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 500px;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    overflow: visible;
    padding: 24px;
    background: #FFFFFF;
}

.product-tabs,
.department-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(8, 43, 76, 0.06);
    border-radius: 22px;
    background: #FFFFFF;
    box-shadow:
        0 18px 40px rgba(8, 43, 76, 0.12),
        0 2px 0 rgba(255, 255, 255, 0.8) inset;
}

.product-tab,
.department-item {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    gap: 12px;
    padding: 0 14px 0 12px;
    border: 0;
    border-bottom: 1px solid #EEF3F8;
    border-radius: 0;
    background: transparent;
    color: #163A5F;
    font-size: 14.5px;
    font-weight: 600;
    text-align: left;
    cursor: default;
    user-select: none;
}

.product-tab:last-child,
.department-item:last-child {
    border-bottom: 0;
}

.product-tab__icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
}

.product-tab__icon svg {
    display: block;
    width: 32px;
    height: 32px;
}

.product-tab__label {
    flex: 1 1 auto;
    min-width: 0;
}

.product-tab__chevron {
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    place-items: center;
    color: #8AA4BB;
}

.department-item--highlighted,
.product-tab.department-item--highlighted {
    color: #FFFFFF;
    background: linear-gradient(180deg, #2B8CFF 0%, #1677F2 100%);
    box-shadow: inset 0 -1px 0 rgba(8, 43, 76, 0.08);
}

.department-item--highlighted .product-tab__chevron {
    color: #FFFFFF;
}

.department-item:hover,
.product-tab:hover {
    transform: none;
    background-color: inherit;
    color: inherit;
}

.department-item--highlighted:hover,
.product-tab.department-item--highlighted:hover {
    color: #FFFFFF;
    background: linear-gradient(180deg, #2B8CFF 0%, #1677F2 100%);
}

.product-preview__image {
    position: static;
    display: block;
    width: min(100%, 900px);
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    transform: none;
    clip-path: none;
    mask-image: none;
    filter: none;
    border: 0;
    background: transparent;
}

.product-app {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    min-height: 0;
    aspect-ratio: 16 / 8.8;
    background: #fff;
    color: #102A43;
}

.product-app__sidebar {
    padding: 16px 12px 18px;
    background: linear-gradient(180deg, #082B4C 0%, #06365F 100%);
    color: #D7E7F5;
}

.product-app__brand {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin-bottom: 16px;
    padding: 0 8px;
}

.product-app__brand img {
    width: 128px;
    height: auto;
}

.product-app__nav {
    display: grid;
    gap: 2px;
}

.product-app__nav-item {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 600;
}

.product-app__nav-item.is-active {
    color: #FFFFFF;
    background: #087CEB;
}

.product-app__main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 16px 18px 12px;
    background: #F7FBFE;
}

.product-app__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.product-app__title {
    margin: 0;
    color: #082B4C;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.product-app__tabs {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    color: #7B93A9;
    font-size: 12px;
    font-weight: 600;
}

.product-app__tabs .is-active {
    color: #087CEB;
    box-shadow: inset 0 -2px 0 #087CEB;
}

.product-app__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.product-result-badge {
    display: flex;
    min-width: 132px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(8, 43, 76, 0.07);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(8, 43, 76, 0.10);
}

.product-result-badge__value,
.product-result-badge__label {
    display: block;
}

.product-result-badge__value {
    color: #102A43;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 800;
}

.product-result-badge__label {
    margin-top: 2px;
    color: #627D98;
    font-size: 10px;
    font-weight: 600;
}

.product-result-badge--sales .product-result-badge__icon {
    color: #20B486;
}

.product-result-badge--orders .product-result-badge__icon {
    color: #7659E8;
}

.product-app__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.product-app__search {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #D7E4F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #7B93A9;
}

.product-app__search input {
    width: 100%;
    border: 0;
    background: transparent;
    color: #334E68;
    font-size: 12px;
    outline: 0 !important;
}

.product-app__new {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #1495FF, #087CEB);
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

.product-app__table-wrap {
    flex: 1;
    min-height: 0;
    margin-top: 12px;
    overflow: hidden;
}

.product-app__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
}

.product-app__table th {
    padding: 8px 6px;
    color: #7B93A9;
    font-weight: 700;
    text-align: left;
}

.product-app__table td {
    padding: 9px 6px;
    border-top: 1px solid #E7F0F7;
    color: #334E68;
    white-space: nowrap;
}

.product-app__table td:last-child,
.product-app__table th:last-child {
    text-align: right;
}

.product-app__status {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.product-app__status.is-done {
    color: #14845F;
    background: #E2F8F1;
}

.product-app__status.is-progress {
    color: #087CEB;
    background: #E6F3FF;
}

.product-app__status.is-billed {
    color: #D63B5D;
    background: #FFE8ED;
}

.product-app__status.is-open {
    color: #C56A09;
    background: #FFF3D5;
}

.product-app__all {
    display: inline-flex;
    margin-top: 8px;
    color: #087CEB !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.implementation {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 75% 30%,
            rgba(8, 124, 235, 0.20),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #082B4C 0%,
            #06365F 52%,
            #084D84 100%
        );
    color: #FFFFFF;
}

.implementation::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background: repeating-linear-gradient(
        -18deg,
        transparent,
        transparent 14px,
        #ffffff 14px,
        #ffffff 15px
    );
    pointer-events: none;
}

.implementation__container {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 60px), 1210px);
    margin-inline: auto;
    padding: 62px 0 68px;
}

.implementation__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.implementation__eyebrow {
    margin: 0;
    color: #43B9FF;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.implementation__title {
    max-width: 710px;
    margin: 13px 0 0;
    color: #FFFFFF;
    font-size: clamp(34px, 3.2vw, 46px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.implementation__description {
    max-width: 680px;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.6;
}

.implementation__button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 12px;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.04);
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition:
        transform 200ms ease,
        background-color 200ms ease,
        border-color 200ms ease;
}

.implementation__button:hover,
.implementation__button:focus-visible {
    border-color: #43B9FF;
    background-color: rgba(67, 185, 255, 0.12);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.implementation__button:focus-visible {
    outline: 3px solid rgba(67, 185, 255, 0.55) !important;
    outline-offset: 4px !important;
}

.implementation__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 38px 0 0;
    padding: 0;
    list-style: none;
}

.implementation-step {
    position: relative;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    min-height: 132px;
    padding: 22px;
    border: 1px solid rgba(8, 43, 76, 0.06);
    border-radius: 14px;
    background-color: #FFFFFF;
    box-shadow: 0 18px 35px rgba(0, 14, 35, 0.16);
    transition:
        transform 200ms ease,
        box-shadow 200ms ease;
}

.implementation-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(0, 14, 35, 0.22);
}

.implementation-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -16px;
    z-index: 3;
    width: 10px;
    height: 10px;
    border-right: 2px solid #31A8F7;
    border-top: 2px solid #31A8F7;
    transform: translateY(-50%) rotate(45deg);
}

.implementation-step--diagnosis {
    --step-color: #087CEB;
    --step-soft-color: #E6F3FF;
}

.implementation-step--preparation {
    --step-color: #20B486;
    --step-soft-color: #E3F8F1;
}

.implementation-step--production {
    --step-color: #FF6B1A;
    --step-soft-color: #FFF0E6;
}

.implementation-step__number {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background-color: var(--step-color);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 800;
}

.implementation-step__icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    background-color: var(--step-soft-color);
    color: var(--step-color);
}

.implementation-step__icon svg {
    width: 26px;
    height: 26px;
}

.implementation-step__title {
    margin: 0;
    color: #102A43;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
}

.implementation-step__description {
    margin: 7px 0 0;
    color: #627D98;
    font-size: 12px;
    line-height: 1.45;
}

@keyframes spPreviewIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1250px) {
    .product-showcase__workspace {
        gap: 22px;
        grid-template-columns: minmax(240px, 260px) minmax(0, 1fr);
    }

    .product-app {
        grid-template-columns: 148px minmax(0, 1fr);
    }
}

@media (max-width: 1099px) {
    .product-showcase__workspace {
        gap: 20px;
        grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    }

    .product-showcase__copy .product-tabs {
        width: 250px;
    }

    .product-preview {
        min-height: 420px;
        padding: 16px 6px;
    }

    .implementation__header {
        align-items: flex-start;
    }

    .implementation__steps {
        gap: 15px;
    }

    .implementation-step {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 18px 16px;
    }

    .implementation-step__icon {
        display: none;
    }

    .implementation-step:not(:last-child)::after {
        right: -12px;
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 767px) {
    .product-showcase__container,
    .implementation__container {
        width: min(calc(100% - 32px), 1210px);
    }

    .product-showcase__container {
        padding: 56px 0 28px;
    }

    .product-showcase__workspace {
        display: grid;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .product-showcase__copy .product-tabs {
        width: auto;
        max-width: 320px;
        margin-top: 28px;
        margin-bottom: 0;
    }

    .product-tabs {
        margin-bottom: 0;
    }

    .product-tab {
        min-height: 52px;
    }

    .product-tab__chevron {
        display: grid;
    }

    .product-preview {
        min-height: 0;
        padding: 8px 0 12px;
    }

    .product-preview__image {
        width: 100%;
        max-width: none;
        height: auto;
        max-height: none;
    }

    .product-app {
        grid-template-columns: 1fr;
        aspect-ratio: auto;
        min-height: 420px;
    }

    .product-app__sidebar {
        display: none;
    }

    .product-app__badges {
        display: none;
    }

    .implementation__header {
        display: block;
    }

    .implementation__button {
        margin-top: 25px;
    }

    .implementation__steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .implementation-step {
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .implementation-step__icon {
        display: grid;
    }

    .implementation-step::after,
    .implementation-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 389px) {
    .product-app__tabs {
        gap: 10px;
        font-size: 11px;
    }

    .product-app__table {
        font-size: 10.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .implementation-step,
    .implementation__button {
        transition: none;
        animation: none;
    }

    .implementation-step:hover,
    .implementation__button:hover,
    .implementation__button:focus-visible {
        transform: none;
    }
}
