/* Reset e configurações básicas */
:root {
    --primary-purple: #a855f7;
    --secondary-blue: #3b82f6;
    --accent-cyan: #00f5ff;
    --glow-intensity: 1;
    --text-glow: rgba(168, 85, 247, 0.6);
    --neural-color: rgba(168, 85, 247, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0a0e1e 0%, #1a1f3a 50%, #2d1b69 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Overlay gradiente */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(76, 29, 149, 0.3) 0%, rgba(15, 23, 42, 0.8) 70%);
    z-index: 1;
}

/* Neural Network Background */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: visible;
    opacity: 0.7;
    pointer-events: none;
}

.neural-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 15px 5px rgba(99, 102, 241, 0.3);
    animation: pulse-node 3s ease-in-out infinite;
}

.neural-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    transform-origin: left center;
    animation: neural-flow 3s linear infinite;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

@keyframes pulse-node {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1);
        box-shadow: 0 0 10px 2px rgba(99, 102, 241, 0.3);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.3);
        box-shadow: 0 0 15px 5px rgba(99, 102, 241, 0.5);
    }
}

@keyframes neural-flow {
    0% { opacity: 0; transform: scaleX(0); }
    20% { opacity: 0.7; transform: scaleX(0.3); }
    80% { opacity: 0.7; transform: scaleX(0.7); }
    100% { opacity: 0; transform: scaleX(1); }
}

/* Matrix Rain Effect */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.matrix-column {
    position: absolute;
    top: -100%;
    color: rgba(0, 255, 150, 0.4);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.2;
    animation: matrix-fall linear infinite;
    text-shadow: 0 0 5px rgba(0, 255, 150, 0.5);
}

@keyframes matrix-fall {
    to {
        transform: translateY(100vh);
    }
}

/* Animações de fundo */
.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.05));
    backdrop-filter: blur(1px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 60%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
        opacity: 0.6;
    }
    66% {
        transform: translateY(30px) rotate(240deg);
        opacity: 0.4;
    }
}

/* Container principal */
.coming-soon-container {
    z-index: 10;
    position: relative;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    width: 100%;
    padding: 2rem;
}

/* Logo section */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    position: relative;
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Borda ao redor do logo removida */

.logo-main {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite, glow-pulse 4s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
    position: relative;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.4));
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.8)) drop-shadow(0 0 60px rgba(59, 130, 246, 0.4));
    }
}

/* DNA Helix Effect */
.dna-helix {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    z-index: 0;
}

.dna-strand {
    position: absolute;
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, rgba(168, 85, 247, 0.6), rgba(59, 130, 246, 0.6));
    border-radius: 2px;
    animation: dna-rotation 4s linear infinite;
}

.dna-strand:nth-child(even) {
    animation-direction: reverse;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.6), rgba(168, 85, 247, 0.6));
}

@keyframes dna-rotation {
    0% { transform: rotateY(0deg) translateX(20px) rotateY(0deg); }
    100% { transform: rotateY(360deg) translateX(20px) rotateY(-360deg); }
}

/* Glitch Effect */
.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(255, 0, 100, 0.01) 10px,
        rgba(255, 0, 100, 0.01) 12px
    );
    z-index: 8;
    animation: glitch-lines 0.1s linear infinite;
    opacity: 0.5;
}

@keyframes glitch-lines {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

.logo-tagline {
    font-size: 1rem;
    font-weight: 500;
    color: #a8a8bf;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
    animation: text-glow 3s ease-in-out infinite alternate;
    margin-top: -0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

@keyframes text-glow {
    from {
        text-shadow: 0 0 5px rgba(148, 163, 184, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(148, 163, 184, 0.8), 0 0 30px rgba(168, 85, 247, 0.4);
    }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Main content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.3;
    opacity: 0;
    animation: slideUpGlow 1.2s 0.5s forwards ease-out;
}

.description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #cbd5e1;
    max-width: 500px;
    line-height: 1.6;
    opacity: 0;
    animation: slideUpGlow 1.2s 1s forwards ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Coming soon badge */
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: slideUpGlow 1.2s 1.5s forwards ease-out;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #a855f7;
    letter-spacing: 0.05em;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Features preview */
.features-preview {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideUpGlow 1.2s 2s forwards ease-out;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    min-width: 120px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.feature-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
}

/* Sistema de partículas */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#particles-canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

/* Efeitos de glow dinâmico */
.logo-main {
    position: relative;
}

/* Efeito de typing para texto */
.typing-effect {
    overflow: hidden;
    border-right: 3px solid rgba(168, 85, 247, 0.7);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 1s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: rgba(168, 85, 247, 0.7); }
}

/* Efeito de entrada mais elaborado */
@keyframes slideUpGlow {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Aplicar nova animação */
.subtitle {
    animation: slideUpGlow 1.2s 0.5s forwards ease-out;
}

.description {
    animation: slideUpGlow 1.2s 1s forwards ease-out;
}

.coming-soon-badge {
    animation: slideUpGlow 1.2s 1.5s forwards ease-out;
}

.features-preview {
    animation: slideUpGlow 1.2s 2s forwards ease-out;
}

/* Mobile Optimizations for New Effects */
@media (max-width: 768px) {
    .particle-system {
        display: none; /* Disable particles on mobile for performance */
    }
    
    .dna-helix {
        display: none;
    }
    
    .cosmic-dust {
        animation-duration: 30s; /* Slower on mobile */
    }
    
    .coming-soon-container {
        padding: 1rem;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .content-wrapper {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
    
    .logo-main {
        font-size: clamp(2.5rem, 7vw, 4rem);
        filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3));
    }
    
    .logo-tagline {
        font-size: 0.85rem;
        margin-top: -0.2rem;
    }
    
    .subtitle {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }
    
    .description {
        font-size: clamp(0.9rem, 4vw, 1rem);
        max-width: 100%;
    }
    
    .features-preview {
        gap: 1.5rem;
    }
    
    .feature-item {
        min-width: 100px;
    }
    
    .feature-icon {
        font-size: 1.75rem;
        padding: 0.6rem;
    }
    
    .neural-network {
        opacity: 0.4;
    }
    
    .data-stream {
        display: none;
    }
}

@media (max-width: 480px) {
    .coming-soon-container {
        padding: 0.75rem;
    }
    
    .content-wrapper {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .features-preview {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }
    
    .feature-item {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        gap: 1rem;
        padding: 0.75rem;
        text-align: left;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 12px;
        border: 1px solid rgba(139, 92, 246, 0.1);
    }
    
    .feature-icon {
        margin-right: 0;
        font-size: 1.5rem;
        padding: 0.5rem;
    }
    
    .feature-item span {
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    .coming-soon-badge {
        padding: 0.6rem 1.2rem;
    }
    
    .pulse-dot {
        width: 6px;
        height: 6px;
    }
    
    .badge-text {
        font-size: 0.8rem;
    }
    
    .glitch-overlay, .energy-core {
        display: none;
    }
}

@media (max-width: 380px) {
    .logo-main {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .logo-tagline {
        font-size: 0.75rem;
        margin-top: -0.1rem;
    }
    
    .content-wrapper {
        padding: 1.25rem 0.75rem;
        gap: 1.25rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
        margin-top: 0;
    }
    
    .description {
        font-size: 0.85rem;
        margin: 0.5rem 0;
    }
    
    .feature-icon {
        font-size: 1.3rem;
        padding: 0.4rem;
    }
    
    .feature-item {
        padding: 0.6rem;
        gap: 0.75rem;
    }
    
    .feature-item span {
        font-size: 0.8rem;
    }
}

/* Orientação paisagem em telas pequenas */
@media (max-height: 500px) and (orientation: landscape) {
    .coming-soon-container {
        padding: 0.5rem;
    }
    
    .content-wrapper {
        padding: 1rem;
        gap: 1rem;
    }
    
    .logo-main {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .features-preview {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .feature-item {
        min-width: auto;
        width: auto;
    }
}

/* Efeitos de interação */
.logo-main:hover {
    animation-duration: 1s;
}

.coming-soon-badge:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Advanced Particle System */
.particle-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.8) 0%, transparent 70%);
    animation: particle-float linear infinite;
}

.particle.type-1 {
    width: 2px;
    height: 2px;
    background: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.8);
}

.particle.type-2 {
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.7);
}

.particle.type-3 {
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Cosmic Dust Effect */
.cosmic-dust {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(168, 85, 247, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(59, 130, 246, 0.25), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(168, 85, 247, 0.15), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: cosmic-drift 20s linear infinite;
}

@keyframes cosmic-drift {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-200px) translateY(-100px); }
}

/* Data Stream Effect */
.data-stream {
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(168, 85, 247, 0.4) 25%, 
        rgba(59, 130, 246, 0.6) 50%, 
        rgba(168, 85, 247, 0.4) 75%, 
        transparent 100%
    );
    animation: data-flow 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.data-stream:nth-child(2) {
    left: 10%;
    animation-delay: 1s;
    animation-duration: 4s;
}

.data-stream:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 5s;
}

@keyframes data-flow {
    0%, 100% { 
        opacity: 0.3; 
        transform: scaleY(0.8);
        filter: blur(1px);
    }
    50% { 
        opacity: 1; 
        transform: scaleY(1.2);
        filter: blur(0);
    }
}

/* Energy Core Effect */
.energy-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(168, 85, 247, 0.8) 30%, transparent 70%);
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(168, 85, 247, 0.8),
        0 0 40px rgba(168, 85, 247, 0.6),
        0 0 60px rgba(168, 85, 247, 0.4);
    animation: energy-pulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes energy-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
}

/* Easter Egg Effects */
@keyframes rainbow-glow {
    0% { filter: hue-rotate(0deg) saturate(1); }
    25% { filter: hue-rotate(90deg) saturate(1.5); }
    50% { filter: hue-rotate(180deg) saturate(2); }
    75% { filter: hue-rotate(270deg) saturate(1.5); }
    100% { filter: hue-rotate(360deg) saturate(1); }
}

/* Debug Mode Styles */
.debug-mode {
    filter: contrast(1.1) brightness(1.1);
}

.debug-mode::before {
    content: 'DEBUG MODE';
    position: fixed;
    top: 10px;
    left: 10px;
    background: #ff0000;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10000;
}