/* Critical CSS - Mobile-First Above the fold optimization */
/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile-first performance optimization */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Prevent layout shifts */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile video optimization */
video[data-mobile-optimized] {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Font loading optimization (controlado via &display=swap no Google Fonts) */

/* Reduce motion for battery optimization */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Battery save mode optimizations */
.battery-save * {
    animation: none !important;
    transition: none !important;
}

.battery-save video {
    opacity: 0.25 !important;
}

.battery-save .hero-video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    z-index: 1;
}

/* Reduced motion class for low-end devices */
.reduced-motion * {
    animation-duration: 0.3s !important;
    transition-duration: 0.2s !important;
}

.reduced-motion .hero-animation::after {
    animation: none !important;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Compensa altura do header fixo */
}

/* Scroll suave personalizado para navegadores que suportam */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}

/* Scrollbar customizada para Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Variáveis CSS */
:root {
    --primary-color: #dc2626;
    --primary-hover: #b91c1c;
    --secondary-color: #ef4444;
    --accent-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --border-color: #2d2d2d;
    --gradient-primary: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --gradient-secondary: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header e Navegação */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo h1 {
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 1px;
}

.nav-logo span {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    display: block;
    width: 44px;
    height: 44px;
}

.logo-text {
    display: block;
    height: 44px;
    width: auto;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Botões */
.btn-primary, .btn-secondary, .btn-whatsapp {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* Botão estilo WhatsApp para inversão de cores no resultado do quiz */
.btn-whatsapp {
    background: #0a0a0a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    -webkit-appearance: none;
    appearance: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #ffffff;
}

.btn-whatsapp i { color: #ffffff; }

/* Ícone de contato (favicon preto) usado nos botões de "Entrar em contato" */
.icon-contact {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.25rem;
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
}

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-video-background {
    position: absolute;
    /* Overscan para evitar linhas de junção entre seções */
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -24px;
    z-index: -2;
}

.hero-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Evitar linhas pretas por gaps de pixel em alguns dispositivos */
    transform: translateZ(0);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Efeito glitch suave */
.hero-title.glitch-active {
    animation: glitchSuave 0.1s ease-in-out;
}

@keyframes glitchSuave {
    0% { transform: translateX(0); }
    20% { transform: translateX(-1px); }
    40% { transform: translateX(1px); }
    60% { transform: translateX(-0.5px); }
    80% { transform: translateX(0.5px); }
    100% { transform: translateX(0); }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-animation {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-clip: padding-box;
    transition: all 0.3s ease;
}

/* Proteções extras para Chrome evitar expansão lateral do terminal */
.chrome-browser .hero-animation { contain: layout paint; }
.chrome-browser .code-block { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.chrome-browser .code-line { white-space: normal; }

.hero-animation:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25),
        inset 0 2px 6px rgba(255, 255, 255, 0.15),
        inset 0 -2px 6px rgba(255, 255, 255, 0.08),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.hero-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 16px 16px 0 0;
}

.hero-animation::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.05) 75%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 18px;
    z-index: -1;
    opacity: 0.6;
    will-change: opacity, transform;
    animation: glowBorder 3s ease-in-out infinite alternate;
}

@keyframes glowBorder {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.01);
    }
}

/* Fallback para navegadores sem suporte a backdrop-filter */
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
    .hero-animation {
        background: rgba(255, 255, 255, 0.14);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.35),
            inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    }
}

/* Acessibilidade: reduzir animações para quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
    .hero-animation::after {
        animation: none;
        opacity: 0.45;
    }
}

.code-block {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-line {
    margin-bottom: 0.5rem;
}

.code-line.indent {
    margin-left: 1.5rem;
}

.code-keyword {
    color: #ff6b6b;
    font-weight: 600;
}

.code-variable {
    color: #4ecdc4;
}

.code-string {
    color: #ffe66d;
}

.code-function {
    color: #a8e6cf;
}

.code-comment {
    color: #6a9955;
    font-style: italic;
}

.code-success {
    color: #4ade80;
    font-weight: bold;
}

.code-line.blank {
    height: 1.2em;
}

.code-line.indent {
    padding-left: 2em;
}

.typing-cursor {
    color: var(--primary-color);
    animation: blink 1s infinite;
    font-weight: bold;
}

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

.code-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 2px 4px;
    position: relative;
}

/* Efeitos visuais apenas no desktop */
@media (min-width: 769px) {
    .code-clickable:hover {
        background: rgba(220, 38, 38, 0.1);
        transform: translateX(5px);
    }

    .code-clickable:hover .code-comment {
        color: var(--primary-color);
        text-decoration: underline;
    }

    .code-clickable::before {
        content: "👆";
        position: absolute;
        left: -25px;
        opacity: 0;
        transition: opacity 0.3s ease;
        animation: pulse 1.5s infinite;
    }

    .code-clickable:hover::before {
        opacity: 1;
    }
}

/* Efeitos mais sutis no mobile/responsivo */
@media (max-width: 768px) {
    .code-clickable:hover {
        background: rgba(220, 38, 38, 0.05);
    }
    
    .code-clickable:hover .code-comment {
        color: var(--primary-color);
    }
    
    /* Sem emoji no mobile para melhor enquadramento */
    .code-clickable::before {
        display: none;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}



/* Timeline Section */
.timeline-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    /* Sobrepor 2px com a seção anterior para eliminar listras de junção */
    margin-top: -2px;
    z-index: 0;
}

.timeline-video-background {
    position: absolute;
    /* Expandir levemente como no hero para evitar gaps */
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 6px);
    z-index: -2;
}

.timeline-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.timeline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.timeline-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.timeline-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
    z-index: 1;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: timelineReveal 0.8s ease forwards;
}

.timeline-item:nth-child(3) { animation-delay: 0.2s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.6s; }
.timeline-item:nth-child(6) { animation-delay: 0.8s; }
.timeline-item:nth-child(7) { animation-delay: 1.0s; }

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.timeline-marker i {
    color: white;
    font-size: 1.5rem;
}

.timeline-content {
    width: 45%;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 55%;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.timeline-year {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@keyframes timelineReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-center {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}



.video-container {
    position: relative;
}

.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 800px;
    max-width: 90vw;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.2) 0%, 
        rgba(6, 182, 212, 0.2) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem;
    position: relative;
    min-height: 400px;
}

.video-placeholder i {
    font-size: 6rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.video-placeholder:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

.video-placeholder h3 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.video-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.btn-play {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .video-overlay {
    opacity: 1;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-control {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-control:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.video-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.3s ease;
}

.video-time {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

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

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-header i {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.service-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.service-features i {
    color: var(--accent-color);
    font-size: 0.875rem;
}

/* Products Section */
.products {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    margin-top: 1.5rem;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.product-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.1);
}

.product-card.featured::before {
    opacity: 1;
    background: var(--gradient-secondary);
}

.product-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-header i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-top: 0.25rem;
}

.product-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.product-badge {
    position: absolute;
    top: -1.5rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.product-badge.new {
    background: var(--gradient-secondary);
}

.product-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.product-features i {
    color: var(--accent-color);
    font-size: 0.875rem;
}

.product-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-footer .btn-primary {
    width: 100%;
    justify-content: center;
}

/* Partner Section */
.partner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.partner-content {
    max-width: 1200px;
    margin: 0 auto;
}

.partner-header {
    text-align: center;
    margin-bottom: 4rem;
}

.partner-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.partner-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.partner-benefits h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(220, 38, 38, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.benefits-list i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.benefits-list h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.benefits-list p {
    color: var(--text-secondary);
    margin: 0;
}

.partner-services h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.services-cards {
    display: grid;
    gap: 1.5rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon i {
    color: white;
    font-size: 1.2rem;
}

.service-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.service-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.price-tag {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.partner-cta {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
}

.cta-content h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Quiz Section */
.quiz-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.quiz-content-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.quiz-header-section {
    padding: 4rem 2rem;
    text-align: center;
    width: 100%;
}

.quiz-title h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.quiz-title p {
    color: var(--text-secondary);
    font-size: 1.5rem;
}

.quiz-body-section {
    padding: 4rem 2rem;
    width: 100%;
}

.quiz-intro-content {
    text-align: center;
}

.quiz-intro-content h4 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.quiz-intro-content p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.quiz-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1rem;
}

.btn-quiz-start {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-quiz-start:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.quiz-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.quiz-progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.question-container {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.question-container h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-option {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.answer-option::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: left 0.5s ease;
}

.answer-option:hover {
    border-color: var(--primary-color);
    background: var(--bg-primary);
    transform: translateX(5px);
}

.answer-option:hover::before {
    left: 100%;
}

.answer-option.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.btn-quiz-next {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-quiz-next:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.quiz-result {
    text-align: center;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 12px;
    color: var(--text-primary);
}

.quiz-result h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.quiz-result p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Ações do resultado do quiz: manter WhatsApp à direita */
.quiz-result-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-quiz-contact { order: 1; }
.btn-quiz-retry { order: 2; }

.quiz-result .btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.quiz-result .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}



/* Quiz Styles */
.quiz-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-question {
    text-align: center;
}

.quiz-question h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.quiz-question p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.quiz-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-progress {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.quiz-result {
    text-align: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    color: var(--text-primary);
}

.question-container {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.question-container h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.answer-option {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.answer-option:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.answer-option.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.contact-info {
    margin: 1.5rem 0;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

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

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
}

/* Responsividade */
/* Estilos para o menu mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

/* Responsividade - Mobile First Approach */

/* Desktop grande */
@media (max-width: 1440px) {
    .hero-container {
        max-width: 1100px;
    }
    
    .container {
        max-width: 1100px;
    }
}

/* Tablets e dispositivos médios */
@media (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .partner-grid {
        gap: 2rem;
    }
    
    .timeline-container {
        max-width: 90%;
    }
}

/* Tablets pequenos - iPad Mini, etc */
@media (max-width: 834px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        align-items: center;
        gap: 3rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    
    .nav-menu a:hover {
        background-color: var(--bg-card);
        color: var(--primary-color);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
        min-height: 100dvh;
    }
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    
    .nav-menu a:hover {
        background-color: var(--bg-card);
        color: var(--primary-color);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Otimizações do vídeo de fundo para mobile */
    .hero-video-background video {
        object-position: center center;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
    
    /* Ajuste do efeito de vidro para mobile */
    .hero-animation {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        background: rgba(255, 255, 255, 0.08);
    }
    
    /* Quebra de linha na caixa de código (evita overflow horizontal no mobile) */
    .code-block { white-space: normal; word-break: break-word; overflow-wrap: anywhere; max-width: 100%; }
    .code-line { white-space: normal; }
    
    /* Android Chrome: sobrescrever regras específicas para permitir quebra */
    .android-device.chrome-browser .code-block {
    white-space: normal;
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
    }
    .android-device.chrome-browser .code-line {
        white-space: normal;
        text-overflow: clip;
    }
    
    /* Otimizações do vídeo de fundo da timeline para mobile */
    .timeline-video-background video {
        object-position: center center;
        transform: scale(1.1);
        filter: blur(0.5px);
    }
    
    .timeline-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .timeline-header h2 {
        font-size: 2.5rem;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-marker {
        left: 30px;
        width: 50px;
        height: 50px;
    }
    
    .timeline-marker i {
        font-size: 1.2rem;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .partner-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .partner-cta {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* iPhone 14 Pro Max, iPhone 13 Pro Max, Android grandes */
@media (max-width: 428px) {
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .timeline-header h2 {
        font-size: 2rem;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        left: 20px;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
}

/* iPhone SE, iPhone 12 mini, Android médios */
@media (max-width: 375px) {
    .hero {
        padding: 96px 0 56px;
        min-height: 100svh;
        min-height: 100dvh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .partner-header h2 {
        font-size: 2rem;
    }
}

/* iPhone 5/SE, Android pequenos */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .nav-logo h1 {
        font-size: 1.1rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .product-card {
        padding: 1rem;
    }
    
    .code-block {
        font-size: 0.8rem;
    }
}

/* Orientação paisagem em móveis */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero-container {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .timeline-section {
        padding: 4rem 0;
    }
}

/* Ajustes específicos para iOS Safari */
@supports (-webkit-touch-callout: none) {
    .hero-video-background video,
    .timeline-video-background video {
        object-position: center center;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .hero {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix para viewport height no iOS */
    .hero {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
}

/* Ajustes específicos para Android Chrome */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .hero-animation {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    /* Fix adicional para Android Chrome */
    .hero-container {
        overflow: visible;
        max-width: 100%;
    }
    
    .hero-visual {
        max-width: 100%;
        overflow: visible;
    }
}

/* Ajustes específicos por dispositivo via JavaScript */

/* iOS específico */
.ios-device .hero {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

.ios-device .hero-video-background video,
.ios-device .timeline-video-background video {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.ios-device .hero-animation {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

/* Android específico */
.android-device .hero-animation {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.08);
}

.android-device .hero-video-background video,
.android-device .timeline-video-background video {
    will-change: transform;
    transform: translateZ(0);
}

/* Safari específico */
.safari-browser .hero-video-background video,
.safari-browser .timeline-video-background video {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Chrome específico */
.chrome-browser .hero-animation {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* Android Chrome específico - Fix para expansão do código */
.android-device.chrome-browser .hero-animation {
    /* Evitar clipping da expansão do código no Android Chrome */
    overflow: visible;
    max-width: 100%;
    word-break: break-word;
    /* Conter apenas pintura para reduzir reflows sem cortar layout */
    contain: paint;
}

.android-device.chrome-browser .code-block {
    max-width: 100%;
    overflow-x: hidden;
    white-space: normal;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.android-device.chrome-browser .code-block::-webkit-scrollbar {
    display: none;
}

.android-device.chrome-browser .code-line {
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
}

.android-device.chrome-browser .code-clickable {
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    white-space: normal;
}

/* Dispositivos touch */
.touch-device .btn-primary:hover,
.touch-device .btn-secondary:hover {
    transform: translateY(-1px);
}

.touch-device .product-card:hover {
    transform: translateY(-3px);
}

/* Ajustes para telas de alta densidade (Retina, AMOLED) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .nav-logo h1 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Efeitos de hover adicionais */
.nav-menu a {
    position: relative;
}

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

.nav-menu a:hover::after {
    width: 100%;
} 

/* Turnstile Gate Overlay */
#turnstile-gate {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

#turnstile-gate[aria-hidden="true"] {
    display: none;
}

.turnstile-gate-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
}

.turnstile-gate-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    width: min(520px, 92vw);
}

.turnstile-gate-content h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.turnstile-gate-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Bloquear scroll quando gate ativo */
.no-scroll {
    overflow: hidden !important;
}