/* --- Imports e Reset Global --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

body {
    background-color: #0B0E14;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* --- Scrollbar Customizada --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0B0E14;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgb(163, 188, 255);
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Utilitários Visuais (Glass & Glow) --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.hover-glow:hover {
    border-color: rgba(163, 188, 255, 0.3);
    box-shadow: 0 0 30px rgba(163, 188, 255, 0.1);
}

/* --- Animações de Scroll e Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animação Fade Up */
.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Delays Utilitários */
.delay-100 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; transition-delay: 0.4s; }

/* Animação Link Header */
#link-header { position: relative; }
#link-header::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: rgb(163, 188, 255);
    bottom: -3.5px;
    left: 1px;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}
#link-header:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Animação Scroll Line (Hero) */
@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}
.animate-scroll-line {
    animation: scroll-line 2.5s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

/* Animação Text Swap */
.text-swap {
    animation: textSwap 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes textSwap {
    0% { opacity: 0; transform: translateY(10px); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Animações Flutuantes */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(-6deg); }
    50% { transform: translateY(-10px) rotate(-6deg); }
}
@keyframes float-slower {
    0%, 100% { transform: translateY(0px) rotate(-12deg); }
    50% { transform: translateY(-15px) rotate(-12deg); }
}
.animate-float-1 { animation: float-slow 6s ease-in-out infinite; }
.animate-float-2 { animation: float-slower 7s ease-in-out infinite; }

/* --- Pricing Cards --- */
.pricing-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-4px);
}
.pricing-card.pro-active {
    border-color: rgba(163, 188, 255, 0.5);
    box-shadow: 0 0 40px rgba(163, 188, 255, 0.15);
}
.pricing-card.pro-active .pro-glow {
    opacity: 1;
}

/* Toggle Switch */
input:checked ~ div {
    background-color: rgb(163, 188, 255) !important;
}

/* Hover nos Cards de Preço (Texto Branco) */
#card-lp:hover .flex.gap-3, #card-lp:hover #lp-desc,
#card-mp:hover .flex.gap-3, #card-mp:hover #mp-desc,
#card-pp:hover .flex.gap-3, #card-pp:hover #pp-desc {
    color: white;
}
.flex.gap-3, #lp-desc, #mp-desc, #pp-desc {
    transition: color 0.3s ease-in-out;
}

/* --- FAQ --- */
details summary::-webkit-details-marker {
    display: none;
}

/* --- Bloco Portfólio --- */
.accordion-content {
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.5s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
.accordion-active .accordion-content {
    max-height: 200px; 
    opacity: 1;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out 0.2s;
}
.portfolio-item.active h3 {
    color: rgb(163, 188, 255);
    transform: translateX(10px);
}
@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(10px); opacity: 0.4; }
}
.animate-scroll-hint {
    animation: bounce-subtle 2s infinite;
}

/* Cursor Personalizado (Phone Screen) */
#phone-screen {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='8' fill='rgba(255,255,255,0.1)' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}
#phone-screen img {
    pointer-events: none;
    -webkit-user-drag: none;
}
#phone-screen.is-dragging {
    scroll-behavior: auto !important;
}

/* --- Efeito Spotlight (Nuvem Mouse) --- */
.spotlight-card {
    position: relative;
    overflow: hidden;
    transform: translateZ(0); 
    will-change: transform; 
}

.spotlight-overlay {
    pointer-events: none;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s;
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        rgba(163, 188, 255, 0.10),
        transparent 40%
    );
    z-index: 0;
    will-change: opacity;
}
.spotlight-card:hover .spotlight-overlay {
    opacity: 1;
}

/* --- Ajustes de Media Query --- */
@media (min-width: 1024px) {
    #solucoes {
        scroll-margin-top: 75px;
    }
}

/* --->>> Animação de Introdução <<<--- */

/* --- Overlay --- */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #0B0E14; 
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background-color 0.8s ease;
}

/* --- O Logo Animado --- */
#anim-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 4rem; 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    transition: top 1s cubic-bezier(0.76, 0, 0.24, 1), 
                left 1s cubic-bezier(0.76, 0, 0.24, 1), 
                transform 1s cubic-bezier(0.76, 0, 0.24, 1),
                font-size 1s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 10000;
}

@media (max-width: 768px) {
    #anim-logo { font-size: 2.5rem; }
}

/* --- Cursor Piscante --- */
.cursor {
    display: inline-block;
    width: 4px;
    height: 0.8em;
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

.cursor.hidden { display: none; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Classe de Voo (Calculada via JS) --- */
.flying-to-header {
    top: var(--target-top) !important;
    left: var(--target-left) !important;
    transform: translate(0, 0) !important;
    font-size: 1.5rem !important;
}

/* --- Utilitários --- */
body.loading-locked { overflow: hidden !important; }

#navbar nav, 
#navbar a.bg-white\/5, 
#navbar button,
#inicio,
#solucoes,
#precos,
#portfolio,
#contato,
footer {
    opacity: 0;
    transition: opacity 1s ease;
}

.content-visible { opacity: 1 !important; }

/* --->>> Fim da Animação de Introdução <<<--- */

.perspective-1000 {
    perspective: 1000px;
}

.fix-overflow-mask {
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
    will-change: transform;
}

/* Classe para ocultar seções durante a animação inicial */
.intro-hidden {
    opacity: 0;
    transition: opacity 1s ease;
}

/* --- Lenis (Scroll Suave) --- */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}