@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* UX4YOU Luminous Premium Palette */
    --bg-color: #0E0B1A;
    --text-main: #FFFFFF;
    --text-muted: #B8C4D6;
    
    /* Brand Gradients & Accents (Vibrant Magenta & Violet) */
    --brand-100: #FFA5E6;
    --brand-300: #E6159B;
    --brand-500: #B8007A;
    --brand-700: #7A0052;
    
    /* Slate & Accent Colors */
    --slate-300: #C5D1E0;
    --slate-500: #7E8C9F;
    --slate-700: #424C5A;
    
    --glow-primary: rgba(230, 21, 155, 0.5);
    --glow-slate: rgba(126, 140, 159, 0.35);
    
    /* Glassmorphism Refinado & Mais Claro */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-border-brand: rgba(230, 21, 155, 0.35);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --section-spacing: 120px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 9999px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: initial; /* Lenis handles this */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 50% -10%, rgba(230, 21, 155, 0.18), transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(138, 43, 226, 0.14), transparent 45%),
        radial-gradient(circle at 10% 85%, rgba(230, 21, 155, 0.14), transparent 45%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 { font-size: clamp(3rem, 5vw + 1rem, 5.5rem); }
h2 { font-size: clamp(2.5rem, 4vw + 1rem, 4rem); }
h3 { font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem); }

.text-gradient {
    background: linear-gradient(135deg, var(--brand-100), var(--brand-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--section-spacing) 0;
    position: relative;
    z-index: 1;
}

/* Components */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: white;
    box-shadow: 0 4px 20px var(--glow-primary);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px var(--glow-primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-cursor.active {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    mix-blend-mode: normal;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Typography modifiers */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-8 { margin-bottom: 4rem; }

/* Sections */
.section-title {
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* Cards */
.card {
    padding: 2.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-500), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.card:hover::before {
    opacity: 1;
}

/* Icons */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--brand-100);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Timeline */
.timeline {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border) 20%, var(--glass-border) 80%, transparent);
    z-index: -1;
}
.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 1px solid var(--brand-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-100);
    box-shadow: 0 0 20px rgba(123, 44, 255, 0.2);
}

/* Results */
.stat-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 0;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer-inner {
    padding-top: 1rem;
    color: var(--text-muted);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

/* ==========================================================================
   INTERACTIVE FEATURES STYLES (Parte 3 Additions)
   ========================================================================== */

/* 1. Header Live Status (Minimalist & Discrete) */
.live-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    padding: 0;
}
.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
    animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* 2. Playable Demo Controls inside Hero */
.demo-controls {
    padding: 12px 16px;
    background: rgba(0,0,0,0.4);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 8px;
    overflow-x: auto;
}
.demo-chip {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.demo-chip:hover {
    background: var(--brand-500);
    border-color: var(--brand-100);
}
.typing-indicator {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 8px 12px;
    background: #222;
    border-radius: 14px;
    width: fit-content;
}
.typing-dot {
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* 3. Interactive Calculator */
.calc-card {
    background: linear-gradient(135deg, rgba(20, 10, 35, 0.8), rgba(7, 1, 15, 0.95));
    border: 1px solid rgba(123, 44, 255, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.calc-field {
    margin-bottom: 2rem;
}
.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.calc-value-badge {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-100);
}
.calc-slider-input {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    accent-color: var(--brand-500);
    cursor: pointer;
}
.calc-result-box {
    background: rgba(255, 0, 80, 0.05);
    border: 1px solid rgba(255, 0, 80, 0.2);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    text-align: center;
}
.calc-loss-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #ff4a4a;
    line-height: 1;
    margin: 0.5rem 0;
}

/* 4. Interactive Before / After Slider */
.ba-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    user-select: none;
}
.ba-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}
.ba-before {
    background: linear-gradient(135deg, #1f080a, #0d0203);
    z-index: 1;
}
.ba-after {
    background: linear-gradient(135deg, #051a10, #010d07);
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #fff;
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
}
.ba-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--brand-500);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* 5. Integration Grid & Qualification Cards */
.integration-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.3s ease;
}
.integration-chip:hover {
    border-color: var(--glass-border-brand);
    transform: translateY(-2px);
}
.integration-icon {
    font-size: 1.25rem;
}

/* ==========================================================================
   LOGO & BRANDING STYLES (UI/UX Pro Max Certified)
   ========================================================================== */
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-logo:hover {
    transform: translateY(-1px);
}

.site-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(156, 0, 103, 0.3));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.site-logo:hover .site-logo-img {
    filter: drop-shadow(0 4px 16px rgba(214, 0, 134, 0.55));
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(156, 0, 103, 0.12);
    border: 1px solid rgba(245, 135, 216, 0.3);
    border-radius: var(--border-radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-100);
    box-shadow: 0 4px 15px rgba(156, 0, 103, 0.15);
    margin-bottom: 0.5rem;
}

.footer-logo-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(156, 0, 103, 0.4));
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.03);
}

.mockup-header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.mockup-logo-img {
    height: 20px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   INTERACTIVE INDUSTRY / NICHE SELECTOR
   ========================================================================== */
.niche-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.niche-tab {
    padding: 0.85rem 1.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-pill);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.niche-tab:hover {
    color: #FFF;
    border-color: rgba(245, 135, 216, 0.4);
    transform: translateY(-2px);
}
.niche-tab.active {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #FFF;
    border-color: transparent;
    box-shadow: 0 6px 25px var(--glow-primary);
}
.niche-card {
    background: linear-gradient(135deg, rgba(20, 10, 30, 0.85), rgba(8, 3, 12, 0.95));
    border: 1px solid rgba(156, 0, 103, 0.25);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    min-height: 380px;
}
.niche-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}
.niche-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-main);
}
.niche-features-list svg {
    width: 20px;
    height: 20px;
    fill: var(--brand-100);
    flex-shrink: 0;
}
.niche-preview-box {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.niche-chat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-100);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

/* ==========================================================================
   PERFORMANCE & GPU ACCELERATION OPTIMIZATIONS (60FPS FLUIDITY)
   ========================================================================== */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    transform: translateZ(0);
}

.bg-glow, .phone-mockup, .ba-container, .card, .btn {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Otimização de renderização de fontes e redução de repintura */
body {
    text-rendering: optimizeSpeed;
}



