:root {
    --wave-blue: #4973ff;
    --wave-dark: #141414;
    --wave-darker: #0d0d0d;
    --text-light: #ffffff;
    --text-gray: #e0e0e0;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.12);
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-light: rgba(73, 115, 255, 0.3);
    --fonte-principal: 'Outfit', 'Inter', sans-serif;
    --fonte-secundaria: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte-principal);
    background: var(--wave-darker);
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}

.wave-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.wave-background .wave {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--wave-blue);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    transition: 0.5s;
}

.wave-background .wave span {
    content: "";
    position: absolute;
    width: 400vmin;
    height: 400vmin;
    top: 0;
    left: 50%;
    transform: translate(-50%, -75%);
    background: #000;
}

.wave-background .wave span:nth-child(1) {
    border-radius: 45%;
    background: rgba(20, 20, 20, 1);
    animation: animate 5s linear infinite;
}

.wave-background .wave span:nth-child(2) {
    border-radius: 40%;
    background: rgba(20, 20, 20, 0.5);
    animation: animate 10s linear infinite;
}

.wave-background .wave span:nth-child(3) {
    border-radius: 42.5%;
    background: rgba(20, 20, 20, 0.5);
    animation: animate 15s linear infinite;
}

@keyframes animate {
    0% {
        transform: translate(-50%, -75%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -75%) rotate(360deg);
    }
}

/* NOVA ANIMAÇÃO APENAS PARA MOBILE */
@keyframes animate-mobile {
    0% {
        transform: translate(-50%, -85%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -85%) rotate(360deg);
    }
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-light);
    font-family: var(--fonte-principal);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: 2.4rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    font-weight: 700;
}

h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--wave-blue);
    margin: 20px auto 0;
    border-radius: 2px;
}

p {
    max-width: 60ch;
    font-weight: 400;
    color: var(--text-gray);
    font-family: var(--fonte-secundaria);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: rgba(13, 13, 13, 0.3);
    backdrop-filter: blur(10px);
}

.main-header.scrolled {
    background-color: rgba(13, 13, 13, 0.7);
    box-shadow: 0 2px 20px var(--shadow);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 40px;
    max-height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: var(--transition);
}

/* Navigation */
.menu-toggle {
    display: block;
    position: relative;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger, .hamburger::before, .hamburger::after {
    content: '';
    display: block;
    background-color: var(--text-light);
    position: absolute;
    height: 3px;
    width: 100%;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger { top: 10px; }
.hamburger::before { top: -10px; }
.hamburger::after { top: 10px; }

.menu-toggle.is-active .hamburger { transform: rotate(135deg); }
.menu-toggle.is-active .hamburger::before { top: 0; transform: rotate(90deg); }
.menu-toggle.is-active .hamburger::after { top: 0; opacity: 0; }

.nav-menu {
    list-style: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--wave-darker);
    box-shadow: -5px 0 15px var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 25px;
    padding: 120px 30px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 999;
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: color 0.2s;
    position: relative;
}

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

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

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

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 998;
}

.menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.hero p {
    font-size: 1.2rem;
    margin: 20px 0 40px;
    opacity: 0.9;
    max-width: 100%;
}

.hero__cta {
    font-family: var(--fonte-principal);
    font-size: 1.1rem;
    font-weight: 600;
    background-color: var(--wave-blue);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: -0.01em;
    border: none;
    cursor: pointer;
    animation: pulse-glow 3s infinite ease-in-out;
}

.hero__cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.hero__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-light);
    animation: none;
}

.hero__cta:hover:before {
    left: 100%;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px var(--shadow-light), 0 0 10px var(--shadow-light);
    }
    50% {
        box-shadow: 0 0 20px var(--shadow-light), 0 0 30px var(--shadow-light);
    }
    100% {
        box-shadow: 0 0 5px var(--shadow-light), 0 0 10px var(--shadow-light);
    }
}

/* Filosofia Section */
.filosofia {
    background-color: var(--card-bg);
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow);
    backdrop-filter: blur(10px);
    margin-bottom: 60px;
}

.filosofia h2 {
    margin-bottom: 2.5rem;
}

.filosofia-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.filosofia-item {
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
    padding: 20px;
    border-radius: 12px;
}

.filosofia-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--card-border);
    transform: translateY(-5px);
}

.filosofia-icon {
    margin-bottom: 20px;
    color: var(--wave-blue);
}

.filosofia-item h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 600;
}

.filosofia-item p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
    text-align: left;
    max-width: 45ch;
    margin: 0 auto;
}

/* Processo (Etapas) */
.processo__grid {
    display: grid;
    gap: 25px;
}

.etapa-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 35px 30px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.etapa-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--wave-blue);
    transition: height 0.3s ease;
}

.etapa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--shadow);
    border-color: var(--wave-blue);
}

.etapa-card:hover:before {
    height: 100%;
}

.etapa-numero {
    font-size: 2rem;
    font-weight: 800;
    color: var(--wave-blue);
    opacity: 0.5;
    font-family: var(--fonte-principal);
}

.etapa-card h3 {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-family: var(--fonte-principal);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.etapa-card p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.7;
    color: var(--text-gray);
    max-width: none;
    font-family: var(--fonte-secundaria);
}

@media (min-width: 768px) {
    .processo__grid {
        position: relative;
    }
    .etapa-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -12.5px;
        transform: translateY(-50%);
        width: 1px;
        height: 50%;
        background: linear-gradient(to bottom, transparent, var(--card-border), transparent);
    }
    @media (min-width: 1024px) {
        .etapa-card:nth-child(4n)::after { display: none; }
    }
    @media (max-width: 1023px) {
        .etapa-card:nth-child(2n)::after { display: none; }
    }
}
@media (max-width: 767px) {
    .etapa-card:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: -12.5px;
        left: 50%;
        transform: translateX(-50%);
        width: 50%;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--card-border), transparent);
    }
}

/* Parceiros e Clientes (Estilos Consolidados) */
.parceiros, .clientes {
    background-color: var(--card-bg);
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow);
    backdrop-filter: blur(10px);
}
.parceiros {
    margin-bottom: 60px;
}

.parceiros h2, .clientes h2 {
    margin-bottom: 2rem;
}

.parceiros-info {
    text-align: center;
    margin-bottom: 3rem;
}

.parceiros-info p {
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: none;
}

.parceiros__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    max-width: 600px;
    margin: 30px auto 0;
}

.clientes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
    max-width: 800px;
    margin: 50px auto 0;
}

.brand-logo {
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    cursor: pointer;
}

.brand-logo:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(73, 115, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.brand-logo img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) contrast(0.8) brightness(0.9);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.brand-logo:hover img {
    filter: grayscale(0%) contrast(1) brightness(1);
    opacity: 1;
}

.parceiro-logo { height: 100px; padding: 20px; }
.parceiro-logo img { max-height: 60px; }

.cliente-logo { height: 120px; padding: 25px; }
.cliente-logo img { max-height: 70px; }

/* Depoimentos */
.depoimento {
    position: relative;
    padding: 0;
}

.depoimento-slider-wrapper {
    overflow: hidden;
    width: 100%;
    cursor: grab;
    border-radius: 12px;
    background-color: var(--card-bg);
    padding: 40px 30px;
    box-shadow: 0 5px 20px var(--shadow);
    backdrop-filter: blur(10px);
}

.depoimento-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.depoimento-slide {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 0 20px;
}

.depoimento blockquote {
    font-size: 1.3rem;
    font-style: italic;
    border-left: 4px solid var(--wave-blue);
    padding-left: 30px;
    margin: 0 auto 25px;
    display: inline-block;
    text-align: left;
    max-width: 70ch;
    line-height: 1.8;
    position: relative;
    color: var(--text-light);
    min-height: 100px;
}

.depoimento blockquote:before {
    font-size: 4rem;
    color: var(--wave-blue);
    position: absolute;
    left: -20px;
    top: -20px;
    opacity: 0.2;
    line-height: 1;
}

.depoimento cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: var(--text-gray);
    margin-top: 0;
}

.depoimento-dots {
    text-align: center;
    margin-top: 30px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: var(--wave-blue);
    transform: scale(1.2);
}

.depoimento-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.depoimento-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--wave-blue);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Contato */
.contato {
    text-align: center;
    background-color: var(--card-bg);
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow);
    backdrop-filter: blur(10px);
}

.contato h2:after {
    margin: 20px auto;
}

.contato p {
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: none;
}

.contato__links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contato__link {
    color: var(--wave-blue);
    text-decoration: none;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 12px 25px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background-color: var(--card-bg);
}

.contato__link:hover {
    transform: translateY(-3px);
    color: var(--text-light);
    box-shadow: 0 5px 15px var(--shadow);
    border-color: var(--wave-blue);
    background-color: var(--wave-blue);
}

.contato__link svg {
    width: 24px;
    height: 24px;
}

/* Footer */
.rodape {
    text-align: center;
    padding: 50px 0 30px;
    border-top: 1px solid var(--card-border);
    font-size: 0.95rem;
    opacity: 0.8;
    position: relative;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    font-family: var(--fonte-secundaria);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.copyright-text {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 400;
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.powered-by {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    margin-left: auto;
    margin-right: auto;
}

.powered-by:hover {
    opacity: 0.9;
}

.powered-by img {
    height: 35px;
    width: auto;
}

/* Media Queries */
@media (min-width: 768px) {
    .menu-toggle { display: none; }
    .menu-overlay { display: none; }

    .nav-menu {
        position: static;
        transform: none;
        height: auto;
        width: auto;
        background: none;
        flex-direction: row;
        gap: 30px;
        padding: 0;
        box-shadow: none;
    }

    .nav-link {
        font-size: 1rem;
        font-weight: 500;
    }

    h1 {
        font-size: 4rem;
        line-height: 1.05;
    }
    
    h2 { font-size: 2.8rem; }

    p {
        font-size: 1.1rem;
    }
    
    .filosofia-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .processo__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contato__links {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }

    .hero p {
        font-size: 1.25rem;
        line-height: 1.6;
    }

    .header-logo {
        height: 50px;
        max-height: 50px;
        max-width: 200px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 120px 0;
    }

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

    h1 {
        font-size: 4.5rem;
        line-height: 1.02;
    }

    h2 {
        font-size: 3rem;
    }

    p {
        font-size: 1.15rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .header-logo {
        height: 60px;
        max-height: 60px;
        max-width: 240px;
    }
}

/* AJUSTE FINO E CORRETO PARA A ONDA EM DISPOSITIVOS MÓVEIS */
@media (max-width: 768px) {
    .wave-background .wave span {
        width: 880vmin;
        height: 880vmin;
    }

    /* Sobrescreve a animação para usar a nova animação 'animate-mobile' */
    .wave-background .wave span:nth-child(1) {
        animation: animate-mobile 5s linear infinite;
    }
    .wave-background .wave span:nth-child(2) {
        animation: animate-mobile 10s linear infinite;
    }
    .wave-background .wave span:nth-child(3) {
        animation: animate-mobile 15s linear infinite;
    }
}

/* --- Estilos do Formulário de Contato na Home --- */

.contato p {
    max-width: 65ch; /* Aumenta um pouco a largura máxima do parágrafo */
}

.home-form {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-group {
    width: 100%;
}

/* Esconde labels visualmente, mas as mantém para acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.form-group input {
    width: 100%;
    padding: 18px 20px;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--fonte-secundaria);
    font-size: 1.05rem;
    transition: var(--transition);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: var(--wave-blue);
    box-shadow: 0 0 15px var(--shadow-light);
}

.home-form .cta-button {
    width: 100%;
    padding: 18px;
    font-family: var(--fonte-principal);
    font-size: 1.1rem;
    font-weight: 700;
    background-color: var(--wave-blue);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.home-form .cta-button:hover {
    box-shadow: 0 5px 25px var(--shadow-light);
    transform: translateY(-3px);
}

.home-form .cta-button:disabled {
    background-color: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-status {
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
    min-height: 24px; /* Evita que o layout pule ao mostrar a mensagem */
}

/* Campo anti-spam */
.honeypot-field {
    position: absolute;
    left: -5000px;
}

/* Animação do Loader */
.button-loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Layout do formulário em telas maiores */
@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr auto; /* Colunas para nome, contato e botão */
        align-items: start;
        gap: 15px;
    }
}
