/* =========================================
   VARIÁVEIS & GLOBAIS
   ========================================= */
:root {
    --dark-blue: rgb(0, 40, 121);
    --blue: rgb(85, 157, 245);
    --light-blue: rgb(154, 200, 250);
    --black: rgb(0, 0, 0);
    --white: rgb(255, 255, 255);
    --slate-800: #1e293b;
    --slate-600: #334155;

    --container-w: 600px;
    --container-h: 600px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--slate-600);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Barlow', sans-serif !important;
    color: var(--slate-800);
}

.badge.bg-success {
    color: #0f5132 !important;
    background-color: #d1e7dd !important;
}

.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e2e8f0;
    padding-top: 15px;
    padding-bottom: 15px;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--blue);
}

.navbar img {
    height: 1.875rem;
    width: auto;
}

.nav-link {
    font-weight: 600;
    color: var(--slate-600);
    margin: 0 10px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--dark-blue);
}

.btn-custom {
    background-color: var(--dark-blue);
    color: var(--white);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-custom:hover {
    background-color: var(--slate-800);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    padding-top: 140px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(154, 200, 250, 0.1), transparent 40%);
}

.hero-title {
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero-lead {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--slate-600);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: var(--blue);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Mockup 3D Enhancement */
.mockup-container {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: 20px 40px 60px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    position: relative;
}

.mockup-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* =========================================
   CONTADORES & DIAGONAL
   ========================================= */
.diagonal-section {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    padding-bottom: 80px;
}

.counter-section {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 80px 0;
}

/* =========================================
   FUNCIONALIDADES (SCROLL STICKY)
   ========================================= */
.sticky-visual-container {
    position: sticky;
    top: 100px;
    height: 600px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible;
}

.diagram-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.feature-text-block {
    padding: 60px 0;
    min-height: 80vh;
    opacity: 0.6;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-text-block:hover,
.feature-text-block.active {
    opacity: 1;
}

.slack-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--slate-800);
}

.slack-label img {
    width: 20px;
    height: 20px;
}

.slack-title {
    font-size: 3rem;
    font-weight: 800 !important;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--black);
    letter-spacing: -1.5px;
}

.slack-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--slate-600);
    margin-bottom: 2rem;
    max-width: 90%;
}

.slack-stat-card {
    border-left: 4px solid var(--dark-blue);
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.slack-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.slack-stat-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-600);
}

/* =========================================
   DIAGRAMA GRID 4x4 (ANIMAÇÃO)
   ========================================= */
.item-group {
    position: absolute;
    width: 0;
    height: 0;
    z-index: 10;
    transition: all 0.5s ease;
    opacity: 0.4;
    filter: grayscale(100%);
    transform: scale(0.9);
}

.icon-box {
    position: absolute;
    left: -30px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    border: 1px solid #e2e8f0;
}

.icon-box img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.screen-thumb {
    position: absolute;
    width: 0px;
    height: 0px;
    opacity: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 5;
    pointer-events: none;
    left: calc(var(--container-w) / 2 - var(--pos-x));
    top: calc(var(--container-h) / 2 - var(--pos-y));
    transform: translate(-50%, -50%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.screen-thumb>div {
    opacity: 0;
    transition: opacity 0.3s;
}

.connections-layer {
    z-index: 1;
    overflow: visible;
}

.conn-line {
    fill: none;
    stroke: url(#blue-gradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0;
    transition: stroke-dashoffset 1.5s ease-in-out, opacity 0.3s ease;
}

.active-item {
    opacity: 1 !important;
    filter: grayscale(0%) !important;
    transform: scale(1) !important;
    z-index: 50 !important;
}

.active-item .icon-box {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 51, 153, 0.2);
    border-color: var(--blue);
    background: #f8fafc;
}

.active-item .screen-thumb {
    width: 320px !important;
    height: 220px !important;
    opacity: 1 !important;
    background: white;
    box-shadow: 0 25px 60px rgba(0, 51, 153, 0.15);
}

.active-item .screen-thumb>div {
    opacity: 1;
    transition-delay: 0.3s;
}

.step-0 .item-group[data-id="0"],
.step-1 .item-group[data-id="1"],
.step-2 .item-group[data-id="2"],
.step-3 .item-group[data-id="3"],
.step-4 .item-group[data-id="4"],
.step-5 .item-group[data-id="5"] {
    opacity: 1 !important;
    filter: grayscale(0%) !important;
    transform: scale(1) !important;
    z-index: 50 !important;
}

.step-0 .item-group[data-id="0"] .screen-thumb,
.step-1 .item-group[data-id="1"] .screen-thumb,
.step-2 .item-group[data-id="2"] .screen-thumb,
.step-3 .item-group[data-id="3"] .screen-thumb,
.step-4 .item-group[data-id="4"] .screen-thumb,
.step-5 .item-group[data-id="5"] .screen-thumb {
    width: 320px !important;
    height: 320px !important;
    opacity: 1 !important;
}

.step-0 .item-group[data-id="0"] .screen-thumb>div,
.step-1 .item-group[data-id="1"] .screen-thumb>div,
.step-2 .item-group[data-id="2"] .screen-thumb>div,
.step-3 .item-group[data-id="3"] .screen-thumb>div,
.step-4 .item-group[data-id="4"] .screen-thumb>div,
.step-5 .item-group[data-id="5"] .screen-thumb>div {
    opacity: 1;
}

.step-0 #line-0,
.step-1 #line-0-1,
.step-2 #line-1-2,
.step-3 #line-2-3,
.step-4 #line-3-4,
.step-5 #line-4-5 {
    stroke-dashoffset: 0;
    opacity: 1;
}

.thumb-form .thumb-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--slate-600);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.thumb-form .dots {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

.thumb-form .form-label-mock {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-600);
    margin-bottom: 6px;
    text-align: left;
}

.thumb-form .form-input-mock {
    height: 32px;
    width: 100%;
    background: #f1f5f9;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.thumb-form .form-row-mock {
    display: flex;
    gap: 12px;
}

.thumb-form .form-col-mock {
    flex: 1;
}

.thumb-form .form-btn-mock {
    height: 38px;
    width: 100%;
    background: var(--dark-blue);
    border-radius: 6px;
    margin-top: 10px;
}

.thumb-finance {
    justify-content: space-between;
    background: linear-gradient(to bottom right, #ffffff, #f0f9ff);
}

.thumb-finance .finance-card span {
    font-size: 12px;
    color: var(--slate-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thumb-finance .finance-card h3 {
    color: var(--dark-blue);
    font-weight: 800;
    margin: 5px 0 0 0;
    font-size: 28px;
}

.thumb-finance .finance-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 100px;
    padding-bottom: 10px;
}

.thumb-finance .bar {
    flex: 1;
    background: #e2e8f0;
    border-radius: 4px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scaleY(0);
    transform-origin: bottom;
}

.thumb-finance .bar:nth-child(1) {
    transition-delay: 0.1s;
}

.thumb-finance .bar:nth-child(2) {
    transition-delay: 0.2s;
}

.thumb-finance .bar:nth-child(3) {
    transition-delay: 0.3s;
}

.thumb-finance .bar:nth-child(4) {
    transition-delay: 0.4s;
}

.thumb-finance .bar:nth-child(5) {
    transition-delay: 0.5s;
}

.step-1 .item-group[data-id="1"] .bar {
    transform: scaleY(1);
}

.thumb-finance .bar.active {
    background: var(--blue);
}

.thumb-system .system-header {
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.thumb-system .evt-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}

.thumb-system .evt-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.thumb-system .evt-info {
    display: flex;
    flex-direction: column;
}

.thumb-system .evt-info strong {
    font-size: 13px;
}

.thumb-system .evt-info small {
    font-size: 11px;
    color: var(--slate-600);
}

/* Dashboard */
.thumb-dash .dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.thumb-dash .dash-widget {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.thumb-dash .dash-widget.wide {
    grid-column: span 2;
}

.thumb-dash h4 {
    margin: 5px 0 0 0;
    font-size: 20px;
    color: var(--slate-800);
}

.thumb-dash small {
    font-size: 11px;
    color: var(--slate-600);
    text-transform: uppercase;
    font-weight: 600;
}

.mini-chart-line {
    height: 30px;
    width: 100%;
    margin-top: 5px;
    opacity: 0.7;
}

.thumb-chat {
    background: #fcfcfc;
    justify-content: center;
    gap: 12px;
    padding: 20px;
}

.thumb-chat .chat-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    font-size: 12px;
}

.thumb-chat .chat-msg .avatar {
    width: 24px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 50%;
}

.thumb-chat .chat-msg .bubble {
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.thumb-chat .received .bubble {
    background: var(--white);
    color: var(--slate-600);
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 2px;
}

.thumb-chat .sent {
    justify-content: flex-end;
}

.thumb-chat .sent .bubble {
    background: var(--blue);
    color: var(--white);
    border-bottom-right-radius: 2px;
}

.thumb-chat .chat-input-fake {
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    margin-top: 10px;
    background: var(--white);
}

.active-item .screen-thumb.led-panel {
    background-color: #050505;
    position: relative;
    overflow: hidden;
    border: 3px solid #333;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.bg-led {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2 !important;
    background-size: cover;
    background-position: center;
}

.screen-thumb.led-panel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: 100% 4px;
    pointer-events: none;
}

.led-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    color: var(--white);
    text-align: center;
    width: 100%;
    line-height: 1.2;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    transform: scale(0.8);
    display: flex;
    flex-direction: column;
    gap: 10px
}

.active-item .led-content {
    transform: scale(1.3);
}

.led-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    opacity: 0.8;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.led-number,
.led-cat {
    font-size: 24px;
    font-weight: 800;
    color: #5954bf;
    letter-spacing: 2px;
}

.led-name {
    font-size: 34px;
    font-weight: 800;
    color: #5954bf;
    letter-spacing: 2px;
}

.led-time {
    font-size: 34px;
    font-weight: 800;
    color: #5954bf;
    letter-spacing: 2px;
}

/* =========================================
   DIFERENCIAIS (CARDS)
   ========================================= */
.service-card {
    background: white;
    border: 1px solid var(--slate-100);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--light-blue);
    box-shadow: 0 20px 40px rgba(85, 157, 245, 0.1);
}

.icon-square {
    width: 60px;
    height: 60px;
    background: rgba(85, 157, 245, 0.1);
    color: var(--blue);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   ORÇAMENTO / FORMULÁRIO
   ========================================= */
.orcamento-section {
    position: relative;
    padding: 100px 0;
}

.svg-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.svg-bg-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: 0.2;
}

.orcamento-section .container {
    position: relative;
    z-index: 2;
}

.orcamento-section .form-control,
.orcamento-section .form-select {
    border: 1px solid transparent !important;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.orcamento-section .form-control:focus,
.orcamento-section .form-select:focus {
    box-shadow: none;
    border-color: var(--light-blue) !important;
    background-color: white !important;
}

.orcamento-section label {
    font-size: 0.85rem;
    font-weight: 700 !important;
    color: #334155 !important;
    /* Mais escuro */
}

.hover-slide-right {
    transition: transform 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.hover-slide-right:hover {
    transform: translateX(10px);
}

/* =========================================
   DEPOIMENTOS
   ========================================= */
.testimonial-section {
    background-color: var(--dark-blue);
    position: relative;
}

.quote-icon {
    color: var(--white);
    font-size: 3.5rem;
    display: block;
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #e2e8f0;
    font-weight: 300;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.custom-arrow {
    width: 50px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.custom-arrow:hover {
    opacity: 1;
    transform: scale(1.1);
}

.custom-arrow i {
    font-size: 1.5rem;
    color: var(--white);
}

@media (min-width: 992px) {
    .carousel-control-prev.custom-arrow {
        left: -50px;
    }

    .carousel-control-next.custom-arrow {
        right: -50px;
    }
}

/* =========================================
   EQUIPE
   ========================================= */
.team-card {
    background-color: #fff;
    position: relative;
    overflow: hidden;
    padding: 3rem 1rem 4rem 1rem;
    text-align: center;
    transition: all 0.4s ease;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.team-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.team-img-wrapper {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.team-img-wrapper img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid transparent;
    transition: all 0.4s ease;
    background-color: #f1f5f9;
}

.team-card:hover .team-img-wrapper img {
    border-color: var(--blue);
    background: white;
    padding: 4px;
}

.team-content {
    position: relative;
    z-index: 2;
}

.team-content h4,
.team-content h3 {
    color: var(--slate-800);
    font-size: 1.25rem;
}

.ls-1 {
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.team-social-bar {
    position: absolute;
    bottom: -70px;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 3;
}

.team-social-bar a {
    color: white;
    font-size: 1.1rem;
    transition: transform 0.2s;
    opacity: 0.9;
}

.team-social-bar a:hover {
    transform: scale(1.2);
    opacity: 1;
}

.team-card:hover .team-social-bar {
    bottom: 0;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--dark-blue);
    color: #e2e8f0;
    padding: 80px 0 40px 0;
    font-size: 0.95rem;
}

.footer-heading {
    color: var(--white);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.footer-contact-list i {
    margin-top: 4px;
    color: var(--white);
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background-color: var(--blue);
    transform: translateY(-3px);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   MOBILE / RESPONSIVO
   ========================================= */
@media (max-width: 991px) {
    .navbar-nav{
        align-items: start !important;
        padding: 10px 0!important;
    }
    .hero-title {
        font-size: 2.3rem;
    }

    .hero-lead{
        font-size: 1rem;
    }

    .sticky-visual-container {
        display: none;
    }

    .feature-text-block {
        min-height: auto;
        padding: 40px 0;
        opacity: 1;
        border-left: none;
        transform: none !important;
        border-bottom: 1px solid var(--slate-100);
    }

    .mobile-feature-icon {
        display: block !important;
        margin-bottom: 1rem;
        font-size: 2rem;
        color: var(--blue);
    }

    .diagonal-section {
        clip-path: none;
    }

    .team-card {
        display: flex;
        align-items: center;
        gap: 20px;

    }

    .fa-arrow-right-long,
    .fa-arrow-left-long, 
    .orcamento-social, 
    .adjetivos,
    .miniatura {
        display: none !important;
    }
    
    .orcamento-section{
        padding: 40px 0!important;
    }

    .slack-title, .slack-stat-number{
        font-size: 2rem !important;
    }

}