:root {
    --bg-black: #000000;
    --bg-dark-gray: #292929;
    --purple-deep: #2d004d;
    --purple-light: #610fad;
    --accent-purple: #a855f7;
    --text-white: #ffffff;
    --text-gray: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #7c3aed, var(--accent-purple));
    border-radius: 10px;
    border: 3px solid var(--bg-black);
    box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.4);
}

::-webkit-scrollbar-thumb:hover {
    background: #9333ea;
}

/* Barra de Progresso no Topo */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, #7c3aed, var(--accent-purple));
    box-shadow: 0 0 15px var(--accent-purple);
    z-index: 10001;
    transition: width 0.1s ease-out;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-purple) var(--bg-black);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* HEADER FIXO PADRONIZADO */
header {
    position: fixed; 
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 9999; 
    background: rgba(5,5,5,0.7); 
    backdrop-filter: blur(20px); 
    border-radius: 100px;
    padding: 0.5rem 0 !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.05);
}

header::after {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: 100px;
    background: conic-gradient(from var(--angle), transparent 70%, var(--accent-purple) 95%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
  to { --angle: 360deg; }
}

header:hover {
    background: rgba(5,5,5,0.85);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.header-group {
    cursor: grab;
    user-select: none;
    transition: transform 0.2s;
}

.header-group:active {
    cursor: grabbing;
}

.header-group.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

.nav-item {
    cursor: grab;
}

.nav-item.dragging {
    opacity: 0.3;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
}

.logo img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.mobile-cta-item { display: none; } /* Oculta no desktop */
.nav-links a { text-decoration: none; color: var(--text-gray); font-weight: 500; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-purple); }

.mobile-menu-btn { display: none; color: white; cursor: pointer; order: 3; }

.btn-glow-header {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.btn-glow-header:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 25px var(--accent-purple);
    filter: brightness(1.1);
}

#smokeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* SECTIONS - COM ANIMAÇÃO DE GRADIENTE */
section {
    padding: 100px 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-1 {
    padding-top: 150px;
    min-height: 80vh;
    background: linear-gradient(to right, var(--bg-black), var(--purple-deep));
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite;
}

.section-2 {
    background: linear-gradient(to right, var(--purple-deep), var(--purple-light));
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite;
}

.section-3 {
    background: linear-gradient(to right, var(--purple-light), var(--bg-black));
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite;
}

/* ANIMAÇÃO DO GRADIENTE */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Grid Layout FIXO */
.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

/* Hero Content */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--accent-purple);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-purple);
}

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

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.modular-tag {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(168, 85, 247, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-purple);
}

.modular-tag i { color: var(--accent-purple); }
.modular-tag span { font-size: 0.9rem; color: var(--text-gray); }

/* Glass Card FIXED */
.glass-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    position: relative;
}

/* Forms */
.capture-form { width: 100%; }
.capture-form h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.capture-form p { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 2rem; }

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.error-msg {
    display: none;
    color: #ff4d4d;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 1.2rem;
    background: var(--accent-purple);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    background: #9333ea;
    transform: translateY(-2px);
}

.btn-main-neon { 
    padding: 1.2rem 2.5rem; 
    background: linear-gradient(135deg, var(--accent-purple), #7c3aed); 
    color: white; 
    text-decoration: none; 
    font-weight: 800; 
    font-family: inherit;
    border-radius: 100px;
    transition: 0.4s; 
    text-transform: uppercase; 
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block; 
    text-align: center; 
}

.btn-main-neon:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 0 40px var(--accent-purple); 
    filter: brightness(1.1);
}

/* Success Message Styling */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.success-message {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(97, 15, 173, 0.15));
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.success-message h3 {
    background: linear-gradient(135deg, #fff, var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.success-message p {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Section Header */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }

/* WHO IS IT - CARROSSEL INFINITO */
.who-is-it { 
    background: linear-gradient(-45deg, #000, #2d004d, #610fad, #000); 
    display: block; 
    overflow: hidden; 
    padding: 80px 0;
    min-height: auto;
}

.carousel-container { position: relative; width: 100%; margin-top: 3rem; overflow: hidden; }
.carousel-track { 
    display: flex; 
    gap: 20px; 
    width: max-content; 
    animation: scrollInfinite 25s linear infinite; 
    padding: 20px 0;
}
.carousel-track:hover { animation-play-state: paused; }

.niche-card {
    flex: 0 0 240px;
    height: 380px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.niche-card i { color: var(--accent-purple); width: 50px; height: 50px; margin-bottom: 1.5rem; }
.niche-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.niche-card p { font-size: 0.85rem; color: var(--text-gray); }
.niche-card:hover { border-color: var(--accent-purple); transform: translateY(-10px); background: rgba(168, 85, 247, 0.1); }

@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1560px); }
}

/* FUNCIONALIDADES (Cards Menores) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    transition: grid-template-columns 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.features-grid.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem; 
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    cursor: grab;
}

.feature-card.dragging {
    opacity: 0.2;
    transform: scale(0.9);
}

.feature-card.drag-over {
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.5) !important;
    transform: scale(1.03) !important;
    background: rgba(168, 85, 247, 0.1) !important;
    z-index: 100;
}

.feature-card:hover {
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.05);
    transform: translateY(-5px);
}

.feature-card i { color: var(--accent-purple); width: 40px; height: 40px; margin-bottom: 1rem; }
.feature-card h4 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.feature-card p { color: var(--text-gray); font-size: 0.9rem; line-height: 1.5; }

/* Feedback Visual das Bordas */
.edge-drag::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.1) 0%, transparent 15%, transparent 85%, rgba(168, 85, 247, 0.1) 100%);
    z-index: 9998;
    animation: pulseEdge 1s infinite alternate;
}

@keyframes pulseEdge {
    from { opacity: 0.3; }
    to { opacity: 0.6; }
}

/* CTA Section */
.cta-box { text-align: center; width: 100%; }
.cta-box h2 { font-size: 3rem; margin-bottom: 1.5rem; }
.cta-box p { font-size: 1.2rem; margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }

.footer-form-wrapper { max-width: 900px; margin: 0 auto; width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }

/* FOOTER PADRONIZADO */
footer { 
    padding: 5rem 0 2rem; 
    border-top: 1px solid var(--glass-border); 
    margin-top: 100px; 
    width: 100%;
}

.footer-grid { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.footer-brand img {
    margin-bottom: 1rem;
    height: auto;
    width: 150px;
}

.footer-brand p {
    color: var(--text-gray);
    max-width: 600px; 
    font-size: 0.9rem;
    white-space: nowrap; 
}

.footer-social h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.social-btns { display: flex; gap: 1.5rem; }

.social-icon { 
    width: 50px; 
    height: 50px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    background: var(--glass-bg); 
    border: 1px solid var(--glass-border); 
    color: white; 
    transition: 0.4s; 
    text-decoration: none;
}

.social-icon:hover { 
    background: var(--accent-purple); 
    border-color: var(--accent-purple); 
    box-shadow: 0 0 20px var(--accent-purple); 
    transform: translateY(-5px); 
}

.footer-bottom { 
    text-align: center; 
    padding-top: 2rem; 
    border-top: 1px solid var(--glass-border); 
    color: var(--text-gray); 
    font-size: 0.8rem; 
    margin-top: 4rem; 
    width: 100%;
}

/* ==================== RESPONSIVIDADE ==================== */

@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-content p { max-width: 700px; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    header { top: 10px; width: 98%; }
    nav { padding: 0 1rem; }
    .logo img { height: 22px; }
    
    .header-cta { display: none; } /* Oculta o CTA da barra principal no mobile */
    
    .mobile-cta-item { 
        display: block; 
        width: 100%; 
        text-align: center;
        margin-top: 2rem;
        padding: 0 20px; /* Respiro nas bordas */
    }
    
    .mobile-cta-item .btn-glow-header {
        display: inline-block !important;
        padding: 0.8rem 1.8rem;
        background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
        color: white;
        text-decoration: none;
        font-weight: 700;
        border-radius: 50px;
        font-size: 0.9rem;
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        width: auto;
        max-width: 280px;
    }
    
    .mobile-menu-btn { display: block; z-index: 101; font-size: 1.5rem; order: 3; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: rgba(5,5,5,0.98); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1); z-index: 99;
        border-left: 1px solid var(--glass-border); gap: 3rem;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.2rem; }
    
    .section-1 { padding-top: 120px; }
    h1 { font-size: 2.5rem; }
    
    .features-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    
    .footer-grid { flex-direction: column; text-align: center; gap: 2rem; }
    .footer-brand p { white-space: normal; }
    .social-btns { justify-content: center; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    .glass-card { padding: 1.5rem; }
    .feature-card { padding: 1.5rem; }
}