/* style.css - Gestão de Ordens de Serviço Landing Page */
html, body {
    scroll-behavior: smooth;
    overflow-x: clip;
    width: 100%;
}

:root {
    /* Colors - Premium Light Theme */
    --primary: #3b82f6;        /* Electric Blue */
    --primary-glow: rgba(59, 130, 246, 0.1);
    --secondary: #6366f1;      /* Indigo */
    --accent: #f59e0b;         /* Gold for CTA highlights */
    --background: #ffffff;
    --surface: #ffffff;
    --surface-light: #ffffff;
    --text-main: #020617;      /* Navy Black */
    --text-muted: #64748b;
    --white: #ffffff;
    --border: #f1f5f9;         /* Ultra Light Gray for subtle contrast */
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    /* Spacing & Misc */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: clip;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.mobile-only {
    display: none;
}

.small-container {
    max-width: 800px;
}

.section-padding {
    padding: 100px 0;
}

.alternate-bg {
    background-color: var(--surface);
}

.center {
    text-align: center;
}

/* --- Immersive Reveals --- */
[data-reveal] {
    opacity: 0;
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

[data-reveal="up"] { transform: translateY(50px); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="zoom"] { transform: scale(0.9); }
[data-reveal="fade"] { transform: none; }

[data-reveal].revealed {
    opacity: 1;
    filter: blur(0);
    transform: translate(0, 0) scale(1);
}

.text-primary-highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.text-primary-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-glow);
    z-index: -1;
}

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


/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links i {
    display: none; /* Hide icons on desktop by default */
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background-color: var(--surface-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 80px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 30px;
    font-weight: 800;
    color: var(--text-main);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 580px;
    letter-spacing: -0.01em;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.mockup-wrapper {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.status-seal {
    position: absolute;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
    color: var(--text-main);
    transition: transform 0.2s ease-out;
}

.status-seal i {
    color: var(--primary);
}

.seal-1 { 
    top: 10%; left: -15%; 
    transform: translateZ(50px);
    animation: sealFloat 4s ease-in-out infinite;
}
.seal-2 { 
    top: 40%; right: -15%; 
    transform: translateZ(80px);
    animation: sealFloat 5s ease-in-out infinite 1s;
}
.seal-3 { 
    bottom: 10%; left: -5%; 
    transform: translateZ(60px);
    animation: sealFloat 6s ease-in-out infinite 0.5s;
}

@keyframes sealFloat {
    0%, 100% { transform: translateZ(inherit) translateY(0); }
    50% { transform: translateZ(inherit) translateY(-15px); }
}

/* Sticky Scroll-Lock wrapper for vazamento section */
.vazamento-sticky-wrapper {
    position: relative;
    height: 350vh; /* scroll room = animation duration */
    background-color: transparent;
}

.vazamento-sticky-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: #ffffff !important;
    background-image: none !important; /* Removes grid dots for cleaner blend */
    /* override section-padding since we control height */
    padding: 0 !important;
}

/* Canvas embedded in vazamento section */
.canvas-visual {
    flex: 0 0 auto;
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-visual canvas {
    width: 100%;
    height: auto;
    max-width: 480px;
    display: block;
    pointer-events: none;
    /* Blend mode and filters to hide JPEG background mismatch */
    mix-blend-mode: multiply;
    filter: brightness(1.1) contrast(1.1) saturate(1.1);
}

/* Pain vs Solution Box */
.vazamento-box {
    margin-top: 50px;
    padding: 40px;
    background: #ffffff !important;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important; /* Subtle shadow for floating look */
    font-size: 1.2rem;
    color: var(--text-main);
}

/* Trust Bar */
.trust-bar {
    padding: 30px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.trust-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 600;
}

.logo-track {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
    opacity: 0.5;
    filter: grayscale(1);
    transition: var(--transition);
}

.logo-track:hover {
    opacity: 1;
    filter: grayscale(0);
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.logo-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-main);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.author-info strong {
    display: block;
    color: var(--text-main);
    font-size: 1rem;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-track {
        flex-wrap: wrap;
        justify-content: center;
    }
}
.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 80px;
}

.subheadline {
    display: inline-block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 16px;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
}

/* Problems Grid & Cards */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.problem-card {
    padding: 48px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.problem-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
}

.icon-box {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 30px;
}

/* Solution Section */
.alternate-bg {
    background-color: var(--background); /* Keep it dark */
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 100px;
}

.solution-card-main {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 48px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 40px 100px -20px rgba(59, 130, 246, 0.1), 
                0 20px 40px -20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.solution-card-main::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 700;
}

.status-pill {
    padding: 4px 10px;
    border-radius: 6px; /* Squarer for professional look */
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    background: #10b981;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.checklist-simulation {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.8; /* Visible but muted initially */
}

.step-icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon i {
    position: absolute;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-icon .active {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
}

.step-icon .inactive {
    opacity: 1;
    color: var(--text-muted);
}

/* Transformation sequence (2s initial pause + 0.7s intervals) */
.solution-visual.revealed .check-item:nth-child(1) { transition-delay: 2.0s; }
.solution-visual.revealed .check-item:nth-child(2) { transition-delay: 2.7s; }
.solution-visual.revealed .check-item:nth-child(3) { transition-delay: 3.4s; }
.solution-visual.revealed .check-item:nth-child(4) { transition-delay: 4.1s; }
.solution-visual.revealed .check-item:nth-child(5) { transition-delay: 4.8s; }

/* Apply delayed transformations to children */
.solution-visual.revealed .check-item.done:not(:nth-child(6)) .active,
.solution-visual.revealed .check-item.current .active {
    opacity: 1;
    transform: scale(1.1) rotate(0deg);
}

.solution-visual.revealed .check-item.done:not(:nth-child(6)) .inactive,
.solution-visual.revealed .check-item.current .inactive {
    opacity: 0;
    transform: scale(0.5) rotate(180deg);
}

.solution-visual.revealed .check-item:nth-child(1) i { transition-delay: 2.0s; }
.solution-visual.revealed .check-item:nth-child(2) i { transition-delay: 2.7s; }
.solution-visual.revealed .check-item:nth-child(3) i { transition-delay: 3.4s; }
.solution-visual.revealed .check-item:nth-child(4) i { transition-delay: 4.1s; }
.solution-visual.revealed .check-item:nth-child(5) i { transition-delay: 4.8s; }

/* Colors Reveal */
.solution-visual.revealed .check-item.done {
    color: #059669;
    background: rgba(16, 185, 129, 0.05);
}

.solution-visual.revealed .check-item.current {
    color: var(--primary);
    font-weight: 700;
    background: rgba(59, 130, 246, 0.05);
    border: 1px dashed rgba(59, 130, 246, 0.3);
    animation: currentStepPulse 2s infinite 5.5s; /* Start pulse after slow reveal */
}

@keyframes currentStepPulse {
    0% { background: rgba(59, 130, 246, 0.05); }
    50% { background: rgba(59, 130, 246, 0.1); }
    100% { background: rgba(59, 130, 246, 0.05); }
}

/* Impact Section (Metric Cards) */
.impact {
    background: var(--white);
    position: relative;
    z-index: 1;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.impact-card {
    padding: 60px 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.impact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.impact-value {
    font-size: 5rem; /* GIGANTE as requested */
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1;
    letter-spacing: -2px;
    display: block;
}

.impact-label {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    display: block;
}

.impact-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-value {
        font-size: 4rem;
    }
}

/* Pillars Section (Dark Contrast) */
.dark-bg {
    background: #030712;
    position: relative;
    overflow: hidden;
}

.dark-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: var(--primary-glow);
    filter: blur(150px);
    opacity: 0.1;
    transform: translate(-50%, -50%);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.pillar-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.pillar-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.pillar-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.6;
}

/* Objection Card Refined */
.objection-card {
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.objection-icon {
    font-size: 4rem;
    color: #f59e0b; /* Warning Orange */
    opacity: 0.8;
}

.objection-text {
    flex: 1;
}

.objection-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.objection-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .objection-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 24px;
    }
}

/* Comparison Table */
.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--surface-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.comparison-table td.highlight, .comparison-table th.highlight {
    background: rgba(59, 130, 246, 0.03);
    color: var(--primary);
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.cta-box p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta-note {
    font-size: 0.9rem !important;
    opacity: 0.8 !important;
    margin-top: 0 !important;
}

/* Carousel Section */
.carousel-container {
    position: relative;
    max-width: 1100px;
    margin: 40px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--border);
    background: var(--surface);
}

.carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* System Mockups Gallery */
.carousel-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    width: 100%;
}

.carousel-slide.active {
    display: flex;
    animation: fadeIn 0.8s ease;
}

.gallery-image {
    max-width: 900px;
    width: 100%;
    height: auto;
    margin: 0 auto 30px;
    display: block;
    object-fit: contain;
}

.gallery-image.phone-image {
    max-width: 320px;
}

.carousel-caption {
    background: var(--white);
    padding: 30px 40px 60px; /* Large bottom padding for dots */
    text-align: center;
}

.carousel-caption h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 700;
}

.carousel-caption p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    color: var(--text-main);
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-indicators {
    position: absolute;
    bottom: 25px; /* Stay clearly below text area */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 25px;
    border-radius: 5px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* FAQ */
.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    padding: 24px 32px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    padding: 0 32px 32px;
    color: var(--text-muted);
    font-size: 1.1rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
    animation: faqSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

@keyframes faqSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer Improvements */
.footer {
    background-color: var(--surface-light);
    border-top: 1px solid var(--border);
    color: var(--text-main);
}

.footer-brand .logo {
    color: var(--primary);
}

.footer-links a, .footer-contact p, .footer-brand p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: white;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: var(--primary);
    margin-bottom: 24px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-light);
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: #94a3b8;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 40px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #64748b;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Scroll Revel animations */
[data-reveal] {
    opacity: 0;
    transition: all 1s ease;
}

[data-reveal="up"] { transform: translateY(50px); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="zoom"] { transform: scale(0.9); }

.revealed {
    opacity: 1;
    transform: translate(0) scale(1) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .problem-grid, .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flex-row {
        flex-direction: column;
        text-align: center;
    }
    
    .solution-content {
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand, .footer-links, .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact p {
        justify-content: center;
        width: 100%;
        overflow-wrap: break-word;
        word-break: break-all;
    }

    .footer-contact a {
        word-break: break-all;
    }
}

@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .objection-content {
        padding: 40px 20px;
    }
    
    .objection-content h2 {
        font-size: 1.8rem;
    }

    .seal-1, .seal-2, .seal-3 {
        position: static !important;
        transform: none !important;
        width: 100%;
        max-width: 320px;
        margin: 10px auto;
        justify-content: center;
        opacity: 1 !important;
    }
    
    .status-seal {
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    
    .mockup-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Animation Section - Mobile High-Precision Centering */
    .vazamento-sticky-inner {
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 20px !important;
        background: #fff !important;
    }

    .vazamento-sticky-inner .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important; /* Shrink to wrap content */
        gap: 0 !important;
    }

    .vazamento-box {
        margin-top: 5px !important;
        padding: 15px !important;
        font-size: 0.95rem !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 320px !important;
        line-height: 1.4 !important;
    }

    .pain-solution .solution-content h2 {
        font-size: 1.5rem !important;
        margin-bottom: 5px !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    .canvas-visual {
        width: 100% !important;
        height: 220px !important; /* Smaller fixed height for grouping */
        margin-top: -10px !important; /* Overlap slightly if needed */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
    }

    .canvas-visual canvas {
        width: 130% !important; /* Even zoomier */
        height: auto !important;
        max-width: none !important;
        object-fit: contain !important;
        transform: translateY(0) !important;
    }

    .pain-solution .solution-content h2 {
        font-size: 1.6rem !important;
        margin-bottom: 10px !important;
    }

    .canvas-visual {
        width: 100% !important;
        margin-top: 10px !important;
        flex: 0 1 auto !important; /* Allow shrinking if needed */
    }
    
    .canvas-visual canvas {
        width: 120% !important; /* Make it slightly wider for "punchy" look */
        max-width: none !important;
        transform: translateX(-10%); /* Center the oversized canvas */
    }
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.expertise-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.expertise-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.expertise-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
}

.expertise-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* CTA Refinements */
.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .expertise-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Premium Pain-Solution Visual Integration */
.pain-solution .solution-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.pain-solution .solution-visual::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    z-index: -1;
}

.pain-solution .img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 32px; /* GIGANTE E ARREDONDADO as requested */
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 40px 100px -20px rgba(59, 130, 246, 0.15), 
                0 20px 40px -20px rgba(0, 0, 0, 0.2);
    animation: floatingImage 6s ease-in-out infinite;
    background: var(--white);
    padding: 12px;
}

@keyframes floatingImage {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Modal System */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    max-width: 550px;
    width: 95%;
    border-radius: 28px;
    padding: 48px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--primary-glow);
    color: var(--primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    line-height: 1.25;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* Form Styles */
.diagnosis-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

.form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block !important;
    margin-bottom: 2px !important;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

#other-challenge-group {
    animation: formFadeIn 0.3s ease;
}

@keyframes formFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.radio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card span {
    display: block;
    padding: 14px 8px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    background: #f8fafc;
    color: var(--text-muted);
}

.radio-card:hover span {
    border-color: var(--primary);
    color: var(--primary);
}

.radio-card input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
    .modal-content {
        padding: 40px 24px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .radio-grid {
        grid-template-columns: 1fr;
    }
}

/* Fixed Elements */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none !important;
}

.whatsapp-float::after {
    display: none !important;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background: #128c7e;
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 120px;
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    /* Global */
    :root {
        --header-height: 70px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .mobile-only {
        display: block;
    }

    .container {
        padding: 0 24px;
    }

    /* Header & Mobile Nav */
    header {
        padding: 12px 0;
    }

    header.scrolled {
        padding: 8px 0;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--surface-light);
        border-radius: 12px;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 40px 24px;
        gap: 0;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        box-shadow: -20px 0 60px rgba(0,0,0,0.1);
        visibility: hidden;
        pointer-events: none;
    }

    .nav-links i {
        display: inline-block; /* Show icons on mobile menu */
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:first-child {
        border-bottom: none;
        margin-bottom: 20px;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        padding: 20px 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-main);
        width: 100%;
    }

    .nav-links a::after {
        display: none; /* No underline effect on mobile */
    }

    .nav-cta {
        display: none;
    }

    /* Hero Section */
    .hero {
        padding-top: 100px;
        text-align: left; /* Shift back to left or keep center? Let's try centered but more balanced */
        text-align: center;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.2rem; /* Reduced from 2.5rem */
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1.05rem;
        line-height: 1.5;
        margin-bottom: 32px;
    }

    .hero-btns {
        width: 100%;
        gap: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: auto;
        min-width: 250px;
        padding: 16px 24px;
        font-size: 1rem;
    }

    /* Redesigned Mobile Seals (Chips below hero) */
    .hero-visual {
        margin-top: 30px;
        margin-bottom: 30px;
        perspective: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .status-seal {
        position: static;
        display: inline-flex;
        width: auto;
        border-radius: 10px;
        background: var(--surface-light);
        padding: 8px 14px;
        font-size: 0.8rem;
        border: 1px solid var(--border);
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        margin-bottom: 12px;
    }

    .mockup-wrapper {
        margin-top: 40px;
    }

    /* Layout Components */
    .flex-row {
        flex-direction: column;
        gap: 40px;
    }
    /* FAQ */
    .faq-section {
        overflow: hidden;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-column {
        width: 100%;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Comparison Table - Make Scrollable */
    .table-container {
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .comparison-table {
        min-width: 600px;
    }

    .scroll-hint {
        display: block;
        text-align: right;
        font-size: 0.8rem;
        color: var(--primary);
        margin-bottom: 10px;
        font-style: italic;
    }

    .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }

    /* Section Specifics */
    .problem-grid, 
    .pillars-grid, 
    .impact-grid,
    .expertise-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .pillar-card, .problem-card, .impact-card {
        padding: 32px 24px;
    }

    .vazamento-box {
        padding: 24px;
        font-size: 1rem;
        line-height: 1.4;
    }

    .solution-card-main {
        padding: 24px;
    }

    /* Modal Mobile */
    .modal-content {
        width: 95%;
        padding: 30px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .close-modal {
        top: 15px;
        right: 15px;
    }
}


/* BRANDING P3 SMART SOLUTIONS */
.p3-logo-text { font-family: 'Outfit', sans-serif !important; font-weight: 800 !important; letter-spacing: 0.5px; }
.p3-gradient-blue { 
    background: linear-gradient(135deg, #00C6FF 0%, #0056FF 100%) !important; 
    -webkit-background-clip: text !important; 
    -webkit-text-fill-color: transparent !important; 
    background-clip: text !important; 
    display: inline !important; 
}
.p3-gradient-silver { 
    background: #E2E8F0 !important; 
    -webkit-background-clip: text !important; 
    -webkit-text-fill-color: transparent !important; 
    background-clip: text !important; 
    display: inline !important; 
}

/* Static Tilt & Floating Cards */
.mockup-wrapper {
    transform: rotateY(-3deg) rotateX(1deg) rotateZ(0deg) !important;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes floatAnim1 {
    0%, 100% { translate: 0px 0px; }
    50% { translate: 0px -15px; }
}
@keyframes floatAnim2 {
    0%, 100% { translate: 0px 0px; }
    50% { translate: 0px -20px; }
}
@keyframes floatAnim3 {
    0%, 100% { translate: 0px 0px; }
    50% { translate: 0px -12px; }
}

.status-seal.seal-1 { animation: floatAnim1 4s ease-in-out infinite !important; }
.status-seal.seal-2 { animation: floatAnim2 4.5s ease-in-out 0.5s infinite !important; }
.status-seal.seal-3 { animation: floatAnim3 3.5s ease-in-out 1s infinite !important; }

.status-seal:hover {
    animation-play-state: paused !important;
    cursor: pointer;
}




/* Stack float buttons vertically */
.whatsapp-float {
    bottom: 24px !important;
    right: 24px !important;
    z-index: 999 !important;
}

.back-to-top {
    bottom: 100px !important; 
    right: 32px !important; /* Centered relative to a typical 60px WA button */
    z-index: 998 !important;
}

