/* 
   RD Consultoria Qualidade Portal - Design System & Styles
   Author: Senior Frontend Architect
   Aesthetics: Modern High-Tech, Glassmorphism, Premium Corporate.
*/

/* --- Google Fonts --- */

/* --- Custom Properties (Design Tokens) --- */
:root {
    /* Color Palette */
    --color-bg-base: #ffffff;              /* Clean White Background */
    --color-bg-surface: #f8fafc;           /* Slate-50 Light Card Background */
    --color-bg-surface-elevated: #f1f5f9;  /* Slate-100 Elevated Background */
    
    --color-primary: #0a2540;              /* Corporate Deep Navy Blue */
    --color-primary-light: #2563eb;        /* Electric Blue Accent */
    --color-primary-glow: rgba(37, 99, 235, 0.05);
    
    --color-secondary: #f97316;            /* Vibrant Orange Accent (CTA) */
    --color-secondary-hover: #ea580c;      /* Darker Orange Hover */
    --color-secondary-glow: rgba(249, 115, 22, 0.1);
    
    --color-success: #10b981;              /* Success Green (ISO Certified) */
    --color-success-light: #059669;
    --color-success-glow: rgba(16, 185, 129, 0.08);

    --color-text-primary: #0f172a;         /* Dark Slate for primary text */
    --color-text-secondary: #475569;       /* Slate-600 for secondary text */
    --color-text-muted: #64748b;           /* Slate-500 for muted text */
    
    --color-border: rgba(15, 23, 42, 0.08); /* Soft slate border for light bg */
    --color-border-glow: rgba(37, 99, 235, 0.25);
    
    /* Dynamic RGB Tokens for Theme Adaptative Shadows/Borders */
    --color-shadow-rgb: 15, 23, 42;
    --color-border-rgb: 15, 23, 42;
    
    /* Dynamic Glass Variables */
    --glass-bg: 255, 255, 255;
    --glass-opacity: 0.7;
    --header-bg: 255, 255, 255;
    
    /* Typography Scales */
    --font-headline: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing Scale (8px Grid) */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 1.5rem;   /* 24px */
    --spacing-lg: 2rem;     /* 32px */
    --spacing-xl: 3rem;     /* 48px */
    --spacing-xxl: 6rem;    /* 96px */
    
    /* Borders & Roundness */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Animation & Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* --- Futuristic Dark Theme Tokens --- */
[data-theme="dark"] {
    --color-bg-base: #0b1329;              /* Deep Space Blue Background */
    --color-bg-surface: #131b2e;           /* Deep Slate-Blue Card */
    --color-bg-surface-elevated: #1e293b;  /* Elevated Card */
    
    --color-primary: #f8fafc;              /* White-slate for headers */
    --color-primary-glow: rgba(37, 99, 235, 0.18);
    
    --color-text-primary: #f1f5f9;         /* Slate-100 body text */
    --color-text-secondary: #cbd5e1;       /* Slate-300 secondary text */
    --color-text-muted: #94a3b8;           /* Slate-400 muted text */
    
    --color-border: rgba(255, 255, 255, 0.08); /* Soft white border for dark glass */
    --color-border-glow: rgba(37, 99, 235, 0.45);
    
    --color-shadow-rgb: 0, 0, 0;
    --color-border-rgb: 255, 255, 255;
    
    --glass-bg: 19, 27, 46;                /* RGB for #131b2e */
    --glass-opacity: 0.65;
    --header-bg: 11, 19, 41;
}

/* Adaptative decorative elements for dark mode */
[data-theme="dark"] body::before {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.09) 0%, transparent 70%);
}

[data-theme="dark"] body::after {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
}

[data-theme="dark"] .tech-grid-overlay {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
}

/* Global Transitions for smooth theme switching */
body, .header, .footer, .glass-card, .nav, .nav-link, .btn, .tech-grid-overlay, input, select, textarea {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    outline: none;
}

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

/* Decorative Background Elements */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.03) 0%, transparent 70%);
    bottom: 20%;
    left: -200px;
    pointer-events: none;
    z-index: 0;
}

/* High-tech tech grid pattern overlay */
.tech-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(var(--color-border-rgb), 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--color-border-rgb), 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--color-bg-surface-elevated);
    border: 2px solid var(--color-bg-base);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

/* --- Reusable Layout Components --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 2;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl) auto;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: var(--color-primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    gap: var(--spacing-xs);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--color-secondary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.35);
}

.btn-secondary {
    background: rgba(var(--color-border-rgb), 0.02);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(var(--color-border-rgb), 0.06);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

/* High-tech Glassmorphic Cards (Adaptive for Light Theme) */
.glass-card {
    background: rgba(var(--glass-bg), var(--glass-opacity));
    border: 1px solid var(--color-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-border-glow);
    box-shadow: 0 10px 30px rgba(var(--color-shadow-rgb), 0.04), 0 0 1px 1px rgba(37, 99, 235, 0.08);
}

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

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background: rgba(var(--header-bg), 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.header.scrolled {
    height: 70px;
    background: rgba(var(--header-bg), 0.95);
    border-bottom-color: rgba(37, 99, 235, 0.08);
    box-shadow: 0 10px 30px rgba(var(--color-shadow-rgb), 0.04);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    color: var(--color-primary);
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 4px rgba(37, 99, 235, 0.15));
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.logo-text span {
    color: var(--color-secondary);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-left: auto;
    margin-right: var(--spacing-md);
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-primary-light);
    border-radius: var(--radius-full);
    box-shadow: 0 0 0px transparent;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
    color: var(--color-primary-light);
}

.nav-link:hover::after {
    width: 80%;
    box-shadow: 0 0 8px var(--color-primary-light);
}

.nav-link.active {
    color: var(--color-primary-light);
    font-weight: 600;
}

.nav-link.active::after {
    width: 80%;
    box-shadow: 0 0 8px var(--color-primary-light);
}

/* Premium Custom CTA Button in Nav */
#navBtnContact {
    background: transparent;
    color: var(--color-primary-light) !important;
    border: 1.5px solid var(--color-primary-light) !important;
    font-weight: 600;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 0 0px transparent;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#navBtnContact:hover {
    background: var(--color-primary-light) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--color-primary-glow), 0 0 8px var(--color-primary-light) !important;
    border-color: var(--color-primary-light) !important;
}

/* Futuristic Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--color-border);
    cursor: pointer;
    color: var(--color-primary-light);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 105;
    position: relative;
    padding: 0;
}

.theme-toggle:hover {
    background: rgba(37, 99, 235, 0.08);
    transform: scale(1.08);
    border-color: var(--color-primary-light);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.15);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition-fast);
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 110;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    transition: var(--transition-fast);
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 11px; }
.mobile-toggle span:nth-child(3) { top: 22px; }

.mobile-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}
.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 5;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-success-light);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
}

.hero-tagline svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-family: var(--font-headline);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
}

.hero-title span.blue-glow {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-badge-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-success);
}

.trust-badge-text {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
}

.trust-badge-text strong {
    color: var(--color-text-primary);
    display: block;
}

/* Hero Graphic (Visual representation of dashboard or metrics) */
.hero-graphic {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.graphic-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 480px;
}

.graphic-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(var(--color-border-rgb), 0.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 60s linear infinite;
}

.graphic-ring-1 { width: 360px; height: 360px; }
.graphic-ring-2 { 
    width: 440px; 
    height: 440px; 
    border-color: rgba(249, 115, 22, 0.06); 
    animation-duration: 90s; 
    animation-direction: reverse;
}

.graphic-core {
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(var(--glass-bg), 0.85);
    border: 1px solid rgba(var(--color-border-rgb), 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 50px rgba(var(--color-shadow-rgb), 0.06), inset 0 0 20px rgba(37, 99, 235, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    text-align: center;
    z-index: 6;
}

.core-certified {
    width: 70px;
    height: 70px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: var(--color-success);
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.15));
}

.core-certified svg {
    width: 32px;
    height: 32px;
}

.core-title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-primary);
}

.core-subtitle {
    font-size: 0.85rem;
    color: var(--color-success-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Floating widgets in hero graphic */
.floating-widget {
    position: absolute;
    background: rgba(var(--glass-bg), 0.9);
    border: 1px solid rgba(var(--color-border-rgb), 0.06);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(var(--color-shadow-rgb), 0.05);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    z-index: 7;
    animation: float 6s ease-in-out infinite;
}

.widget-1 {
    top: 15%;
    right: -5%;
    border-left: 3px solid var(--color-secondary);
    animation-delay: 0s;
}

.widget-2 {
    bottom: 15%;
    left: -5%;
    border-left: 3px solid var(--color-success);
    animation-delay: 1.5s;
}

.widget-3 {
    top: 75%;
    right: 5%;
    border-left: 3px solid var(--color-primary-light);
    animation-delay: 3s;
}

.floating-widget svg {
    width: 20px;
    height: 20px;
}

.floating-widget span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.floating-widget strong {
    font-family: var(--font-headline);
    color: var(--color-text-primary);
    display: block;
    font-size: 1rem;
}

/* --- Section: About the Company --- */
.about {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.about-visual .about-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.about-visual:hover .about-img {
    opacity: 0.4;
    transform: scale(1.05);
}

.about-visual-overlay {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.about-metric {
    font-family: var(--font-headline);
}

.about-metric-num {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--color-primary-light);
    line-height: 1;
}

.about-metric-label {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.about-content h3 {
    font-family: var(--font-headline);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.about-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.about-feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.about-feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 14px;
    height: 14px;
}

.about-feature-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.about-feature-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* --- Section: The Product (RD Consultoria Qualidade Digital Platform) --- */
.product {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(19, 27, 49, 0.4) 50%, transparent 100%);
    position: relative;
}

.product-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.product-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.product-card-icon svg {
    width: 24px;
    height: 24px;
}

.product-card-title {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.product-card-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* Big Showcase mock-up */
.product-showcase {
    margin-top: var(--spacing-xxl);
    position: relative;
    border-radius: var(--radius-lg);
    background: rgba(19, 27, 49, 0.5);
    border: 1px solid var(--color-border);
    padding: var(--spacing-sm);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.showcase-window {
    background: var(--color-bg-base);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.window-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.window-dot:nth-child(1) { background: #ff5f56; }
.window-dot:nth-child(2) { background: #ffbd2e; }
.window-dot:nth-child(3) { background: #27c93f; }

.window-title {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.window-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    height: 400px;
}

.window-sidebar {
    background: rgba(255, 255, 255, 0.01);
    border-right: 1px solid var(--color-border);
    padding: var(--spacing-sm);
}

.sidebar-item {
    height: 24px;
    background: rgba(255,255,255,0.03);
    margin-bottom: 12px;
    border-radius: 4px;
}

.sidebar-item:nth-child(1) { width: 70%; background: rgba(59, 130, 246, 0.15); }
.sidebar-item:nth-child(2) { width: 50%; }
.sidebar-item:nth-child(3) { width: 60%; }
.sidebar-item:nth-child(4) { width: 40%; }
.sidebar-item:nth-child(5) { width: 55%; }

.window-body {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.body-header {
    display: flex;
    justify-content: space-between;
}

.body-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    flex: 1;
    margin: var(--spacing-sm) 0;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.body-box-metric {
    font-family: var(--font-headline);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-success);
    margin-bottom: 6px;
}

.body-box-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
}

/* --- Section: Services (Nossos Serviços) --- */
.services {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-list {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.service-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xs);
}

.service-list-item svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary-light);
}

/* --- Section: Market & Positioning (Nosso Mercado) --- */
.market {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.market-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.tab-btn {
    background: rgba(var(--color-border-rgb), 0.02);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-headline);
    font-weight: 500;
    transition: var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.market-content-pane {
    display: none;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.market-content-pane.active {
    display: grid;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.market-pane-text h3 {
    font-family: var(--font-headline);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.market-pane-text p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.market-pane-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.market-pane-metric-card {
    background: rgba(var(--color-border-rgb), 0.015);
    border: 1px solid var(--color-border);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.market-pane-metric-num {
    font-family: var(--font-headline);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-success-light);
    margin-bottom: 4px;
}

.market-pane-metric-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.market-visual-card {
    background: linear-gradient(135deg, rgba(var(--glass-bg), 0.05) 0%, rgba(var(--glass-bg), var(--glass-opacity)) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.market-visual-card .market-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.market-visual-card:hover .market-img {
    opacity: 0.35;
    transform: scale(1.06);
}

/* Glassmorphic gradient overlay mask to blend the image seamlessly */
.market-visual-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--glass-bg), 0.2) 0%, rgba(var(--glass-bg), 0.8) 100%);
    pointer-events: none;
    z-index: 2;
}

.market-visual-card svg {
    position: relative;
    z-index: 3;
    transition: var(--transition-smooth);
}

.market-visual-card:hover svg {
    transform: scale(1.1);
}

/* --- Section: ROI / Quality Calculator --- */
.calculator {
    padding: var(--spacing-xxl) 0;
    position: relative;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: stretch;
}

.calculator-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    display: block;
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    font-weight: 600;
    margin-bottom: 2px;
    transition: var(--transition-fast);
}

.form-input {
    width: 100%;
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 12px var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

/* Interactive Slider */
.form-slider {
    width: 100%;
    height: 6px;
    background: rgba(var(--color-border-rgb), 0.06);
    outline: none;
    border-radius: var(--radius-full);
    margin: var(--spacing-xs) 0;
    cursor: pointer;
    -webkit-appearance: none;
}

.form-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-secondary);
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(var(--color-shadow-rgb), 0.15), 0 0 0 1px rgba(249, 115, 22, 0.3);
    cursor: pointer;
    transition: var(--transition-fast);
}

.form-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--color-secondary-hover);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25), 0 0 0 1px var(--color-secondary-hover);
}

.slider-val {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.calculator-results {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 20px 40px rgba(var(--color-shadow-rgb), 0.04);
    transition: var(--transition-smooth);
}

.results-header {
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.results-header h3 {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

/* Form Row Grid & Premium Dropdowns */
.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.form-select {
    width: 100%;
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 11px var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
}

.form-select option {
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
}

.form-select:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 10px var(--color-primary-glow);
    outline: none;
}

/* Custom High-Tech Checkboxes (Marketplace Filters) */
.filter-checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--color-border);
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    outline: none;
    vertical-align: middle;
}

.filter-checkbox:checked {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.filter-checkbox:checked::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    top: 2px;
    left: 5px;
}

.filter-checkbox:hover {
    border-color: var(--color-primary-light);
    background: rgba(37, 99, 235, 0.02);
}

.filter-checkbox:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Strategic Diagnostic Box */
.diagnostic-box {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.015);
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-left: 4px solid var(--color-primary-light);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.01);
    transition: var(--transition-smooth);
}

.diagnostic-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: 6px;
}

.diagnostic-header h4 {
    font-family: var(--font-headline);
    color: var(--color-primary);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
}

.diagnostic-icon {
    font-size: 1.1rem;
    animation: float 2.5s ease-in-out infinite;
}

.diagnostic-desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
    margin: 0;
}

/* Audit Readiness Section & Progress Bar */
.readiness-section {
    margin-top: var(--spacing-sm);
    text-align: left;
}

.readiness-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.readiness-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.readiness-val {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-primary-light);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(var(--color-border-rgb), 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary-light) 0%, var(--color-success) 100%);
    border-radius: var(--radius-full);
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* Results Grid (2x2 Structure) */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.result-item {
    background: rgba(var(--color-border-rgb), 0.012);
    border: 1px solid var(--color-border);
    padding: var(--spacing-md) var(--spacing-xs);
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: var(--transition-fast);
}

.result-item:hover {
    background: var(--color-bg-surface-elevated);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Specific Interactive Indicators on Hover */
.result-item:nth-child(1):hover {
    border-color: rgba(16, 185, 129, 0.25);
}
.result-item:nth-child(1):hover::before {
    background: var(--color-success);
}

.result-item:nth-child(2):hover {
    border-color: rgba(249, 115, 22, 0.25);
}
.result-item:nth-child(2):hover::before {
    background: var(--color-secondary);
}

.result-item:nth-child(3):hover {
    border-color: rgba(37, 99, 235, 0.25);
}
.result-item:nth-child(3):hover::before {
    background: var(--color-primary-light);
}

.result-item:nth-child(4):hover {
    border-color: rgba(10, 37, 64, 0.25);
}
.result-item:nth-child(4):hover::before {
    background: var(--color-primary);
}

.result-num {
    font-family: var(--font-headline);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-success);
    line-height: 1.1;
    margin-bottom: 4px;
}

.result-label {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Responsiveness overrides for calculator inputs and results */
@media (max-width: 576px) {
    .form-row-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
    .results-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
    .result-num {
        font-size: 1.8rem;
    }
}

/* --- Section: Contact & Lead Capture --- */
.contact {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--spacing-xl);
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3 {
    font-family: var(--font-headline);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.contact-info p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-detail-icon svg {
    width: 20px;
    height: 20px;
}

.contact-detail-text {
    font-size: 0.95rem;
}

.contact-detail-text strong {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.contact-form-container {
    background: rgba(var(--glass-bg), var(--glass-opacity));
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 20px 40px rgba(var(--color-shadow-rgb), 0.04);
    transition: var(--transition-smooth);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.form-textarea {
    width: 100%;
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 12px var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-fast);
    resize: none;
    height: 120px;
}

.form-textarea:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

.form-feedback {
    display: none;
    margin-top: var(--spacing-sm);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-feedback.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--color-success);
    color: var(--color-success-light);
}

.form-feedback.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #b91c1c;
}

/* --- Footer --- */
.footer {
    background: var(--color-bg-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    color: var(--color-text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand p {
    font-size: 0.95rem;
    margin-top: var(--spacing-sm);
    max-width: 320px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-title {
    font-family: var(--font-headline);
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-link {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(var(--color-border-rgb), 0.05);
    font-size: 0.85rem;
}

/* --- Scroll Animation Classes --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.scale-up {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-up.active {
    opacity: 1;
    transform: scale(1);
}

/* Keyframes */
@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

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

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

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-grid, .about-grid, .calculator-wrapper, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-graphic {
        order: -1;
    }
    
    .services-grid, .product-features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body::before, body::after {
        display: none; /* Ocultar degradês de fundo para manter celular limpo e legível */
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .section-title {
        font-size: 1.85rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .hero {
        padding-top: 90px;
        padding-bottom: var(--spacing-lg);
        min-height: auto;
    }

    .hero-title {
        font-size: 2.15rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-xs);
    }

    .hero-actions .btn {
        width: 100%;
    }

    .trust-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    /* Gráfico do Hero Adaptado para Mobile */
    .graphic-container {
        height: 340px;
        max-width: 320px;
        margin: 0 auto;
    }

    .graphic-ring-1 { width: 240px; height: 240px; }
    .graphic-ring-2 { width: 300px; height: 300px; }
    
    .graphic-core { 
        width: 180px; 
        height: 180px;
        padding: var(--spacing-sm);
    }

    .core-certified {
        width: 50px;
        height: 50px;
    }

    .core-certified svg {
        width: 24px;
        height: 24px;
    }

    .core-title {
        font-size: 1.15rem;
    }

    .floating-widget {
        display: none; /* Ocultar widgets no celular para evitar poluição visual */
    }

    /* Sobre e Empresa */
    .about {
        padding: var(--spacing-xl) 0;
    }

    .about-visual {
        height: 260px;
    }

    .about-visual-overlay {
        padding: var(--spacing-sm);
    }

    .about-metric-num {
        font-size: 2.5rem;
    }

    /* Produto e Mockup de software */
    .product {
        padding: var(--spacing-xl) 0;
    }

    .product-showcase {
        margin-top: var(--spacing-md);
        padding: var(--spacing-xs);
    }

    .window-content {
        grid-template-columns: 1fr;
    }

    .window-sidebar {
        display: none; /* Ocultar painel lateral no celular */
    }

    .window-body {
        padding: var(--spacing-sm);
    }

    .body-box {
        margin: var(--spacing-xs) 0;
        padding: var(--spacing-sm);
    }

    .body-box-metric {
        font-size: 2.25rem;
    }

    /* Serviços e Mercados */
    .services {
        padding: var(--spacing-xl) 0;
    }

    .services-grid, .product-features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .market {
        padding: var(--spacing-xl) 0;
    }

    .market-tabs {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-xs);
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }

    .market-content-pane.active {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .market-visual-card {
        height: 220px;
        order: -1;
    }

    /* Calculadora */
    .calculator {
        padding: var(--spacing-xl) 0;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .result-num {
        font-size: 2rem;
    }

    /* Contato e Formulário */
    .contact {
        padding: var(--spacing-xl) 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .contact-form-container {
        padding: var(--spacing-md);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Navegação Mobile Toggle Drawer ativa a partir de 1024px (Tablets e telas menores) */
@media (max-width: 1024px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--color-bg-base);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: var(--spacing-md);
        padding: var(--spacing-xl) var(--spacing-md);
        transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
        z-index: 99;
        border-top: 1px solid var(--color-border);
        overflow-y: auto;
    }
    
    .nav.open {
        left: 0;
    }
    
    /* Mobile links staggered transition rules */
    .nav a {
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: 0s;
    }
    
    .nav.open a {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .nav.open a:nth-child(1) { transition-delay: 0.1s; }
    .nav.open a:nth-child(2) { transition-delay: 0.16s; }
    .nav.open a:nth-child(3) { transition-delay: 0.22s; }
    .nav.open a:nth-child(4) { transition-delay: 0.28s; }
    .nav.open a:nth-child(5) { transition-delay: 0.34s; }
    .nav.open a:nth-child(6) { transition-delay: 0.40s; }
    .nav.open a:nth-child(7) { transition-delay: 0.46s; }
    
    .nav .nav-link {
        font-size: 1.15rem;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--color-border);
    }
    
    /* Active indicator centered in mobile link */
    .nav .nav-link::after {
        bottom: 4px;
    }
    
    .nav #navBtnContact {
        width: 85%;
        max-width: 300px;
        margin-top: var(--spacing-sm);
        padding: 12px 24px !important;
        font-size: 1rem !important;
        justify-content: center;
    }

    /* Corrige a fresta de 10px que expõe fundo quando cabeçalho está comprimido */
    .header.scrolled .nav {
        top: 70px;
        height: calc(100vh - 70px);
    }
}

@media (max-width: 768px) {
    /* Evita colunas espremidas na seção sobre */
    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

/* --- Smartphones pequenos (≤ 480px) --- */
@media (max-width: 480px) {
    /* Container com padding mínimo */
    .container {
        padding: 0 var(--spacing-xs);
    }

    /* Tipografia hero menor */
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    /* Hero com menos padding topo para não cortar */
    .hero {
        padding-top: 80px;
    }

    /* Seção "Sobre" */
    .about-metric-num {
        font-size: 2rem;
    }

    /* Seção de serviços e features */
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.92rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    /* Botões full-width em telas muito pequenas */
    .btn {
        padding: 12px 20px;
        font-size: 0.92rem;
    }

    /* Glass cards com padding menor */
    .glass-card {
        padding: var(--spacing-sm);
    }

    /* Calculadora */
    .calculator-results {
        padding: var(--spacing-sm);
    }

    /* Resultados da calculadora em coluna única */
    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-num {
        font-size: 1.5rem;
    }

    /* Formulário de contato */
    .contact-form-container {
        padding: var(--spacing-sm);
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-brand p {
        font-size: 0.85rem;
    }

    /* Produto showcase sem altura fixa */
    .window-content {
        height: auto;
        min-height: 200px;
    }

    /* Mercado de abas em coluna */
    .market-tabs {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }

    /* Sobre: visual menor */
    .about-visual {
        height: 200px;
    }

    /* Mercado: métricas em coluna única */
    .market-pane-metrics {
        grid-template-columns: 1fr;
    }

    /* Sobre: features em coluna única (reforço) */
    .about-features {
        grid-template-columns: 1fr;
    }
}

/* --- Otimizações Multidimensionais e Slots de Imagem --- */

/* Remoção de Estilos Inline */
#navBtnContact {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.service-card-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    text-align: center;
}

.theme-toggle {
    margin-right: 12px;
}

.about-metric-right {
    align-self: flex-end;
    text-align: right;
}

.logo-svg-footer {
    width: 30px;
    height: 30px;
}

.logo-img-footer {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-fast);
}

.logo:hover .logo-img-footer {
    transform: scale(1.05);
    border-color: var(--color-primary-light);
}

#metricSuccess {
    color: var(--color-secondary) !important;
}

/* Classes de Payback Dinâmicas */
.payback-starter {
    color: var(--color-primary) !important;
}
.payback-pro {
    color: var(--color-primary-light) !important;
}
.payback-enterprise {
    color: var(--color-secondary) !important;
}

/* Slots de Imagem Estratégicos com Fallbacks e Efeitos Premium */

/* 1. Hero / Dashboard Showcase slanting card */
.hero-dashboard-mockup {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: linear-gradient(135deg, rgba(var(--color-border-rgb), 0.03) 0%, rgba(var(--color-border-rgb), 0.1) 100%);
    box-shadow: 0 20px 40px rgba(var(--color-shadow-rgb), 0.15);
    margin-top: var(--spacing-md);
    transition: var(--transition-smooth);
}
.hero-dashboard-mockup:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px rgba(var(--color-shadow-rgb), 0.25);
    border-color: var(--color-primary-light);
}
.hero-dashboard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: var(--transition-smooth);
}
.hero-dashboard-mockup:hover .hero-dashboard-img {
    opacity: 1;
}

/* 2. Browser Showcase Image Slot */
.showcase-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
    background: var(--color-bg-base);
}
.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: var(--transition-smooth);
}
.showcase-img-wrapper:hover .showcase-img {
    opacity: 1;
    transform: scale(1.02);
}

/* 3. Cards de Nossos Serviços Banner superior */
.service-card-banner {
    width: 100%;
    height: 160px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(var(--color-border-rgb), 0.05) 0%, rgba(var(--color-border-rgb), 0.12) 100%);
    border-bottom: 1px solid var(--color-border);
}
.service-card-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    opacity: 0.8;
}
.service-card:hover .service-card-banner-img {
    transform: scale(1.06);
    opacity: 1;
}
.service-card-banner-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.service-card-banner-fallback svg {
    width: 48px;
    height: 48px;
    opacity: 0.35;
    transition: var(--transition-smooth);
}
.service-card:hover .service-card-banner-fallback svg {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.5;
}

/* 4. Seção de Contato - Card de Confiança Emocional */
.contact-support-card {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: linear-gradient(135deg, rgba(var(--color-border-rgb), 0.02) 0%, rgba(var(--color-border-rgb), 0.08) 100%);
    margin-top: var(--spacing-md);
    box-shadow: 0 10px 25px rgba(var(--color-shadow-rgb), 0.05);
}
.contact-support-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    transition: var(--transition-smooth);
}
.contact-support-card:hover .contact-support-img {
    transform: scale(1.04);
    opacity: 0.4;
}
.contact-support-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(var(--glass-bg), 0.1), rgba(var(--glass-bg), 0.8));
    backdrop-filter: blur(1px);
}
.support-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-success);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    align-self: flex-start;
}
.support-pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Estilos de Avatar nos Teams */
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition-smooth);
}
.team-card:hover .avatar-img {
    transform: scale(1.08);
}

.results-footer {
    margin-top: var(--spacing-md);
    display: flex;
    width: 100%;
}

/* Grid Missão/Visão — seção Sobre */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: var(--spacing-sm);
}

@media (max-width: 480px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

.support-card-title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.support-card-desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin: 0;
}

#calcCTA {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

.lgpd-disclaimer {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.form-submit-btn {
    width: 100%;
}

/* Otimização de Espaçamento para o Menu de Navegação em Telas Intermediárias (Evita Colisão com Logo) */
@media (max-width: 1150px) and (min-width: 769px) {
    .nav {
        gap: 12px;
    }
    .logo {
        font-size: 1.2rem;
    }
    .nav-link {
        font-size: 0.85rem;
    }
    #navBtnContact {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
}

/* ==========================================================================
   Badge de Certificação / Selo de Confiança ISO 9000 (Premium High-Tech)
   ========================================================================== */
.iso-trust-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    gap: 8px;
}

[data-theme="dark"] .iso-trust-seal {
    background: rgba(19, 27, 46, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.iso-trust-seal img {
    height: 24px;
    width: auto;
    object-fit: contain;
    border-radius: 2px;
    transition: var(--transition-fast);
}

.iso-trust-seal-text {
    font-size: 0.75rem;
    font-family: var(--font-headline);
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #0f172a;
    text-transform: uppercase;
}

[data-theme="dark"] .iso-trust-seal-text {
    color: #f8fafc;
}

.iso-trust-seal:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary-light);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    background: #ffffff;
}

[data-theme="dark"] .iso-trust-seal:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--color-primary-light);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.iso-trust-seal:hover img {
    transform: scale(1.08);
}

/* Mini Selo para os Badges do Hero */
.iso-trust-seal-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 4px;
    padding: 2px;
    width: 24px;
    height: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.iso-trust-seal-mini img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Selo do Rodapé */
.footer-badges {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    align-items: center;
}

.footer-badge-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.65;
    filter: grayscale(100%);
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.03);
    padding: 3px;
}

[data-theme="dark"] .footer-badge-img {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.footer-badge-img:hover {
    opacity: 1;
    filter: grayscale(0%);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   Botão Flutuante do WhatsApp (Aesthetics & Interaction)
   ========================================================================== */
.btn-contact-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
}

.btn-contact-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    transition: var(--transition-smooth);
}

.btn-contact-float:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5), 0 12px 40px rgba(0, 0, 0, 0.2);
}

.btn-contact-float:hover svg {
    transform: rotate(10deg);
}

/* Tooltip / Label */
.btn-contact-tooltip {
    position: absolute;
    right: 75px;
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--color-border);
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

[data-theme="dark"] .btn-contact-tooltip {
    background: var(--color-bg-surface);
    border-color: var(--color-border);
    color: var(--color-text-primary);
}

.btn-contact-float:hover .btn-contact-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Micro-animation pulse effect for attention grabbing */
.btn-contact-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.3;
    z-index: -1;
    animation: contact-pulse 2s infinite;
}

@keyframes contact-pulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 768px) {
    .btn-contact-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .btn-contact-float svg {
        width: 26px;
        height: 26px;
    }
    .btn-contact-tooltip {
        display: none;
    }
}
