/* Local Fonts */
@font-face {
    font-family: 'Outfit';
    src: url('./Fontes/Outfit-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('./Fontes/Outfit-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('./Fontes/Outfit-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('./Fontes/Outfit-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('./Fontes/Outfit-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('./Fontes/Outfit-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('./Fontes/SpaceMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('./Fontes/SpaceMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
    </style>
    
    <style>
/* Skip to content link for accessibility */

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

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    width: 100%;
}

:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #3385ff;
    --secondary: #00d4ff;
    --dark: #0a0e27;
    --dark-alt: #151b3d;
    --gray: #6b7694;
    --light: #f8f9fa;
    --accent: #7c3aed;
    --success: #10b981;
    --warning: #f59e0b;
    color-scheme: light dark;
}

/* Forçar fundo claro nos cards de parceiros independente do dark mode do browser */
.partner-card {
    color-scheme: light !important;
    forced-color-adjust: none;
    background-color: white !important;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    z-index: 10002;
    transition: width 0.1s ease, opacity 0.3s ease;
    opacity: 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

header.scrolled {
    background: rgba(10, 14, 39, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.275rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40.8px;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
}

/* Logo branco no topo da página */
.logo img.header-logo-white {
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
}

/* Logo colorido quando scroll */
header.scrolled .logo img.header-logo-white {
    -webkit-filter: none;
    filter: none;
}

.logo:hover img {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 2.125rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
    width: 100%;
}

nav a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

nav a:hover {
    color: var(--primary);
}

.cta-button {
    background: var(--primary);
    color: white !important;
    padding: 0.6375rem 1.275rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.4);
    background: var(--primary-dark);
}

.cta-button::after {
    display: none;
}

header.scrolled .cta-button {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.25);
}

header.scrolled .cta-button:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.35);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.mobile-menu-btn i {
    transition: transform 0.3s ease;
}

.mobile-menu-btn[aria-expanded="true"] i {
    transform: rotate(90deg);
}

header.scrolled .mobile-menu-btn {
    color: var(--dark);
}

/* Hero Section */
.hero {
    min-height: 50vh;
    padding: 6rem 0 2.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e27 0%, #151b3d 50%, #1a2351 100%);
}

/* Animated Background */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.shape:nth-child(3) {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: 10%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, 50px) rotate(90deg); }
    50% { transform: translate(0, 100px) rotate(180deg); }
    75% { transform: translate(-50px, 50px) rotate(270deg); }
}

/* Grid Background */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out 0.2s both;
}

@media (min-width: 769px) {
    .hero-badge {
        padding: 0.85rem 2.5rem;
        font-size: 1.1rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
        border-width: 2px;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    padding-bottom: 0.1em;
    color: #ffffff;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 3rem;
    color: #cbd5e0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.3);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Tech Illustration */
.tech-illustration {
    margin-top: 5rem;
    position: relative;
    height: 340px;
    animation: fadeInUp 1s ease-out 1s both;
}

.terminal-window {
    background: rgba(10, 14, 39, 0.8);
    border-radius: 12px;
    padding: 1rem;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    position: relative;
}

.terminal-title-hero {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #94a3b8;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-content {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: #00ff88;
}

.terminal-line {
    margin-bottom: 0.5rem;
    opacity: 0;
}

.terminal-line.typing {
    opacity: 1;
}

.terminal-line.show {
    opacity: 1;
    animation: fadeInTerminal 0.3s ease-out forwards;
}

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

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #00ff88;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.prompt { color: var(--secondary); }
.command { color: #ffffff; }
.success { color: var(--success); }

/* Services Section */
section {
    padding: 6rem 2rem;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Background das seções sem classe de background própria */
#servicos {
    background: #ffffff;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                 rgba(0, 102, 255, 0.05) 0%, 
                 transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover::after {
    opacity: 1;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: #cbd5e0;
    font-weight: 300;
}

/* Code Demo Section */
.demo-section {
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(148, 163, 184, 0.015) 10px,
        rgba(148, 163, 184, 0.015) 20px
    );
    pointer-events: none;
}

.terminals-container {
    display: grid;
    grid-template-columns: 1fr 600px;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.demo-content {
    max-width: 550px;
}

.demo-content p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.demo-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.demo-content p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.terminal-stack {
    position: relative;
    height: 650px;
    width: 100%;
}

.terminal-card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: absolute;
    width: 480px;
}

.terminal-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    z-index: 10 !important;
}

.terminal-card:nth-child(1) {
    top: 0;
    left: -80px;
    z-index: 1;
}

.terminal-card:nth-child(2) {
    top: 220px;
    right: -20px;
    z-index: 2;
}

.terminal-card:nth-child(3) {
    bottom: 0;
    right: 40px;
    z-index: 3;
}

.demo-terminal-header {
    background: #0f172a;
    padding: 0.5rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-terminal-dots {
    display: flex;
    gap: 0.4rem;
}

.demo-terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.demo-dot-red { background: #ff5f56; }
.demo-dot-yellow { background: #ffbd2e; }
.demo-dot-green { background: #27c93f; }

.demo-terminal-title {
    color: #cbd5e0;
    font-size: 0.7rem;
    font-family: 'Space Mono', monospace;
    margin-left: 0.3rem;
    font-weight: 600;
}

.demo-terminal-body {
    padding: 1rem 1.2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #f1f5f9 !important;
    overflow: visible;
    min-height: 140px;
    max-height: none;
    display: block;
    visibility: visible;
}

.demo-terminal-line {
    display: block !important;
    margin-bottom: 0.25rem;
    color: #cbd5e0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.demo-cmd-prompt { color: #06b6d4 !important; font-weight: 700; }
.demo-cmd-keyword { color: #3b82f6 !important; font-weight: 600; }
.demo-cmd-string { color: #22c55e !important; font-weight: 500; }
.demo-cmd-success { color: #10b981 !important; font-weight: 700; }
.demo-cmd-info { color: #e0e7ff !important; }
.demo-cmd-warning { color: #fbbf24 !important; font-weight: 600; }

/* Customers Carousel */
.customers-section {
    background: white;
    padding: 6rem 0;
    width: 100%;
    overflow: hidden;
    border: none;
    outline: none;
    box-shadow: none;
}

.customers-section .section-container {
    padding: 0 2rem;
}

.carousel-container {
    margin-top: 3rem;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    user-select: none;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    width: fit-content;
    padding: 1.5rem 2rem;
}

.customer-card {
    flex-shrink: 0;
    width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.customer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.customer-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.customer-card:hover img {
    transform: scale(1.15);
}



/* Cases Section */
.cases-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    padding: 5rem 0;
    margin-top: -2rem;
    width: 100%;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.cases-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 102, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 204, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Cases Preview Section */
.cases-preview-section {
    position: relative;
    z-index: 1;
}

.cases-preview-title {
    font-size: 2.75rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    text-align: center;
    color: var(--dark);
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.cases-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.case-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease;
    z-index: 10;
}

.case-nav-prev { left: 8px; }
.case-nav-next { right: 8px; }

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

.case-nav-btn svg {
    transition: stroke 0.3s ease;
}

.case-nav-btn:hover svg {
    stroke: white;
}

.cases-carousel-container {
    width: auto;
    margin: 0 64px;
    overflow: hidden;
    position: relative;
    cursor: grab;
    padding: 0.5rem 0;
    touch-action: pan-y;
}

.cases-carousel-container.dragging {
    cursor: grabbing;
    user-select: none;
}

.cases-carousel-track {
    display: flex;
    gap: 2rem;
    will-change: transform;
}

.case-card {
    flex-shrink: 0;
    min-width: 0;
    box-sizing: border-box;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    user-select: none;
}

.case-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    border-radius: 16px 16px 0 0;
}

.case-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 102, 255, 0.2);
    background: white;
}

.case-card:hover::before {
    opacity: 1;
}

.case-card-content {
    position: relative;
    z-index: 1;
}

.case-card-content h4 {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}


.case-card-logo {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    display: block;
}

.case-card-content p {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.case-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 204, 255, 0.1));
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.cases-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.cases-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.cases-dot:hover {
    background: #93c5fd;
}

.cases-dot.active {
    background: var(--primary);
    transform: scale(1.35);
}

.cases-view-more {
    text-align: center;
    margin-top: 2rem;
}

.cases-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.cases-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.cases-cta-button svg {
    transition: transform 0.3s ease;
}

.cases-cta-button:hover svg {
    transform: translateX(5px);
}

/* Responsivo */        @media (max-width: 768px) {
    .cases-carousel-wrapper {
        padding: 0 1rem;
    }

    .cases-carousel-wrapper .case-nav-btn {
        display: none;
    }

    .case-card {
        flex: 0 0 100%;
        min-width: 0;
        width: 100%;
        padding: 1.25rem;
    }

    .cases-carousel-track {
        gap: 0;
    }

    .case-card-logo {
        max-width: 140px;
        max-height: 60px;
        margin-bottom: 1rem;
    }

    .case-card-content h4 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .case-card-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .cases-preview-title {
        font-size: 1.75rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Partners Section */
.partners-section {
    background: #f8f9fa;
    padding: 6rem 2rem;
    width: 100%;
    border: none;
    outline: none;
    box-shadow: none;
    color-scheme: light;
    forced-color-adjust: none;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    color-scheme: light;
}

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

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

.partner-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    height: 110px;
    position: relative;
    overflow: visible;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 16px;
    border: 2px solid var(--primary);
    clip-path: polygon(0% 0, 0% 0, 0% 100%, 0% 100%);
    transition: clip-path 0.25s ease-out;
    pointer-events: none;
}

.partner-card:hover::before {
    clip-path: polygon(0% 0, 100% 0, 100% 100%, 0% 100%);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.partner-card img {
    max-width: 80%;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.partner-card:hover img {
    transform: scale(1.1);
}

/* Logos com proporções menores ganham destaque extra */
.partner-card--large img {
    max-height: 72px;
    max-width: 90%;
}

/* CTA Section */
.contact-section {
    overflow-x: hidden;
    background: white;
    padding: 6rem 2rem;
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(300px, 30%) 1fr;
    gap: 4rem;
    margin-top: 4rem;
    max-width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.5rem;
}

.contact-details h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--gray);
    line-height: 1.7;
}

.contact-details a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary);
}

.map-container {
    width: 100%;
    max-width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 1.84rem 2rem 0.92rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.footer-brand img {
    filter: brightness(0) invert(1);
    height: 60px;
    width: auto;
    max-width: 180px;
    display: block;
    margin-top: 24px;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

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

.footer-links li {
    color: #94a3b8;
    padding: 0.5rem 0;
}

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

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

.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.footer-contact p {
    color: #94a3b8;
    padding: 0.5rem 0;
    margin: 0;
}

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

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #64748b;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Seções com background próprio não devem ficar invisíveis durante reveal */
section.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

section.reveal > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.reveal.active > * {
    opacity: 1;
    transform: translateY(0);
}

/* GPU acceleration for heavy animations */
.floating-shapes .shape,
.service-card,
.stat-item,
.terminal-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal,
    section.reveal > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .terminals-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .demo-content {
        max-width: 100%;
    }

    .terminal-stack {
        display: none; /* Esconde terminais em mobile */
    }
    
    .demo-content {
        text-align: center;
    }

    .terminal-card {
        width: 90%;
    }

    .terminal-card:nth-child(1) {
        left: 5%;
    }

    .terminal-card:nth-child(2) {
        right: 5%;
    }

    .terminal-card:nth-child(3) {
        right: 10%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(10px);
        padding: 1.5rem 1.5rem 3rem 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    nav.mobile-active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    nav a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: background 0.3s;
    }
    
    nav a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
        color: #ffffff;
    }
    
    .hero p {
        /* Texto mais claro para mobile */
        color: #e2e8f0;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
    }
    
    .stat-number {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .stat-label {
        font-size: 0.9rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-links li {
        padding: 0.25rem 0;
    }

    .footer-links h4,
    .footer-contact h4 {
        margin-bottom: 0.75rem;
    }

    footer {
        padding: 3rem 0 1.5rem;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   MELHORIAS: INLINE STYLES → CSS (#7)
   =================================== */

/* Ícones inline (hero badge, CTA buttons) */
.icon-inline {
    display: inline-block;
    vertical-align: middle;
}

.icon-mr {
    margin-right: 8px;
}

/* Stats section títulos (antes eram inline style) */
.stats-section .stats-title {
    color: white !important;
}

.stats-section .stats-subtitle {
    color: #cbd5e0 !important;
}

/* Footer logo */
.footer-logo-img {
    height: 60px;
    width: auto;
    max-width: 180px;
    display: block;
    margin-top: -8px;
}

/* ===================================
   MELHORIA #5: GOOGLE MAPS FACADE
   =================================== */

.map-facade {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.map-facade::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
}



.map-facade-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    z-index: 1;
}

.map-facade-content svg {
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.map-facade-content p {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.map-facade-content span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ===================================
   NOSCRIPT WARNING
   =================================== */
.noscript-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #f59e0b;
    color: #1a1a1a;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.noscript-warning svg {
    flex-shrink: 0;
    color: #92400e;
}

/* ============================================
   DARK MODE FORÇADO PELO BROWSER
   Corrige problemas visuais sem alterar o
   tema padrão do site.
============================================ */
@media (prefers-color-scheme: dark) {

    /* Hero: forçar cor do título no dark mode */
    .hero h1 {
        color: #ffffff;
    }

    /* Hero: garantir cor do subtítulo e badge */
    .hero p {
        color: #cbd5e0 !important;
    }

    .hero-badge {
        color: var(--secondary) !important;
        background: rgba(0, 204, 255, 0.1) !important;
        border-color: rgba(0, 204, 255, 0.3) !important;
    }

    /* Botões de navegação dos cases: visíveis no dark mode */
    .case-nav-btn {
        background: var(--primary) !important;
        border-color: var(--primary) !important;
        color: white !important;
    }

    .case-nav-btn svg {
        stroke: white !important;
    }

    /* Parceiros: forçar fundo branco nos cards para logos não ficarem sem fundo */
    .partner-card {
        background: white !important;
        border-color: #e2e8f0 !important;
        color-scheme: light;
    }

    /* Garantir que logos não sejam invertidos */
    .partner-card img {
        filter: none !important;
        mix-blend-mode: normal !important;
    }

    /* Cases: forçar fundo branco nos cards */
    .case-card {
        background: white !important;
        border-color: #e2e8f0 !important;
        color-scheme: light;
        forced-color-adjust: none;
    }

    /* Logos jpeg com fundo branco: não aplicar filtro, apenas garantir que não sejam invertidos */
    .case-card-logo img {
        filter: none !important;
    }

    .case-card-content h4 {
        color: var(--dark) !important;
    }

    .case-card-content p {
        color: var(--gray) !important;
    }
}
