:root {
    --color-bg: #ffffff;
    --color-bg-soft: #f4f8fb;
    --color-bg-deep: #03101a;
    --color-surface: rgba(6, 51, 81, 0.94);
    --color-surface-strong: rgba(6, 51, 81, 0.08);
    --color-ink: #062033;
    --color-muted: #527084;
    --color-line: rgba(39, 170, 225, 0.2);
    --color-primary: #27aae1;
    --color-primary-dark: #063351;
    --shadow-soft: 0 24px 70px rgba(6, 51, 81, 0.16);
    --radius: 8px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-ink);
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.mobile-menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.narrow {
    max-width: 820px;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    background: rgba(6, 51, 81, 0.84);
    border-bottom: 1px solid rgba(39, 170, 225, 0.16);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-primary), #8bdcff);
    color: var(--color-primary-dark);
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(39, 170, 225, 0.22);
}

.brand-name {
    color: #ffffff;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.menu,
.footer-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu a,
.footer-menu a {
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
    transition: color 160ms ease;
}

.site-header .menu a,
.site-footer .footer-menu a {
    color: rgba(255, 255, 255, 0.74);
}

.menu a:hover,
.footer-menu a:hover {
    color: var(--color-primary);
}

.nav-cta,
.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 12px 20px;
    border: 1px solid transparent;
    font-weight: 900;
    line-height: 1;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-cta,
.button-primary {
    background: var(--color-primary);
    color: var(--color-primary-dark);
    box-shadow: 0 16px 34px rgba(39, 170, 225, 0.2);
}

.nav-cta:hover,
.button-primary:hover {
    background: #64c8ef;
    transform: translateY(-1px);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(39, 170, 225, 0.4);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu.is-open {
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(3, 16, 26, 0.78);
    opacity: 0;
    backdrop-filter: blur(8px);
    transition: opacity 220ms ease;
}

.mobile-menu.is-open .mobile-menu-backdrop {
    opacity: 1;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(84vw, 360px);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 28px;
    background: rgba(6, 51, 81, 0.94);
    border-right: 1px solid rgba(39, 170, 225, 0.2);
    box-shadow: var(--shadow-soft);
    transform: translateX(-100%);
    transition: transform 220ms ease;
}

.mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.mobile-menu-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.mobile-links {
    display: grid;
    gap: 18px;
}

.mobile-nav .menu {
    display: grid;
    gap: 18px;
}

.mobile-links a,
.mobile-nav .menu a {
    font-size: 18px;
}

.mobile-cta {
    margin-top: auto;
}

.hero-section,
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 160px 0 92px;
}

.page-hero {
    background:
        linear-gradient(90deg, rgba(3, 16, 26, 0.98), rgba(6, 51, 81, 0.84)),
        url("../../imagens/bg-23.jpg") center / cover no-repeat;
}

.hero-section {
    min-height: 92vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 16, 26, 0.96) 0%, rgba(6, 51, 81, 0.82) 48%, rgba(6, 51, 81, 0.22) 100%),
        url("../../imagens/bg-23.jpg") center / cover no-repeat;
}

.vanta-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.vanta-layer canvas {
    display: block;
}

.vanta-layer.is-vanta-fallback::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 28%, rgba(39, 170, 225, 0.34), transparent 24%),
        radial-gradient(circle at 76% 18%, rgba(20, 184, 196, 0.2), transparent 28%),
        linear-gradient(120deg, rgba(39, 170, 225, 0.18) 0 1px, transparent 1px 38px),
        linear-gradient(30deg, rgba(39, 170, 225, 0.12) 0 1px, transparent 1px 42px);
}

.hero-section .vanta-layer {
    opacity: 0.2;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.72fr);
    gap: 56px;
    align-items: center;
}

.hero-copy {
    display: grid;
    gap: 20px;
}

.eyebrow {
    margin: 0;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 880px;
    margin-bottom: 0;
    color: #ffffff;
    font-size: clamp(48px, 7vw, 88px);
    line-height: 0.96;
    letter-spacing: 0;
}

h1 span,
h2 span {
    color: var(--color-primary);
}

h2 {
    margin-bottom: 18px;
    color: var(--color-primary-dark);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    color: var(--color-primary-dark);
    font-size: 21px;
    line-height: 1.22;
}

.hero-text,
.page-hero p {
    max-width: 680px;
    margin-bottom: 0;
    color: #d6e6f0;
    font-size: 19px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}

.glass-card,
.hero-panel,
.card,
.contact-card,
.contact-form,
.cta-box,
.image-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}

.hero-panel {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 92px;
    padding: 20px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.metric strong {
    color: var(--color-primary);
    font-size: 42px;
    line-height: 1;
}

.metric span {
    max-width: 150px;
    color: #d6e6f0;
    font-weight: 800;
    text-align: right;
}

.section {
    padding: 94px 0;
}

.section-muted {
    background: var(--color-bg-soft);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 40px;
}

.center-heading {
    display: grid;
    justify-items: center;
    text-align: center;
}

.section-rule {
    width: 96px;
    height: 6px;
    border-radius: 999px;
    background: var(--color-primary);
}

.content-area,
.check-list p,
.prose p {
    color: var(--color-muted);
}

.card h3,
.post-card h3,
.service-item h3,
.contact-card h2,
.cta-box h2 {
    color: #ffffff;
}

.card p,
.post-card p,
.service-item p,
.contact-card,
.site-footer p,
.cta-box p {
    color: #d6e6f0;
}

.prose p:last-child,
.card p:last-child,
.service-item p:last-child,
.check-list p:last-child {
    margin-bottom: 0;
}

.cards-grid,
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.post-card,
.contact-card {
    min-height: 220px;
    padding: 28px;
}

.card-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 8px;
    background: rgba(39, 170, 225, 0.16);
    color: var(--color-primary);
    font-size: 32px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
}

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

.clients-section {
    padding-top: 18px;
    overflow: hidden;
}

.clients-section .section-heading {
    margin-bottom: 28px;
}

.clients-section h2 {
    max-width: 720px;
}

.clients-carousel {
    position: relative;
    padding: 8px 56px;
}

.clients-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-track {
    display: flex;
    width: max-content;
    gap: 18px;
    transition: transform 520ms ease;
    will-change: transform;
}

.clients-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--color-primary-dark);
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 160ms ease, transform 160ms ease;
}

.clients-arrow:hover {
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.04);
}

.clients-arrow-prev {
    left: 0;
}

.clients-arrow-next {
    right: 0;
}

.clients-arrow .material-symbols-outlined {
    font-size: 28px;
}

.client-logo {
    width: calc((min(100vw - 40px, var(--container)) - 112px - 72px) / 5);
    height: 118px;
    display: flex;
    flex: 0 0 calc((min(100vw - 40px, var(--container)) - 112px - 72px) / 5);
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: var(--radius);
    background: #ffffff;
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: transform 180ms ease;
}

.client-logo:hover img {
    transform: scale(1.03);
}

.image-panel {
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

.image-panel img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.check-list ul {
    display: grid;
    gap: 24px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
}

.check-list li>span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(39, 170, 225, 0.12);
    border: 1px solid rgba(39, 170, 225, 0.28);
    color: var(--color-primary);
}

.service-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.steps-list,
.service-list {
    display: grid;
    gap: 12px;
}

.steps-list div,
.service-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    padding: 26px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
}

.steps-list span,
.service-item span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--color-primary);
    color: var(--color-primary-dark);
    font-weight: 900;
}

.steps-list p {
    margin: 0;
}

.content-area {
    max-width: 860px;
}

.content-area h2,
.content-area h3 {
    color: var(--color-primary-dark);
}

.content-area a {
    color: var(--color-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
    align-items: start;
}

.contact-card {
    display: grid;
    gap: 12px;
}

.contact-card h2 {
    margin-bottom: 4px;
    font-size: 30px;
}

.contact-card a {
    color: #ffffff;
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: 28px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: #d6e6f0;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 13px 14px;
    background: rgba(3, 16, 26, 0.58);
    color: #ffffff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(182, 198, 211, 0.65);
}

.cta-section {
    padding-top: 0;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 36px;
}

.cta-box h2 {
    margin-bottom: 10px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer {
    position: relative;
    overflow: hidden;
    padding: 58px 0 24px;
    background: var(--color-bg-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(3, 16, 26, 0.88), rgba(3, 16, 26, 0.96));
    pointer-events: none;
}

.footer-vanta-layer {
    opacity: 0.22;
}

.footer-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.7fr) minmax(260px, 1fr);
    gap: 36px;
}

.footer-about {
    display: grid;
    gap: 16px;
}

.footer-contact a,
.footer-contact span,
.footer-bottom {
    color: rgba(255, 255, 255, 0.68);
}

.footer-menu,
.footer-contact {
    display: grid;
    align-items: start;
    gap: 10px;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

@media (max-width: 980px) {
    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: grid;
    }

    .hero-grid,
    .split-section,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-panel {
        max-width: 560px;
    }

    .feature-grid,
    .cards-grid,
    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-logo {
        width: calc((100vw - 40px - 112px - 36px) / 3);
        flex-basis: calc((100vw - 40px - 112px - 36px) / 3);
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .brand-name {
        white-space: normal;
    }

    .hero-section,
    .page-hero {
        padding: 124px 0 58px;
    }

    .section {
        padding: 58px 0;
    }

    .hero-text,
    .page-hero p {
        font-size: 17px;
    }

    .hero-actions,
    .cta-actions {
        display: grid;
    }

    .button,
    .nav-cta {
        width: 100%;
    }

    .feature-grid,
    .cards-grid,
    .posts-grid,
    .service-mosaic {
        grid-template-columns: 1fr;
    }

    .metric {
        align-items: flex-start;
        flex-direction: column;
    }

    .metric span {
        max-width: none;
        text-align: left;
    }

    .steps-list div,
    .service-item,
    .check-list li {
        grid-template-columns: 1fr;
    }

    .clients-section {
        padding-top: 0;
    }

    .clients-carousel {
        padding: 8px 0 14px;
    }

    .clients-viewport {
        padding-inline: 8px;
        -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent);
        mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent);
    }

    .clients-track {
        gap: 14px;
    }

    .clients-arrow {
        width: 42px;
        height: 42px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 12px 30px rgba(6, 51, 81, 0.14);
    }

    .clients-arrow .material-symbols-outlined {
        font-size: 26px;
    }

    .clients-arrow-prev {
        left: -4px;
    }

    .clients-arrow-next {
        right: -4px;
    }

    .client-logo {
        width: min(78vw, 320px);
        height: 136px;
        flex-basis: min(78vw, 320px);
        padding: 26px;
    }

    .cta-box {
        display: grid;
        padding: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .clients-track {
        transition: none;
    }
}
