/* ==========================================================================
   Base & Variables
   ========================================================================== */
   :root {
    /* Colors */
    --bg-dark: #070313;
    --bg-dark-secondary: #0c0520;
    --bg-panel: rgba(22, 11, 41, 0.4);
    --primary-purple: #4a148c; /* fallback */
    --purple-light: #7b1fa2;
    --brand-lime: #b2ff05;
    --brand-lime-hover: #c4ff33;
    
    --text-main: #ffffff;
    --text-muted: #b3b0bc;
    
    --glass-border: rgba(255, 255, 255, 0.05);
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing & Layout */
    --container-max-width: 1200px;
    --section-spacing: 5rem;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
    
    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

.h1 { font-size: 3rem; font-family: var(--font-heading); font-weight: 700; line-height: 1.2;}

h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

.text-lime { color: var(--brand-lime) !important; }
.text-white { color: #ffffff !important; }
.text-sm { font-size: 0.875rem; color: var(--text-muted); }
.text-center { text-align: center; }

.text-gradient {
    background: linear-gradient(90deg, var(--brand-lime) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

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

.container-large {
    max-width: 1400px;
}

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

.section-heading {
    margin-bottom: 4rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
}
.section-heading.text-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(178, 255, 5, 0.1);
    color: var(--brand-lime);
    border-radius: var(--radius-full);
    border: 1px solid rgba(178, 255, 5, 0.2);
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1.5rem; }
.mb-lg { margin-bottom: 3rem; }
.overflow-hidden { overflow: hidden; }

/* ==========================================================================
   Glow & Background Effects
   ========================================================================== */
.has-bg-glow {
    position: relative;
}
.bg-glow-right {
    position: absolute;
    top: 50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123, 31, 162, 0.15) 0%, rgba(7, 3, 19, 0) 70%);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}
.bg-glow-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(123, 31, 162, 0.15) 0%, rgba(7, 3, 19, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

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

.glass-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-base);
}

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.hover-lift:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    font-family: var(--font-body);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--brand-lime);
    color: #000;
}

.btn-primary:hover {
    background: var(--brand-lime-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(178, 255, 5, 0.3);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

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

.logo-img {
    height: 40px; /* Adjust based on actual logo */
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 3rem; /* Aumentado de 2rem para 3rem */
    list-style: none;
    align-items: center;
}

.nav-links li {
    position: relative; /* important for dropdown */
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--brand-lime);
}

.nav-links li.dropdown a.active {
    color: var(--brand-lime);
}

/* Dropdown Menu Support */
.nav-links li.dropdown .dropdown-menu {
    position: absolute;
    top: 200%;
    left: 0;
    min-width: 260px;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    z-index: 1000;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.nav-links li.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%; /* Invisible bridge so hover doesn't break */
}

.nav-links li.dropdown:hover .dropdown-menu {
    top: 100%;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links li.dropdown .dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-links li.dropdown .dropdown-menu a:hover {
    color: var(--brand-lime);
    background: rgba(255, 255, 255, 0.03);
    padding-left: 2rem;
}

.nav-links li.dropdown > a i {
    transition: transform 0.3s ease;
}

.nav-links li.dropdown:hover > a i {
    transform: rotate(180deg);
}
/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* offset for nav */
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(123, 31, 162, 0.2) 0%, rgba(7, 3, 19, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.0rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.20rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

/* Hero Social Proof */
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #111;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: -15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 1;
}

.avatar:first-child { margin-left: 0; z-index: 3; }
.avatar:nth-child(2) { z-index: 2; border-color: rgba(178, 255, 5, 0.2); }

.avatar-img {
    height: 80%;
    max-width: 85%;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.9);
}

.avatar-img.keep-original-color {
    filter: none;
    height: 110%;
    max-width: 110%;
}

.social-proof-text {
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    line-height: 1.3;
}

.social-proof-text .highlight {
    color: var(--brand-lime);
    font-weight: 700;
    font-size: 1.25rem;
}

.social-proof-text .subtext {
    color: #fff;
    font-weight: 500;
}

/* Dynamic Words Logic */
.dynamic-word-wrapper {
    display: inline-block;
    min-width: 300px;
    vertical-align: bottom;
}

.dynamic-word {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--brand-lime);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Hero Visual Graphic (Abstract Dashboard element) */
.hero-visual {
    position: relative;
}

.visual-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(22, 11, 41, 0.6) 0%, rgba(13, 6, 26, 0.8) 100%);
    border: 1px solid rgba(255,255,255,0.08);
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.stat {
    margin-bottom: 1.5rem;
}
.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 100px;
    margin-top: 2rem;
}

.bar {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 4px 4px 0 0;
    transition: var(--transition-base);
}
.bar-1 { height: 40%; }
.bar-2 { height: 60%; }
.bar-3 { height: 45%; }
.bar-4 { height: 95%; }

.active-bar {
    background: var(--brand-lime);
    box-shadow: 0 0 20px rgba(178, 255, 5, 0.2);
}

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   Pain Points Section
   ========================================================================== */
.pain-points-section {
    padding-top: 1rem;
}
.hero {
    min-height: 90vh;
}
.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pain-points-section p {
    color: var(--text-muted);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition-base);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1;
}

/* Roaming Orb Behind Cards */
.roaming-orb {
    position: absolute;
    top: 50%;
    right: -10vw;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(162, 53, 255, 0.45) 0%, rgba(138, 43, 226, 0) 70%); /* Roxo mais vivo */
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    animation: roamOrbSweep 30s ease-in-out infinite alternate;
}

@keyframes roamOrbSweep {
    0%   { transform: translate(0, -50%) scale(1); opacity: 0.8; }
    50%  { transform: translate(-45vw, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-90vw, -50%) scale(1); opacity: 0.8; }
}

.services-grid, .section-heading {
    position: relative;
    z-index: 2;
}

.service-card:hover {
    background: rgba(30, 20, 50, 0.6);
    border-color: rgba(178, 255, 5, 0.3);
}

.service-icon {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--brand-lime);
    width: 44px;
    height: 44px;
}

.service-card p {
    color: var(--text-muted);
}

/* CTA interno de cada card de serviço */
.service-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    color: var(--brand-lime);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: gap 0.3s ease, opacity 0.3s ease;
    align-self: flex-start;
}
.service-cta-link:hover {
    gap: 0.75rem;
    opacity: 0.85;
}

/* Botão CTA geral abaixo dos cards */
.btn-services-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: transparent;
    border: 1px solid rgba(178, 255, 5, 0.4);
    color: var(--brand-lime);
    padding: 1rem 2.25rem;
    border-radius: 99px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(178, 255, 5, 0.08);
}
.btn-services-cta:hover {
    background: rgba(178, 255, 5, 0.08);
    border-color: rgba(178, 255, 5, 0.7);
    box-shadow: 0 0 30px rgba(178, 255, 5, 0.2);
    transform: translateY(-2px);
}

/* ==========================================================================
   Marquee Slider (Capsules)
   ========================================================================== */
.marquee-section {
    position: relative;
    overflow: hidden;
}
.marquee-track-wrapper {
    position: relative;
    width: 100vw;
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}
.marquee-track-row {
    display: flex;
    white-space: nowrap;
}
.marquee-content-container {
    display: flex;
    gap: 1.25rem;
    animation: scroll-marquee-pills 60s linear infinite;
    padding-right: 1.25rem;
    width: max-content;
}
.marquee-content-container.reverse {
    animation-direction: reverse;
    animation-duration: 70s; 
}

.marquee-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    color: rgba(255,255,255,0.4);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}
.marquee-pill:hover {
    color: var(--bg-dark);
    background: var(--brand-lime);
    border-color: var(--brand-lime);
    box-shadow: 0 0 15px rgba(178,255,5,0.3);
}
.marquee-pill i {
    width: 18px;
    height: 18px;
    color: rgba(255,255,255,0.3);
    transition: color 0.3s ease;
}
.marquee-pill:hover i {
    color: var(--bg-dark);
}

@keyframes scroll-marquee-pills {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* ==========================================================================
   Method Section (Timeline/Infographic)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, rgba(178,255,5,0.5) 0%, rgba(178,255,5,0) 100%);
    transform: translateX(-50%);
}

.timeline-step {
    position: relative;
    width: 50%;
    padding-right: 3rem;
    margin-bottom: 2rem;
}

.timeline-step.right {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 3rem;
}

.step-num {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 2px solid var(--brand-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    z-index: 2;
    color: var(--brand-lime);
}

.timeline-step.right .step-num {
    right: auto;
    left: -20px;
}

.timeline-step .glass-card {
    padding: 1.5rem;
}
.timeline-step .glass-card h4 {
    margin-bottom: 0.5rem;
}
.timeline-step .glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.border-glow {
    border-color: rgba(178, 255, 5, 0.4);
    box-shadow: 0 0 30px rgba(178, 255, 5, 0.1);
}

/* ==========================================================================
   Social Proof
   ========================================================================== */
/* Carousel */
.logo-carousel-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-carousel {
    display: inline-flex;
    animation: scroll 150s linear infinite;
}

.slide-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(min(1400px, 100vw - 3rem) / 5); /* Aparece umas ~5 logos por vez no container de 1400px */
    padding: 0 0.25rem;
    height: 135px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .slide-logo {
        width: calc((100vw - 3rem) / 3);
        height: 100px;
    }
}

@media (max-width: 480px) {
    .slide-logo {
        width: calc((100vw - 3rem) / 2);
        height: 80px;
    }
}

.company-logo-img {
    max-height: 105px;
    max-width: 95%;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.85);
    mix-blend-mode: normal;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.company-logo-img:hover {
    filter: brightness(0) invert(1) opacity(1) drop-shadow(0 0 15px rgba(178, 255, 5, 0.8));
    transform: scale(1.08);
}

.company-logo-img.keep-original-color {
    filter: grayscale(100%) brightness(1.5) contrast(1.1) opacity(0.85);
}
.company-logo-img.keep-original-color:hover {
    filter: grayscale(100%) brightness(1.8) contrast(1.1) opacity(1) drop-shadow(0 0 15px rgba(178, 255, 5, 0.8));
    transform: scale(1.08);
}

.company-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.company-placeholder:hover { opacity: 1; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls exactly half the width to repeat seamlessly if items are cloned properly */
}

/* Numbers Grid */
.numbers-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 5rem;
}

/* Testimonials */
.testimonials {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin: 1.5rem 0;
}
.stars {
    display: flex;
    gap: 0.25rem;
}
.stars i {
    width: 20px;
    height: 20px;
}
.stars .filled {
    fill: var(--brand-lime);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.author-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 0 2rem 0;
    background: #04010a;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}
.footer-logo {
    height: 94px;
    object-fit: contain;
    margin-bottom: 0px;
}
.footer-tagline {
    color: var(--text-muted);
    max-width: 300px;
}
.copyright {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.icon-inline {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-bottom: 2px;
}

/* ==========================================================================
   Animations & Reveal
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Floating WhatsApp Component */
.whatsapp-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whatsapp-popup {
    background: rgba(22, 11, 41, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(178, 255, 5, 0.2);
    color: var(--text-main);
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    white-space: nowrap;
}

.whatsapp-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.fab-whatsapp {
    width: 60px;
    height: 60px;
    background-color: var(--brand-lime);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(178, 255, 5, 0.7);
    animation: whatsapp-pulse 2s infinite;
    transition: transform 0.3s ease;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    animation: none;
}

.fab-whatsapp svg {
    width: 32px;
    height: 32px;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(178, 255, 5, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(178, 255, 5, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(178, 255, 5, 0); }
}

/* ==========================================================================
   Hamburger Menu Mobile
   ========================================================================== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 200;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Testimonials Slider
   ========================================================================== */
.testimonials-slider-container {
    position: relative;
    padding: 0 50px;
    margin: 0 auto;
}
.testimonials-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.testimonials-slider::-webkit-scrollbar { display: none; }

.testimonial-card {
    flex: 0 0 400px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
}

.testimonial-text-wrapper {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.testimonial-text-wrapper::-webkit-scrollbar { width: 4px; }
.testimonial-text-wrapper::-webkit-scrollbar-track { background: transparent; }
.testimonial-text-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}
.testimonial-text-content {
    font-size: 1.05rem;
    line-height: 1.6;
    font-style: normal;
    letter-spacing: 0.5px;
    color: #fff;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.slider-nav-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--brand-lime);
    border-color: var(--brand-lime);
}
.slider-prev { left: 0; }
.slider-next { right: 0; }

/* ==========================================================================
   Responsive — Tablet (≤992px)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions { justify-content: center; }
    .hero-title { font-size: 2.6rem; }
    .hero-social-proof { justify-content: center; }

    .timeline-line { left: 0; transform: none; }
    .timeline-step {
        width: 100%;
        padding-left: 2.5rem;
        padding-right: 0;
        margin-left: 0 !important;
    }
    .step-num { left: -20px !important; right: auto !important; }

    .numbers-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Responsive — Mobile (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
    :root { --section-spacing: 3.5rem; }

    .container { padding: 0 1.25rem; }

    /* --- Nav --- */
    .nav-toggle { display: flex; }
    .nav-cta { display: none; } /* esconde CTA na nav no mobile */

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(7, 3, 19, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 150;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-links.mobile-open {
        display: flex;
        opacity: 1;
    }
    .nav-links li { text-align: center; }
    .nav-links a { font-size: 1.25rem; color: var(--text-main); }
    .nav-links li.dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        padding: 0;
        min-width: auto;
        display: none; /* controlled separately */
    }

    /* --- Typography --- */
    .h1, .hero-title { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    .section-desc { font-size: 1rem; }

    /* --- Hero --- */
    .hero-container { gap: 2rem; }
    .hero-visual { display: none; } /* hide decorative visual on small screens */
    .hero-title { font-size: 2rem; line-height: 1.2; }
    .dynamic-word-wrapper { min-width: 0; display: block; }

    /* --- Buttons --- */
    .btn { padding: 0.7rem 1.2rem; font-size: 0.9rem; }
    .btn-large { padding: 0.85rem 1.5rem; font-size: 1rem; white-space: normal; }
    .hero-actions .btn { width: 100%; max-width: 340px; justify-content: center; }

    /* --- Services --- */
    .services-grid { grid-template-columns: 1fr; gap: 1rem; }
    .services-general-cta .btn { width: 100%; max-width: 360px; }

    /* --- Cards --- */
    .cards-grid { grid-template-columns: 1fr; }
    .glass-card { padding: 1.5rem; }
    .glass-panel { padding: 1.5rem; }

    /* --- Numbers --- */
    .numbers-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* --- Timeline --- */
    .timeline-step { padding-left: 2rem; }

    /* --- Testimonials --- */
    .testimonial-card { flex: 0 0 calc(100vw - 3rem); }
    .testimonials-slider-container { padding: 0 16px; }
    .slider-nav-btn { display: none; }

    /* --- Social proof --- */
    .hero-social-proof { flex-wrap: wrap; justify-content: center; }

    /* --- Footer --- */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }
    .brand, .footer-contact-block, .footer-navigation {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        min-width: 0 !important;
        flex: unset !important;
    }
    .footer-navigation { display: none; } /* esconde menu de nav no rodapé mobile para economizar espaço */
    .copyright {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .copyright p { text-align: center !important; width: 100%; min-width: 0 !important; }

    /* --- WhatsApp popup --- */
    .whatsapp-popup { display: none !important; }

    /* --- Glow effects --- */
    .bg-glow-right, .bg-glow-center, .hero-bg-glow { display: none; }
    .roaming-orb { display: none; }

    /* --- Section heading margin --- */
    .section-heading { margin-bottom: 2.5rem; }

    /* --- Case study --- */
    .case-card { padding: 2rem 1.25rem !important; }
    .case-metrics { flex-direction: column !important; gap: 1.5rem !important; }
    .metric-box { min-width: 0 !important; }
}

/* ==========================================================================
   Responsive — Small Mobile (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
    .h1, .hero-title { font-size: 1.8rem; }
    h2 { font-size: 1.55rem; }
    .hero-title br { display: none; }
    .portfolio-grid { grid-template-columns: 1fr !important; }
    .services-grid { grid-template-columns: 1fr; }
}

