/* Definição das Cores e Fontes como Variáveis CSS */
:root {
    --bg: #111827;
    /* Updated to match functionalities */
    --card-bg: #1F2937;
    /* Updated to match functionalities */
    --border: #374151;
    /* Updated to match functionalities */
    --text-primary: #FFFFFF;
    /* Updated to match functionalities */
    --text-secondary: #9CA3AF;
    /* Updated to match functionalities */
    --text-tertiary: #94a3b8;
    --accent-primary: #7C3AED;
    /* Updated to match functionalities */
    --accent-secondary: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.5);

    --font-poppins: 'Poppins', sans-serif;
    --font-outfit: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-poppins);
    background-color: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Fallback */
    overflow-x: clip;
    /* Modern fix for sticky */
}

.font-outfit {
    font-family: var(--font-outfit);
}

.font-poppins {
    font-family: var(--font-poppins);
}

/* Utilitários Visuais */
.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* Animações Customizadas */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

.animate-float-slow {
    animation: float 10s ease-in-out infinite;
    animation-delay: 1s;
}

/* Variações de tempo para os novos cards */
.animate-float-fast {
    animation: float 5s ease-in-out infinite;
}

.animate-float-medium {
    animation: float 7s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Hide scrollbar while maintaining scroll functionality */
.hide-scrollbar {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Slide navigation buttons */
.slide-nav-btn {
    color: white;
    transition: opacity 0.3s ease;
}

.slide-nav-btn:hover {
    opacity: 1 !important;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    }
}

.glow-effect {
    animation: pulse-glow 4s infinite;
}

/* Estilos para o FAQ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--bg);
    border-radius: 0 0 0.5rem 0.5rem;
}

.faq-question.active+.faq-answer {
    max-height: 200px;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.faq-question .arrow {
    transition: transform 0.3s ease;
}

.faq-question.active .arrow {
    transform: rotate(180deg);
}

/* Sticky Scroll Feature Styles - REFINADO 2.0 */
.feature-text-item {
    opacity: 0.3;
    /* Visible but dimmed */
    transform: translateY(20px);
    /* Less movement */
    filter: blur(0);
    /* Remove blur to prevent "smearing" */
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* Faster transition */
    border-left: 4px solid transparent;
    padding-left: 2rem;
}

.feature-text-item.active {
    opacity: 1;
    transform: translateY(0);
    border-left-color: var(--accent-primary);
    padding-left: 2.5rem;
}

.feature-text-item.active h3 {
    color: var(--accent-secondary);
}

/* Device Toggle Styles */
.device-toggle-btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.device-toggle-btn.active {
    background-color: var(--accent-primary);
    color: white;
}

.device-toggle-btn:not(.active) {
    color: #9ca3af;
}

.device-toggle-btn:not(.active):hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Navbar Toggle Button */
#menu-toggle {
    cursor: pointer;
}

/* Hero Mockup Image Transitions */
#hero-mockup-mobile-img,
#hero-mockup-desktop-img {
    transition: opacity 0.3s ease-in-out;
}

/* Utility for Grid Stacking */
.grid-stack {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
}

.grid-stack>* {
    grid-column: 1;
    grid-row: 1;
}

/* HEADER STANDARDIZATION (Copied from web/funcionalidades/style.css) */
.header {
    background-color: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 0 40px;
    width: 100%;
    position: relative;
    height: 48px;
    /* Fixed height for consistency */
}

/* Ensure Logo sizing matches exactly */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-svg {
    height: 28px;
    width: auto;
    display: block;
}

/* New Class to ensure visibility on mobile */
.logo-svg-main {
    height: auto;
    display: block;
    /* Always block, controlled by Tailwind classes for size */
}

.logo-icon {
    height: 32px;
    width: auto;
    display: none;
}

@media (max-width: 768px) {
    .logo-svg {
        display: none;
    }

    .logo-icon {
        display: block;
    }
}

/* Navigation Menu */
.header-nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 9999px;
    /* Pill shape */
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    /* Subtle hover */
}

.nav-link.active {
    color: var(--accent-secondary);
    /* Lighter purple text */
    background-color: rgba(124, 58, 237, 0.15);
    /* Purple tint background */
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
    /* Subtle glow */
    border: 1px solid rgba(139, 92, 246, 0.2);
    /* Slight border definition */
}

@media (max-width: 900px) {
    .header-nav-center {
        display: none;
    }
}

/* Header Actions */
.header-actions.right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 9999px;
    /* Pill Shape */
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    border: 1px solid var(--border);
    padding: 12px 24px;
    /* Increased padding */
    border-radius: 9999px;
    /* Pill Shape */
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.2s;
    background: transparent;
    text-decoration: none;
    display: inline-block;
}

.btn-outline {
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 9999px;
    /* Pill Shape */
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s;
    background: transparent;
    text-decoration: none;
}

.btn-outline:hover {
    background-color: var(--card-bg);
    border-color: var(--text-secondary);
}

.btn-text-full {
    display: inline;
}

.btn-text-short {
    display: none;
}

@media (max-width: 600px) {
    .header-container {
        padding: 0 20px;
    }

    .btn-text-full {
        display: none;
    }

    .btn-text-short {
        display: inline;
    }
}

/* BRANDED SCROLLBAR - SincroApp Violet */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    /* Horizontal scroll support */
}

::-webkit-scrollbar-track {
    background: #111827;
    /* Dark background matching --bg */
}

::-webkit-scrollbar-thumb {
    background: #7C3AED;
    /* Violet Primary */
    border-radius: 4px;
    border: 2px solid #111827;
    /* Border to create padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background: #6D28D9;
    /* Darker Violet Hover */
}

/* MOBILE HERO ADJUSTMENTS */
@media (max-width: 768px) {

    /* Scale down cards to be less intrusive */
    .hero-floating-card .glass {
        transform: scale(0.85);
        transform-origin: center;
    }
}

/* Scroll Fade Masks - Enhanced for Fluidity */
.mask-fade-top {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 85%, transparent 100%);
    /* Top fade for title avoidance, Bottom fade for smooth exit */
}

/* Feature Text Transitions */
.feature-text-group {
    filter: blur(0);
    transition: filter 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    transform: scale(0.98);
}

.feature-text-group.active {
    filter: blur(0);
    transform: scale(1);
}

/* Feature text item - controlled by JavaScript for opacity */
.feature-text-item {
    transition: opacity 0.15s ease-out;
}

.mask-fade-x {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

/* Mask to fade out content as it scrolls up toward the sticky header */
.mask-fade-top {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 100%);
}

/* Header styles are now handled by /assets/css/header.css */
/* This is loaded automatically by main-header.js */