/* =============================================
   VARIÁVEIS GLOBAIS - DARK & LIGHT THEMES
   ============================================= */
:root {
    /* Cores de Acento / Marca */
    --primary: #0052ff;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --accent: #3b82f6;
    --accent-neon: #1a62ff;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-glow: linear-gradient(135deg, #0052ff 0%, #3b82f6 50%, #8b5cf6 100%);
    --gradient-hero: linear-gradient(135deg, #0b0f19 0%, #111827 50%, #1e1b4b 100%);
    --shadow-elegant: 0 20px 40px -12px rgba(59, 130, 246, 0.35);
    --shadow-neon: 0 0 25px rgba(0, 242, 254, 0.25);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Padrão (Dark Mode) */
    --bg-dark: #0b0f19;
    --surface: #0f172a;
    --surface-card: rgba(15, 23, 42, 0.85);
    --glass-bg: rgba(17, 24, 39, 0.75);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-hover-border: rgba(59, 130, 246, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --header-bg-scroll: rgba(11, 15, 25, 0.75);
    --service-card-bg: rgba(15, 23, 42, 0.85);
    --service-card-text: #f8fafc;
    --service-card-desc: #94a3b8;
    --service-circle-bg: rgba(30, 41, 59, 0.85);
    --white: #ffffff;
}

/* Modo Claro (Light Mode) */
[data-theme="light"] {
    --bg-dark: #f8fafc;
    --surface: #ffffff;
    --surface-card: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-hover-border: rgba(59, 130, 246, 0.5);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --header-bg-scroll: rgba(255, 255, 255, 0.85);
    --service-card-bg: #ffffff;
    --service-card-text: #0f172a;
    --service-card-desc: #475569;
    --service-circle-bg: #f1f5f9;
}

[data-theme="light"] body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

[data-theme="light"] .hero-gradient {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #dbeafe 100%);
}

[data-theme="light"] .hero-content {
    color: var(--text-primary);
}

[data-theme="light"] .hero-subtitle {
    color: var(--text-secondary);
}

[data-theme="light"] .badge-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
}

[data-theme="light"] .badge-item i {
    color: var(--primary);
}

[data-theme="light"] .feature-section,
[data-theme="light"] .systems-section,
[data-theme="light"] .cases-section {
    background-color: var(--bg-dark);
}

[data-theme="light"] .feature-card,
[data-theme="light"] .case-card,
[data-theme="light"] .contact-pillar-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .feature-title,
[data-theme="light"] .case-title,
[data-theme="light"] .pillar-value {
    color: #0f172a !important;
}

[data-theme="light"] .feature-desc,
[data-theme="light"] .case-description,
[data-theme="light"] .contact-subtitle {
    color: #64748b !important;
}

[data-theme="light"] .feature-list li,
[data-theme="light"] .case-testimonial {
    color: #334155 !important;
}

[data-theme="light"] .pillar-icon-box {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .category-tab {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

[data-theme="light"] .category-tab.active {
    color: #ffffff;
}

[data-theme="light"] header .nav-link {
    color: #334155;
}

[data-theme="light"] header.scrolled {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] header.scrolled .nav-link {
    color: #475569 !important;
}

[data-theme="light"] header.scrolled .nav-link:hover {
    color: var(--primary) !important;
    background: rgba(59, 130, 246, 0.08);
}

[data-theme="light"] header .hamburger svg path {
    stroke: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

section,
.section {
    scroll-margin-top: 30px;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================================
   ANIMAÇÕES
   ============================================= */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    80% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   COMPONENTES REUTILIZÁVEIS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: inherit;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .btn-secondary {
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary);
}

/* =============================================
   HEADER MODERNO & REFINADO
   ============================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 3rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 1000;
    background-color: transparent;
    backdrop-filter: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.transparent {
    background-color: transparent;
    backdrop-filter: none;
    border-bottom: none;
}

/* Fundo translúcido moderno e altura reduzida ao rolar a página */
header.scrolled {
    padding: 0.7rem 2.5rem !important;
    background-color: var(--header-bg-scroll) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25) !important;
}

/* Logo com redimensionamento fluido ao rolar */
header .win-logo {
    background-image: url("logos/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center left;
    height: 34px;
    width: 135px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* [data-theme="light"] header .win-logo {
    background-image: url("logos/win_logobranca.png");
} */

header.scrolled .win-logo {
    height: 34px;
    width: 135px;
}

header .logo {
    justify-self: start;
}

/* Navegação */
body > header nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.35rem 0.6rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    justify-self: center;
}

[data-theme="light"] body > header nav {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

header .nav-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
}

header .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] header .nav-link:hover {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.16);
}

.nav-divider {
    color: var(--text-muted);
    font-size: 0.95rem;
    user-select: none;
}

/* Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: end;
}

/* Botão Alternador de Tema (Dark/Light) */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #f8fafc;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: rotate(15deg) scale(1.08);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.theme-icon-light {
    display: none;
}

.theme-icon-dark {
    display: inline-block;
}

[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
    color: #0f172a;
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #d97706;
}

[data-theme="light"] .theme-icon-light {
    display: inline-block;
    color: #f59e0b;
}

[data-theme="light"] .theme-icon-dark {
    display: none;
}

/* Botão Acesso do Cliente - Ultra Moderno */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.35rem;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
    background-size: 200% auto;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px -4px rgba(79, 70, 229, 0.45);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.admin-btn i {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.admin-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(79, 70, 229, 0.6), 0 0 20px rgba(59, 130, 246, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.admin-btn:hover i {
    transform: scale(1.15) rotate(-5deg);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #272727 0%, #1d1d1d 50%, #181818 100%);
    background-size: 200% 200%;
    animation: gradientMove 12s ease infinite;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    gap: 5%;
    z-index: 1;
    color: white;
}

.hero-text {
    flex: 1;
    max-width: 780px;
}

.hero-title-line {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight-word {
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.10rem;
    margin: 1rem 0;
    color: var(--text-light);
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Badges de Confiança na Hero Section */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.badge-item i {
    color: var(--accent-neon);
    font-size: 1rem;
}

.badge-item:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Abas de Filtro de Categoria nos Sistemas */
.system-category-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.category-tab:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-primary);
    border-color: rgba(59, 130, 246, 0.3);
}

.category-tab.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

/* Efeitos Interativos */
.pulse-effect:hover {
    animation: pulse 1.5s infinite;
}

.hover-effect:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    max-width: 600px;
    position: relative;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 6px;
    height: 10px;
    background: white;
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Efeito de Digitação */
.typing-effect {
    display: inline-block;
}

.typing-effect::after {
    content: '|';
    animation: blink 1s infinite;
}

/* =============================================
   FLOATING IPHONE COMPONENT
   ============================================= */
.floating-iphone-container {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1000px;
}

.floating-iphone {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(55deg) rotateZ(-45deg);
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: drop-shadow(-22px 30px 24px rgba(0, 0, 0, 0.32));
}

.floating-iphone::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 9%; right: 5%; bottom: -32px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 82, 255, 0.28), rgba(0, 0, 0, 0.22) 48%, transparent 72%);
    filter: blur(10px);
    transition: all 0.5s ease;
}

.iphone {
    width: 460px;
    height: 210px;
    border-radius: 24px;
    position: relative;
    background: linear-gradient(145deg, #4b5563 0%, #111827 22%, #030712 67%, #374151 100%);
    box-shadow: -35px 35px 60px rgba(0, 0, 0, 0.36),
        inset 0 2px 0 rgba(255, 255, 255, 0.34),
        inset 0 -5px 0 rgba(0, 0, 0, 0.6),
        inset 0 0 0 8px #090d15,
        inset 0 0 0 10px rgba(148, 163, 184, 0.48);
    overflow: hidden;
}

.screen {
    position: absolute;
    width: 420px;
    height: 160px;
    top: 25px;
    left: 20px;
    background: linear-gradient(135deg, #0b0f19 0%, #0f172a 100%);
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 254, 0.25);
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.25);
    padding: 10px 14px;
    overflow: hidden;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.screen-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255,255,255,.13), transparent 28%, transparent 66%, rgba(59,130,246,.08));
    pointer-events: none;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.screen-brand {
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
}

.brand-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-neon);
    border-radius: 50%;
    box-shadow: 0 0 8px #0052ff;
}

.screen-status {
    color: #94a3b8;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-pulse {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
}

.screen-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 4px 0;
}

.metric-mini-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
}

.m-label {
    font-size: 0.58rem;
    color: #94a3b8;
}

.m-val {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 1px;
}

.m-badge {
    font-size: 0.52rem;
    color: #3b82f6;
    margin-top: 1px;
}

.m-badge.positive {
    color: #0052ff;
    font-weight: 600;
}

.screen-chart-area {
    height: 48px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    display: flex;
    align-items: flex-end;
}

.chart-bar-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    gap: 8px;
}

.chart-bar {
    flex: 1;
    height: var(--height);
    background: linear-gradient(to top, rgba(59, 130, 246, 0.4), #3b82f6);
    border-radius: 3px 3px 0 0;
    transition: height 0.5s ease;
}

.chart-bar.highlight {
    background: linear-gradient(to top, #0052ff, #8b5cf6);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.camera {
    width: 10px;
    height: 10px;
    position: absolute;
    top: 20%;
    left: 93%;
    z-index: 1001;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, #333 30%, #111 100%);
    border: 1px solid #000;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.side-button {
    position: absolute;
    right: 6%;
    top: 30%;
    width: 6px;
    height: 70px;
    z-index: 1001;
    background: #222;
    border-radius: 3px;
    box-shadow: inset -2px 0 4px rgba(0, 0, 0, 0.5),
        1px 0 1px rgba(255, 255, 255, 0.05);
}

.home-btn {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 7%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(145deg, #111827, #020617);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.home-btn::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: inherit;
}

.home-btn:hover,
.home-btn.clicked {
    border-color: rgba(96, 165, 250, 0.9);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.home-btn.clicked {
    transform: translate(-50%, -50%) scale(0.88);
}

/* Efeitos hover */
.floating-iphone-container:hover .floating-iphone {
    transform: translate(-50%, calc(-50% + 210px)) rotateX(0deg) rotateZ(0deg);
    filter: drop-shadow(0 30px 35px rgba(0, 0, 0, 0.42));
}

.floating-iphone-container:hover .screen {
    opacity: 1;
}

.floating-iphone-container:not(:hover) .floating-iphone {
    transform: translate(-50%, -50%) rotateX(55deg) rotateZ(-45deg);
}

.floating-iphone-container:not(:hover) .screen {
    opacity: 0;
}

/* =============================================
   DASHBOARD CARDS
   ============================================= */
.dashboard-card {
    position: absolute;
    padding: 14px 15px;
    border-radius: 18px;
    width: 218px;
    min-height: 104px;
    opacity: 0;
    transform: translateY(0);
    transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .3s ease;
    z-index: 3000;
    display: grid;
    grid-template-columns: 43px 1fr;
    align-items: center;
    gap: 12px;
    text-align: left;
    color: #fff;
    background: linear-gradient(135deg, rgba(17,24,39,.82), rgba(15,23,42,.58));
    box-shadow: 0 18px 45px rgba(2, 6, 23, .34), inset 0 1px 0 rgba(255,255,255,.14);
    border: 1px solid rgba(148,163,184,.22);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    overflow: hidden;
    animation: cardFloat 5.5s ease-in-out infinite both;
    animation-play-state: paused;
    will-change: transform;
}

/* No desktop, os cards são revelados pelo hover do aparelho. */
@media (min-width: 993px) {
    .floating-iphone-container:hover .dashboard-card {
        opacity: 1;
        animation-play-state: running;
    }

    .card-analytics {
        top: 2%;
        left: 2%;
        animation-delay: -.4s;
    }

    .card-performance {
        top: 11%;
        right: 0;
        animation-delay: -2.7s;
    }

    .card-security {
        top: 36%;
        left: 3%;
        animation-delay: -1.4s;
    }

    .card-professional {
        top: 46%;
        right: 0;
        animation-delay: -3.8s;
    }
}

.dashboard-card::before {
    content: '';
    position: absolute;
    width: 90px; height: 90px;
    right: -35px; top: -45px;
    border-radius: 50%;
    background: var(--card-accent);
    opacity: .2;
    filter: blur(22px);
}

.card-icon {
    font-size: 1rem;
    color: white;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 78%, white), var(--card-accent));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--card-accent) 32%, transparent), inset 0 1px 0 rgba(255,255,255,.4);
}

.card-content { min-width: 0; }
.card-kicker { display: block; margin-bottom: 1px; color: #94a3b8; font-size: .56rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.card-content h4 {
    margin: 0;
    font-size: .9rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Posicionamento e cores dos cards */
.card-analytics {
    --card-accent: #8b5cf6;
    top: 5%;
    left: 10%;
}

.card-performance {
    --card-accent: #f59e0b;
    top: 5%;
    right: 10%;
}

.card-professional {
    --card-accent: #06b6d4;
    top: 40%;
    right: 10%;
}

.card-security {
    --card-accent: #2563eb;
    top: 40%;
    left: 10%;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotate(.15deg); }
    50% { transform: translateY(-12px) rotate(-.15deg); }
}

.dashboard-card:hover {
    border-color: color-mix(in srgb, var(--card-accent) 55%, white);
    box-shadow: 0 24px 55px rgba(2, 6, 23, .45), 0 0 0 1px color-mix(in srgb, var(--card-accent) 20%, transparent);
}

.dashboard-card:hover .card-icon {
    transform: scale(1.08) rotate(-4deg);
}

.card-icon {
    transition: transform .3s cubic-bezier(.2,.8,.2,1), filter .3s ease;
}

/* =============================================
   FEATURE SECTION
   ============================================= */
.feature-section {
    padding: 100px 20px;
    background: var(--bg-dark);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.feature-card {
    cursor: pointer;
    background: var(--surface-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 30px;
    max-height: 700px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.5s ease;
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.4);
}

.feature-icon {
    font-size: 40px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    color: white;
}

/* Gradientes para ícones */
.gradient-blue {
    background: linear-gradient(135deg, #005eff, #00d4ff);
}

.gradient-purple {
    background: linear-gradient(135deg, #7f00ff, #e100ff);
}

.gradient-orange {
    background: linear-gradient(135deg, #ff6a00, #ee0979);
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #ffffff !important;
    font-weight: 700;
}

.feature-desc {
    font-size: 1rem;
    color: #94a3b8 !important;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    color: #cbd5e1 !important;
    font-weight: 500;
}

.feature-list li::before {
    content: "✓";
    color: var(--accent-neon);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Modo cinema */
/* body.cinema-mode {
    overflow: hidden;
}

body.cinema-mode::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999;
    animation: fadeInCinema 0.6s ease forwards;
}

#cinemaCard {
    display: grid;
    grid-template-columns: 25% 1fr 20%;
    position: absolute;
    top: 0;
    left: calc(100% + 20px);
    width: calc(100vw - (100% + 20px));
    height: 100%;
    background: #1e293b;
    color: white;
    padding: 30px;
    border-radius: 16px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px) scaleX(0.8);
    transform-origin: left center;
    transition: opacity 0.4s ease, transform 0.5s ease;
    pointer-events: none;
    overflow: hidden;
}

#cinemaCard.active {
    display: grid;
    opacity: 1;
    transform: translateY(0) scaleX(1);
    pointer-events: auto;
}

.cinema-content {
    grid-column: 1;
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cinema-blank-space {
    grid-column: 3;
    height: 100%;
    transform: translateY(15%);
    border-radius: 8px;
} */

/* Conteúdo principal (área central) */
/* .cinema-main-content {
    grid-column: 2;
    padding: 0 30px;
    overflow-y: auto;
} */

/* =============================================
   SYSTEMS SECTION
   ============================================= */
.systems-section {
    background-color: var(--bg-dark);
    padding: 4rem 2rem;
}

.systems-page-cta {
    margin: 2rem auto 0;
    text-align: center;
}

.systems-page-cta p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.systems-page-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.85rem;
    border: 1px solid rgba(147, 197, 253, 0.7);
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #4f46e5 58%, #7c3aed);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.35);
}

.systems-page-link:hover {
    background: linear-gradient(135deg, #1d4ed8, #4338ca 58%, #6d28d9);
    border-color: #bfdbfe;
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(59, 130, 246, 0.45);
    transform: translateY(-3px);
}

.systems-page-link i {
    transition: transform 0.25s ease;
}

.systems-page-link:hover i {
    transform: translateX(4px);
}

.systems-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0 30px;
    flex: 1;
}

.system-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.system-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 400px;
    transition: all 0.5s ease;
}

.system-card-content {
    width: 60%;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
    z-index: 2;
}

.system-image-banner {
    width: 100%;
    height: 220px;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.system-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.system-image-banner:hover .system-banner-img {
    transform: scale(1.05);
}

.system-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
    pointer-events: none;
}

.system-tag {
    position: absolute;
    bottom: 0.85rem;
    left: 0.85rem;
    padding: 0.4rem 0.9rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(0, 242, 254, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-neon);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.detail-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    z-index: 0;
}

.system-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.system-header-row .system-icon {
    margin-bottom: 0;
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.system-header-row .system-title {
    margin-bottom: 0;
}

.system-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.system-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff !important;
    font-weight: 700;
}

.system-description {
    color: #94a3b8 !important;
}

.system-detailed-description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: #cbd5e1 !important;
    margin-top: 0;
    margin-left: 0.2rem;
    display: flex;
    align-items: flex-start;
}

.system-detailed-description::before {
    content: '• ';
    color: var(--accent-neon);
    margin-right: 0.3rem;
}

.system-detailed-description.expanded {
    opacity: 1;
    max-height: 200px;
    margin-top: 1rem;
}

.detail-card {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 0 1rem 1rem 0;
    padding: 2rem;
    color: white;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.detail-card.visible {
    transform: translateX(0);
    opacity: 1;
}

.system-mini-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex-grow: 1;
}

.system-mini-features li {
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.system-mini-features li::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--accent-neon);
    border-radius: 50%;
    margin-top: 0.45rem;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--accent-neon);
}

.detail-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.6rem;
}

.detail-btn {
    margin-top: auto;
    padding: 0.85rem 1.25rem;
    background: #ffffff;
    color: var(--primary);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.detail-btn:hover {
    background: var(--accent-neon);
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
}

.carousel-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    pointer-events: auto;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* =============================================
   NOVO SERVICES SECTION (Corrigido)
   ============================================= */

/* Container Principal - Centralizado e Limitado */
.services-grid {
    display: grid;
    /* Força exatamente 3 colunas em telas grandes */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    /* Espaço entre cards */
    padding: 2rem;
    max-width: 1200px;
    /* Impede que tome a tela toda em monitores grandes */
    margin: 0 auto;
    /* Centraliza o bloco na tela */
}

/* Responsividade: Tablet (2 colunas) e Mobile (1 coluna) */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Base do Card */
.service-card {
    position: relative;
    width: 100%;
    height: 420px;
    /* Altura fixa para uniformidade */
    background: var(--service-card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.5s ease;
}

.service-card.is-visible,
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.25);
    border-color: var(--glass-hover-border);
}

/* Overlay Colorido (Fundo) */
.service-card .overlay {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: var(--bg-color);
    border-radius: 50%;
    z-index: 0;
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.service-card.is-visible .overlay,
.service-card:hover .overlay {
    transform: scale(15);
}

/* --- CAMADA 1: Ícone (Ajustado para subir mais) --- */
.service-card .slide1 {
    position: relative;
    z-index: 2;
    transition: 0.5s ease-in-out;
    transform: translateY(20px);
    /* Posição inicial levemente baixada */
}

/* No hover, o ícone sobe MAIS para dar espaço ao texto */
.service-card.is-visible .slide1,
.service-card:hover .slide1 {
    transform: translateY(-100px);
}

/* Círculo do Ícone */
.service-card .circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--service-circle-bg);
    border: 4px solid var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);

    /* CORREÇÃO DAS CORES DOS ÍCONES */
    color: var(--bg-color);
    /* Define a cor base para o SVG herdar */
}

.service-card.is-visible .circle,
.service-card:hover .circle {
    background: transparent;
    border-color: #fff;
    box-shadow: none;
    color: #fff;
    /* Muda ícone para branco no hover */
}

/* Regra Universal para SVGs (Stroke ou Fill) */
.service-card .circle svg {
    width: 60px;
    height: 60px;
    transition: all 0.3s;
    /* Garante que herde a cor definida em .circle */
    stroke: currentColor;
    fill: none;
}

/* Regra Específica para ícones preenchidos (Integração, Manutenção, etc) */
.service-card .circle svg.filled {
    fill: currentColor;
    stroke: none;
}

/* --- CAMADA 2: Conteúdo (Texto mais baixo) --- */
.service-card .slide2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    /* Altura reduzida para ficar na parte inferior */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Alinha no topo da área inferior */
    z-index: 2;
    transform: translateY(100%);
    transition: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 20px;
    /* Padding ajustado */
}

.service-card.is-visible .slide2,
.service-card:hover .slide2 {
    transform: translateY(0);
    /* Sobe para a posição natural */
}

.service-card .content {
    color: transparent;
    transition: color 0.3s ease 0.1s;
    margin-top: -20px;
    /* Empurra o texto para longe do ícone */
}

.service-card.is-visible .content,
.service-card:hover .content {
    color: #fff;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--service-card-text);
    transition: 0.3s;
}

.service-card.is-visible .service-title,
.service-card:hover .service-title {
    color: #fff;
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--service-card-desc);
    opacity: 0;
    transition: 0.3s;
}

.service-card.is-visible .service-description,
.service-card:hover .service-description {
    color: #fff;
    opacity: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 5px;
    display: inline-block;
    /* Centraliza visualmente o bloco da lista */
}

.service-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: bold;
}

/* =============================================
   CASES SECTION
   ============================================= */
.cases-section {
    background-color: var(--surface);
    padding: 6rem 0;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cases-container {
    position: relative;
    width: 100%;
    padding: 0 30px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 35px, black calc(100% - 35px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35px, black calc(100% - 35px), transparent 100%);
}

.cases-carousel {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    gap: 2rem;
}

.case-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    min-width: 0;
}

.case-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.case-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.case-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border-radius: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.case-logo-placeholder {
    width: 65px;
    height: 65px;
    border-radius: 0.75rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.case-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: #ffffff !important;
    font-weight: 700;
}

.case-sector {
    font-size: 0.8rem;
    color: var(--accent-neon) !important;
    font-weight: 500;
    text-decoration: none;
    display: block;
}

.case-description {
    color: #94a3b8 !important;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.case-testimonial {
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    font-style: italic;
    color: #cbd5e1 !important;
    margin-top: 1.5rem;
    position: relative;
    line-height: 1.6;
    min-height: 80px;
}

/* =============================================
   CONTACT SECTION (PILARESS DE CONTATO)
   ============================================= */
#contato.section {
    padding: 6.5rem 1rem 7.5rem 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: -1.8rem auto 3.5rem auto;
}

.contact-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-pillar-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.25rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.contact-pillar-card>* {
    position: relative;
    z-index: 1;
}

.pillar-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s ease;
}

.pillar-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    transition: color 0.3s ease;
}

.pillar-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.2rem;
    word-break: break-word;
    transition: transform 0.3s ease;
}

.pillar-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.pillar-action i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* Hover Global dos Cards */
.contact-pillar-card.is-visible,
.contact-pillar-card:hover {
    transform: translateY(-8px);
}

.contact-pillar-card.is-visible .pillar-action i,
.contact-pillar-card:hover .pillar-action i {
    transform: translateX(4px);
}

/* 1. WHATSAPP - Hover Verde */
.whatsapp-pillar .pillar-icon-box {
    color: #25D366;
}

.whatsapp-pillar.is-visible,
.whatsapp-pillar:hover {
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.25), 0 0 20px rgba(37, 211, 102, 0.15);
}

.whatsapp-pillar.is-visible::before,
.whatsapp-pillar:hover::before {
    opacity: 1;
    background: radial-gradient(circle at 50% 0%, rgba(37, 211, 102, 0.15), transparent 70%);
}

.whatsapp-pillar.is-visible .pillar-icon-box,
.whatsapp-pillar:hover .pillar-icon-box {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.6);
    transform: scale(1.1);
}

.whatsapp-pillar.is-visible .pillar-label,
.whatsapp-pillar.is-visible .pillar-action,
.whatsapp-pillar:hover .pillar-label,
.whatsapp-pillar:hover .pillar-action {
    color: #25D366;
}

/* 2. TELEFONE - Hover Azul Ciano */
.phone-pillar .pillar-icon-box {
    color: #00d2ff;
}

.phone-pillar.is-visible,
.phone-pillar:hover {
    border-color: rgba(0, 210, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 210, 255, 0.25), 0 0 20px rgba(0, 210, 255, 0.15);
}

.phone-pillar.is-visible::before,
.phone-pillar:hover::before {
    opacity: 1;
    background: radial-gradient(circle at 50% 0%, rgba(0, 210, 255, 0.15), transparent 70%);
}

.phone-pillar.is-visible .pillar-icon-box,
.phone-pillar:hover .pillar-icon-box {
    background: linear-gradient(135deg, #00d2ff, #0072ff);
    color: #ffffff;
    border-color: #00d2ff;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
    transform: scale(1.1);
}

.phone-pillar.is-visible .pillar-label,
.phone-pillar.is-visible .pillar-action,
.phone-pillar:hover .pillar-label,
.phone-pillar:hover .pillar-action {
    color: #00d2ff;
}

/* 3. INSTAGRAM - Hover Degradê Rosa/Roxo/Laranja */
.instagram-pillar .pillar-icon-box {
    color: #f09433;
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.instagram-pillar.is-visible,
.instagram-pillar:hover {
    border-color: rgba(225, 48, 108, 0.5);
    box-shadow: 0 15px 35px rgba(225, 48, 108, 0.25), 0 0 20px rgba(225, 48, 108, 0.15);
}

.instagram-pillar.is-visible::before,
.instagram-pillar:hover::before {
    opacity: 1;
    background: radial-gradient(circle at 50% 0%, rgba(225, 48, 108, 0.18), transparent 70%);
}

.instagram-pillar.is-visible .pillar-icon-box,
.instagram-pillar:hover .pillar-icon-box {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    border-color: #e1306c;
    box-shadow: 0 0 25px rgba(225, 48, 108, 0.6);
    transform: scale(1.1);
}

.instagram-pillar.is-visible .pillar-label,
.instagram-pillar.is-visible .pillar-action,
.instagram-pillar:hover .pillar-label,
.instagram-pillar:hover .pillar-action {
    color: #fd1d1d;
}

/* 4. EMAIL - Hover Azul Royal / Violeta */
.email-pillar .pillar-icon-box {
    color: #6366f1;
}

.email-pillar.is-visible,
.email-pillar:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.25), 0 0 20px rgba(99, 102, 241, 0.15);
}

.email-pillar.is-visible::before,
.email-pillar:hover::before {
    opacity: 1;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15), transparent 70%);
}

.email-pillar.is-visible .pillar-icon-box,
.email-pillar:hover .pillar-icon-box {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
    transform: scale(1.1);
}

.email-pillar.is-visible .pillar-label,
.email-pillar.is-visible .pillar-action,
.email-pillar:hover .pillar-label,
.email-pillar:hover .pillar-action {
    color: #818cf8;
}

/* =============================================
   COMPONENTES FLUTUANTES
   ============================================= */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-elegant);
    z-index: 1000;
    transform: translateX(200%);
    transition: transform 0.4s ease-out;
}

.toast.visible {
    transform: translateX(0);
}

/* =============================================
   MODAL
   ============================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.modal-content {
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 1rem;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ffffff;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.modal-system-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    color: #ffffff !important;
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-description h3,
.modal-features h3,
.h3-demo {
    color: var(--accent-neon) !important;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.modal-description p,
#modal-system-description {
    color: #cbd5e1 !important;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.modal-columns {
    display: flex;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .modal-columns {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.modal-left {
    flex: 1;
}

.modal-right {
    flex: 1;
}

.modal-features {
    margin-top: 0px;
}

.modal-features ul {
    list-style-type: none;
    padding-left: 0;
}

.modal-features li {
    padding: 0.7rem 0;
    position: relative;
    padding-left: 1.8rem;
    line-height: 1.5;
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-features li:before {
    content: "•";
    color: var(--accent-neon);
    font-size: 1.8rem;
    position: absolute;
    left: 0;
    top: 0.3rem;
}

.demo-form h3 {
    color: var(--accent-neon);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.modal-contact-btn {
    display: block;
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.modal-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* =============================================
   PÁGINAS LEGAIS
   ============================================= */
.legal-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    color: #333;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #2d3436;
    text-align: center;
    margin-top: 50px;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #2d3436;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
}

.legal-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #2d3436;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 20px;
    line-height: 1.6;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

.last-updated {
    font-style: italic;
    text-align: right;
    margin-top: 40px;
    color: #636e72;
}

/* Estilos específicos para página de Cookies */
.cookie-types {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.cookie-type {
    flex: 1;
    min-width: 250px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cookie-type h3 {
    color: #6c5ce7;
    margin-top: 0;
}

.cookie-settings {
    background: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

/* =============================================
   CLASSES DE ANIMAÇÃO
   ============================================= */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

/* Entrada progressiva de Serviços e Contato conforme o scroll */
.service-card.reveal-on-scroll,
.contact-pillar-card.reveal-on-scroll {
    opacity: 0;
    transform: translateY(38px);
    transition-delay: var(--reveal-delay, 0ms);
}

.service-card.reveal-on-scroll.is-visible,
.contact-pillar-card.reveal-on-scroll.is-visible {
    opacity: 1;
}

.service-card.reveal-on-scroll.is-visible {
    transform: translateY(-10px);
}

.contact-pillar-card.reveal-on-scroll.is-visible {
    transform: translateY(-8px);
}

/* Evita layout e pintura de seções que ainda estão fora da tela. */
#servicos,
#cases,
#contato {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
}

/* Firefox sem GPU sofre mais com desfoque em áreas grandes.
   Mantemos profundidade e animações, trocando apenas os efeitos mais caros. */
@supports (-moz-appearance: none) {
    .hero-gradient {
        background-size: 140% 140%;
        animation: gradientMove 36s steps(120, end) infinite;
    }

    header.scrolled,
    header nav,
    .dashboard-card,
    .feature-card,
    .system-card-content,
    .system-tag,
    .case-card,
    .contact-pillar-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    header nav {
        background: rgba(15, 23, 42, 0.88);
    }

    .feature-card,
    .system-card-content,
    .case-card,
    .contact-pillar-card {
        background: rgba(15, 23, 42, 0.96);
    }

    [data-theme="light"] header nav,
    [data-theme="light"] .feature-card,
    [data-theme="light"] .case-card,
    [data-theme="light"] .contact-pillar-card {
        background: rgba(255, 255, 255, 0.96);
    }

    .floating-iphone,
    .floating-iphone-container:hover .floating-iphone {
        filter: none;
    }

    .dashboard-card {
        animation-duration: 7.5s;
        box-shadow: 0 12px 30px rgba(2, 6, 23, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    }

    .dashboard-card::before {
        filter: blur(12px);
    }
}

.card-content p { margin: 3px 0 0; color: #cbd5e1; font-size: .61rem; line-height: 1.4; }
.card-status { position: absolute; right: 12px; top: 10px; display: flex; align-items: center; gap: 4px; color: #cbd5e1; font-size: .5rem; font-weight: 600; }
.card-status i { width: 5px; height: 5px; border-radius: 50%; background: #34d399; box-shadow: 0 0 7px #34d399; }

.iphone::before {
    content: '';
    position: absolute;
    inset: 3px;
    z-index: 2;
    border-radius: 21px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(115deg, rgba(255,255,255,.16), transparent 22%, transparent 72%, rgba(59,130,246,.1));
    pointer-events: none;
}
