/* ============================================
   SMART EXIT - DESIGN SYSTEM
   ============================================ */

:root {
    --primary: #0a8a1e;
    --primary-light: #22C55E;
    --bg-dark: #00040d;
    --bg-card: #0a1219;
    --text-primary: #d9dbe2;
    --text-secondary: #8a8f9a;
    --border-light: #0f172a;
    --glow-green: rgba(34, 197, 94, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Quicksand', 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.02); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px var(--glow-green); }
    50% { box-shadow: 0 0 60px var(--glow-green); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(60px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}
.animate-fade-up:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-up:nth-child(2) { animation-delay: 0.3s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.5s; }
.animate-fade-up:nth-child(4) { animation-delay: 0.7s; }

.animate-fade-left {
    opacity: 0;
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-glow {
    animation: glowPulse 3s ease-in-out infinite;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}
.animate-slide-up:nth-child(1) { animation-delay: 0.1s; }
.animate-slide-up:nth-child(2) { animation-delay: 0.2s; }
.animate-slide-up:nth-child(3) { animation-delay: 0.3s; }
.animate-slide-up:nth-child(4) { animation-delay: 0.4s; }
.animate-slide-up:nth-child(5) { animation-delay: 0.5s; }
.animate-slide-up:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    background: rgba(0, 4, 13, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.navbar .logo span {
    color: var(--primary-light);
}

.navbar .nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.navbar .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.navbar .nav-links a:hover {
    color: var(--text-primary);
}

.navbar .nav-links a:hover::after {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border: none;
    color: white;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Quicksand', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 40px var(--glow-green);
}

.btn-outline {
    background: transparent;
    border: 1px solid #1c4840;
    color: var(--text-primary);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Quicksand', sans-serif;
}

.btn-outline:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 30px var(--glow-green);
}

/* ============================================
   SMART EXIT - ICONES SVG
   ============================================ */

.icon-svg {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    vertical-align: middle;
}

.icon-svg-sm {
    width: 20px;
    height: 20px;
}

.icon-svg-lg {
    width: 32px;
    height: 32px;
}

.icon-svg-xl {
    width: 48px;
    height: 48px;
}

/* Cores */
.icon-svg-green {
    color: var(--primary-light, #22C55E);
}
.icon-svg-white {
    color: #ffffff;
}
.icon-svg-gray {
    color: var(--text-secondary, #8a8f9a);
}

/* Ícones específicos */
.icon-dashboard svg,
.icon-transactions svg,
.icon-companies svg,
.icon-portals svg,
.icon-providers svg,
.icon-products svg,
.icon-users svg,
.icon-audit svg,
.icon-ai svg,
.icon-camera svg,
.icon-monitor svg,
.icon-logout svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}
/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 140px 40px 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.12;
}

.hero-video-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 30%, var(--bg-dark) 90%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #eaf9f0 10%, var(--primary-light) 54%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.hero-content .slogan {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
    -webkit-text-fill-color: var(--text-secondary);
    font-weight: 400;
}

.hero-content .highlight {
    color: var(--primary-light);
    font-weight: 700;
    -webkit-text-fill-color: var(--primary-light);
    position: relative;
}

.hero-content .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-light);
    animation: glowPulse 2s ease-in-out infinite;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border-light);
}

.hero-stats .stat {
    text-align: center;
    transition: all 0.3s ease;
}

.hero-stats .stat:hover {
    transform: translateY(-4px) scale(1.05);
}

.hero-stats .stat .number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-light);
    display: inline-block;
    position: relative;
}

.hero-stats .stat .number::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-light);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.hero-stats .stat:hover .number::after {
    transform: scaleX(1);
}

.hero-stats .stat .label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 600;
}

.hero-image .mockup {
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-image .mockup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, var(--glow-green), transparent 70%);
    opacity: 0.2;
    animation: float 8s ease-in-out infinite;
}

.hero-image .mockup:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-light);
    box-shadow: 0 20px 80px var(--glow-green);
}

.hero-image .mockup .screen {
    position: relative;
    z-index: 1;
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 24px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-image .mockup .screen .screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.15;
}

.hero-image .mockup .screen .screen-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-image .mockup .screen .screen-content .icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: float 4s ease-in-out infinite;
}

.hero-image .mockup .screen .screen-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.hero-image .mockup .screen .screen-content p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    margin-right: 6px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ============================================
   SEÇÕES
   ============================================ */
.section {
    padding: 90px 40px 180px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
    font-weight: 400;
    position: relative !important;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--primary-light);
    box-shadow: 0 12px 60px var(--glow-green);
}

.feature-card .icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card:hover .icon {
    transform: scale(1.2) rotate(-5deg);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

/* ============================================
   SEGMENTOS
   ============================================ */
.segments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.segment-item {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.segment-item:hover {
    border-color: var(--primary-light);
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 8px 40px var(--glow-green);
}

.segment-item .emoji {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.segment-item:hover .emoji {
    transform: scale(1.2) rotate(-10deg);
}

.segment-item h4 {
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-dark));
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    margin: 0 auto 40px auto;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, var(--glow-green), transparent 70%);
    opacity: 0.1;
    animation: float 10s ease-in-out infinite;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* ============================================
   WHATSAPP
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.whatsapp-float .whatsapp-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: glowPulse 3s ease-in-out infinite;
}

.whatsapp-float .whatsapp-btn:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-float .whatsapp-tooltip {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px 20px;
    max-width: 280px;
    font-size: 13px;
    color: var(--text-secondary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    display: none;
    line-height: 1.5;
    font-family: 'Quicksand', sans-serif;
}

.whatsapp-float .whatsapp-tooltip.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.whatsapp-float .whatsapp-tooltip strong {
    color: var(--text-primary);
    font-weight: 700;
}

.whatsapp-float .whatsapp-tooltip .btn-whatsapp-chat {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    background: #25D366;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
}

.whatsapp-float .whatsapp-tooltip .btn-whatsapp-chat:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float .close-tooltip {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    float: right;
}

.whatsapp-float .close-tooltip:hover {
    color: var(--text-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
}

.footer span {
    color: var(--primary-light);
    transition: all 0.3s ease;
    font-weight: 600;
}

.footer span:hover {
    text-shadow: 0 0 20px var(--glow-green);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 120px 24px 60px 24px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image .mockup {
        max-width: 100%;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
    }
    .navbar .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-stats {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 28px;
    }
    .segments-grid {
        grid-template-columns: 1fr 1fr;
    }
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
    }
    .whatsapp-float .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    .whatsapp-float .whatsapp-tooltip {
        max-width: 220px;
        font-size: 12px;
    }
}