:root {
    /* Color Palette */
    --bg-main: #000000;
    --bg-secondary: #45484B;
    --border-color: #696758;
    --accent-hover: #C5BC8E;
    --accent-gold: #EEE6AB;

    /* Typography */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --container-w: 1200px;
    --padding-section: 120px 0;

    /* Animations & Transitions */
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-mid: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--bg-main);
    color: #f7f7f7;
    font-family: var(--font-body);
    line-height: 1.6;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Canvas Background */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* Typography styles */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 16px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

p {
    color: #b0b0b0;
    font-size: 1.125rem;
}

.highlight {
    color: var(--accent-gold);
}

.container {
    width: 90%;
    max-width: var(--container-w);
    margin: 0 auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: rgba(54, 57, 59, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(105, 103, 88, 0.2);
    transition: var(--transition-mid);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(54, 57, 59, 0.9);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    /* Adicional: Remove qualquer fundo preto sólido da imagem da logo */
    mix-blend-mode: screen;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #dedede;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-mid);
    border: none;
    outline: none;
}

.btn i {
    font-size: 1.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-hover) 100%);
    color: var(--bg-main);
    box-shadow: 0 4px 15px rgba(238, 230, 171, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 230, 171, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(105, 103, 88, 0.1);
    border-color: var(--accent-gold);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.15rem;
}

.btn-full {
    width: 100%;
    padding: 14px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
    /* Corta todos os efeitos visuais 3D ou bordas vazando para fora do eixo X */
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-sub {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    margin-bottom: 24px;
    background: rgba(69, 72, 75, 0.4);
    backdrop-filter: blur(4px);
}

/* Floating Elements (Hero 3D objects dummy) */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.float-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 16px;
    background: rgba(54, 57, 59, 0.5);
    border: 1px solid rgba(105, 103, 88, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: var(--accent-gold);
    font-weight: 500;
}

.float-item i {
    font-size: 1.5rem;
}

.float-1 {
    top: 25%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.float-2 {
    bottom: 30%;
    right: 12%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Social Proof */
.social-proof {
    padding: 20px 0 30px;
    /* Redução pela metade do espaço vazio superior e inferior */
    border-top: 1px solid rgba(105, 103, 88, 0.1);
    border-bottom: 1px solid rgba(105, 103, 88, 0.1);
    background: linear-gradient(180deg, rgba(54, 57, 59, 0) 0%, rgba(69, 72, 75, 0.2) 100%);
    overflow: hidden;
    width: 100%;
}

.social-proof-text {
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.5);
}

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-slide {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    animation: slide 30s infinite linear;
}

.ticker-item {
    padding: 0 15px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ticker-item img {
    height: 100px;
    width: auto;
    object-fit: contain;
    opacity: 0.75;
    transition: all 0.3s ease;
}

.ticker-item img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Redimensionamento específico para a logo VM (que é mais quadrada/alta) 
   para alinhar visualmente com as logos retangulares */
.ticker-item img[src="VM.png"] {
    height: 150px;
    /* Altura extrema ajustada para 150px a pedido */
    margin: 0 15px;
    /* Adiciona uma margem lateral extra para emular a prancheta de 400x150 invisível */
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Base Sections */
.section {
    padding: var(--padding-section);
    overflow-x: hidden;
    /* Força que absolutamente nenhuma animação de Slide/Fade vaze além da tela e crie arrasto lateral no mobile */
}

.bg-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 600px;
    margin-inline: auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(69, 72, 75, 0.5), rgba(54, 57, 59, 1));
    border: 1px solid rgba(105, 103, 88, 0.2);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
    transform-style: preserve-3d;
}

.feature-card:hover {
    border-color: rgba(197, 188, 142, 0.4);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 24px;
    display: inline-block;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(238, 230, 171, 0.05), transparent 70%);
    pointer-events: none;
}

/* Timeline/How it works */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 40px;
    top: 0;
    height: 100%;
    width: 2px;
    background: rgba(105, 103, 88, 0.2);
}

.timeline-step {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 82px;
    height: 82px;
    background: var(--bg-main);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    z-index: 2;
    flex-shrink: 0;
}

.step-content {
    background: rgba(69, 72, 75, 0.3);
    border: 1px solid rgba(105, 103, 88, 0.1);
    border-radius: 16px;
    padding: 32px;
    flex-grow: 1;
    transition: var(--transition-mid);
}

.timeline-step:hover .step-content {
    border-color: rgba(197, 188, 142, 0.3);
    background: rgba(69, 72, 75, 0.5);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: rgba(54, 57, 59, 0.8);
    border: 1px solid rgba(105, 103, 88, 0.2);
    border-radius: 20px;
    padding: 40px;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(197, 188, 142, 0.2);
    position: absolute;
    top: 40px;
    right: 40px;
}

.testimonial-card p {
    font-size: 1.25rem;
    color: #f7f7f7;
    font-style: italic;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.author-info h4 {
    margin-bottom: 2px;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.85rem;
    color: #b0b0b0;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(105, 103, 88, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: #f7f7f7;
    font-size: 1.15rem;
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 24px 0;
    cursor: pointer;
    text-align: left;
}

.faq-question i {
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding-bottom: 24px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Final CTA */
.final-cta {
    padding: var(--padding-section);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    width: 100%;
    /* Fix width */
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.final-cta h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(238, 230, 171, 0.08) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid rgba(105, 103, 88, 0.2);
    overflow-x: hidden;
    width: 100%;
    /* Fix width */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-col h4 {
    margin-bottom: 20px;
    color: #fff;
}

.link-col a {
    display: block;
    color: #b0b0b0;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.link-col a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(105, 103, 88, 0.1);
    padding-top: 32px;
    color: #888;
    font-size: 0.9rem;
}

/* Modal Form */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 32, 33, 0.8);
    backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-main);
    border: 1px solid rgba(197, 188, 142, 0.3);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 48px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-gold);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header h3 {
    font-size: 1.75rem;
}

.modal-header p {
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(69, 72, 75, 0.5);
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(69, 72, 75, 0.8);
    box-shadow: 0 0 0 2px rgba(238, 230, 171, 0.1);
}

/* Animations Classes */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.in-view {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 900px) {

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: 40px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .timeline-line {
        left: 24px;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .timeline-step {
        gap: 24px;
    }

    .floating-elements {
        display: none;
    }

    /* Acelerar carrossel robusto apenas em mobile */
    .logos-slide {
        animation: slide 20s linear infinite;
    }

    /* Redimensionar todas as logos no Mobile (Aumentado em 2x) */
    .ticker-item img {
        height: 80px;
    }

    /* Ajustar especificamente a VM no Mobile (Aumentado em 2x) */
    .ticker-item img[src="VM.png"] {
        height: 110px;
        margin: 0 10px;
    }

    /* Modal Mobile Fixes */
    .modal-content {
        width: 95%;
        /* Maximiza larguda permitida sem encostar na borda */
        padding: 24px 15px;
        /* Reduz muito espaço morto do card do formulario p/ caber melhor */
        max-height: 85vh;
        /* Impede passar da tela mesmo com teclados ou barras de ferramentas Safari/Chrome */
        overflow-y: auto;
        /* Adiciona scroll interno ao formulário se o celular for muito pequeno */
    }

    .modal-header {
        margin-bottom: 15px;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .form-group label {
        margin-bottom: 4px;
        font-size: 0.8rem;
    }

    .form-group input {
        padding: 8px 12px;
        /* Diminui o padding interno das caxinhas de formulário */
        font-size: 0.95rem;
    }

    .btn-full {
        padding: 12px;
        font-size: 0.95rem;
    }
}