:root {
    --bg-black: #000000;
    --text-main: #f8f9fa;
    --text-muted: #a1a1aa;
    --accent-blue: #0ea5e9;
    --accent-glow: rgba(14, 165, 233, 0.4);
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --section-padding: 15rem;
    --section-padding-mobile: 6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Bottom-most layer */
    pointer-events: none;
    opacity: 0.5;
}

/* Ensure all sections allow the background to be seen */
.snap-container,
.normal-scroll-container,
.snap-section,
.normal-section,
.product-hero,
.solutions-overview,
.cases-v-section,
.testimonials-section,
.about-section,
.contact-section {
    background: transparent !important;
}

/* Typography */
h1,
h2,
h3,
.product-badge,
.logo {
    font-family: var(--font-heading);
}

h1.headline {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.headline .highlight {
    background: linear-gradient(135deg, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 650px;
    margin-bottom: 2rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-submit {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #fff;
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.glow-effect {
    position: relative;
    transition: transform 0.3s ease;
}

.glow-effect:hover {
    transform: scale(1.05);
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffffff, #666666, #ffffff);
    z-index: -1;
    border-radius: 50px;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
    opacity: 0.5;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.main-header.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.section-icon {
    height: 36px;
    width: auto;
    object-fit: contain;
    margin-right: 12px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.btn-contact {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: #fff;
    color: #000;
}

/* Scroll Architecture & Animations */
.snap-container {
    scroll-behavior: smooth;
    position: relative;
    z-index: 10;
}

.snap-section {
    min-height: 70vh; /* Reduced from 100vh to allow smoother flow */
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: var(--section-padding) 0;
}

/* Base animation classes */
.scroll-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.scroll-anim.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Javascript triggered data-animate classes */
[data-animate="reveal-up"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

[data-animate="reveal-in"] {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.is-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Fade-in pure CSS animation */
.fade-in {
    opacity: 0;
    animation: fadeInAnim 1s ease forwards;
}
@keyframes fadeInAnim {
    to { opacity: 1; }
}

/* Delay helpers for transitions and animations */
.delay-1 { transition-delay: 0.1s; animation-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; animation-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; animation-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; animation-delay: 0.4s; }

/* Product Hero Layouts */
.flex-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Changed to start for sticky behavior */
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 5%;
    width: 100%;
}

.flex-hero.reverse-layout {
    flex-direction: row-reverse;
}

/* Live Preview Section */
.live-preview-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 5%;
}

.live-preview-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.live-preview-iframe {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    background-color: rgba(255, 255, 255, 0.02);
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 650px;
    z-index: 10;
    position: sticky;
    top: 20vh; /* Magic of sticky scrolling */
    background: rgba(10, 10, 12, 0.6);
    padding: 3rem;
    border-radius: 32px;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Client Trust Bar Hero */
.client-trust-bar {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    animation: fadeInUp 1s forwards 0.4s;
    opacity: 0;
}

.client-trust-bar span {
    font-size: 0.65rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.trust-logos img {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.45;
    transition: all 0.3s ease;
}

.trust-logos img:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.trust-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    opacity: 0.45;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .client-trust-bar {
        margin-top: 2.5rem;
        align-items: center;
    }
    .trust-logos {
        justify-content: center;
        gap: 1.5rem;
    }
    .trust-logos img { height: 18px; }
    .trust-text { font-size: 0.9rem; }
}

.hero-media {
    flex: 1;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-media {
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 90vh;
    /* Fica tela inteira ao lado do texto */
}

.canvas-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Crucial to crop zoomed contents */
}

.canvas-wrapper.seamless-black {
    background-color: #000;
    mix-blend-mode: screen;
    /* Helps blend black backgrounds of jpegs into pure black */
}

canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

canvas.loaded {
    opacity: 1;
}

/* Crops out generator watermarks (like Veo) on the edges but keeps the vertical intact */
.canvas-crop {
    transform: scale(1.01);
    /* Menos zoom, apenas 1% */
    transform-origin: center center;
}

.product-hero canvas {
    /* Diminui a saturação e iguala com a coloração dark da página */
    filter: saturate(0.2) brightness(0.6) contrast(1.1);
    object-position: right center;
    /* Mantém a ação do vídeo à direita para as páginas de produto */
}

/* Traz os blocos de texto para a frente dos vídeos com card transparente */
.product-hero {
    position: relative;
    justify-content: flex-start;
    min-height: 100vh;
}

.product-hero .hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    margin: 0;
}

.product-hero .hero-content {
    background: rgba(0, 0, 0, 0.65);
    /* Card mais escuro para garantir leitura na frente do vídeo */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.product-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.benefits {
    list-style: none;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.benefits li {
    position: relative;
    margin-bottom: 0.8rem;
    color: #e4e4e7;
    font-size: 1.05rem;
}

/* Top Hero Specific Optimization */
.hero-top {
    padding-top: 12rem;
    padding-bottom: 8rem;
    position: relative;
    background-color: #000; /* Deep black foundation */
}

.hero-top .hero-content {
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 1rem 2rem;
    max-width: 900px;
    flex: 1.5; /* Increased from 1 to give text more room */
    min-width: 650px; /* Ensure 3-line layout at 4rem font-size */
}

.hero-top h1.headline {
    font-size: clamp(3rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-top .hero-media {
    flex: 1.5; /* Balanced with content to prevent layout squeeze */
    height: 100vh;
    overflow: visible;
}

/* AI HUB Orbital System */
.ai-hub-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

.hub-container {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.hub-core {
    position: relative;
    width: 200px;
    height: 200px;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.core-inner {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, #2a2a2a, #0a0a0a, #000);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 0 80px rgba(0,0,0,1), 
        inset 0 0 40px rgba(139, 92, 246, 0.4);
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
}

.voice-orb {
    position: relative;
    width: 60%;
    height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.voice-orb-inner {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle at 35% 35%, #fff 0%, #a855f7 40%, #5b21b6 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 5;
    animation: orbPulse 2s infinite ease-in-out;
}

.voice-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    z-index: 1;
    animation: voiceRipple 3s infinite ease-out;
}

.wave-2 { animation-delay: 1s; }
.wave-3 { animation-delay: 2s; }

@keyframes voiceRipple {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(3.5); opacity: 0; }
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.15); filter: brightness(1.2); box-shadow: 0 0 50px rgba(139, 92, 246, 1); }
}

/* Interaction Bubble Styling */
.hub-message {
    position: absolute;
    bottom: -100px; /* Positioned below the sphere */
    left: 50%;
    transform: translateX(-50%);
    width: clamp(250px, 15vw, 320px);
    z-index: 20;
    pointer-events: none;
}

.message-bubble {
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.6), 
        0 0 30px rgba(139, 92, 246, 0.15);
    position: relative;
    animation: floatMessage 4s infinite ease-in-out;
}

@keyframes floatMessage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.message-bubble::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid rgba(139, 92, 246, 0.3);
}

.message-bubble p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #fff;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    letter-spacing: -0.2px;
}

.message-typing {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
    justify-content: center;
}

.message-typing span {
    width: 5px;
    height: 5px;
    background: #a855f7;
    border-radius: 50%;
    animation: hubTyping 1.4s infinite ease-in-out both;
    opacity: 0.5;
}

.message-typing span:nth-child(2) { animation-delay: 0.2s; }
.message-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes hubTyping {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
    40% { transform: scale(1.1); opacity: 1; }
}

.sphere-glint {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    animation: corePulse 8s infinite alternate ease-in-out;
}

.core-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: corePulse 4s infinite alternate ease-in-out;
}

@keyframes corePulse {
    from { opacity: 0.2; transform: scale(0.85); }
    to { opacity: 0.6; transform: scale(1.1); }
}

.hub-orbits {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
}

.orbit .dot {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px #8b5cf6, 0 0 40px #3b82f6;
    transform: translateX(-50%);
}

.ring-1 { width: 340px; height: 340px; border-style: solid; opacity: 0.12; animation: rotateHub 25s linear infinite; }
.ring-2 { width: 440px; height: 440px; border-style: dashed; opacity: 0.18; animation: rotateHub 40s linear infinite reverse; }
.ring-3 { width: 540px; height: 540px; border-style: solid; opacity: 0.08; animation: rotateHub 65s linear infinite; }
.ring-4 { width: 640px; height: 640px; border-style: dotted; opacity: 0.05; animation: rotateHub 90s linear infinite reverse; }
.ring-5 { width: 740px; height: 740px; border-style: solid; opacity: 0.03; animation: rotateHub 120s linear infinite; }
.ring-6 { width: 840px; height: 840px; border-style: dashed; opacity: 0.02; animation: rotateHub 150s linear infinite reverse; }

@keyframes rotateHub {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.node-system {
    position: absolute;
    inset: 0;
    animation: rotateHub 35s linear infinite;
}

.hub-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--r));
}

.node-glass {
    /* Counter-rotate to keep labels horizontal */
    animation: counterRotate 35s linear infinite;
    background: rgba(15, 15, 18, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.node-glass:hover {
    background: rgba(25, 25, 30, 0.6);
    transform: scale(1.15) translateY(-5px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.3);
}

.node-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.node-label {
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.node-label small {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #a855f7;
    font-weight: 800;
    margin-bottom: 2px;
}

.node-label strong {
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: -0.01em;
}

@keyframes counterRotate {
    from { transform: rotate(calc(-1 * var(--a))) rotate(0deg); }
    to { transform: rotate(calc(-1 * var(--a))) rotate(-360deg); }
}

.hub-container:hover .node-system,
.hub-container:hover .node-glass {
    animation-play-state: paused;
}

.content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-top p {
    margin: 0 0 2.5rem 0;
    font-size: 1.25rem;
}

.ambient-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(30, 30, 30, 1) 0%, rgba(0, 0, 0, 1) 70%);
    z-index: 1;
}

/* Normal Scroll Section Layouts */
.normal-scroll-container {
    background-color: var(--bg-black);
    position: relative;
    z-index: 20;
    /* ensures it sits above canvas on scroll */
}

/* Solutions Section (2x2 Grid inside Snap) */
.solutions-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.solutions-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.solutions-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50; /* Ensure it stays above the grid even when scrolling */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.solutions-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.solutions-nav-left { left: 0; }
.solutions-nav-right { right: 0; }

.solutions-grid {
    display: flex;
    gap: 24px;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2rem 5vw;
    scroll-behavior: smooth;
}
.solutions-grid::-webkit-scrollbar { display: none; }

.module-card {
    padding: 2.5rem;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
    min-width: 340px;
    max-width: 400px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.normal-section {
    padding: 12rem 2rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    margin-bottom: 2rem;
}

.centered-text {
    text-align: center;
}

.section-subtitle {
    margin: 0 auto 4rem;
    text-align: center;
}

/* Flow Minimalist Cards */
.glass-card {
    background: rgba(15, 15, 18, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.about-photo {
    width: 100%;
    max-width: 450px; /* Slightly larger for better impact */
    height: auto;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
}

.metric .label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Cases de Sucesso - Sticky Showcase */
.cases-v-section {
    padding: var(--section-padding) 0;
    overflow: visible;
}

.section-header-compact {
    margin-bottom: 5rem;
    text-align: center;
}

.section-header-compact .section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.section-header-compact .section-subtitle {
    font-size: 1.25rem;
    color: #888;
    max-width: 700px;
    margin: 0 auto !important;
    line-height: 1.6;
}

/* Interactive Vertical Scroll Timeline Sidebar */
.cases-v-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-left: -180px; /* Aggressive shift to the left to clear space for the right timeline */
}

.cases-timeline-wrapper {
    position: absolute;
    right: -240px;
    top: 0;
    bottom: 0;
    width: 250px;
    z-index: 100;
    pointer-events: none;
}

.timeline-nodes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-node {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.3;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    pointer-events: auto;
}

.timeline-node.active {
    opacity: 1;
}

.node-pill {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline-node.active .node-pill {
    width: 50px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.node-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .cases-timeline-wrapper {
        display: none; /* Hide if not enough sidebar space */
    }
}


.case-v-card {
    position: sticky;
    top: 100px; /* Offset for header */
    width: 100%;
    min-height: 600px;
    margin-bottom: 40vh; /* creates space for the next one to overlap/stack */
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.9);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case-v-card:last-child {
    margin-bottom: 0; /* Prevents timeline from staying isolated at the end */
}

.case-v-inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* Pull media to the left to clear room for the sidebar */
    height: 100%;
    min-height: 600px;
}

/* Case Content (Left) */
.case-v-content {
    background: #0f0f13;
    padding: 3.5rem; /* Reduced from 5rem to gain more horizontal space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.case-client-info {
    max-width: 440px;
}

.case-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    display: block;
}

.case-logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2rem;
    font-family: var(--font-display);
    letter-spacing: -1px;
    text-transform: uppercase;
}

.case-title {
    font-size: 2.8rem;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 700;
}

.case-desc {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 1.15rem;
}

.case-index {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255,255,255,0.04);
}

/* Case Visual (Right) */
.case-v-visual {
    background: #050507;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    position: relative;
}

/* Case 1: WhatsApp Chat Redesign */
.wa-case-chat {
    width: 100%;
    max-width: 400px;
    background: rgba(11, 20, 26, 0.8);
    backdrop-filter: blur(25px);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    animation: wa-float 6s infinite ease-in-out;
}

@keyframes wa-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.wa-case-header {
    background: rgba(32, 44, 51, 0.5);
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.wa-case-avatar {
    width: 48px;
    height: 48px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.wa-case-body {
    padding: 30px;
    background-image: none;
    background-color: transparent;
}

.wa-m {
    max-width: 85%;
    padding: 18px 24px;
    border-radius: 30px;
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.wa-bot { 
    background: linear-gradient(135deg, #1e293b, #0f172a); 
    color: #fff; 
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.wa-user { 
    background: #005c4b; 
    color: #fff; 
    align-self: flex-end; 
    border-bottom-right-radius: 4px;
}

.wa-conf {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    padding: 20px;
}

/* Case 2: B.I. Mockup */
.bi-mockup {
    width: 440px;
    height: 300px;
    background: rgba(255,255,255,0.02);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.bi-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    height: 160px;
}

.bi-bar {
    flex: 1;
    background: rgba(168, 85, 247, 0.4);
    border-radius: 10px 10px 0 0;
    height: 0;
    transition: height 1.8s cubic-bezier(0.3, 1, 0.3, 1);
}

.bi-bar.blue { background: linear-gradient(0deg, #3b82f6 0%, #60a5fa 100%); }

.case-v-card.in-view .bi-bar { height: var(--h); }

.bi-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

.bi-metric-dot span { font-size: 0.8rem; color: #888; display: block; margin-bottom: 4px; }
.bi-metric-dot strong { color: #fff; font-size: 1.3rem; }

/* Case 3: Ecoforest Dashboard */
.eco-dashboard {
    width: 440px;
    background: #111116;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.eco-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.status-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
}
.status-badge.green { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }

.eco-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.eco-node {
    background: rgba(255,255,255,0.04);
    padding: 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #cbd5e1;
}
.eco-node strong { color: #fff; float: right; font-size: 1.1rem; }

.eco-map-mock {
    height: 120px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/e/ec/World_map_blank_without_borders.svg') center;
    background-size: cover;
    opacity: 0.08;
    margin-top: 2rem;
    filter: invert(1);
    border-radius: 12px;
}

.case-v-visual.immersive-visual {
    background-size: cover;
    background-position: center;
    padding: 0;
    overflow: hidden;
}

.case-v-visual.immersive-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.95) 100%);
    z-index: 1;
}

.case-v-visual.immersive-visual > * {
    position: relative;
    z-index: 2;
}

.glass-effect {
    background: rgba(15, 15, 20, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.case-metric-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a855f7;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.case-metric-highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.case-metric-highlight:hover::before {
    transform: translateX(100%);
}
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: #e0ccff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.case-metric-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.case-v-card:hover .case-metric-highlight::before {
    left: 100%;
    transition: 0.8s;
}

/* Mobile adaptation */
@media (max-width: 1024px) {
    .case-v-inner { grid-template-columns: 1fr; height: auto; }
    .case-v-card { position: relative; top: 0; margin-bottom: 3rem; min-height: auto; }
    .case-v-content { padding: 3rem 2rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .case-title { font-size: 2rem; }
    .case-v-visual { padding: 3rem 1rem; min-height: 400px; }
    .wa-case-chat, .bi-mockup, .eco-dashboard { width: 100%; max-width: 400px; }
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.client-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    /* Fixed height container to keep logos uniform */
}

.client-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.client-logo {
    max-height: 100%;
    max-width: 140px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Make logos white to fit the dark theme. Remove this line if the logos are already white/colorful and should keep their original colors. */
}

.client-x {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
}

.tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.featured-case>div::-webkit-scrollbar {
    width: 6px;
}

.featured-case>div::-webkit-scrollbar-track {
    background: transparent;
}

.featured-case>div::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.result-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 1rem;
    margin: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--section-padding) 0;
}

.testimonials-grid {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.testimonials-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scroll-loop 40s linear infinite;
    padding: 2rem 0;
}

.testimonials-track:hover {
    animation-play-state: running !important; /* Ensure it never stops as requested */
}

@keyframes scroll-loop {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    padding: 2.5rem;
    min-width: 320px;
    max-width: 380px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    font-style: italic;
    color: #e4e4e7;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-family: serif;
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -15px;
    color: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.author-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.2rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.placeholder-photo {
    /* Base background for initials if no photo provided */
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

.author-role {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 0.2rem;
}

/* Contact Form */
.contact-section {
    padding: var(--section-padding) 0;
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.contact-info {
    padding-right: 2rem;
}

.contact-methods {
    margin-top: 3rem;
}

.method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #e4e4e7;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e4e4e7;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Specific styling for the select dropdown */
.form-group select {
    background: #000;
    /* Solid black as requested */
    color: #fff;
    cursor: pointer;
    appearance: none;
    /* Removes default OS arrow */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
}

.form-group select option {
    background: #000;
    color: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: #000;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #e4e4e7;
    transform: translateY(-2px);
}

/* Nexus 3D Ecosystem Visualization */
.nexus-ecosystem-viz {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.eco-core {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.core-inner {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #8b5cf6 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 5;
    animation: corePulse 3s infinite ease-in-out;
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 50px rgba(139, 92, 246, 0.6); }
    50% { transform: scale(1.08); box-shadow: 0 0 80px rgba(59, 130, 246, 0.8); }
}

.core-rings .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    animation: ringExpand 4s infinite linear;
}

.ring:nth-child(1) { width: 120px; height: 120px; animation-delay: 0s; }
.ring:nth-child(2) { width: 120px; height: 120px; animation-delay: 1.3s; }
.ring:nth-child(3) { width: 120px; height: 120px; animation-delay: 2.6s; }

@keyframes ringExpand {
    0% { width: 100px; height: 100px; opacity: 0.8; }
    100% { width: 250px; height: 250px; opacity: 0; }
}

.core-status-tag {
    position: absolute;
    bottom: -40px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.eco-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 15;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: nexusOrbit 15s infinite ease-in-out;
}

@keyframes nexusOrbit {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(10px, -15px); }
    66% { transform: translate(-15px, 10px); }
}

/* Specific Positions with reveal states */
.node-tl { top: 10%; left: 8%; animation-delay: 0s; }
.node-tr { top: 10%; right: 8%; animation-delay: -3.7s; }
.node-bl { bottom: 10%; left: 8%; animation-delay: -7.5s; }
.node-br { bottom: 10%; right: 8%; animation-delay: -11.2s; }

/* Entry Animation Logic for Nodes */
.eco-node {
    opacity: 0;
    transform: scale(0.3) rotate(-30deg);
}

.nexus-ecosystem-viz.is-visible .eco-node {
    opacity: 1;
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1.2);
}

.nexus-ecosystem-viz.is-visible .node-tl { transform: scale(1) rotate(0deg); transition-delay: 0.2s; }
.nexus-ecosystem-viz.is-visible .node-tr { transform: scale(1) rotate(0deg); transition-delay: 0.4s; }
.nexus-ecosystem-viz.is-visible .node-bl { transform: scale(1) rotate(0deg); transition-delay: 0.6s; }
.nexus-ecosystem-viz.is-visible .node-br { transform: scale(1) rotate(0deg); transition-delay: 0.8s; }

.eco-card {
    padding: 1.25rem;
    width: 220px; /* Increased to accommodate text better */
    text-align: center;
    border-radius: 16px;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.eco-card p {
    max-height: 0;
    opacity: 0;
    margin: 0;
    font-size: 0.75rem;
    color: #aaa;
    line-height: 1.5;
    transition: all 0.4s ease;
}

.eco-node:hover .eco-card p {
    max-height: 400px; /* Increased to prevent text cutoffs */
    opacity: 1;
    margin-top: 12px;
}

.eco-node:hover .eco-card {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(20, 20, 30, 0.95);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.eco-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0.75rem;
}

.eco-card strong {
    display: block;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.small-tag {
    font-size: 0.65rem;
    color: #8b5cf6;
    text-transform: uppercase;
    font-weight: 700;
}

.neural-thread {
    position: absolute;
    width: 140px;
    height: 80px;
    pointer-events: none;
    z-index: -1;
}

.node-tl .neural-thread { top: 60%; left: 60%; transform: rotate(0deg); }
.node-tr .neural-thread { top: 60%; right: 60%; transform: rotate(0deg); }
.node-bl .neural-thread { bottom: 60%; left: 60%; transform: rotate(0deg); }
.node-br .neural-thread { bottom: 60%; right: 60%; transform: rotate(0deg); }

.neural-thread path {
    stroke-dashoffset: 100;
    animation: threadFlow 3s infinite linear;
}

@keyframes threadFlow {
    to { stroke-dashoffset: 0; }
}

/* Reusable Platform Section Highlights */
.nexus-platform .highlight {
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* ============================================================
   SCROLL REVEAL SYSTEM (Premium UX/UI)
   ============================================================ */

/* Base hidden state for declarative animations */
[data-animate] {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Logic: Transform offsets BEFORE being visible */
[data-animate="reveal-up"] { transform: translateY(40px); }
[data-animate="reveal-in"] { transform: translateY(0); } /* Just a fade */
[data-animate="reveal-left"] { transform: translateX(-40px); }
[data-animate="reveal-right"] { transform: translateX(40px); }
[data-animate="reveal-scale"] { transform: scale(0.95); }

/* The Active State (Triggered via JS Intersection Observer) */
.is-visible[data-animate] {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

/* Staggered Grid/List Item Logic */
.stagger-item {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Parent container (with [data-animate]) triggers children */
.is-visible .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* GPU Optimization Fallback */
@supports not (will-change: transform) {
    [data-animate] { transition: opacity 0.6s ease-out; transform: none !important; }
}

/* ACCESSIBILITY: Tier-1 Standards (Reduced Motion Support) */
@media (prefers-reduced-motion: reduce) {
    [data-animate], .stagger-item {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 0;
    }
    .is-visible, .is-visible .stagger-item {
        opacity: 1 !important;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .flex-hero {
        gap: 2rem;
        padding: 0 2rem;
    }

    .hero-content {
        padding-top: 2rem;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cases-grid,
    .solutions-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .main-header {
        padding: 1.5rem 2rem;
    }

    /* Standardized Mobile Spacing */
    .snap-section, 
    .hero-top, 
    .solutions-overview, 
    .cases-v-section, 
    .testimonials-section, 
    .contact-section {
        padding-top: var(--section-padding-mobile) !important;
        padding-bottom: var(--section-padding-mobile) !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .btn-contact {
        display: none;
    }

    /* Prevent header crowding on mobile */
    .snap-section {
        height: auto;
        min-height: 100vh;
        padding: 6rem 0;
    }

    .snap-container {
        scroll-snap-type: none;
        overflow-y: auto;
        height: auto;
    }

    /* Mobile Heroes: Animation first, Text second */
    .flex-hero {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 6rem;
        padding-bottom: 2rem;
    }

    /* Ensure all layouts wrap the same way on mobile regardless of desktop zigzag */
    .reverse-layout {
        flex-direction: column;
    }

    .hero-media {
        position: relative !important;
        /* Desativa o absolute em mobile */
        order: -1;
        /* Always push animation to the top */
        height: 45vh !important;
        min-height: 400px;
        width: 100vw;
        left: -5vw; /* Compensa o padding da flex-hero para usar tela inteira */
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    /* Scale dynamic interactive elements to fit mobile without breaking layouts */
    .hub-container {
        transform: scale(0.55);
        transform-origin: center center;
    }
    
    .nexus-ecosystem-viz {
        transform: scale(0.65);
        transform-origin: center center;
        width: 100%;
        height: 100%;
    }

    #personal .hero-media {
        order: -1;
        margin-top: 0;
        margin-bottom: 2rem;
        height: auto !important;
        min-height: auto !important;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible !important;
    }
    
    .whatsapp-container {
        transform: scale(0.65);
        transform-origin: top center;
        margin-bottom: -280px; /* Compensate for the scale 800 * 0.35 */
    }

    canvas {
        max-height: 40vh;
    }

    .hero-content {
        text-align: center;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .benefits li {
        text-align: left;
        display: inline-block;
        width: 100%;
    }

    .normal-section {
        padding: 4rem 1.5rem;
    }

    .glass-card,
    .module-card,
    .case-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .about-text,
    .infra-text,
    .contact-info {
        text-align: center;
    }

    .about-photo {
        max-width: 100%;
    }

    #live-nexus .live-preview-iframe {
        height: auto;
        aspect-ratio: 16/9;
        min-height: unset;
    }

    #live-quantico .live-preview-iframe {
        height: 500px;
        min-height: unset;
    }
}

.chat-media {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%;
}

/* WhatsApp Animation Container - Realistic style */
.whatsapp-container {
    width: 100%;
    max-width: 480px;
    height: 800px;
    background: #0b141a;
    border-radius: 36px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 8px solid #222;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 0 0 2px #111;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* WhatsApp Header */
.wa-header {
    background: #202c33;
    padding: 24px 16px 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.wa-header-back { color: #8696a0; display: flex; align-items: center; cursor: pointer; }
.wa-avatar { width: 44px; height: 44px; border-radius: 50%; background-color: #334155; display: flex; justify-content: center; align-items: center; }
.wa-contact-info { display: flex; flex-direction: column; }
.wa-contact-name { color: #e9edef; font-size: 1.1rem; font-weight: 500; font-family: var(--font-primary); }
.wa-contact-status { color: #8696a0; font-size: 0.85rem; font-family: var(--font-body); }

/* WhatsApp Chat Body */
.wa-chat-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: hidden;
    background: #0b141a;
    position: relative;
}
.wa-chat-body::before {
     content: ''; position: absolute; inset: 0;
     background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgb3BhY2l0eT0iMC4wNCI+PGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==');
     opacity: 0.4; z-index: 0; pointer-events: none;
}
.wa-chat-body::-webkit-scrollbar { display: none; }

/* WhatsApp Footer */
.wa-footer {
    background: #202c33;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}
.wa-icon { color: #8696a0; display: flex; justify-content:center; align-items:center; cursor: pointer; }
.wa-input-mock {
    flex: 1; background: #2a3942; border-radius: 24px;
    padding: 12px 16px; color: #8696a0; font-size: 1rem;
    font-family: var(--font-body);
}

.chat-message {
    display: none;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    z-index: 2;
}

.chat-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.chat-message.left {
    justify-content: flex-start;
}

.chat-message.right {
    justify-content: flex-end;
}

/* Hide Sender label to match 1-on-1 WA chat */
.sender-label {
    display: none;
}

.bubble {
    padding: 10px 14px 12px 14px;
    font-size: 1rem;
    font-family: var(--font-body);
    max-width: 290px;
    position: relative;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    border: none;
    backdrop-filter: none;
}

.chat-message.left .bubble {
    background: #202c33;
    color: #e9edef;
    border-radius: 12px;
    border-top-left-radius: 0;
}

.chat-message.right .bubble {
    background: #005c4b;
    color: #e9edef;
    border-radius: 12px;
    border-top-right-radius: 0;
}

.bubble .time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    float: right;
    margin-left: 12px;
    margin-top: 6px;
    font-weight: normal;
}

.audio-bubble {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 280px;
}

.play-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    padding-left: 3px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.chat-message.right .play-btn {
    background: #0ea5e9;
}

.chat-message.left .play-btn {
    background: rgba(255, 255, 255, 0.3);
}

.audio-wave {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
}

.wave-line {
    width: 3px;
    background: #a1a1aa;
    border-radius: 3px;
    animation: wave 1s infinite alternate ease-in-out;
}

.audio-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.audio-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.client-avatar { 
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" opacity="0.6" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>'); 
    background-color: rgba(255, 255, 255, 0.05);
}
.agent-avatar { background-image: url('assets/rhyan-foto.png'); background-color: transparent; }

.wave-line:nth-child(1) { height: 30%; animation-delay: 0.0s; }
.wave-line:nth-child(2) { height: 60%; animation-delay: 0.2s; }
.wave-line:nth-child(3) { height: 100%; animation-delay: 0.4s; }
.wave-line:nth-child(4) { height: 40%; animation-delay: 0.6s; }
.wave-line:nth-child(5) { height: 80%; animation-delay: 0.8s; }
.wave-line:nth-child(6) { height: 50%; animation-delay: 1.0s; }
.wave-line:nth-child(7) { height: 90%; animation-delay: 1.2s; }
.wave-line:nth-child(8) { height: 30%; animation-delay: 1.4s; }
.wave-line:nth-child(9) { height: 70%; animation-delay: 1.6s; }

@keyframes wave {
    0% { transform: scaleY(0.5); opacity: 0.5; }
    100% { transform: scaleY(1); opacity: 1; }
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 6px;
    align-items: center;
    justify-content: center;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Quantico App Animation Window */
.quantico-chat-media {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem;
    padding-right: 0;
    transform: translateX(5%);
    z-index: 10;
    width: 100%;
}

.quantico-app-window {
    width: 100%;
    max-width: 520px;
    background: #0f0f13;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: #18181c;
    padding: 12px 16px;
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mac-dots {
    display: flex;
    gap: 8px;
}
.mac-dots span {
    width: 12px; height: 12px; border-radius: 50%;
}
.mac-dots span:nth-child(1) { background: #ff5f56; }
.mac-dots span:nth-child(2) { background: #ffbd2e; }
.mac-dots span:nth-child(3) { background: #27c93f; }

.app-title-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.q-avatar {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}
.q-msg .q-avatar {
    background: transparent;
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    box-shadow: none;
}

.q-title-info h3 {
    margin: 0; font-size: 1.1rem; color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
}
.q-status {
    font-size: 0.85rem; color: #10b981;
    display: flex; align-items: center; gap: 6px;
    margin-top: 4px;
}
.green-dot {
    width: 8px; height: 8px; background: #10b981; border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.q-chat-area {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 480px;
    overflow-y: hidden;
}
.q-chat-area::-webkit-scrollbar { display: none; }

.q-msg {
    display: none;
    align-items: flex-end;
    gap: 12px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
}
.q-msg.visible {
    opacity: 1; transform: translateY(0);
}

.q-msg.left { align-self: flex-start; flex-direction: row; }
.q-msg.right { align-self: flex-end; flex-direction: row; }

.q-bubble {
    background: #1c1c21;
    padding: 16px 20px;
    border-radius: 16px;
    color: #e4e4e7;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 320px;
    border: 1px solid rgba(255,255,255,0.03);
}

.q-msg.left .q-bubble { border-top-left-radius: 4px; }
.q-msg.right .q-bubble { border-top-right-radius: 4px; background: #25252b; }

.u-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #8b5cf6; color: #fff;
    display: flex; justify-content: center; align-items: center;
    font-size: 0.8rem; font-weight: bold; flex-shrink: 0;
}

.q-success-bubble {
    max-width: 400px;
    background: #18181e;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.success-title {
    display: flex; align-items: center; gap: 8px;
    font-weight: 600; color: #fff; margin-bottom: 16px;
    font-size: 0.9rem;
}

.slides-preview {
    display: flex; gap: 12px; margin-bottom: 20px;
}

.slide-mock {
    width: 140px; height: 160px;
    background: #232329; border-radius: 8px;
    padding: 10px; display: flex; flex-direction: column;
    border: 1px solid rgba(255,255,255,0.05);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.slide-mock::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
    z-index: 1;
}

.slide-1 { background-image: url('slide-assets/slide-1.png'); }
.slide-2 { background-image: url('slide-assets/slide-%202.png'); }

.q-slide .slide-header { 
    font-size: 1.25rem; 
    color: #d8b4fe; 
    font-weight: 800; 
    margin-bottom: 0.8rem; 
    position: relative; 
    z-index: 5; 
}
.q-slide .slide-body { 
    font-size: 1.1rem; 
    color: #fff; 
    line-height: 1.5; 
    position: relative; 
    z-index: 5; 
    margin-top: auto; 
    font-weight: 500;
}

.q-actions {
    display: flex; gap: 12px;
}
.q-btn-edit {
    flex: 1; outline: none; padding: 12px; border-radius: 8px;
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.15);
    display: flex; justify-content: center; align-items: center; gap: 6px;
    cursor: pointer; font-size: 0.9rem; font-family: var(--font-body);
}
.q-btn-edit:hover { background: rgba(255,255,255,0.05); }

.q-btn-schedule {
    flex: 1; outline: none; padding: 12px; border-radius: 8px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6); color: #fff; border: none;
    display: flex; justify-content: center; align-items: center; gap: 6px;
    cursor: pointer; font-size: 0.9rem; font-weight: 600; font-family: var(--font-body);
}
.q-btn-schedule:hover { filter: brightness(1.1); }

/* Showcase de Resultados 3D */
.showcase-section {
    padding: 8rem 0;
}

.showcase-3d-container {
    position: relative;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    margin-top: 5rem;
}

/* Adjustments for Showcase inside Heroes */
.quantico-showcase-media {
    justify-content: flex-end !important;
    padding-right: 5%;
}

.showcase-3d-container.hero-version {
    margin-top: 0; /* Align closer to text center */
    width: 100%;
    /* Push slightly right of its own column center if needed */
    transform: translateX(50px);
}

/* Specific override for Quantico to keep media in its own column */
#quantico.product-hero {
    justify-content: space-between;
    align-items: center;
    padding-top: 100px; /* offset for header */
}

#quantico.product-hero .hero-media {
    position: relative;
    width: auto;
    height: 700px;
    flex: 1.3;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    margin-right: -100px; /* Offset for the 3D tilt overflow */
}

#quantico.product-hero .hero-content {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
}

.phone-mockup {
    position: absolute;
    width: 280px;
    height: 560px;
    background: #000;
    border-radius: 44px;
    padding: 10px;
    border: 5px solid #1a1a1a;
    box-shadow: 
        0 40px 100px -20px rgba(0,0,0,0.9),
        inset 0 0 1px 1px rgba(255,255,255,0.1);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Navigation Arrows for Phones */
.ph-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 60;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
}

.ph-nav.prev { left: -50px; }
.ph-nav.next { right: -50px; }

.phone-mockup:hover .ph-nav {
    opacity: 1;
}

.ph-nav:hover {
    background: var(--primary-purple);
    transform: translateY(-50%) scale(1.1);
}

.phone-frame {
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.q-carousel {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.q-slide {
    min-width: 100%;
    height: 100%;
    background-size: contain; /* 100% visibility as requested */
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000;
    position: relative;
}

/* Instagram Mockup styles */
.ig-feed {
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ig-header {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ig-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.ig-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ig-user-info strong {
    font-size: 0.75rem;
    color: #fff;
    display: block;
}

.ig-user-info span {
    font-size: 0.65rem;
    color: #8e8e8e;
}

.ig-more {
    color: #fff;
    font-size: 1rem;
    cursor: default;
}

/* Slide Container in IG format */
.ig-feed .q-carousel {
    flex: 0 0 auto;
    width: 100%;
    height: 350px; /* Portrait ratio for mock */
    background: #000;
}

.ig-footer {
    flex: 1;
    padding: 12px;
    text-align: left;
}

.ig-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ig-main-actions {
    display: flex;
    gap: 12px;
}

.ig-main-actions svg, .ig-save svg {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ig-main-actions svg:hover { transform: scale(1.1); }

.ig-likes {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
}

.ig-caption {
    font-size: 0.75rem;
    color: #fff;
    line-height: 1.4;
}

.ig-caption strong { margin-right: 5px; }


.showcase-item {
    opacity: 0;
    /* Initial state: stacked and back in Z-space */
    transform: rotateY(0) translate3d(0, 50px, -400px);
}

.showcase-item.in-view {
    /* Fan out: separation and tilt */
    opacity: 1;
    transform: 
        rotateY(var(--rot-ini)) 
        translate3d(var(--tx-ini), var(--ty-ini), 0);
}

.phone-mockup:hover {
    transform: rotateY(0) rotateX(0) translate3d(0, 0, 100px) scale(1.1) !important;
    z-index: 50;
    box-shadow: 0 50px 150px -20px rgba(0,0,0,1);
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 120%;
    transform: translate(-50%, -50%);
    z-index: -2;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.phone-mockup:hover .glow-bg {
    opacity: 0.4;
}

.glow-bg.purple { background: radial-gradient(circle, #a855f7 0%, transparent 65%); }
.glow-bg.blue { background: radial-gradient(circle, #3b82f6 0%, transparent 65%); }

@media (max-width: 768px) {
    .showcase-3d-container {
        height: 600px;
        flex-direction: column;
        gap: 3rem;
        perspective: none;
    }
    .phone-mockup {
        position: relative;
        transform: none !important;
        width: 240px;
        height: 480px;
        margin: 0 auto;
    }
}

/* Main Footer Styles */
.main-footer {
    padding: 6rem 0 3rem;
    background: #050505;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 30;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.social-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.footer-link-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link-item:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer-link-item svg {
    color: #3b82f6;
    transition: transform 0.3s ease;
}

.footer-link-item:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer-bottom p {
    color: #555;
    font-size: 0.85rem;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .social-links-row {
        gap: 1.5rem;
    }
}

/* ============================================================
   DESIGN POLISH & FINISHING TOUCHES (Premium UX)
   ============================================================ */

/* Standardized Section Headers */
.section-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-align: center;
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
    text-align: center;
}

/* Multi-layered Soft Glass Shadows */
.glass-card {
    background: rgba(15, 15, 20, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 20px 25px -5px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced Module Card Interactive States */
.module-card {
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(25, 25, 35, 0.6);
}

/* Button & Call-to-Action Polish */
.btn-primary {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.25), 0 15px 30px rgba(0, 0, 0, 0.4);
    background: #fff;
    color: #000;
}

/* Global Typography Cleanup */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }
    
    :root {
        --section-padding-mobile: 4rem;
        --h1-mobile: 2.2rem;
    }
    
    .solutions-grid {
        flex-direction: column !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        padding: 0 1rem !important;
        gap: 1.5rem !important;
    }
    .module-card {
        min-width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
    }

    .hero-top h1.headline {
        font-size: 2.1rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.2 !important;
    }

    .hub-container {
        transform: scale(0.4) !important; /* Scaled down more for mobile */
        margin-bottom: -100px; /* Pull text up */
    }

    .hub-node span {
        font-size: 1.2rem !important;
        background: rgba(10, 10, 10, 0.8) !important;
        padding: 4px 10px !important;
        border-radius: 8px !important;
    }

    .node-system { transform: scale(0.55); transform-origin: center; }

    /* ====== N E X U S   N O D E S ====== */
    .nexus-ecosystem-viz {
        transform: none !important;
        height: auto !important;
        margin-top: 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }
    .nexus-ecosystem-viz .eco-core {
        display: none !important;
    }
    .nexus-ecosystem-viz .neural-thread {
        display: none !important;
    }
    .nexus-ecosystem-viz .eco-node {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        animation: none !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    .eco-card {
        width: 100% !important;
        max-width: 340px !important;
        margin: 0 auto !important;
    }
    .eco-card p {
        max-height: 500px !important;
        opacity: 1 !important;
        margin-top: 12px !important;
    }
    #nexus .hero-media {
        height: auto !important;
        min-height: auto !important;
        margin: 2rem 0 !important;
    }

    /* ====== P E R S O N A L (WHATSAPP) ====== */
    #personal.flex-hero {
        flex-direction: column !important;
        padding-top: 5rem !important;
    }
    #personal .hero-media {
        order: -1 !important; /* Put mockup ABOVE text */
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        margin: 0 0 -220px 0 !important; /* Pull text up because of scale */
        position: relative !important;
        left: 0 !important;
        overflow: visible !important;
    }
    .whatsapp-container {
        transform: scale(0.55) !important;
        transform-origin: top center !important;
        max-width: 480px !important;
        margin: 0 auto !important;
    }
    
    /* ====== Q U A N T I C O (3 PHONES Carousel) ====== */
    #quantico.flex-hero {
        flex-direction: column !important;
        padding-top: 5rem !important;
    }
    #quantico .hero-content {
        order: 2 !important;
        padding: 1.5rem !important;
        z-index: 20 !important;
        margin-top: 1rem !important; /* Reduced from 2rem */
        text-align: center !important;
    }
    #quantico .hero-media {
        order: 1 !important; /* Put phones ABOVE text */
        position: relative !important;
        width: 100vw !important;
        left: -5vw !important; /* Reset padding offset */
        height: 520px !important;
        min-height: auto !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        overflow: visible !important;
    }
    
    .showcase-3d-container {
        /* Horizontal Swipe Carousel */
        height: 520px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        transform: none !important;
        perspective: none !important;
        gap: 2rem !important; /* Increased gap */
        padding: 0 10vw !important; /* More breathing room on sides */
        margin: 0 !important;
        overflow-x: scroll !important; /* Force scroll */
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        width: 100% !important;
    }
    
    .showcase-3d-container::-webkit-scrollbar {
        display: none !important;
    }
    
    .showcase-3d-container.hero-version {
        transform: none !important;
    }

    .phone-mockup {
        width: 280px !important; /* Slightly larger but controlled */
        height: 540px !important;
        position: relative !important;
        margin: 0 !important;
        flex: 0 0 85% !important; /* Ensure 1 is centered, next is visible */
        scroll-snap-align: center !important;
        transform: none !important;
    }
    .phone-mockup.in-view {
        transform: none !important;
    }
    
    /* M I S C */
    .client-trust-bar {
        margin-top: 1.5rem !important;
    }
    .main-header {
        padding: 1rem 1.5rem !important;
    }
    .header-logo {
        height: 28px !important; /* Smarter mobile logo */
        margin-left: -5px;
    }

    /* Testimonials Mobile Optimization */
    .testimonials-track {
        gap: 16px !important;
    }
    .testimonial-card {
        min-width: 280px !important;
        max-width: 300px !important;
        padding: 1.5rem !important;
    }
    .testimonial-text {
        font-size: 0.95rem !important;
    }

    /* Cases Metric Scaling */
    .case-metric-highlight {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
    }
    .result-number {
        font-size: 2rem !important;
    }
}

/* ============================================================
   FLOATING AI AGENT (BOTTOM LEFT)
   ============================================================ */
.ai-chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-chat-toggle:hover {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(255, 255, 255, 0.2);
}

.ai-chat-toggle svg {
    height: 28px;
}

@media (max-width: 768px) {
    .ai-chat-toggle {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}

/* Compact Floating Chat Window */
/* WhatsApp Styled Floating Chat Window */
.hero-inline-ai.floating-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 400px; /* Standard WhatsApp Desktop-ish width */
    height: 600px;
    margin: 0;
    z-index: 2000; /* Higher than toggle */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #0b141a; /* WA Dark Bg */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-inline-ai.floating-chat.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Animations */
.fade-in {
    animation: modernFadeUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes modernFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Metallic Liquid Simulation (Bottom Overlay) */
.liquid-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%; 
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(148, 163, 184, 0.15) 100%);
    z-index: 1; 
    pointer-events: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wave {
    position: absolute;
    width: 280%;
    height: 300%;
    top: -270%;
    left: -90%;
    border-radius: 38% 42% 40% 45%;
    z-index: 1;
    background: rgba(255, 255, 255, 0.06); 
    animation: drift 15s infinite linear;
    pointer-events: none;
}

#wave2 {
    animation: drift 22s infinite linear reverse;
    background: rgba(255, 255, 255, 0.03);
    opacity: 0.5;
    top: -275%;
}

@keyframes drift {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.inline-ai-header {
    padding: 1rem 1.5rem;
    background: #202c33; /* WhatsApp Header Dark */
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-close:hover {
    color: white;
    transform: scale(1.1);
}

.inline-ai-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.inline-ai-title strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
}

.inline-ai-title span {
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.inline-ai-title span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.4; }
}

.inline-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Tighter WhatsApp-like spacing */
    position: relative;
    z-index: 50;
    background-color: #0b141a; /* WhatsApp Default Dark Background */
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px; /* Subtle doodle-like pattern */
}

.ai-msg {
    max-width: 85%;
    padding: 0.6rem 0.9rem; /* WhatsApp padding */
    border-radius: 8px; /* More rectangular like WA */
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    z-index: 60;
    margin-bottom: 2px;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13); /* Classic WA bubble shadow */
}

.bot-msg {
    background: #202c33; /* Bot Gray-Blue */
    color: #e9edef;
    align-self: flex-start;
    border-top-left-radius: 0; /* Tail effect */
}

.user-msg {
    background: #005c4b; /* User Green */
    color: #e9edef;
    align-self: flex-end;
    border-top-right-radius: 0; /* Tail effect */
}

.inline-ai-input {
    padding: 0.75rem 1rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    background: #202c33; /* WhatsApp Input Row */
    align-items: center;
    z-index: 100;
}

.inline-ai-input input {
    flex: 1;
    height: 42px;
    border-radius: 8px; /* Classic WA input */
    background: #2a3942;
    border: none;
    color: #e9edef;
    padding: 0 1rem;
    font-size: 0.95rem;
    outline: none;
}

.inline-ai-input button {
    width: 44px;
    height: 44px;
    border-radius: 50%; /* Rounded send btn */
    background: #00a884; /* WhatsApp Green */
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.inline-ai-input button:hover {
    transform: scale(1.1);
    background: #008f6f;
}

.inline-ai-input button:active {
    transform: scale(0.9);
}

.inline-ai-input input:focus {
    background: #2a3942;
    border: none;
}



.typing-indicator-chat span {
    width: 5px;
    height: 5px;
    background: #94a3b8;
    border-radius: 50%;
    margin: 0 2px;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Custom Scrollbar for Chat */
.inline-ai-messages::-webkit-scrollbar {
    width: 3px;
}
.inline-ai-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .hero-inline-ai.floating-chat {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 85px;
        height: 70vh;
    }
    .solutions-nav { display: none; }
}
/* Premium Quantico Motion (18s Cycle) */
.q-premium-card {
    position: relative;
    overflow: hidden;
}

/* Base Keyframe for Master Timeline */
@keyframes q-stage-loading {
    0%, 16% { opacity: 1; transform: translateY(0); visibility: visible; }
    18%, 100% { opacity: 0; transform: translateY(-10px); visibility: hidden; }
}

@keyframes q-icon-morph {
    0%, 92% { opacity: 0; transform: scale(0.5) rotate(-180deg); visibility: hidden; }
    95%, 100% { opacity: 1; transform: scale(1) rotate(0); visibility: visible; }
}

@keyframes q-agent-reveal {
    0%, 92% { opacity: 1; transform: scale(1) translateY(0); visibility: visible; }
    95%, 100% { opacity: 0; transform: scale(0.8); visibility: hidden; }
}


@keyframes q-agent-pulse {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.4)); }
    50% { filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.7)); }
}

@keyframes q-welcome-reveal {
    0%, 25% { opacity: 0; transform: translateY(10px); }
    30%, 42% { opacity: 1; transform: translateY(0); }
    45%, 100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes q-menu-reveal {
    0%, 45% { opacity: 0; transform: translateY(30px); }
    50%, 68% { opacity: 1; transform: translateY(0); }
    72%, 100% { opacity: 0; transform: translateY(-30px); }
}

@keyframes q-item-glow {
    0%, 55% { border-color: rgba(255,255,255,0.08); box-shadow: none; }
    60%, 68% { border-color: #8b5cf6; box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); }
    72%, 100% { border-color: rgba(255,255,255,0.08); }
}

@keyframes q-report-reveal {
    0%, 72% { opacity: 0; visibility: hidden; }
    75%, 95% { opacity: 1; visibility: visible; }
    98%, 100% { opacity: 0; }
}

@keyframes q-report-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes q-insight-stagger {
    0%, 78% { opacity: 0; transform: translateY(10px); }
    82%, 100% { opacity: 1; transform: translateY(0); }
}

/* Assigned Classes */
.q-generic-icon { animation: q-icon-morph 18s infinite cubic-bezier(0.16, 1, 0.3, 1); }
.q-agent-bust { animation: q-agent-reveal 18s infinite cubic-bezier(0.16, 1, 0.3, 1); }
.q-agent-bust img { animation: q-agent-pulse 4s infinite ease-in-out; }

.q-st-loading { animation: q-stage-loading 18s infinite ease-in-out; }
.q-bar-fill { width: 0%; animation: q-bar-infinite 18s infinite linear; }
.q-bar-fill-delayed { width: 0%; animation: q-bar-infinite-delayed 18s infinite linear; }

@keyframes q-bar-infinite {
    0% { width: 0%; }
    14% { width: 100%; }
    16%, 100% { width: 100%; opacity: 0; }
}
@keyframes q-bar-infinite-delayed {
    0%, 2% { width: 0%; }
    16% { width: 100%; }
    18%, 100% { width: 100%; opacity: 0; }
}

.q-st-welcome { animation: q-welcome-reveal 18s infinite cubic-bezier(0.16, 1, 0.3, 1); }
.q-st-menu { animation: q-menu-reveal 18s infinite cubic-bezier(0.16, 1, 0.3, 1); }
.q-item-active { animation: q-item-glow 18s infinite ease-in-out; }

.q-st-report { animation: q-report-reveal 18s infinite ease-in-out; }
.q-st-report h5 { position: relative; overflow: hidden; }
.q-st-report h5::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
    animation: q-report-scan 2s infinite ease-in-out;
    animation-delay: 13.5s;
}

.q-report-item:nth-child(1) { animation: q-insight-stagger 18s infinite ease-out; animation-delay: 0s; }
.q-report-item:nth-child(2) { animation: q-insight-stagger 18s infinite ease-out; animation-delay: 0.5s; }
.q-report-item:nth-child(3) { animation: q-insight-stagger 18s infinite ease-out; animation-delay: 1s; }


/* Premium Nexus Motion (16s Cycle) */
@property --n-count-pct {
    syntax: '<integer>';
    initial-value: 0;
    inherits: false;
}

@property --n-count-num {
    syntax: '<integer>';
    initial-value: 0;
    inherits: false;
}

@keyframes n-counter-pct-anim {
    0%, 2% { --n-count-pct: 0; }
    18% { --n-count-pct: 92; }
    100% { --n-count-pct: 92; }
}

@keyframes n-counter-num-anim {
    0%, 2% { --n-count-num: 0; }
    18% { --n-count-num: 14; }
    100% { --n-count-num: 14; }
}

.n-counter-percent::after {
    counter-reset: pct var(--n-count-pct);
    content: counter(pct) "%";
    animation: n-counter-pct-anim 16s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.n-counter-num::after {
    counter-reset: num var(--n-count-num);
    content: counter(num);
    animation: n-counter-num-anim 16s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Master Stages */
@keyframes n-st-prospecting-anim {
    0%, 22% { opacity: 1; transform: translateY(0); visibility: visible; }
    25%, 100% { opacity: 0; transform: translateY(-20px); visibility: hidden; }
}

@keyframes n-st-output-anim {
    0%, 25% { opacity: 0; transform: translateY(40px); visibility: hidden; }
    30%, 92% { opacity: 1; transform: translateY(0); visibility: visible; }
    95%, 100% { opacity: 0; transform: translateY(-20px); visibility: hidden; }
}

@keyframes n-icon-bounce-anim {
    0%, 92% { opacity: 0; transform: scale(0.5) rotate(-180deg); visibility: hidden; }
    95%, 100% { opacity: 1; transform: scale(1.3) rotate(360deg); visibility: visible; }
}

@keyframes n-agent-reveal-anim {
    0%, 92% { opacity: 1; transform: scale(1) translateY(0); visibility: visible; }
    95%, 100% { opacity: 0; transform: scale(0.8); visibility: hidden; }
}


@keyframes n-agent-pulse-anim {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4)); }
    50% { filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.7)); }
}


@keyframes n-bar-match-anim {
    0%, 2% { width: 0%; }
    18% { width: 92%; }
    22% { width: 92%; filter: brightness(2); }
    25%, 100% { width: 92%; opacity: 0; }
}

@keyframes n-bar-active-anim {
    0%, 2% { width: 0%; }
    18% { width: 70%; } /* Representing 14 out of 20 or similar */
    22% { width: 70%; filter: brightness(2); }
    25%, 100% { width: 70%; opacity: 0; }
}

@keyframes n-dots-anim {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Classes */
.n-nexus-icon { animation: n-icon-bounce-anim 16s infinite cubic-bezier(0.34, 1.56, 0.64, 1); }
.n-agent-bust { animation: n-agent-reveal-anim 16s infinite cubic-bezier(0.16, 1, 0.3, 1); }
.n-agent-bust svg { animation: n-agent-pulse-anim 4s infinite ease-in-out; }

.n-st-prospecting { animation: n-st-prospecting-anim 16s infinite ease-in-out; }
.n-st-output { animation: n-st-output-anim 16s infinite cubic-bezier(0.16, 1, 0.3, 1); }

.n-bar-match { animation: n-bar-match-anim 16s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.n-bar-active { animation: n-bar-active-anim 16s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.n-dots { animation: n-dots-anim 1.5s infinite; }

.n-btn-primary { 
    position: relative;
    overflow: hidden;
}
.n-btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    animation: n-btn-shine 3s infinite;
}

@keyframes n-btn-shine {
    0% { left: -150%; }
    30%, 100% { left: 150%; }
}
