/* =========================================================
   KOMITI — SITE INSTITUCIONAL
   Folha de estilos principal
========================================================= */


/* =========================
   VARIÁVEIS
========================= */

:root {
    --bg: #0f1720;
    --bg-soft: #16212c;
    --bg-card: #182631;

    --text: #f4f7f8;
    --text-soft: #b8c2ca;

    --green: #25c781;
    --green-dark: #1ca96b;

    --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.22);

    --radius: 18px;
    --max-width: 1180px;
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-height: 100vh;

    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
}

::selection {
    background: var(--green);
    color: #07110c;
}


/* =========================
   ACESSIBILIDADE
========================= */

:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 4px;
}


/* =========================
   ESTRUTURA
========================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin-inline: auto;
}

.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--bg-soft);
}

.section-header {
    max-width: 760px;
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--green);

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;

    letter-spacing: -0.035em;
}

.section-header > p {
    margin-top: 18px;

    color: var(--text-soft);

    font-size: 1.02rem;
}


/* =========================
   CABEÇALHO
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(15, 23, 32, 0.94);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-content {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================
   LOGO
========================= */

.logo {
    display: inline-flex;
    align-items: center;

    gap: 11px;
}

.logo-symbol {
    width: 38px;
    height: 38px;

    object-fit: contain;
}

.logo-name {
    color: var(--text);

    font-size: 1.03rem;

    letter-spacing: 0.07em;
}

.logo-name strong {
    font-weight: 700;
}


/* =========================
   NAVEGAÇÃO
========================= */

.nav {
    display: flex;
    align-items: center;

    gap: 30px;
}

.nav a {
    position: relative;

    color: var(--text-soft);

    font-size: 0.92rem;
    font-weight: 500;

    transition: color 0.2s ease;
}

.nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--green);

    transition: width 0.2s ease;
}

.nav a:hover {
    color: var(--text);
}

.nav a:hover::after {
    width: 100%;
}


/* =========================
   MENU MOBILE
========================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: transparent;
    color: var(--text);

    cursor: pointer;

    font-size: 1.45rem;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    min-height: 680px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 82% 30%,
            rgba(37, 199, 129, 0.12),
            transparent 32%
        ),
        var(--bg);
}

.hero::after {
    content: "";

    position: absolute;

    width: 480px;
    height: 480px;

    right: -230px;
    bottom: -250px;

    border-radius: 50%;

    background: rgba(37, 199, 129, 0.06);

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;

    padding-top: 70px;
    padding-bottom: 80px;
}

.hero-text {
    max-width: 880px;
}

.hero-label {
    margin-bottom: 20px;

    color: var(--green);

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 920px;

    font-size: clamp(3rem, 7vw, 5.7rem);

    line-height: 0.99;

    letter-spacing: -0.055em;
}

.hero h1 span {
    color: var(--green);
}

.hero-description {
    max-width: 700px;

    margin-top: 28px;

    color: var(--text-soft);

    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 36px;
}


/* =========================
   BOTÕES
========================= */

.btn {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 20px;

    border: 1px solid transparent;
    border-radius: 11px;

    font-size: 0.92rem;
    font-weight: 650;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--green);
    color: #08150f;
}

.btn-primary:hover {
    background: var(--green-dark);
    color: #ffffff;
}

.btn-secondary {
    border-color: var(--border);

    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: rgba(37, 199, 129, 0.35);

    background: rgba(37, 199, 129, 0.06);
}


/* =========================
   SOBRE
========================= */

.about-content {
    max-width: 850px;

    display: grid;

    gap: 20px;
}

.about-content p {
    color: var(--text-soft);

    font-size: 1.05rem;
}


/* =========================
   CARDS DE SOLUÇÕES
========================= */

.cards {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.card {
    min-height: 270px;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--bg-card);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);

    border-color: rgba(37, 199, 129, 0.28);

    box-shadow: var(--shadow);
}

.card-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    margin-bottom: 25px;

    border-radius: 12px;

    background: rgba(37, 199, 129, 0.1);
    color: var(--green);

    font-size: 0.85rem;
    font-weight: 700;
}

.card h3 {
    margin-bottom: 12px;

    font-size: 1.2rem;
}

.card p {
    color: var(--text-soft);

    font-size: 0.95rem;
}


/* =========================
   EVOLUÇÃO CONTÍNUA
========================= */

.continuity {
    max-width: 850px;

    margin-top: 22px;
    padding: 24px 26px;

    border-left: 3px solid var(--green);

    background: rgba(37, 199, 129, 0.045);
}

.continuity strong {
    display: block;

    margin-bottom: 6px;

    color: var(--text);
}

.continuity p {
    color: var(--text-soft);

    font-size: 0.95rem;
}


/* =========================
   PRODUTOS
========================= */

.product-card {
    position: relative;

    max-width: 820px;

    padding: 34px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background:
        linear-gradient(
            135deg,
            rgba(37, 199, 129, 0.08),
            rgba(255, 255, 255, 0.025)
        ),
        var(--bg-card);

    box-shadow: var(--shadow);
}

.product-card::after {
    content: "";

    position: absolute;

    width: 230px;
    height: 230px;

    right: -100px;
    bottom: -120px;

    border-radius: 50%;

    background: rgba(37, 199, 129, 0.07);

    pointer-events: none;
}

.product-info {
    position: relative;
    z-index: 1;

    max-width: 660px;
}

.product-status {
    display: inline-flex;

    margin-bottom: 18px;
    padding: 6px 11px;

    border-radius: 999px;

    background: rgba(37, 199, 129, 0.1);
    color: var(--green);

    font-size: 0.76rem;
    font-weight: 700;

    letter-spacing: 0.03em;
}

.product-card h3 {
    margin-bottom: 12px;

    font-size: 1.65rem;
}

.product-card p {
    color: var(--text-soft);
}


/* =========================
   ACESSO AO PRODUTO
========================= */

.product-actions {
    margin-top: 26px;
}

.product-link {
    display: inline-flex;
    align-items: center;

    min-height: 44px;

    padding: 10px 17px;

    border: 1px solid rgba(37, 199, 129, 0.35);
    border-radius: 10px;

    background: rgba(37, 199, 129, 0.08);
    color: var(--green);

    font-size: 0.9rem;
    font-weight: 700;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.product-link:hover {
    transform: translateY(-2px);

    border-color: var(--green);

    background: var(--green);
    color: #08150f;
}


/* =========================
   CONTATO
========================= */

.section-contact {
    background: var(--bg-soft);
}

.contact-content {
    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(280px, 0.75fr);

    gap: 60px;

    align-items: center;
}

.contact-content h2 {
    margin-top: 2px;

    font-size: clamp(2rem, 4vw, 3.2rem);

    line-height: 1.1;

    letter-spacing: -0.035em;
}

.contact-content > div:first-child > p {
    max-width: 650px;

    margin-top: 18px;

    color: var(--text-soft);
}

.contact-box {
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--bg-card);
}

.contact-title {
    margin-bottom: 8px;

    color: var(--text-soft);

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-box a {
    color: var(--green);

    font-size: 1rem;
    font-weight: 650;

    overflow-wrap: anywhere;
}

.contact-box a:hover {
    text-decoration: underline;
}


/* =========================
   RODAPÉ
========================= */

.footer {
    background: #0b1219;

    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 40px;

    padding-top: 42px;
    padding-bottom: 34px;
}

.footer-brand {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 10px;
}

.footer-logo {
    width: 31px;
    height: 31px;

    object-fit: contain;
}

.footer-brand strong {
    letter-spacing: 0.06em;
}

.footer-content > div > p {
    max-width: 430px;

    color: var(--text-soft);

    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 16px 24px;
}

.footer-links a {
    color: var(--text-soft);

    font-size: 0.86rem;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--green);
}

.footer-bottom {
    padding-top: 18px;
    padding-bottom: 24px;

    border-top: 1px solid var(--border);

    color: #89949d;

    font-size: 0.8rem;
}


/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 980px) {

    .hero {
        min-height: 620px;
    }

    .contact-content {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .contact-box {
        max-width: 520px;
    }

}


@media (max-width: 760px) {

    .container {
        width: min(
            calc(100% - 32px),
            var(--max-width)
        );
    }

    .section {
        padding: 76px 0;
    }


    /* MENU */

    .menu-toggle {
        display: inline-flex;
    }

    .nav {
        position: absolute;

        top: calc(100% + 1px);
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 10px 16px 16px;

        border-bottom: 1px solid var(--border);

        background: rgba(15, 23, 32, 0.98);

        box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 13px 8px;
    }

    .nav a::after {
        display: none;
    }


    /* HERO */

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding-top: 85px;
        padding-bottom: 85px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 13vw, 4.7rem);
    }


    /* SOLUÇÕES */

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: auto;
    }


    /* RODAPÉ */

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }

}


@media (max-width: 520px) {

    .header-content {
        min-height: 68px;
    }

    .logo-symbol {
        width: 34px;
        height: 34px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .product-card {
        padding: 26px 22px;
    }

    .product-link {
        width: 100%;
        justify-content: center;
    }

    .contact-box {
        padding: 22px;
    }

}


/* =========================
   MOVIMENTO REDUZIDO
========================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}