/* =========================
   CONFIGURAÇÕES GERAIS
========================= */

:root {
    --background: #030713;
    --background-secondary: #060b1a;
    --card-background: #0c1223;
    --card-hover: #101a32;

    --text-primary: #ffffff;
    --text-secondary: #aab3c5;

    --blue: #2583ff;
    --blue-light: #4ca4ff;
    --purple: #6236ff;

    --border: rgba(86, 115, 190, 0.25);
    --navbar-height: 80px;
    --container-width: 1180px;
    --gutter: clamp(16px, 5vw, 32px);
    --section-space: clamp(56px, 8vw, 90px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;

    padding-top: var(--navbar-height);

    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-primary);

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(33, 85, 255, 0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 50%,
            rgba(81, 46, 255, 0.08),
            transparent 28%
        ),
        var(--background);
}

main {
    flex: 1;
    min-width: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: 3px;
}

section {
    scroll-margin-top: var(--navbar-height);
}

.container {
    width: min(var(--container-width), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    height: var(--navbar-height);

    background-color: rgba(2, 5, 14, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(15px);
}

.navbar-container {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    background: transparent;
}

.nav-logo img {
    width: clamp(120px, 30vw, 180px);
    height: 55px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.nav-link {
    position: relative;

    padding: 12px 15px;

    color: #d9deea;
    font-size: 15px;
    transition: 0.3s;
}

.nav-link::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: 2px;

    width: 0;
    height: 2px;

    background: linear-gradient(
        90deg,
        var(--blue),
        var(--purple)
    );

    transform: translateX(-50%);
    transition: width 0.3s;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 30px);
}

.nav-link.active {
    color: var(--blue-light);
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 44px;
    padding: 12px 24px;

    color: #ffffff;
    font-size: 14px;
    white-space: nowrap;

    border: 1px solid rgba(98, 84, 255, 0.8);
    border-radius: 30px;

    background-color: transparent;
    transition: 0.3s;
}

.contact-button:hover {
    background: linear-gradient(
        90deg,
        var(--blue),
        var(--purple)
    );

    border-color: transparent;
    box-shadow: 0 0 25px rgba(61, 90, 255, 0.4);
    transform: translateY(-2px);
}


.nav-toggle {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    color: #ffffff;
    cursor: pointer;

    border: 1px solid rgba(98, 84, 255, 0.5);
    border-radius: 10px;
    background: transparent;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    transition: transform 0.3s, background-color 0.3s;
}

.nav-toggle-bar {
    position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bar::before {
    top: -6px;
}

.nav-toggle-bar::after {
    top: 6px;
}

.nav-toggle.is-open .nav-toggle-bar {
    background-color: transparent;
}

.nav-toggle.is-open .nav-toggle-bar::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar::after {
    transform: translateY(-6px) rotate(-45deg);
}


/* =========================
   SEÇÃO PRINCIPAL / HERO
========================= */

.hero {
    position: relative;
    overflow: hidden;
    overflow: clip;

    /* ocupa a área visível abaixo do cabeçalho, mas cresce com o conteúdo */
    min-height: min(calc(100vh - var(--navbar-height)), 820px);
    min-height: min(calc(100svh - var(--navbar-height)), 820px);
    padding: var(--section-space) 0;

    display: flex;
    align-items: center;

    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hero::before {
    content: "";

    position: absolute;
    right: -150px;
    top: -170px;

    width: min(650px, 120vw);
    aspect-ratio: 1;

    background: radial-gradient(
        circle,
        rgba(39, 93, 255, 0.22),
        transparent 65%
    );

    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 860px;
    text-align: center;
}

.hero-title {
    margin-bottom: 24px;

    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.gradient-text {
    color: transparent;

    background: linear-gradient(
        90deg,
        var(--blue-light),
        var(--purple)
    );

    background-clip: text;
    -webkit-background-clip: text;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 32px;

    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;

    margin-bottom: 45px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 48px;
    padding: 13px 24px;

    border-radius: 8px;
    font-weight: bold;

    transition: 0.3s;
}

.btn-primary {
    color: #ffffff;

    background: linear-gradient(
        90deg,
        var(--blue),
        var(--purple)
    );

    box-shadow: 0 10px 30px rgba(42, 74, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(42, 74, 255, 0.4);
}

.btn-secondary {
    color: #ffffff;
    background-color: transparent;

    border: 1px solid rgba(95, 84, 255, 0.7);
}

.btn-secondary:hover {
    background-color: rgba(55, 75, 170, 0.15);
    transform: translateY(-3px);
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 32px;
    text-align: left;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.highlight-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--blue-light);
    font-size: 22px;

    border: 1px solid rgba(55, 97, 255, 0.3);
    border-radius: 10px;

    background-color: rgba(35, 75, 200, 0.08);
}

/* =========================
   TÍTULOS DAS SEÇÕES
========================= */

.section {
    padding: var(--section-space) 0;
}

.section-header {
    max-width: 720px;
    margin: 0 auto clamp(32px, 5vw, 45px);

    text-align: center;
}

.section-label {
    display: block;
    margin-bottom: 10px;

    color: var(--blue-light);
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    margin-bottom: 14px;

    color: #ffffff;
    font-size: clamp(28px, 4.5vw, 45px);
    line-height: 1.15;
    text-wrap: balance;
}

.section-description {
    color: var(--text-secondary);
    max-width: 60ch;
    margin-inline: auto;
    font-size: 16px;
    line-height: 1.7;
    text-wrap: pretty;
}

.contact .section-header {
    margin-bottom: 0;
}

.contact-actions {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;

    margin-top: clamp(28px, 4vw, 40px);
}


/* =========================
   CARDS DE SOLUÇÕES
========================= */

.solutions {
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(7, 13, 31, 0.4) 50%,
            transparent
        );
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.solution-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 240px;
    padding: 26px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(19, 29, 56, 0.9),
            rgba(7, 12, 27, 0.95)
        );

    transition: 0.35s;
}

.solution-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--blue),
        var(--purple),
        transparent
    );

    opacity: 0;
    transition: 0.35s;
}

.solution-card:hover {
    border-color: rgba(68, 105, 255, 0.55);
    background-color: var(--card-hover);

    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    font-size: 25px;

    border-radius: 50%;

    background: linear-gradient(
        145deg,
        var(--blue-light),
        var(--purple)
    );

    box-shadow: 0 8px 25px rgba(42, 90, 255, 0.3);
}

.solution-card h3 {
    margin-bottom: 12px;

    font-size: 19px;
    line-height: 1.3;
}

.solution-card p {
    margin-bottom: 20px;

    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.card-link {
    margin-top: auto;
    align-self: flex-end;
    line-height: 1;

    color: var(--blue-light);
    font-size: 24px;

    transition: 0.3s;
}

.solution-card:hover .card-link {
    transform: translateX(5px);
}


/* =========================
   SOBRE NÓS
========================= */

.about {
    padding: var(--section-space) 0;

    background:
        radial-gradient(
            ellipse 45% 50% at 70% 50%,
            rgba(46, 73, 255, 0.12),
            transparent 100%
        );
}

.about-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(32px, 6vw, 70px);
}

.about-content h2 {
    margin: 10px 0 20px;

    font-size: clamp(28px, 4.5vw, 46px);
    text-wrap: balance;
}

.about-content p {
    margin-bottom: 25px;

    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.about-content .btn {
    margin-bottom: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 25px 12px;

    text-align: center;

    border: 1px solid var(--border);
    border-radius: 14px;

    background-color: rgba(11, 18, 38, 0.75);
}

.stat-card strong {
    display: block;
    margin-bottom: 8px;

    color: var(--blue-light);
    font-size: 34px;
}

.stat-card span {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

/* =========================
   RODAPÉ
========================= */

.footer {
    padding: clamp(40px, 6vw, 56px) 0 28px;
    background-color: #02050d;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(32px, 5vw, 50px);
    text-align: left;
}

.footer-logo {
    width: min(190px, 100%);
    margin-bottom: 18px;
}

.footer-description {
    max-width: 330px;

    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.footer-column h4 {
    margin-bottom: 18px;

    color: var(--blue-light);
    font-size: 14px;
}

.footer-column > a {
    display: flex;
    align-items: center;
    width: fit-content;
    min-height: 40px;

    color: var(--text-secondary);
    font-size: 14px;

    transition: 0.3s;
}

.footer-column > a:hover {
    color: var(--blue-light);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link {
    flex-shrink: 0;
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text-secondary);
    border-radius: 50%;
    border: 2px solid #2a3b5f;

    transition: 0.3s;
}

.social-link svg {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: linear-gradient(
        145deg,
        var(--blue),
        var(--purple)
    );

    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: clamp(28px, 5vw, 40px);
    padding-top: 22px;

    color: #737d91;
    font-size: 13px;
    text-align: center;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}


/* =========================
   HIGHLIGHT BADGES
========================= */

.highlight-label {
    display: block;
    color: var(--blue-light);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

.highlight-sub {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}


/* =========================
   ABOUT — COLUNA DIREITA
========================= */

.about-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =========================
   STAT ICONS
========================= */

.stat-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--blue-light);
}

.stat-icon svg {
    fill: none;
    stroke: currentColor;
}


/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 1100px) {
    .solutions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-content {
        max-width: 640px;
        margin-inline: auto;
        text-align: center;
    }
}

@media (max-width: 850px) {
    :root {
        --navbar-height: 70px;
    }

    .nav-logo img {
        height: 48px;
    }

    .contact-button {
        margin-left: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        max-height: calc(100vh - var(--navbar-height));
        max-height: calc(100dvh - var(--navbar-height));
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 8px var(--gutter) 16px;

        border-bottom: 1px solid var(--border);
        background-color: rgba(2, 5, 14, 0.98);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-link {
        padding: 14px 4px;
        font-size: 16px;
    }

    .nav-link::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .contact-button {
        display: none;
    }

    .nav-toggle {
        margin-left: auto;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons,
    .contact-actions {
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        max-width: 400px;
        margin-inline: auto;
    }

    .btn {
        width: 100%;
    }

    .hero-highlights {
        flex-direction: column;
        align-items: flex-start;

        width: fit-content;
        margin: 0 auto;
    }

    .solutions-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .solution-card {
        min-height: 0;
    }
}

@media (max-width: 520px) {
    .stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 400px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
