/* SystemPort home — cabeçalho, hero e faixa de indicadores */

:root {
    --hero-background: #001d3e;
}

.sc-pdf {
    --hero-background: #001d3e;
    --sp-navy-950: #001d3e;
    --sp-navy-900: #082B4C;
    --sp-navy-800: #0A365F;
    --sp-blue-600: #087CEB;
    --sp-blue-500: #1495FF;
    --sp-cyan-400: #20BDEB;
    --sp-orange-500: #FF6B1A;
    --sp-green-500: #20B486;
    --sp-purple-500: #7259E8;
    --sp-white: #FFFFFF;
    --sp-surface: #F6F9FC;
    --sp-text-dark: #102A43;
    --sp-text-muted: #627D98;
    --sp-hero-font: Inter, "Segoe UI", "Segoe UI Variable", sans-serif;
    --header-height: 78px;
    --hero-top-safe-area: 32px;
    --sp-hero-nav-h: 78px;
    --sc-nav-h: 78px;
    background: var(--sp-surface);
}

.sc-pdf:has(.sp-hero) {
    background: var(--hero-background);
    overflow: visible;
}

html:has(.sc-pdf),
body:has(.sc-pdf) {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

html:has(.sp-hero),
body:has(.sp-hero) {
    background-color: var(--hero-background, #001d3e);
}

.sc-pdf .sp-navbar,
.sc-pdf .sp-navbar *,
.sp-hero,
.sp-hero *,
.sp-metrics,
.sp-metrics * {
    font-family: var(--sp-hero-font) !important;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */

.sc-pdf .sp-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    height: var(--sp-hero-nav-h);
    background-color: var(--hero-background, #001d3e) !important;
    border-top: 0;
    border-bottom: 1px solid transparent;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    box-shadow: none;
    transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.sc-pdf .sp-navbar.is-scrolled,
.sc-pdf .sp-navbar.is-inner {
    background-color: rgba(0, 29, 62, 0.96) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.sc-pdf .sp-nav-inner {
    height: var(--sp-hero-nav-h);
    max-width: 1320px;
    padding: 0 32px;
    gap: 20px;
}

/* Logo com contorno branco próprio: vai direto sobre o nav escuro, sem placa */
.sc-pdf .sp-nav-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 0;
    background: none;
    line-height: 0;
}

.sc-pdf .sp-nav-logo img {
    width: 160px;
    height: auto;
    max-height: 48px;
}

.sp-nav-caret {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.sp-nav-item.has-dropdown > .sp-nav-link::after {
    display: none !important;
}

.sp-nav-client,
.sp-nav-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    clip-path: none !important;
    white-space: nowrap;
}

.sp-navbar.is-inner .sp-nav-client {
    height: 42px;
    padding: 0 20px;
    border-radius: 8px;
    background: transparent !important;
    border: 1px solid rgba(16, 42, 67, 0.22) !important;
    color: var(--sp-text-dark, #102A43) !important;
    font-weight: 600;
    box-shadow: none !important;
}

.sp-navbar.is-inner .sp-nav-demo {
    height: 42px;
    padding: 0 18px;
    gap: 8px;
    border-radius: 8px;
    background: #FF6B1A !important;
    border: 1px solid #FF6B1A !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255, 107, 26, 0.22) !important;
}

.sp-navbar.is-inner .sp-nav-demo svg {
    width: 14px;
    height: 14px;
}

.sc-pdf .sp-nav-menu {
    gap: 26px;
}

.sc-pdf .sp-nav-link,
.sc-pdf .sp-navbar.is-scrolled .sp-nav-link,
.sc-pdf .sp-navbar.is-inner .sp-nav-link {
    position: relative;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88) !important;
    letter-spacing: 0.01em;
    background: none !important;
}

.sc-pdf .sp-nav-link::after {
    content: none;
}

.sc-pdf .sp-nav-item.has-dropdown > .sp-nav-link .sp-nav-caret {
    width: 10px;
    height: 10px;
    margin-left: 4px;
    flex-shrink: 0;
    opacity: 0.8;
}

.sc-pdf .sp-nav-link:hover,
.sc-pdf .sp-nav-link:focus-visible {
    color: #fff !important;
    background: none !important;
}

.sc-pdf .sp-nav-item > .sp-nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    background: var(--sp-cyan-400);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}

.sc-pdf .sp-nav-item > .sp-nav-link:hover::before,
.sc-pdf .sp-nav-item > .sp-nav-link:focus-visible::before,
.sc-pdf .sp-nav-item.has-dropdown:hover > .sp-nav-link::before,
.sc-pdf .sp-nav-item.has-dropdown:focus-within > .sp-nav-link::before {
    transform: scaleX(1);
}

.sc-pdf .sp-nav-dropdown {
    top: calc(100% + 8px);
    min-width: 248px;
    padding: 8px;
    background: var(--sp-navy-900);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    clip-path: none;
    box-shadow: 0 18px 40px rgba(4, 27, 51, 0.35);
}

.sc-pdf .sp-nav-item.has-dropdown:hover > .sp-nav-dropdown,
.sc-pdf .sp-nav-item.has-dropdown:focus-within > .sp-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sc-pdf .sp-nav-dropdown .sp-nav-link {
    border-radius: 6px;
    padding: 10px 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.86) !important;
}

.sc-pdf .sp-nav-dropdown .sp-nav-link:hover,
.sc-pdf .sp-nav-dropdown .sp-nav-link:focus-visible {
    color: #fff !important;
    background: rgba(20, 149, 255, 0.12) !important;
}

.sc-pdf .sp-nav-dropdown .sp-nav-link::before {
    content: none;
}

.sc-pdf .sp-nav-actions {
    gap: 10px;
}

.sc-pdf .sp-nav-client,
.sc-pdf .sp-navbar.is-scrolled .sp-nav-client,
.sc-pdf .sp-navbar.is-inner .sp-nav-client {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 20px;
    border-radius: 8px;
    background: rgba(10, 54, 95, 0.62) !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: none !important;
    clip-path: none !important;
    transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.sc-pdf .sp-nav-client:hover,
.sc-pdf .sp-nav-client:focus-visible {
    background: #0d4273 !important;
    border-color: var(--sp-cyan-400) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.sc-pdf .sp-nav-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--sp-orange-500) !important;
    border: 1px solid var(--sp-orange-500) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(255, 107, 26, 0.28) !important;
    clip-path: none !important;
    transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.sc-pdf .sp-nav-demo svg {
    width: 14px;
    height: 14px;
}

.sc-pdf .sp-nav-demo:hover,
.sc-pdf .sp-nav-demo:focus-visible {
    background: #ff7d38 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 107, 26, 0.36) !important;
}

.sc-pdf .sp-nav-toggle span,
.sc-pdf .sp-navbar.is-scrolled .sp-nav-toggle span,
.sc-pdf .sp-navbar.is-inner .sp-nav-toggle span {
    background: #fff;
}

.sc-pdf .sp-navbar a:focus-visible,
.sc-pdf .sp-navbar button:focus-visible {
    outline: 2px solid var(--sp-cyan-400);
    outline-offset: 3px;
}

button.sp-nav-link {
    appearance: none;
    -webkit-appearance: none;
}

#sistema-funcionando {
    scroll-margin-top: 96px;
}

@media (min-width: 1100px) {
    .sc-pdf .sp-nav-toggle { display: none; }
    .sc-pdf .sp-nav-menu-wrap {
        position: static;
        transform: none !important;
        background: transparent;
        padding: 0;
        overflow: visible;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
}

html:not(.is-past-hero) #channel-chat-widget {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.sc-pdf #channel-chat-widget,
#channel-chat-widget {
    bottom: 24px;
    right: 24px;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.sp-hero {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 700px;
    max-height: 900px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: var(--hero-background, #001d3e);
    color: var(--sp-white);
    filter: none;
}

.sp-hero::before,
.sp-hero::after,
.sp-hero-visual::before,
.sp-hero-visual::after {
    content: none !important;
    display: none !important;
}

.sp-hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--hero-background, #001d3e);
    pointer-events: none;
    filter: none;
}

.sp-hero-visual picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.sp-hero-image,
.sp-hero-visual img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
    object-fit: contain;
    object-position: center center;
    filter: none !important;
    image-rendering: auto;
}

.sp-hero-veil,
.sp-hero-overlay,
.sp-hero-contrast,
.sp-hero-gradient {
    display: none !important;
    background: transparent !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    pointer-events: none;
}

.sp-hero-inner,
.sp-hero-copy,
.sp-hero-actions {
    background: transparent;
    box-shadow: none;
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.sp-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: min(calc(100% - 60px), 1240px);
    height: 100%;
    margin-inline: auto;
    padding: 110px 0 96px;
    box-sizing: border-box;
    pointer-events: none;
}

.sp-hero-copy {
    position: relative;
    z-index: 2;
    width: min(100%, 570px);
    max-width: 570px;
    padding-top: 0;
    animation: spHeroIn 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
    pointer-events: auto;
}

.sp-hero-eyebrow {
    margin: 0 0 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
    color: #20BDEB !important;
    line-height: 1.3 !important;
}

.sp-hero h1 {
    margin: 0 !important;
    max-width: 590px;
    color: #FFFFFF !important;
    font-size: clamp(46px, 4vw, 56px) !important;
    font-weight: 700 !important;
    line-height: 1.04 !important;
    letter-spacing: -0.035em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.sp-hero h1 span {
    color: #1495FF;
    white-space: nowrap;
}

.sp-hero-lead {
    margin: 22px 0 30px !important;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.90) !important;
    font-size: 19px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.sp-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.sp-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.sp-hero-btn-primary {
    height: 54px;
    padding: 0 25px;
    background: var(--sp-orange-500);
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 12px 30px rgba(255, 107, 26, 0.25);
}

.sp-hero-btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 200ms ease;
}

.sp-hero-btn-primary:hover,
.sp-hero-btn-primary:focus-visible {
    background: #ff7d38;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(255, 107, 26, 0.34);
}

.sp-hero-btn-primary:hover svg,
.sp-hero-btn-primary:focus-visible svg {
    transform: translateX(3px);
}

.sp-hero-btn-secondary {
    height: 50px;
    padding: 0 18px;
    background: transparent;
    border: 1px solid rgba(32, 189, 235, 0.7);
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.sp-hero-play {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.sp-hero-play svg {
    width: 22px;
    height: 22px;
}

.sp-hero-btn-secondary:hover,
.sp-hero-btn-secondary:focus-visible {
    background: rgba(8, 124, 235, 0.18);
    border-color: var(--sp-cyan-400);
    color: #fff !important;
    transform: translateY(-1px);
}

.sp-hero-benefits,
.sp-hero-check {
    display: none !important;
}

.sp-hero a:focus-visible,
.sp-metrics a:focus-visible {
    outline: 2px solid var(--sp-cyan-400);
    outline-offset: 3px;
}

@keyframes spHeroIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spMetricIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------------------- */
/* Indicadores                                                                */
/* -------------------------------------------------------------------------- */

.sp-metrics-section {
    position: relative;
    z-index: 10;
    background-color: #F6F9FC;
    padding: 1px 0 60px;
    margin: 0;
    overflow: visible;
}

.sp-metrics {
    position: relative;
    z-index: 11;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    width: min(calc(100% - 60px), 1210px);
    max-width: 1210px;
    min-height: 124px;
    margin: -62px auto 0;
    padding: 8px 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 18px 50px rgba(8, 43, 76, 0.16),
        0 4px 14px rgba(8, 43, 76, 0.08);
    animation: spMetricIn 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sp-metric {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 108px;
    padding: 18px 12px;
    border-right: 1px solid #D9E7F3;
}

.sp-metric:last-child {
    border-right: 0;
}

.sp-metric svg {
    width: 34px;
    height: 34px;
    color: var(--sp-blue-600);
    flex-shrink: 0;
}

.sp-metric-value {
    display: block;
    color: var(--sp-navy-900);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.sp-metric-label {
    display: block;
    margin-top: 4px;
    color: var(--sp-text-muted) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

.sp-metrics-section + .sc-section {
    padding-top: 20px;
    background: var(--sp-surface);
}

/* -------------------------------------------------------------------------- */
/* Tablet                                                                     */
/* -------------------------------------------------------------------------- */

@media (max-width: 1099px) {
    .sc-pdf {
        --header-height: 64px;
        --sp-hero-nav-h: 64px;
        --sc-nav-h: 64px;
    }

    .sc-pdf .sp-nav-toggle {
        display: flex;
    }

    .sc-pdf .sp-nav-inner {
        padding: 0 20px;
    }

    .sc-pdf .sp-nav-logo img {
        width: 128px;
        max-height: 38px;
    }

    .sc-pdf .sp-nav-menu-wrap {
        position: fixed;
        top: var(--sp-hero-nav-h);
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px;
        background: #001d3e;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        filter: none;
        transform: translateX(100%);
        transition: transform 220ms ease;
        overflow-y: auto;
        z-index: 999;
    }

    .sc-pdf .sp-nav-menu-wrap.is-open {
        transform: translateX(0);
    }

    .sc-pdf .sp-nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .sc-pdf .sp-nav-link {
        padding: 14px 8px;
    }

    .sc-pdf .sp-nav-item > .sp-nav-link::before {
        content: none;
    }

    .sc-pdf .sp-nav-dropdown {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        margin-top: 4px;
        box-shadow: none;
        background: rgba(20, 149, 255, 0.08);
    }

    .sc-pdf .sp-nav-item.is-open .sp-nav-dropdown {
        display: block;
    }

    .sc-pdf .sp-nav-actions {
        flex-direction: column;
        margin-top: 20px;
    }

    .sc-pdf .sp-nav-client,
    .sc-pdf .sp-nav-demo {
        width: 100%;
    }

    .sp-hero {
        height: auto;
        min-height: 720px;
        max-height: none;
        aspect-ratio: 16 / 9;
    }

    .sp-hero-inner {
        min-height: 0;
        width: min(calc(100% - 40px), 1240px);
        padding: 96px 0 88px;
        pointer-events: none;
    }

    .sp-hero-copy {
        max-width: 390px;
        pointer-events: auto;
    }

    .sp-hero h1 {
        font-size: 36px !important;
        line-height: 1.12 !important;
    }

    .sp-hero-visual,
    .sp-hero-image,
    .sp-hero-visual img {
        object-fit: contain;
        object-position: center center;
    }

    .sp-metrics {
        width: calc(100% - 40px);
        max-width: 1210px;
        grid-template-columns: 1fr 1fr;
        min-height: 0;
        margin-top: -55px;
        padding: 12px 8px;
    }

    .sp-metric {
        min-height: 88px;
        border-right: 0;
        border-bottom: 1px solid #D9E7F3;
    }

    .sp-metric:nth-child(odd) {
        border-right: 1px solid #D9E7F3;
    }

    .sp-metric:nth-child(n + 3) {
        border-bottom: 0;
    }

    .sp-metrics-section + .sc-section {
        padding-top: 40px;
    }
}

/* -------------------------------------------------------------------------- */
/* Celular                                                                    */
/* -------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .sp-hero {
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .sp-hero-visual {
        position: relative;
        order: 2;
        inset: auto;
        width: 100%;
        height: auto;
        padding: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .sp-hero-visual picture {
        position: relative;
        inset: auto;
        display: block;
        width: 100%;
        height: auto;
    }

    .sp-hero-image,
    .sp-hero-visual img {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center center;
    }

    .sp-hero-inner {
        order: 1;
        position: relative;
        min-height: 0;
        height: auto;
        width: min(calc(100% - 40px), 1240px);
        padding: calc(var(--sp-hero-nav-h) + 20px) 0 20px;
        pointer-events: auto;
    }

    .sp-hero-copy {
        width: 100%;
        max-width: none;
    }

    .sp-hero h1 {
        font-size: clamp(34px, 9vw, 42px) !important;
    }

    .sp-hero h1 br {
        display: none;
    }

    .sp-hero-lead {
        margin: 18px 0 24px !important;
        font-size: 17px !important;
    }

    .sp-hero-lead br {
        display: none;
    }

    .sp-hero-actions {
        width: 100%;
    }

    .sp-hero-btn {
        width: 100%;
    }

    .sp-metrics-section {
        background-color: #F6F9FC;
    }

    .sp-metrics {
        width: calc(100% - 32px);
        margin-top: -32px;
        margin-left: 16px;
        margin-right: 16px;
        border-radius: 14px;
        padding: 18px 8px 10px;
        gap: 0;
    }

    .sp-metric {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        min-height: 0;
        padding: 16px 10px;
    }

    .sp-metric-value {
        font-size: 24px;
    }

    .sp-metrics-section + .sc-section {
        padding-top: 28px;
    }
}

@media (max-width: 389px) {
    .sp-metrics {
        grid-template-columns: 1fr;
    }

    .sp-metric,
    .sp-metric:nth-child(odd) {
        border-right: 0;
        border-bottom: 1px solid #D9E7F3;
    }

    .sp-metric:last-child {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-hero-copy,
    .sp-metrics,
    .sp-hero-btn,
    .sp-hero-btn-primary svg,
    .sc-pdf .sp-nav-client,
    .sc-pdf .sp-nav-demo,
    .sc-pdf .sp-nav-item > .sp-nav-link::before {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
