:root {
    --purple-main: #4F359B;
    --orange-main: #FF5C00;
}

html { scroll-behavior: smooth; }

/* Scrollbar Clean */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Backgrounds Animados */
.noise-overlay {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 1;
}

.blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6;
    animation: floatOrb 15s infinite alternate cubic-bezier(0.4, 0, 0.2, 1); z-index: 0;
}
.purple-blob { top: -10%; left: -10%; width: 40vw; height: 40vw; background: #E9D5FF; }
.orange-blob { bottom: -10%; right: -5%; width: 35vw; height: 35vw; background: #FFEDD5; animation-delay: -5s; animation-duration: 20s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
    100% { transform: translate(-5%, 5%) scale(0.9); }
}

/* Glassmorphism e Componentes */
.glass-nav { background: rgba(251, 249, 255, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.glass-card { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.6); }

.logo-circle { position: relative; display: inline-block; z-index: 1; }
.logo-circle::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 135%; height: 135%; border: 2px solid var(--orange-main); border-radius: 50%; z-index: -1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--purple-main) 0%, var(--orange-main) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent;
}

/* Floating Labels (UX de Formulário Premium) */
.floating-input-group { position: relative; width: 100%; }
.floating-input {
    width: 100%; padding: 1.5rem 1.25rem 0.5rem; background-color: #F9FAFB;
    border: 2px solid #F3F4F6; border-radius: 1rem; font-size: 1.125rem; font-weight: 700; color: #111827;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); outline: none;
}
.floating-input:hover { background-color: #F3F4F6; }
.floating-input:focus { background-color: #FFFFFF; border-color: var(--purple-main); box-shadow: 0 0 0 4px rgba(79, 53, 155, 0.1); }

input[type="date"].floating-input { min-height: 4.2rem; cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; transition: opacity 0.2s; }
input[type="date"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }

.floating-label {
    position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%);
    color: #6B7280; font-weight: 600; font-size: 1rem; pointer-events: none; transition: all 0.2s ease-out; transform-origin: left top;
}
.floating-input:focus ~ .floating-label, .floating-input:not(:placeholder-shown) ~ .floating-label {
    top: 1rem; font-size: 0.75rem; font-weight: 800; color: var(--purple-main); text-transform: uppercase; letter-spacing: 0.05em;
}

/* Micro-interações */
.btn-press:active { transform: scale(0.96) translateY(2px); }
.hover-float { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-float:hover { transform: translateY(-4px); box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); }

/* Animações Iniciais e Views do Sistema Interno */
.animate-scale-up { animation: scaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.view-section { display: none; opacity: 0; }
.view-section.active { display: block; animation: fadeIn 0.4s ease-out forwards; }


/* ==========================================
   ANIMAÇÕES DE SURGIMENTO (SCROLL REVEAL)
   Integradas com o Intersection Observer
========================================== */

/* Estados Iniciais (Escondidos e fora de posição) */
.reveal-up { opacity: 0; transform: translateY(60px); transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-from-left { opacity: 0; transform: translateX(-60px); transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-from-right { opacity: 0; transform: translateX(60px); transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-pop { opacity: 0; transform: scale(0.7); transition: all 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.reveal-fade { opacity: 0; transition: all 1s ease-in-out; }

/* Estados Finais (Quando o Javascript do script.js adiciona a classe .active) */
.reveal-up.active, 
.reveal-from-left.active, 
.reveal-from-right.active, 
.reveal-pop.active, 
.reveal-fade.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Delays para o efeito cascata (Garante compatibilidade com Transições e Animações) */
.delay-100 { transition-delay: 100ms; animation-delay: 100ms; }
.delay-200 { transition-delay: 200ms; animation-delay: 200ms; }
.delay-300 { transition-delay: 300ms; animation-delay: 300ms; }
.delay-400 { transition-delay: 400ms; animation-delay: 400ms; }
.delay-500 { transition-delay: 500ms; animation-delay: 500ms; }
.delay-600 { transition-delay: 600ms; animation-delay: 600ms; }

/* Animação do Círculo Desenhado à Mão (Este roda sozinho ao abrir o site) */
.draw-circle {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawCircle 1.5s forwards ease-out;
    animation-delay: 0.6s;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }