/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #050505; /* Deep carbon black fallback */
    color: #ffffff;
    overflow-x: hidden;
}

/* Vanta.js Background */
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.8;
}

#vanta-bg canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Navbar Luxuosa (Glassmorphism) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.logo-code {
    display: flex;
    align-items: center;
    line-height: 1;
}

.wx-letters {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -3px; /* W e X grudados */
    text-transform: uppercase;
    /* Degradê do Preto para o Vermelho */
    background: linear-gradient(90deg, #111111 0%, #FF0033 60%, #FF0033 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 0, 51, 0.7)); /* Brilho neon */
}

.evolution-text {
    font-size: 16px; /* Bem menor que o WX para dar destaque */
    font-weight: 300;
    color: #fff;
    margin-left: 8px;
    letter-spacing: 4px;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    opacity: 0.8;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #d1d5db;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.btn-contact {
    background: rgba(255, 0, 51, 0.1);
    border: 1px solid #FF0033;
    padding: 10px 24px;
    border-radius: 30px;
    color: #fff !important;
    transition: all 0.3s ease !important;
}

.btn-contact:hover {
    background: #FF0033;
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 900px;
    margin-top: 50px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0; /* Para GSAP */
}

.hero p {
    font-size: 20px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 50px;
    font-weight: 300;
    opacity: 0; /* Para GSAP */
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0; /* Para GSAP */
}

.btn-primary {
    background: #FF0033;
    color: #fff;
    text-decoration: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 1px solid #FF0033;
    box-shadow: 0 10px 30px -10px rgba(255, 0, 51, 0.5);
}

.btn-primary:hover {
    background: transparent;
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.8);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    text-decoration: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Tecnologia Section - Cards Luxuosos */
.tech-section {
    padding: 120px 8%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 10;
}

.glass-card {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 40px;
    border-radius: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0; /* Para GSAP */
    transform: translateY(50px); /* Para GSAP */
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 0, 51, 0.1);
    border-color: rgba(255, 0, 51, 0.3);
}

.icon-glow {
    font-size: 40px;
    color: #FF0033;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(255, 0, 51, 0.4));
}

.glass-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 500;
}

.glass-card p {
    color: #a1a1aa;
    line-height: 1.7;
    font-size: 15px;
}

/* Responsividade */
@media (max-width: 900px) {
    .hero h1 { font-size: 50px; }
    .nav-links { display: none; }
    .hero-buttons { flex-direction: column; }
}

/* Botão Saiba Mais */
.btn-learn-more {
    display: inline-block;
    margin-top: 25px;
    color: #FF0033;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.btn-learn-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-learn-more:hover {
    color: #fff;
    border-bottom: 1px solid #FF0033;
}

.btn-learn-more:hover i {
    transform: translateX(5px);
}

/* Detail Sections */
.detail-section {
    padding: 100px 8%;
    position: relative;
    z-index: 10;
}

.detail-content {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px;
    border-radius: 30px;
}

.detail-section.reverse .detail-content {
    flex-direction: row-reverse;
}

.glass-panel {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

.glass-panel:hover {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 0, 51, 0.05);
    border-color: rgba(255, 0, 51, 0.2);
}

.detail-text {
    flex: 1;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: 45px;
    margin-bottom: 25px;
    color: #fff;
}

.detail-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #94a3b8;
    font-weight: 300;
}

.detail-text strong {
    color: #FF0033;
    font-weight: 500;
}

/* Feature List (CSMS) */
.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

.feature-list i {
    color: #FF0033;
    margin-top: 4px;
    margin-right: 12px;
    font-size: 18px;
    min-width: 20px;
    text-align: center;
}

.feature-list strong {
    color: #fff;
    margin-right: 5px;
}

.detail-icon {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-giant {
    font-size: 150px;
    color: transparent;
    -webkit-text-stroke: 2px #FF0033;
    filter: drop-shadow(0 0 30px rgba(255, 0, 51, 0.5));
    transition: all 0.5s ease;
}

.glass-panel:hover .glow-giant {
    -webkit-text-stroke: 2px #fff;
    filter: drop-shadow(0 0 50px rgba(255, 0, 51, 0.8));
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .detail-content, .detail-section.reverse .detail-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 40px 20px;
    }
    .section-title { font-size: 32px; }
    .glow-giant { font-size: 100px; }
}

/* Dashboard Preview Image Mockup */
.dashboard-preview-img {
    width: 130%;
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 0, 51, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: all 0.5s ease;
    z-index: 2;
}

.glass-panel:hover .dashboard-preview-img {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 80px rgba(255, 0, 51, 0.5);
    border-color: rgba(255, 0, 51, 0.4);
    z-index: 100;
}

/* ============================================
   3D REALISTIC FLOATING DEVICE (Apps Section)
   ============================================ */
.device-3d-scene {
    perspective: 1200px;
    width: 320px;
    height: 380px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-3d {
    width: 260px;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    animation: deviceFloat 8s ease-in-out infinite;
}

.device-face {
    position: absolute;
    backface-visibility: hidden;
}

.device-front {
    width: 260px;
    height: 320px;
    background: linear-gradient(145deg, #1a1a2e 0%, #0d0d1a 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 51, 0.25);
    box-shadow:
        0 0 30px rgba(255, 0, 51, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transform: translateZ(12px);
    overflow: hidden;
}

.device-back {
    width: 260px;
    height: 320px;
    background: linear-gradient(145deg, #0a0a14 0%, #111122 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateZ(-12px) rotateY(180deg);
}

.device-right {
    width: 24px;
    height: 320px;
    background: linear-gradient(180deg, #151528 0%, #0a0a18 100%);
    transform: rotateY(90deg) translateZ(248px) translateX(-12px);
    border-radius: 0 4px 4px 0;
}

.device-left {
    width: 24px;
    height: 320px;
    background: linear-gradient(180deg, #1a1a30 0%, #0d0d1a 100%);
    transform: rotateY(-90deg) translateZ(0px) translateX(-12px);
    border-radius: 4px 0 0 4px;
}

.device-top {
    width: 260px;
    height: 24px;
    background: linear-gradient(90deg, #1a1a30, #151528);
    transform: rotateX(90deg) translateZ(0px) translateY(-12px);
    border-radius: 20px 20px 0 0;
}

.device-bottom {
    width: 260px;
    height: 24px;
    background: linear-gradient(90deg, #0d0d1a, #0a0a14);
    transform: rotateX(-90deg) translateZ(308px) translateY(-12px);
    border-radius: 0 0 20px 20px;
}

.device-screen {
    margin: 15px;
    height: calc(100% - 30px);
    background: #0a0a12;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.screen-header {
    display: flex;
    gap: 6px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.status-dot.green { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.status-dot.yellow { background: #eab308; box-shadow: 0 0 6px #eab308; }
.status-dot.red { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

.screen-code {
    padding: 16px 14px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 2;
}

.code-row { color: #6b7280; }
.code-row .kw { color: #c084fc; }
.code-row .fn { color: #60a5fa; }
.code-row .str { color: #34d399; }
.code-row.comment { color: #4b5563; font-style: italic; }

.screen-glow {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(255, 0, 51, 0.08) 0%, transparent 100%);
    pointer-events: none;
}

.device-shadow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(255, 0, 51, 0.25) 0%, transparent 70%);
    filter: blur(10px);
    animation: shadowPulse 8s ease-in-out infinite;
}

.orbit-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF0033;
    box-shadow: 0 0 12px #FF0033, 0 0 30px rgba(255, 0, 51, 0.5);
}
.p1 { animation: orbitA 6s linear infinite; }
.p2 { animation: orbitB 8s linear infinite; }
.p3 { animation: orbitC 10s linear infinite; }

@keyframes deviceFloat {
    0%, 100% { transform: rotateY(-15deg) rotateX(8deg) translateY(0); }
    25% { transform: rotateY(-5deg) rotateX(3deg) translateY(-12px); }
    50% { transform: rotateY(10deg) rotateX(-5deg) translateY(-8px); }
    75% { transform: rotateY(-8deg) rotateX(6deg) translateY(-15px); }
}

@keyframes shadowPulse {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.4; transform: translateX(-50%) scale(0.8); }
}

@keyframes orbitA {
    0% { top: 50%; left: -20px; opacity: 1; }
    25% { top: -15px; left: 50%; }
    50% { top: 50%; left: calc(100% + 20px); opacity: 0.5; }
    75% { top: calc(100% + 15px); left: 50%; }
    100% { top: 50%; left: -20px; opacity: 1; }
}
@keyframes orbitB {
    0% { top: 10%; right: -15px; left: auto; opacity: 0.8; }
    50% { top: 90%; right: calc(100% + 15px); opacity: 0.3; }
    100% { top: 10%; right: -15px; opacity: 0.8; }
}
@keyframes orbitC {
    0% { bottom: -10px; left: 20%; top: auto; opacity: 0.6; }
    50% { bottom: calc(100% + 10px); left: 80%; opacity: 1; }
    100% { bottom: -10px; left: 20%; opacity: 0.6; }
}

/* ============================================
   3D HOLOGRAPHIC SHIELD (Security Section)
   ============================================ */
.holo-shield-scene {
    width: 280px;
    height: 320px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 800px;
}

.holo-shield {
    width: 250px;
    height: 250px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    animation: shieldHover 6s ease-in-out infinite;
}

.shield-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hex-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(255, 0, 51, 0.4));
}

.layer-1 {
    animation: rotateLayer 20s linear infinite;
}

.layer-2 {
    animation: rotateLayer 15s linear infinite reverse;
    transform: scale(1.15);
}

.shield-core-3d {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 35% 35%, #FF0033 0%, #990020 60%, #440010 100%);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: #fff;
    box-shadow:
        0 0 40px rgba(255, 0, 51, 0.6),
        0 0 80px rgba(255, 0, 51, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4);
    z-index: 10;
    transform-style: preserve-3d;
    transform: translateZ(30px);
}

.core-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 2px solid rgba(255, 0, 51, 0.5);
    animation: corePulse 2s ease-out infinite;
}

.data-stream {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #FF0033, transparent);
    opacity: 0.6;
    animation: streamFlow 3s linear infinite;
}
.ds-1 { height: 60px; top: -10px; left: 30%; animation-delay: 0s; }
.ds-2 { height: 45px; bottom: -5px; right: 25%; animation-delay: 0.8s; }
.ds-3 { height: 50px; top: 20%; left: -5px; transform: rotate(90deg); animation-delay: 1.5s; }
.ds-4 { height: 40px; top: 40%; right: -5px; transform: rotate(-90deg); animation-delay: 2.2s; }

.holo-reflection {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) rotateX(80deg);
    width: 180px;
    height: 100px;
    background: radial-gradient(ellipse, rgba(255, 0, 51, 0.2) 0%, transparent 70%);
    filter: blur(8px);
    opacity: 0.6;
}

@keyframes shieldHover {
    0%, 100% { transform: rotateY(0deg) rotateX(0deg) translateY(0); }
    25% { transform: rotateY(8deg) rotateX(-5deg) translateY(-10px); }
    50% { transform: rotateY(-5deg) rotateX(8deg) translateY(-5px); }
    75% { transform: rotateY(3deg) rotateX(-3deg) translateY(-12px); }
}

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

@keyframes corePulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes streamFlow {
    0% { opacity: 0; transform: translateY(-20px); }
    50% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(20px); }
}

/* Video Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    height: 60vh;
    position: relative;
    padding: 0;
    overflow: hidden;
    transform: scale(0.9);
    transition: all 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 20px; right: 25px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 100;
    transition: color 0.3s ease;
}

.close-btn:hover { color: #FF0033; }

.video-container {
    width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
}

.cinematic-reel {
    width: 100%; height: 100%;
    position: relative;
    background: #000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reel-progress {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 5px;
    background: rgba(255,255,255,0.1);
    z-index: 20;
}

.reel-progress-bar {
    height: 100%; width: 0%;
    background: #FF0033;
    box-shadow: 0 0 10px #FF0033;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
    z-index: 10;
}

.slide.active { pointer-events: auto; }

.slide h2 {
    font-size: 40px;
    margin: 20px 0;
    font-family: "Playfair Display", serif;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide p {
    color: #94a3b8;
    font-size: 20px;
    max-width: 600px;
    line-height: 1.6;
}

.reel-image {
    width: 60%;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 10px 40px rgba(255,0,51,0.3);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar {
        padding: 15px 5%;
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .wx-letters { font-size: 28px; }
    .evolution-text { font-size: 12px; }

    /* Hero Mobile */
    .reveal-text { font-size: 40px; }
    .hero p { font-size: 16px; padding: 0 10px; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    
    /* Tech Cards Mobile */
    .tech-section { flex-direction: column; margin-top: -50px; }
    .glass-card { margin: 0 20px 30px; }
    
    /* Mockups & Animations Mobile */
    .dashboard-preview-img { width: 100%; transform: none !important; margin-top: 30px; }
    .device-3d-scene { transform: scale(0.75); margin: -20px 0; }
    .holo-shield-scene { transform: scale(0.75); }
    
    /* Cinematic Reel Mobile */
    .modal-content { width: 95%; height: 75vh; }
    .slide h2 { font-size: 24px !important; }
    .slide p { font-size: 16px; }
    .reel-image { width: 90%; }
    .slide .glow-giant { font-size: 60px !important; }
}
