/* ================= VARIABLES ================= */
:root {
    --bg: #050510;
    --bg-2: #0a0a1f;
    --bg-3: #0f0f2e;
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #475569;
    --border: rgba(124, 58, 237, 0.12);
    --gradient: linear-gradient(135deg, #7c3aed, #3b82f6, #06b6d4);
    --gradient-2: linear-gradient(135deg, #7c3aed, #a855f7);
    --glow: 0 0 80px rgba(124, 58, 237, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
}

/* ================= RESET ================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    background-color: #050510; 
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-color: #050510;
}

a { text-decoration: none; color: inherit; cursor: pointer; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; background: transparent; border: none; }

/* FIX PARA O BUG DE LETRAS PRETAS DO CHROME */
.logo-text-brand span, 
.hero-title .highlight, 
.bento-title, 
.k-num, 
.text-gradient, 
.amount {
    transform: translateZ(0);
}

/* ================= HEADERS E GRADIENTES ================= */
.section-header { text-align: center; margin-bottom: 60px; position: relative; z-index: 10; }
.section-tag { display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; background: rgba(124, 58, 237, 0.1); color: var(--purple-light); border: 1px solid rgba(124, 58, 237, 0.2); margin-bottom: 16px; }
.section-heading { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; line-height: 1.1; color: var(--text); letter-spacing: -1px; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ================= WEBGL CANVAS ================= */
#webgl-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ================= LOADER ================= */
#loader { position: fixed; inset: 0; z-index: 9998; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.loader-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.loader-logo { width: 80px; height: auto; animation: loaderPulse 2s ease-in-out infinite; }
@keyframes loaderPulse { 0%, 100% { opacity: 0.5; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.05); } }
.loader-bar-track { width: 200px; height: 2px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden; }
.loader-bar-fill { width: 0%; height: 100%; background: var(--gradient); border-radius: 2px; transition: width 0.3s ease; }
.loader-text { font-size: 0.75rem; color: var(--text-dim); letter-spacing: 3px; text-transform: uppercase; font-weight: 500; }
#loader.loaded { opacity: 0; pointer-events: none; transition: opacity 0.8s ease; }

/* ================= NAVBAR ================= */
header { 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    padding: 0 24px; 
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    pointer-events: none;
}

header.scrolled::before {
    opacity: 1;
}

.navbar { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 20px 0; }

.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 48px; width: auto; transition: transform 0.3s; }
#logoTrigger { cursor: zoom-in; }
#logoTrigger:hover { transform: scale(1.05); }
.logo-text-brand { font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; font-weight: 800; color: #ffffff; letter-spacing: -0.5px; }
.logo-text-brand span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links { display: flex; gap: 40px; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--gradient); transition: width 0.4s; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.btn-cta-nav { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 1px solid rgba(124, 58, 237, 0.3); border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--purple-light); transition: all 0.3s; background: rgba(124, 58, 237, 0.06); }
.btn-cta-nav:hover { background: rgba(124, 58, 237, 0.15); border-color: var(--purple); transform: translateY(-1px); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-btn span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(5, 5, 16, 0.98); backdrop-filter: blur(30px); flex-direction: column; align-items: center; justify-content: center; gap: 40px; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu ul { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mobile-menu a { font-size: 1.8rem; font-weight: 700; color: var(--text); font-family: 'Space Grotesk', sans-serif; }
.btn-cta-mobile { padding: 14px 32px; background: var(--gradient-2); color: #fff; border-radius: 50px; font-weight: 600; }

/* ================= HERO ================= */
.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px 24px 80px; max-width: 1400px; margin: 0 auto; z-index: 1; }
.hero-inner { flex: 1; max-width: 700px; position: relative; z-index: 2; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px; border: 1px solid rgba(124, 58, 237, 0.25); border-radius: 50px; font-size: 0.75rem; font-weight: 600; color: var(--purple-light); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 32px; background: rgba(124, 58, 237, 0.06); opacity: 0; transform: translateY(20px); }
.tag-dot { width: 6px; height: 6px; background: var(--purple-light); border-radius: 50%; animation: dotPulse 2s infinite; }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.4); } 50% { box-shadow: 0 0 0 8px rgba(167, 139, 250, 0); } }
.hero-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -2px; margin-bottom: 28px; color: var(--text); }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word { display: inline-block; opacity: 0; transform: translateY(100%); }
.hero-title .highlight { font-style: normal; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 40px; max-width: 540px; opacity: 0; transform: translateY(20px); }
.hero-actions { display: flex; gap: 16px; align-items: center; opacity: 0; transform: translateY(20px); }
.btn-primary-hero { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 16px 36px; background: var(--gradient-2); color: #fff; border-radius: 50px; font-weight: 600; overflow: hidden; transition: all 0.3s; border: none; }
.btn-primary-hero:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124, 58, 237, 0.35); }
.btn-shine { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); animation: shine 3s infinite; }
@keyframes shine { 0% { left: -100%; } 50%, 100% { left: 100%; } }
.btn-ghost-hero { display: inline-flex; align-items: center; gap: 8px; padding: 16px 28px; color: var(--text-muted); font-weight: 500; transition: color 0.3s; border-radius: 50px; }
.btn-ghost-hero:hover { color: var(--text); }

/* ================= LOGO 3D FLUTUANTE ================= */
.hero-image-container { 
    position: absolute; right: -60px; top: 50%; transform: translateY(-50%); 
    width: 500px; height: 500px; z-index: 1; 
    display: flex; justify-content: center; align-items: center;
    opacity: 0; 
}
.hero-logo-glow { 
    position: absolute; width: 60%; height: 60%; 
    background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%); 
    z-index: 1; border-radius: 50%; 
    animation: pulseGlow 4s ease-in-out infinite; 
}
model-viewer {
    width: 100%; height: 100%; z-index: 2;
    background-color: transparent;
    --poster-color: transparent;
}
model-viewer:focus-visible { outline: none; }
@keyframes pulseGlow { 
    0%, 100% { transform: scale(1); opacity: 0.5; } 
    50% { transform: scale(1.4); opacity: 0.8; } 
}

/* ================= MARQUEE ================= */
.marquee-section { position: relative; z-index: 1; padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(10, 10, 31, 0.5); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 25s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-content { display: flex; align-items: center; gap: 40px; padding: 0 20px; }
.marquee-item { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--text-dim); white-space: nowrap; transition: color 0.3s; }
.marquee-dot { font-size: 0.5rem; color: var(--purple); opacity: 0.5; }

/* ================= BENTO GRID ================= */
.bento-section {
    position: relative; z-index: 1; padding: 120px 24px;
    background: linear-gradient(180deg, transparent 0%, #0a0a20 40%, #0f0f2e 100%);
    overflow: hidden;
}
.bento-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bento-orb-1 { position: absolute; top: 0; left: 25%; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%); }
.bento-orb-2 { position: absolute; bottom: 0; right: 25%; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, transparent 70%); }

.bento-container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 10; }
.bento-header { text-align: center; margin-bottom: 80px; position: relative; z-index: 10; }
.bento-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 50px; border: 1px solid rgba(124,58,237,0.2); background: rgba(124,58,237,0.05); color: var(--purple-light); font-size: 0.75rem; font-weight: 600; margin-bottom: 20px; letter-spacing: 0.5px;}
.bento-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; line-height: 1.15; background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 40%, #7c3aed 70%, #06b6d4 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px; letter-spacing: -1px; }
.bento-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.6; }

.bento-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.bento-card { background: linear-gradient(145deg, rgba(13,13,36,0.8), rgba(15,15,46,0.6)); border: 1px solid rgba(255,255,255,0.06); border-radius: 20px; backdrop-filter: blur(20px); position: relative; overflow: hidden; transition: all 0.4s; padding: 30px; display: flex; flex-direction: column; z-index: 2; }
.bento-card:hover { border-color: rgba(124, 58, 237, 0.3); box-shadow: var(--glow); transform: translateY(-4px); }

.card-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; display: inline-block; }
.card-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.card-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ================= NICHES ================= */
.niches-section { position: relative; z-index: 1; padding: 120px 24px; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.niches-showcase { display: flex; flex-direction: column; gap: 32px; max-width: 900px; margin: 0 auto; }
.niche-item { display: flex; align-items: center; gap: 40px; padding: 40px; border-radius: var(--radius); background: rgba(15, 15, 46, 0.2); border: 1px solid var(--border); transition: all 0.4s; position: relative; overflow: hidden; z-index: 2; }
.niche-item::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 0% 50%, rgba(124, 58, 237, 0.06), transparent 60%); pointer-events: none; }
.niche-item:hover { border-color: rgba(124, 58, 237, 0.3); transform: translateX(8px); box-shadow: var(--glow); }
.niche-visual { width: 80px; height: 80px; flex-shrink: 0; position: relative; display: flex; align-items: center; justify-content: center; }
.niche-orb { position: absolute; inset: 0; border-radius: 50%; opacity: 0.15; animation: orbFloat 6s ease-in-out infinite; }
.niche-orb-1 { background: radial-gradient(circle, #7c3aed, transparent); }
.niche-orb-2 { background: radial-gradient(circle, #3b82f6, transparent); animation-delay: -2s; }
.niche-orb-3 { background: radial-gradient(circle, #06b6d4, transparent); animation-delay: -4s; }
.niche-emoji { font-size: 2.5rem; position: relative; z-index: 1; }
.niche-content h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.niche-content p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* ================= COMPARISON ================= */
.comparison-section { position: relative; z-index: 1; padding: 120px 24px; max-width: 1100px; margin: 0 auto; }
.comparison-grid { display: flex; align-items: stretch; gap: 24px; }
.comp-card { flex: 1; padding: 40px 32px; border-radius: var(--radius); border: 1px solid var(--border); transition: all 0.4s; position: relative; z-index: 2;}
.comp-card.old { background: rgba(30, 20, 20, 0.3); border-color: rgba(239, 68, 68, 0.1); }
.comp-card.new { background: rgba(15, 15, 46, 0.4); border-color: rgba(124, 58, 237, 0.2); box-shadow: var(--glow); }
.comp-card.new:hover { border-color: rgba(124, 58, 237, 0.4); transform: translateY(-4px); }
.comp-vs { display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--text-dim); min-width: 50px; }
.comp-card-header { margin-bottom: 28px; }
.comp-badge { display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
.old-badge { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.new-badge { background: rgba(124, 58, 237, 0.1); color: var(--purple-light); border: 1px solid rgba(124, 58, 237, 0.2); }
.comp-list { display: flex; flex-direction: column; gap: 18px; }
.comp-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.x-icon { color: #ef4444; font-weight: 700; flex-shrink: 0; font-size: 0.85rem; margin-top: 3px; }
.check-icon { color: #22c55e; font-weight: 700; flex-shrink: 0; font-size: 0.85rem; margin-top: 3px; }

/* ================= PRICING ================= */
.pricing-section { position: relative; z-index: 1; padding: 120px 24px; background: var(--bg-2); border-top: 1px solid var(--border); }
.section-desc { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin: 20px auto 0; line-height: 1.7; position: relative; z-index: 5; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; align-items: stretch; padding-top: 30px; }
.price-card { border-radius: var(--radius); border: 1px solid var(--border); background: rgba(15, 15, 46, 0.25); transition: all 0.4s; position: relative; overflow: hidden; z-index: 2; }
.price-card:hover { border-color: rgba(124, 58, 237, 0.3); transform: translateY(-6px); box-shadow: var(--glow); }

.price-card.featured { border: 2px solid transparent; background-image: linear-gradient(var(--bg-3), var(--bg-3)), var(--gradient-2); background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 0 80px rgba(124, 58, 237, 0.15); transform: scale(1.03); z-index: 3; overflow: visible; }
.price-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.featured-label { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--gradient-2); color: #fff; padding: 6px 24px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; white-space: nowrap; box-shadow: 0 4px 15px rgba(124,58,237,0.3); z-index: 10; }

.price-card-inner { padding: 48px 32px; display: flex; flex-direction: column; height: 100%; }
.price-card-inner h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 600; margin-bottom: 20px; color: var(--text); }
.price-tag { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.currency { font-size: 1.2rem; font-weight: 600; color: var(--text-muted); }
.amount { font-family: 'Space Grotesk', sans-serif; font-size: 3.5rem; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.amount.custom { font-size: 2.5rem; }
.period { font-size: 1rem; color: var(--text-dim); font-weight: 500; }
.setup { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.price-card-inner ul { flex-grow: 1; margin-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.price-card-inner li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.93rem; color: var(--text-muted); line-height: 1.5; }
.price-card-inner li::before { content: "✓"; color: var(--purple-light); font-weight: bold; flex-shrink: 0; }
.price-btn { display: block; text-align: center; padding: 14px 24px; border: 1px solid rgba(124, 58, 237, 0.3); border-radius: 50px; font-weight: 600; font-size: 0.95rem; color: var(--purple-light); transition: all 0.3s; background: rgba(124, 58, 237, 0.06); }
.price-btn:hover { background: rgba(124, 58, 237, 0.15); border-color: var(--purple); transform: translateY(-2px); }
.featured-btn { background: var(--gradient-2); color: #fff !important; border: none; }
.featured-btn:hover { box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35); background: var(--gradient-2); }

/* ================= FAQ ================= */
.faq-section { position: relative; z-index: 1; padding: 120px 24px; max-width: 800px; margin: 0 auto; }
.faq-container { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(15, 15, 46, 0.2); overflow: hidden; transition: all 0.3s; }
.faq-item:hover { border-color: rgba(124, 58, 237, 0.25); }
.faq-item.active { border-color: rgba(124, 58, 237, 0.4); box-shadow: var(--glow); }
.faq-q { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--text); gap: 16px; user-select: none; transition: color 0.3s; }
.faq-toggle { width: 24px; height: 24px; position: relative; flex-shrink: 0; }
.faq-toggle span { position: absolute; background: var(--purple-light); border-radius: 2px; transition: transform 0.3s; }
.faq-toggle span:first-child { width: 14px; height: 2px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-toggle span:last-child { width: 2px; height: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-item.active .faq-toggle span:last-child { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; }

/* ================= FOOTER ================= */
.footer-section { position: relative; z-index: 1; background: var(--bg-2); border-top: 1px solid var(--border); }
.footer-cta { padding: 120px 24px; text-align: center; position: relative; overflow: hidden; z-index: 2; }
.footer-cta-bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.08), transparent 60%); pointer-events: none; }
.footer-cta-inner { position: relative; z-index: 1; }
.security-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; border: 1px solid rgba(34, 197, 94, 0.2); border-radius: 50px; font-size: 0.8rem; font-weight: 600; color: #4ade80; margin-bottom: 28px; background: rgba(34, 197, 94, 0.06); }
.footer-cta h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; margin-bottom: 16px; letter-spacing: -1px; }
.footer-cta p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.footer-btn { display: inline-flex; }
.footer-bottom { padding: 40px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; gap: 20px; position: relative; z-index: 2; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.footer-logo span span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-logo-img { height: 32px; width: auto; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--text); }
.footer-copy p { font-size: 0.8rem; color: var(--text-dim); }

/* LIGHTBOX DA LOGO (HEADER) */
.logo-lightbox {
    position: fixed; inset: 0; z-index: 10001;
    background: rgba(5, 5, 16, 0.95); backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
    cursor: zoom-out;
}
.logo-lightbox.active { opacity: 1; visibility: visible; }

.lightbox-img { 
    max-width: 90%; max-height: 90vh; 
    transform: scale(0.8); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.logo-lightbox.active .lightbox-img { transform: scale(1); }

.close-lightbox { 
    position: absolute; top: 30px; right: 40px; 
    color: #fff; font-size: 2rem; cursor: pointer; transition: color 0.3s; 
}
.close-lightbox:hover { color: var(--purple-light); }


/* ================= CHATBOT (AJUSTADO PARA RESPONSIVIDADE) ================= */
.chat-widget { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 2000; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    gap: 12px; 
    pointer-events: none; 
}

.chat-button { 
    width: 56px; 
    height: 56px; 
    background: var(--gradient-2); 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35); 
    transition: all 0.3s; 
    pointer-events: auto; 
}
.chat-button:hover { transform: scale(1.08) translateY(-3px); }

/* Janela Inteligente: Adapta-se à altura do notebook */
.chat-window { 
    width: 380px; 
    /* O SEGREDO: Altura dinâmica baseada na tela do usuário */
    height: 540px; 
    max-height: calc(100vh - 100px); /* Garante que nunca encoste no topo da tela */
    width: min(380px, 90vw); /* Largura flexível para não vazar lateralmente */
    
    min-width: 280px; 
    min-height: 350px; 
    background: var(--bg-2); 
    border-radius: var(--radius); 
    border: 1px solid var(--border); 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow); 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    visibility: hidden; 
    opacity: 0; 
    pointer-events: none; 
    transform: translateY(20px) scale(0.95); 
    transform-origin: bottom right; 
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    resize: both; 
}

.chat-window.open { 
    visibility: visible; 
    opacity: 1; 
    pointer-events: auto; 
    transform: translateY(0) scale(1); 
}

.chat-header { 
    background: var(--gradient-2); 
    color: #fff; 
    padding: 16px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-shrink: 0; 
    cursor: grab; 
    user-select: none; 
}

.chat-body { 
    flex-grow: 1; 
    background: var(--bg); 
    padding: 15px; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    /* Força o scrollbar a aparecer apenas quando necessário */
    scrollbar-width: thin;
    scrollbar-color: var(--purple) transparent;
}

/* Área de Input Fixa na Base */
.chat-input-area { 
    background: var(--bg-2); 
    padding: 12px; 
    border-top: 1px solid var(--border); 
    display: flex; 
    align-items: flex-end; 
    gap: 8px; 
    flex-shrink: 0; 
}

.chat-input-area textarea { 
    flex-grow: 1; 
    padding: 10px 12px; 
    border: 1px solid var(--border); 
    border-radius: 10px; 
    font-size: 0.9rem; 
    color: var(--text); 
    background: var(--bg); 
    outline: none; 
    resize: none; 
    max-height: 100px; 
    min-height: 40px; 
}

/* Ajuste específico para telas de notebooks muito pequenas ou modo mobile */
@media (max-height: 650px) {
    .chat-window {
        height: 400px;
        bottom: 10px;
    }
    .chat-header { padding: 10px 15px; }
    .message { font-size: 0.85rem; padding: 10px 14px; }
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 80px;
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .hero-section { flex-direction: column; padding-top: 120px; min-height: auto; }
    .hero-image-container { position: relative; right: auto; top: auto; transform: none; width: 100%; height: 350px; margin-top: 40px; }
    .nav-links, .btn-cta-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .bento-grid { grid-template-columns: 1fr; }
    .stats-container, .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .comparison-grid { flex-direction: column; }
}
@media (max-width: 768px) {
    .logo-img { height: 38px; }
    .logo-text-brand { font-size: 1.4rem; }
    .hero-title { font-size: 2.5rem; }
    .bento-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary-hero, .btn-ghost-hero { width: 100%; justify-content: center; }
}