/* Quora Invest Landing Page - Styles */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TIPOGRAFIA ===== */
/* H1: 48px - Poppins SemiBold (#FFFFFF) */
h1 {
    font-size: 48px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #FFFFFF;
}

/* H2: 28px - Poppins Medium (#E0E0E0) */
h2 {
    font-size: 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #E0E0E0;
}

/* Texto: 18px - Inter Regular (#B0B0B0) */
p {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #B0B0B0;
}

/* Numéricos: JetBrains Mono */
.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ===== GRADIENTES DE TEXTO ===== */
.gradient-text-white {
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 25%, #60a5fa 50%, #ffffff 75%, #c4c4c4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    /* Otimização para evitar tremor no mobile */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: background-position;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-text-blue {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-purple {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HERO BACKGROUND ===== */
#hero {
    min-height: 100vh;
}

#hero img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

#hero .absolute.inset-0.z-0 {
    z-index: 0;
}

/* Centralização vertical apenas no desktop */
@media (min-width: 768px) {
    #hero {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== SEÇÕES ===== */
.section-intro {
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
    position: relative;
    /* Otimização para evitar tremor no mobile */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Forçar aceleração de hardware */
    will-change: transform;
}

/* Otimização específica para textos na seção intro no mobile */
@media (max-width: 767px) {
    .section-intro h2,
    .section-intro p {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* Smooth transition from hero to intro */
#hero + #introducao {
    margin-top: -1px; /* Overlap for smooth transition */
}

.section-sigma {
    background: #000000;
    position: relative;
}

.section-nexus {
    background: #000000;
    position: relative;
}

.section-quantum {
    background: #000000;
    position: relative;
}

.section-planos {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    position: relative;
}

.section-comparativo {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
}

.section-cta {
    background: #000000;
}

/* ===== EFEITOS DE FUNDO ===== */
/* Data Flow Effect para Sigma */
.data-flow {
    background-image: 
        linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.1) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(59, 130, 246, 0.05) 50%, transparent 100%);
    background-size: 200% 200%;
    animation: dataFlow 20s linear infinite;
    opacity: 0.5;
}

@keyframes dataFlow {
    0% {
        background-position: 0% 0%, 0% 0%;
    }
    100% {
        background-position: 200% 200%, 200% 200%;
    }
}

/* Partículas para Hero e Nexus */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(168, 85, 247, 0.1), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(59, 130, 246, 0.1), transparent);
    background-size: 200% 200%;
    animation: particlesFloat 15s ease-in-out infinite;
    opacity: 0.6;
}

.particles-purple {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(168, 85, 247, 0.15), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(124, 58, 237, 0.1), transparent);
    background-size: 200% 200%;
    animation: particlesFloat 20s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes particlesFloat {
    0%, 100% {
        background-position: 0% 0%, 0% 0%, 0% 0%;
    }
    50% {
        background-position: 100% 100%, 100% 100%, 100% 100%;
    }
}

/* ===== BOTÕES ===== */
.btn-hero {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: #000000;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-sigma {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-sigma:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-nexus {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-nexus:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-quantum {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.btn-quantum:hover {
    background: linear-gradient(135deg, #0891b2 0%, #2563eb 50%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
}

/* ===== CARDS ===== */
.card-comparativo {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.8) 0%, rgba(10, 10, 20, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

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

/* ===== ANIMAÇÕES FADE-UP ===== */
.fade-up {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
    /* Otimização para evitar tremor no mobile */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

.fade-up.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.fade-up-delay-1 {
    transition-delay: 0.1s;
}

.fade-up-delay-2 {
    transition-delay: 0.2s;
}

.fade-up-delay-3 {
    transition-delay: 0.3s;
}

.fade-up-delay-4 {
    transition-delay: 0.4s;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #ffffff;
}

/* ===== HERO STYLES - BASE (Mobile First) ===== */

/* ============================================
   LOGO 1 SALVA: "Logo Q e Quora em baixo"
   ============================================
   - Logo: Q (ícone) com texto "quora" abaixo
   - Mobile: 400px × 400px
   - Desktop: 120px-160px (responsivo)
   - Arquivo: assets/logo-quora-branca.png
   ============================================
   
   LOGO 2 ATIVA: "Logo Q texto lateral sem fundo"
   ============================================
   - Logo: Q (ícone) com texto "quora" ao lado (horizontal)
   - Arquivo: assets/Logo Q texto lateral sem fundo.png
   ============================================ */

.hero-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.hero-logo-wrapper {
    margin-bottom: 0.75rem;
}

.hero-logo-container {
    margin-bottom: 1rem;
}

.hero-headline-text {
    line-height: 1.2;
}

.hero-subtitle-text {
    line-height: 1.6;
}

/* ===== MOBILE STYLES (max-width: 767px) ===== */
@media (max-width: 767px) {
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    p {
        font-size: 16px;
    }
    
    .btn-hero,
    .btn-sigma,
    .btn-nexus {
        width: 100%;
        max-width: 300px;
    }
    
    /* Hero Mobile - Espaçamentos reduzidos */
    .hero-logo-container {
        margin-bottom: 1rem !important;
        padding-top: 1.5rem;
    }
    
    .hero-logo-wrapper {
        margin-bottom: 0.75rem !important;
    }
    
    /* ============================================
       LOGO 1 SALVA - MOBILE: "Logo Q e Quora em baixo"
       ============================================
       .hero-logo-img {
           width: 400px !important;
           height: 400px !important;
       }
       ============================================ */
    
    /* LOGO 2 ATIVA - MOBILE: "Logo Q texto lateral" */
    .hero-logo-img {
        width: 400px !important;
        height: auto !important; /* Auto para manter proporção da logo horizontal */
        max-width: 90vw !important; /* Limita largura no mobile */
    }
    
    .hero-headline-text {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle-text {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    #hero {
        min-height: 100vh;
    }
}

/* ===== DESKTOP STYLES (min-width: 768px) ===== */
@media (min-width: 768px) {
    /* ============================================
       LOGO 1 SALVA - DESKTOP: "Logo Q e Quora em baixo"
       ============================================
       width: 120px !important;
       height: 120px !important;
       ============================================ */
    
    /* LOGO 2 ATIVA - DESKTOP: "Logo Q texto lateral" */
    #hero img.hero-logo-img,
    #hero .hero-logo-wrapper img,
    #hero .hero-logo-container img,
    .hero-logo-img {
        width: 350px !important;
        height: auto !important; /* Auto para manter proporção da logo horizontal */
        max-width: 350px !important;
        max-height: none !important;
        min-width: 350px !important;
    }
    
    .hero-logo-container {
        margin-bottom: 1.5rem;
    }
    
    .hero-logo-wrapper {
        margin-bottom: 1rem;
    }
    
    .hero-headline-text {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    .hero-subtitle-text {
        font-size: 1.125rem;
    }
}

/* ===== LARGE DESKTOP (min-width: 1024px) ===== */
@media (min-width: 1024px) {
    /* ============================================
       LOGO 1 SALVA - LARGE DESKTOP: "Logo Q e Quora em baixo"
       ============================================
       width: 140px !important;
       height: 140px !important;
       ============================================ */
    
    /* LOGO 2 ATIVA - LARGE DESKTOP: "Logo Q texto lateral" */
    #hero img.hero-logo-img,
    #hero .hero-logo-wrapper img,
    #hero .hero-logo-container img,
    .hero-logo-img {
        width: 400px !important;
        height: auto !important; /* Auto para manter proporção da logo horizontal */
        max-width: 400px !important;
        max-height: none !important;
        min-width: 400px !important;
    }
    
    .hero-logo-container {
        margin-bottom: 2rem;
    }
    
    .hero-headline-text {
        font-size: 3.5rem;
    }
    
    .hero-subtitle-text {
        font-size: 1.25rem;
    }
}

/* ===== EXTRA LARGE DESKTOP (min-width: 1280px) ===== */
@media (min-width: 1280px) {
    /* ============================================
       LOGO 1 SALVA - EXTRA LARGE: "Logo Q e Quora em baixo"
       ============================================
       width: 160px !important;
       height: 160px !important;
       ============================================ */
    
    /* LOGO 2 ATIVA - EXTRA LARGE: "Logo Q texto lateral" */
    #hero img.hero-logo-img,
    #hero .hero-logo-wrapper img,
    #hero .hero-logo-container img,
    .hero-logo-img {
        width: 500px !important;
        height: auto !important; /* Auto para manter proporção da logo horizontal */
        max-width: 500px !important;
        max-height: none !important;
        min-width: 500px !important;
    }
    
    .hero-headline-text {
        font-size: 4rem;
    }
}

/* ===== ANIMAÇÃO BOUNCE ===== */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* ===== GLOW EFFECTS ===== */
.glow-text {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3),
                 0 0 40px rgba(139, 92, 246, 0.2);
}

/* ===== BACKDROP BLUR ===== */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ===== LINHAS E GRADIENTES SUTIS ===== */
.border-gradient {
    border-image: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3)) 1;
}

/* ===== OTIMIZAÇÕES ===== */
img {
    loading: lazy;
}

#hero img {
    loading: eager;
}

/* ===== FOCUS STATES ===== */
a:focus,
button:focus {
    outline: 2px solid rgba(139, 92, 246, 0.5);
    outline-offset: 2px;
}

/* ===== PLANOS STYLES ===== */
.plan-card {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9) 0%, rgba(10, 10, 20, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

.plan-card-featured {
    border: 2px solid rgba(6, 182, 212, 0.5);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(20, 20, 30, 0.95) 100%);
    transform: scale(1.05);
}

.plan-card-featured:hover {
    border-color: rgba(6, 182, 212, 0.8);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.4);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin: 1rem 0;
    color: #ffffff;
}

.plan-features {
    flex: 1;
    margin-bottom: 2rem;
}

.plan-feature-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.plan-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 0.75rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.plan-btn:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.plan-btn-featured {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    border-color: rgba(6, 182, 212, 0.5);
}

.plan-btn-featured:hover {
    background: linear-gradient(135deg, #0891b2 0%, #2563eb 50%, #7c3aed 100%);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5);
}

/* Responsividade dos planos */
@media (max-width: 768px) {
    .plan-card-featured {
        transform: scale(1);
    }
    
    .plan-price {
        font-size: 0.9rem;
    }
    
    .plan-price span.text-5xl {
        font-size: 3rem;
    }
}

/* ===== CAPITAL CHART STYLES ===== */
.capital-chart-container {
    position: relative;
    width: 100%;
    min-height: 256px;
}

#capitalChart {
    width: 100%;
    height: 100%;
    min-height: 256px;
}

#capitalPath {
    filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.5));
    shape-rendering: geometricPrecision; /* Precisão geométrica - não suavizar */
    vector-effect: non-scaling-stroke; /* Manter largura constante */
    image-rendering: -webkit-optimize-contrast; /* Evitar suavização */
    image-rendering: crisp-edges; /* Bordas nítidas */
}

#tooltipCircle {
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.8));
}

#tooltip rect {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

#tooltip text {
    font-size: 11px;
}

/* Responsividade do gráfico */
@media (max-width: 768px) {
    .capital-chart-container {
        min-height: 200px;
    }
    
    #capitalChart {
        min-height: 200px;
    }
    
    #tooltip text {
        font-size: 10px;
    }
}

/* ===== SMOOTH TRANSITIONS ===== */
* {
    transition-property: color, background-color, border-color, transform, opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

