:root {
    --bg-dark: #050505;
    --bg-surface: #0a0a0c;
    --bg-card: rgba(20, 20, 25, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-color: #f59e0b; /* Amber/Orange for industrial feel */
    --accent-glow: rgba(245, 158, 11, 0.3);
    --blue-glow: rgba(56, 189, 248, 0.15);
    
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.02);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Fades from a semi-transparent 40% black over the image to a full black background further down */
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.4) 0%, var(--bg-dark) 90%), url('bg.jpg') center/cover no-repeat;
    z-index: -10;
    pointer-events: none;
}

/* Custom Cursor Glow */
#cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--blue-glow) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

/* Typography Utility */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient.accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Utilities */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-bounce);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
    background: #fbbf24;
}

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

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

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 12px 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: var(--bg-dark); /* Não deixa transparente para esconder o fundo da logo */
    border-bottom: 1px solid var(--glass-border);
}
.navbar.scrolled {
    padding: 6px 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(12px);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}
.logo-text { color: var(--text-primary); }
.logo-dot { color: var(--accent-color); font-size: 2rem; }

.logo {
    display: flex;
    align-items: center;
    background-color: transparent;
    mix-blend-mode: lighten;
}

.nav-logo {
    height: 85px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: lighten; /* Força agressivamente o preto a ficar invisível */
    background-color: transparent;
    transition: var(--transition-bounce);
}
.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-smooth);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}
.mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-dark);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}
.mobile-link {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 160px 24px 80px;
    display: flex;
    align-items: center;
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    z-index: 2;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}
.hero-bg-shapes .shape-1 {
    width: 400px; height: 400px;
    background: rgba(245, 158, 11, 0.2);
    top: -100px; right: 10%;
}
.hero-bg-shapes .shape-2 {
    width: 500px; height: 500px;
    background: rgba(56, 189, 248, 0.1);
    bottom: -100px; left: -100px;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-secondary);
}
.hero-badge i { color: var(--accent-color); }

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.trust-indicators {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent-color);
}

/* Section Globals */
section {
    padding: 100px 24px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.section-kicker {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.section-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Markets Grid */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.market-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transform-style: preserve-3d;
    transition: var(--transition-bounce);
}
.market-card:hover {
    border-color: var(--glass-border-hover);
    background: rgba(30, 30, 35, 0.8);
}
.card-inner {
    transform: translateZ(50px);
    pointer-events: none;
}
.card-icon-wrapper {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}
.market-card:hover .card-icon-wrapper {
    color: var(--accent-color);
    border-color: var(--accent-glow);
    box-shadow: 0 0 20px var(--accent-glow);
}
.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 8px;
}
.card-desc {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    pointer-events: auto;
    font-family: var(--font-heading);
}

.card-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: -1;
}

/* Portfolio Carousel Section */
.portfolio {
    padding-top: 80px;
}
.carousel-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    padding: 0 48px;
}
.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 20px 0;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
}
@media (min-width: 768px) {
    .carousel-slide { flex: 0 0 calc(50% - 12px); }
}
@media (min-width: 1024px) {
    .carousel-slide { flex: 0 0 calc(33.333% - 12px); }
}
.slide-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.placeholder-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-size: 1.2rem;
    gap: 12px;
}
.placeholder-img i { font-size: 3rem; color: var(--accent-color); opacity: 0.5; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.carousel-btn:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }
@media (max-width: 768px) {
    .carousel-container { padding: 0 16px; }
    .carousel-btn { display: none; }
}

/* About Section */
.about {
    position: relative;
}
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-image {
    position: relative;
    border-radius: 24px;
    height: 600px;
    background: url('about.jpg') center/cover no-repeat;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    transform-style: preserve-3d;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.about-image::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.2) 60%, rgba(5,5,5,0.5) 100%);
    z-index: 0;
}
.abstract-shape-1 {
    width: 250px; height: 250px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    position: absolute;
    transform: translateZ(80px) rotateX(20deg);
    opacity: 0.2;
}
.abstract-shape-2 {
    width: 300px; height: 300px;
    border-radius: 50%;
    border: 1px dashed var(--text-secondary);
    position: absolute;
    transform: translateZ(40px) rotateY(30deg);
    opacity: 0.3;
}
.experience-badge {
    position: absolute;
    bottom: -20px; right: -20px;
    background: var(--bg-dark);
    z-index: 10;
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 16px;
    transform: translateZ(100px);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.experience-badge .number {
    display: block;
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

.about-p {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}
.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.feature-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}
.feature-text h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.feature-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Solutions CTA */
.solutions.pb-large {
    padding-bottom: 140px;
}
.cta-banner {
    padding: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(20,20,25,0.8) 0%, rgba(30,30,40,0.6) 100%);
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content:'';
    position: absolute; top:0; left:0; right:0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
}
.cta-banner-content {
    max-width: 600px;
    position: relative; z-index: 2;
}
.cta-banner-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.2;
}
.cta-banner-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}
.cta-3d-element {
    font-size: 120px;
    filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.2));
    animation: float 6s ease-in-out infinite, rotateSlow 20s linear infinite;
}

/* Footer */
.footer {
    background: #020202;
    border-top: 1px solid var(--glass-border);
    padding: 80px 24px 0;
    position: relative;
    z-index: 10;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    max-width: 1280px;
    margin: 0 auto 64px;
}
.footer-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 300px;
}
.social-links {
    display: flex;
    gap: 16px;
}
.social-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.social-icon:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-3px);
}
.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}
.footer-links, .footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}
.footer-contact li {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-contact i {
    color: var(--accent-color);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.9rem;
    max-width: 1280px;
    margin: 0 auto;
}

/* FAB */
.floating-fab {
    position: fixed;
    bottom: 32px; right: 32px;
    width: 64px; height: 64px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    z-index: 900;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transform-style: preserve-3d;
    transition: var(--transition-bounce);
}
.floating-fab::before {
    content:'';
    position: absolute; inset: -5px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: ripple 2s infinite ease-out;
}

/* Animations & Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes ripple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Responsive */
@media (max-width: 992px) {
    .about-container, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 3rem; }
    .nav-links, .nav-btn { display: none; }
    .menu-toggle { display: block; }
}
@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }
    .cta-3d-element { display: none; }
    .btn-lg { width: 100%; }
    .hero-cta { flex-direction: column; }
    .hero { padding-top: 120px; }
    .footer-bottom { flex-direction: column; align-items: center; gap: 16px; text-align: center; }
    
    /* Resolução Massiva de Responsividade */
    .hero-title { font-size: 2.3rem; line-height: 1.2; }
    .markets-grid { grid-template-columns: 1fr; }
    .about-image { height: 350px; }
    .section-title { font-size: 1.8rem; }
    section { padding: 80px 20px; }
    .hero-subtitle { font-size: 1rem; }
    /* Ajuste para não quebrar limite lateral em dispositivos muito pequenos (320px) */
    .nav-container { padding: 0 16px; }
    .logo { font-size: 1.2rem; }
}
