/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #dc0a0a;
    --secondary-color: #b00808;
    --accent-color: #ff1a1a;
    --dark-bg: #1e1e1e;
    --dark-bg-light: #252526;
    --dark-bg-darker: #1a1a1a;
    --light-bg: #2d2d2d;
    --text-dark: #d4d4d4;
    --text-light: #858585;
    --text-muted: #6e6e6e;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #dc0a0a 0%, #b00808 50%, #8a0606 100%);
    --shadow-red: 0 4px 20px rgba(220, 10, 10, 0.15);
    --border-color: #3c3c3c;
    --header-height: 82px;
    --card-gap: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #c0c6cc;
    background-image:
        repeating-linear-gradient(90deg,
            transparent 0px,
            rgba(255, 255, 255, 0.045) 1px,
            transparent 2px,
            transparent 4px),
        linear-gradient(175deg,
            #d2d8df 0%,
            #c0c6cc 25%,
            #cad0d6 55%,
            #bac0c6 80%,
            #ccd2d8 100%);
    padding-top: calc(var(--header-height) + var(--card-gap));
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-brand:hover {
    filter: drop-shadow(0 0 8px rgba(220, 10, 10, 0.6));
}

.brand-logo {
    height: 50px;
    width: auto;
    transition: filter 0.3s ease;
}

.nav-brand:hover .brand-logo {
    filter: drop-shadow(0 0 12px rgba(220, 10, 10, 0.8));
}

.brand-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-text-meta {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.brand-text-sis {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-brand:hover .brand-text-sis {
    color: #ff3333;
    text-shadow: 0 0 10px rgba(220, 10, 10, 0.8);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 10, 10, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 10, 10, 0.4);
}

.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Quadros escuros flutuando sobre o fundo prata */
:is(.sobre, .solucoes, .modulos, .consultoria, .downloads, .contato) {
    scroll-margin-top: calc(var(--header-height) + var(--card-gap));
}

:is(.hero, .sobre, .solucoes, .modulos, .consultoria, .downloads, .contato, .footer) {
    max-width: min(1320px, calc(100% - 3rem));
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--card-gap);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.22),
        0 10px 32px rgba(0, 0, 0, 0.32),
        0 24px 56px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-bg-darker) 0%, var(--dark-bg) 100%);
    padding: 80px 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
    max-width: 1320px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    margin-bottom: 2rem;
}

.hero-brand-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.hero-brand-meta {
    color: var(--text-dark);
}

.hero-brand-sis {
    color: var(--primary-color);
}

.hero-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    margin: 0 0 0.75rem;
    letter-spacing: -1px;
}

.hero-description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.35rem;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0;
    max-width: 44ch;
    font-weight: 400;
}

/* Sobre Section */
.sobre {
    padding: 55px 20px;
    background: var(--dark-bg-light);
}

.sobre-content {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.sobre-text {
    color: var(--text-light);
    line-height: 1.8;
    text-align: justify;
}

.sobre-text p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

/* Soluções Section */
.solucoes {
    padding: 55px 20px;
    background: var(--dark-bg);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.solution-card {
    background: linear-gradient(145deg, var(--dark-bg-light) 0%, var(--dark-bg) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover {
    border-color: var(--border-color);
}

.solution-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(220, 10, 10, 0.1) 0%, rgba(176, 8, 8, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.solution-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.card-description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.card-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.card-arrow svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.solution-card:hover .card-arrow {
    color: var(--accent-color);
}

.solution-card:hover .card-arrow svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--dark-bg-light);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .btn-whatsapp:not(.contato-cta) .btn-label {
        display: none;
    }

    .btn-whatsapp:not(.contato-cta) {
        padding: 0.6rem;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .nav-brand svg {
        height: 35px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-left {
        align-items: center;
    }

    .hero-logo-img {
        max-height: 140px;
    }

    .hero-brand-text {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .sobre-text p {
        font-size: 1rem;
    }

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

    .solution-card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
    }

    .card-title {
        font-size: 1.125rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--dark-bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: var(--border-color);
}

.modal-content {
    padding: 24px;
}

.solution-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.solution-item:hover {
    border-color: var(--primary-color);
    background: var(--dark-bg-darker);
}

.solution-item-icon {
    font-size: 1.5rem;
    margin-right: 12px;
}

.solution-item-text {
    color: var(--text-dark);
    font-size: 1rem;
}

/* Módulos Section */
.modulos {
    padding: 55px 20px;
    background: var(--dark-bg-light);
}

.modulos-subtitulo {
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.modulos-lista {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 860px;
    margin: 0 auto;
}

.btn-expandir-todos {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-weight: 500;
    font-family: inherit;
}

.btn-expandir-todos:hover {
    text-decoration: underline;
}

.modulo-item {
    background: var(--dark-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s;
}

.modulo-item.aberto {
    border-color: var(--primary-color);
    box-shadow: 0 2px 12px rgba(220, 10, 10, .12);
}

.modulo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}

.modulo-header-esq {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modulo-icone {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modulo-icone i {
    font-size: 20px;
}

.modulo-nome {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.modulo-header-dir {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.modulo-badge {
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--light-bg);
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
}

.modulo-item.aberto .modulo-badge {
    background: rgba(220, 10, 10, .12);
    color: var(--primary-color);
}

.modulo-chevron {
    font-size: 18px;
    color: var(--text-muted);
    transition: transform .25s;
}

.modulo-item.aberto .modulo-chevron {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.modulo-corpo {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.modulo-corpo-inner {
    padding: 0 18px 16px 68px;
    border-top: 1.5px solid var(--border-color);
}

.features-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 14px;
}

.features-lista li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.5;
}

.features-lista li i {
    font-size: 16px;
    color: #2ec99a;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Downloads Section */
.downloads {
    padding: 55px 20px;
    background: var(--dark-bg-light);
}

.downloads-subtitulo {
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.downloads-grupo-lista {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 860px;
    margin: 0 auto;
}

.downloads-grupo {
    background: var(--dark-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
}

.downloads-grupo-titulo {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.downloads-itens {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.downloads-itens li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
}

.downloads-itens li i {
    font-size: 16px;
    color: #2ec99a;
    margin-top: 1px;
    flex-shrink: 0;
}

.downloads-itens a {
    color: var(--text-light);
    text-decoration: none;
    transition: color .2s;
}

.downloads-itens a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.downloads-restrito {
    max-width: 860px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1.5px solid var(--border-color);
}

.downloads-restrito-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 14px;
    color: var(--text-dark);
}

.downloads-logout {
    color: var(--primary-color);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.downloads-logout:hover {
    text-decoration: underline;
}

.downloads-login {
    max-width: 420px;
    margin: 0 auto;
}

.downloads-login-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 1.25rem;
    border: 1px solid rgba(220, 10, 10, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    list-style: none;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.downloads-login-toggle::-webkit-details-marker {
    display: none;
}

.downloads-login-toggle:hover {
    background: rgba(220, 10, 10, 0.08);
    border-color: rgba(220, 10, 10, 0.5);
}

.downloads-login[open]>.downloads-login-toggle {
    margin-bottom: 1rem;
}

.downloads-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.75rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(220, 10, 10, 0.2);
}

.downloads-login-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.downloads-login-group label {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
}

.downloads-login-group input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    color: var(--white);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.downloads-login-group input:focus {
    outline: none;
    border-color: #ff1a1a;
}

.downloads-login-submit {
    align-self: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.downloads-login-mensagens {
    display: none;
    text-align: center;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.downloads-login-mensagens:not(:empty) {
    display: block;
}

.downloads-login-mensagens.info {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.downloads-login-mensagens.sucesso {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.downloads-login-mensagens.erro {
    background: rgba(220, 10, 10, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(220, 10, 10, 0.3);
}

/* Consultoria Section */
.consultoria {
    padding: 55px 20px;
    background: var(--dark-bg);
}

.consultoria-intro {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 680px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.consultoria-subtitulo {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
    text-align: justify;
}

.ciclo-layout {
    display: grid;
    grid-template-columns: 1fr 280px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 32px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Desktop: posicionamento explícito por coluna e linha */
/* DOM order: article(01), article(04), div.ciclo-anel, article(02), article(03) */
/* nth-of-type conta apenas articles, ignorando a div do SVG */
.ciclo-layout>article:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
}

.ciclo-layout>article:nth-of-type(2) {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
}

.ciclo-anel {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
}

.ciclo-layout>article:nth-of-type(3) {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
}

.ciclo-layout>article:nth-of-type(4) {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
}

.etapa-card {
    background: var(--dark-bg-light);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 20px;
    width: 220px;
    position: relative;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    animation: fadeUp .4s ease both;
}

.etapa-card:hover {
    border-color: var(--card-cor, var(--primary-color));
    box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
    transform: translateY(-3px);
}

.etapa-card:nth-child(1) {
    animation-delay: .05s;
}

.etapa-card:nth-child(2) {
    animation-delay: .2s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.etapa-numero {
    position: absolute;
    top: -10px;
    right: 16px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.etapa-icone {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.etapa-icone i {
    font-size: 20px;
}

.etapa-titulo {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.etapa-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.ciclo-anel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ciclo-anel svg {
    width: 100%;
    max-width: 280px;
    height: auto;
}

.anel-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-anchor: middle;
    dominant-baseline: central;
}

.anel-centro-titulo {
    font-size: 13px;
    font-weight: 600;
    fill: var(--text-dark);
    text-anchor: middle;
}

.anel-centro-sub {
    font-size: 11px;
    fill: var(--text-light);
    text-anchor: middle;
}

.anel-centro-circulo {
    fill: var(--dark-bg);
    stroke: var(--border-color);
    stroke-width: 1;
}

.anel-fundo-tracejado {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 0.5;
}

@keyframes girar-anel {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.anel-giratorio {
    animation: girar-anel 20s linear infinite;
    transform-origin: 140px 140px;
}

@media (max-width: 860px) {
    .ciclo-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Ordem visual mobile: SVG → 01 → 02 → 03 → 04 */
    .ciclo-anel {
        order: 0;
    }

    .ciclo-layout>article:nth-of-type(1) {
        order: 1;
    }

    /* 01 Diagnosticar */
    .ciclo-layout>article:nth-of-type(3) {
        order: 2;
    }

    /* 02 Melhorar     */
    .ciclo-layout>article:nth-of-type(4) {
        order: 3;
    }

    /* 03 Planejar     */
    .ciclo-layout>article:nth-of-type(2) {
        order: 4;
    }

    /* 04 Fazer        */

    .etapa-card {
        width: 100%;
        max-width: 320px;
    }
}

/* Contato Section */
.contato {
    padding: 3.5rem 0;
    background: var(--dark-bg-darker);
    position: relative;
    overflow: hidden;
}

.contato::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(220, 10, 10, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 26, 26, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contato-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.contato-title {
    font-size: 3rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem 3rem;
    border-radius: 16px;
    border: 1px solid rgba(220, 10, 10, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contato-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contato-item:hover {
    transform: translateX(5px);
}

.contato-icon {
    width: 24px;
    height: 24px;
    color: #ff1a1a;
    filter: drop-shadow(0 0 8px rgba(255, 26, 26, 0.4));
}

.contato-text {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contato-text:hover {
    color: #ff1a1a;
}

.contato-cta {
    font-weight: 700;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.contato-form {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(220, 10, 10, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.contato-form-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.contato-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contato-form-group label {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
}

.contato-form-group input,
.contato-form-group textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contato-form-group input:focus,
.contato-form-group textarea:focus {
    outline: none;
    border-color: #ff1a1a;
}

.contato-form-group textarea {
    resize: vertical;
}

.contato-form-recaptcha {
    display: flex;
    justify-content: center;
}

.contato-form-submit {
    align-self: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.contato-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contato-form-mensagens {
    display: none;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.contato-form-mensagens:not(:empty) {
    display: block;
}

.contato-form-mensagens.info {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.contato-form-mensagens.sucesso {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.contato-form-mensagens.erro {
    background: rgba(220, 10, 10, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(220, 10, 10, 0.3);
}

/* Responsive styles for Contato */
@media (max-width: 768px) {
    .contato {
        padding: 4rem 0;
    }

    .contato-title {
        font-size: 2rem;
    }

    .contato-info {
        padding: 1.5rem 1.5rem;
    }

    .contato-item {
        font-size: 1rem;
    }

    .contato-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .contato-form {
        padding: 1.5rem;
    }
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: var(--dark-bg-darker);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.footer-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.footer-logo-img {
    height: 40px;
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-brand-text-meta {
    color: var(--text-dark);
}

.footer-brand-text-sis {
    color: var(--primary-color);
}

.footer-address {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 1rem;
}

.footer-address-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.footer-address-text {
    color: var(--text-light);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.footer-social-link svg {
    width: 24px;
    height: 24px;
}

.footer-social-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Soluções Section — tabs + grade + modal */
.solucoes-subtitulo {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.solucoes-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
}

.solucoes-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--border-color);
    background: transparent;
    color: var(--text-light);
    font-size: 13.5px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}

.tab-icone {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
}

.tab-icone i {
    font-size: 20px;
    line-height: 1;
    transition: color .2s;
}

.solucoes-tab.ativo .tab-icone {
    background: rgba(255, 255, 255, 0.2) !important;
}

.solucoes-tab.ativo .tab-icone i {
    color: #fff !important;
}

.solucoes-tab:hover {
    border-color: var(--primary-color);
    color: var(--text-dark);
}

.solucoes-tab.ativo {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.solucoes-painel {
    display: none;
    animation: solucoes-fade .25s ease;
}

.solucoes-painel.ativo {
    display: block;
}

@keyframes solucoes-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.solucoes-painel-desc {
    color: var(--text-light);
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 760px;
}

.solucoes-sem-itens {
    color: var(--text-muted);
    font-size: .9rem;
    font-style: italic;
}

.solucoes-itens-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.solucao-item-card {
    background: var(--dark-bg-light);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.solucao-item-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(220, 10, 10, .12);
    transform: translateY(-2px);
}

.sic-titulo {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

.sic-desc {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}

.sic-arrow {
    display: flex;
    justify-content: flex-end;
    color: var(--primary-color);
    margin-top: 4px;
    transition: transform .2s ease;
}

.sic-arrow svg {
    width: 15px;
    height: 15px;
}

.solucao-item-card:hover .sic-arrow {
    transform: translateX(4px);
}

/* Modal de detalhe */
.solucao-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.solucao-modal-overlay.ativo {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.solucao-modal {
    background: var(--dark-bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
    transform: translateY(20px) scale(.97);
    transition: transform .25s ease;
}

.solucao-modal-overlay.ativo .solucao-modal {
    transform: translateY(0) scale(1);
}

.solucao-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 18px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.solucao-modal-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
}

.solucao-modal-fechar {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 2px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s, background .2s;
}

.solucao-modal-fechar:hover {
    color: var(--text-dark);
    background: var(--border-color);
}

.solucao-modal-fechar svg {
    width: 20px;
    height: 20px;
}

.solucao-modal-corpo {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px 24px;
}

.solucao-modal-imagem-wrap {
    display: none;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    align-self: center;
}

.solucao-modal-imagem {
    display: block;
    width: 380px;
    height: 360px;
    max-width: 100%;
}

.solucao-modal-texto {
    font-size: .9rem;
    color: var(--text-light);
    line-height: 1.85;
}

@media (max-width: 860px) {
    .solucoes-itens-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .solucoes-itens-grid {
        grid-template-columns: 1fr;
    }

    .solucao-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .solucao-modal {
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
    }
}

/* Responsive styles for Footer */
@media (max-width: 768px) {
    :is(.hero, .sobre, .solucoes, .modulos, .consultoria, .contato, .footer) {
        max-width: calc(100% - 1.5rem);
        border-radius: 8px;
    }

    body {
        padding-top: calc(72px + 1rem);
    }

    .hero {
        min-height: calc(100vh - 72px - 1rem);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-logo-img {
        height: 32px;
    }

    .footer-brand-text {
        font-size: 1.25rem;
    }

    .footer-address {
        font-size: 0.9rem;
    }

    .footer-social {
        gap: 1rem;
    }

    .footer-social-link {
        width: 36px;
        height: 36px;
    }

    .footer-social-link svg {
        width: 20px;
        height: 20px;
    }
}