/* ============================================================
   NEXUS ERP — Landing Page CSS
   Tema claro profissional • Bootstrap 5 local
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nx-primary: #2563EB;
    --nx-primary-dark: #1D4ED8;
    --nx-primary-light: #3B82F6;
    --nx-bg: #F8FAFC;
    --nx-surface: #FFFFFF;
    --nx-text: #1E293B;
    --nx-text-secondary: #64748B;
    --nx-border: #E2E8F0;
    --nx-green: #10B981;
    --nx-green-dark: #059669;
    --nx-cyan: #06B6D4;
    --nx-gradient: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    --nx-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --nx-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --nx-shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --nx-radius: 12px;
    --nx-radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--nx-bg);
    color: var(--nx-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---------- NAVBAR ---------- */
.nx-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nx-border);
    padding: 14px 0;
    transition: box-shadow 0.3s, padding 0.3s;
}

.nx-navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 10px 0;
}

.nx-brand {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--nx-text) !important;
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nx-nav-link {
    color: var(--nx-text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 18px !important;
    transition: color 0.2s;
}

.nx-nav-link:hover,
.nx-nav-link.active {
    color: var(--nx-primary) !important;
}

.btn-nx-login {
    border: 2px solid var(--nx-primary);
    color: var(--nx-primary);
    background: transparent;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s;
}

.btn-nx-login:hover {
    background: var(--nx-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ---------- HERO SECTION ---------- */
.nx-hero {
    background: linear-gradient(180deg, #EFF6FF 0%, var(--nx-bg) 100%);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.nx-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.nx-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--nx-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 28px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--nx-text);
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--nx-text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 35px;
}

.btn-nx-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--nx-gradient);
    color: #fff;
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.btn-nx-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
    color: #fff;
}

.btn-nx-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--nx-surface);
    color: var(--nx-text);
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid var(--nx-border);
    text-decoration: none;
    transition: all 0.3s;
}

.btn-nx-hero-secondary:hover {
    border-color: var(--nx-primary);
    color: var(--nx-primary);
    transform: translateY(-2px);
}

/* Hero Dashboard Mockup */
.hero-mockup {
    background: var(--nx-surface);
    border-radius: var(--nx-radius-lg);
    box-shadow: var(--nx-shadow-lg);
    border: 1px solid var(--nx-border);
    overflow: hidden;
    position: relative;
}

.mockup-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #F1F5F9;
    border-bottom: 1px solid var(--nx-border);
}

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

.mockup-dot.red { background: #EF4444; }
.mockup-dot.yellow { background: #F59E0B; }
.mockup-dot.green { background: #10B981; }

.mockup-toolbar-title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--nx-text-secondary);
    font-weight: 500;
}

.mockup-body {
    padding: 20px;
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.mockup-stat {
    background: var(--nx-bg);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.mockup-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 8px;
}

.mockup-stat-icon.blue { background: var(--nx-primary); }
.mockup-stat-icon.green { background: var(--nx-green); }
.mockup-stat-icon.cyan { background: var(--nx-cyan); }

.mockup-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--nx-text);
}

.mockup-stat-label {
    font-size: 0.65rem;
    color: var(--nx-text-secondary);
    margin-top: 2px;
}

.mockup-chart {
    background: var(--nx-bg);
    border-radius: 10px;
    padding: 16px;
    height: 120px;
    position: relative;
    overflow: hidden;
}

.mockup-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 100%;
    padding-top: 10px;
}

.mockup-chart-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    min-height: 10px;
    transition: height 0.3s;
}

/* ---------- SCREENSHOTS SECTION ---------- */
.nx-screenshots {
    padding: 100px 0;
    background: var(--nx-surface);
}

.nx-section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--nx-primary);
    margin-bottom: 12px;
}

.nx-section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--nx-text);
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.nx-section-subtitle {
    font-size: 1.1rem;
    color: var(--nx-text-secondary);
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Screenshot Card */
.screenshot-card {
    background: var(--nx-bg);
    border-radius: var(--nx-radius);
    overflow: hidden;
    border: 1px solid var(--nx-border);
    transition: all 0.35s;
    height: 100%;
}

.screenshot-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--nx-shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.screenshot-preview {
    background: #F1F5F9;
    padding: 16px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.screenshot-info {
    padding: 20px;
}

.screenshot-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--nx-text);
    margin-bottom: 8px;
}

.screenshot-info p {
    font-size: 0.88rem;
    color: var(--nx-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Mini screen mockups */
.mini-screen {
    width: 100%;
    max-width: 260px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    font-size: 0.7rem;
}

.mini-screen-header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #F1F5F9;
    border-bottom: 1px solid var(--nx-border);
}

.mini-screen-header .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.mini-screen-header .dot.r { background: #EF4444; }
.mini-screen-header .dot.y { background: #F59E0B; }
.mini-screen-header .dot.g { background: #10B981; }

.mini-screen-body {
    padding: 10px;
}

.mini-bar {
    height: 6px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.mini-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.mini-cell {
    height: 24px;
    border-radius: 4px;
    flex: 1;
}

.mini-cell.wide { flex: 2; }

.mini-table-row {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
    align-items: center;
}

.mini-table-cell {
    height: 8px;
    border-radius: 2px;
    flex: 1;
}

.mini-badge {
    display: inline-block;
    width: 28px;
    height: 8px;
    border-radius: 4px;
}

/* ---------- VANTAGENS ---------- */
.nx-vantagens {
    padding: 100px 0;
    background: var(--nx-bg);
}

.vantagem-card {
    background: var(--nx-surface);
    border-radius: var(--nx-radius);
    padding: 32px 28px;
    border: 1px solid var(--nx-border);
    transition: all 0.3s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.vantagem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--nx-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s;
}

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

.vantagem-card:hover {
    box-shadow: var(--nx-shadow);
    transform: translateY(-4px);
}

.vantagem-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.vantagem-icon.blue { background: rgba(37, 99, 235, 0.1); color: var(--nx-primary); }
.vantagem-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--nx-green); }
.vantagem-icon.cyan { background: rgba(6, 182, 212, 0.1); color: var(--nx-cyan); }
.vantagem-icon.purple { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.vantagem-icon.orange { background: rgba(249, 115, 22, 0.1); color: #F97316; }
.vantagem-icon.rose { background: rgba(244, 63, 94, 0.1); color: #F43F5E; }

.vantagem-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--nx-text);
    margin-bottom: 10px;
}

.vantagem-card p {
    color: var(--nx-text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}

/* ---------- SOBRE ---------- */
.nx-sobre {
    padding: 100px 0;
    background: var(--nx-surface);
}

.sobre-image-placeholder {
    background: linear-gradient(135deg, #EFF6FF 0%, #E0F2FE 100%);
    border-radius: var(--nx-radius-lg);
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--nx-border);
}

.sobre-image-placeholder .sobre-icon-group {
    display: flex;
    gap: 20px;
}

.sobre-floating-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: var(--nx-shadow);
}

.sobre-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--nx-surface);
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: var(--nx-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.sobre-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--nx-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nx-check-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.nx-check-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--nx-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-top: 2px;
}

.nx-check-text h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--nx-text);
    margin-bottom: 2px;
}

.nx-check-text p {
    font-size: 0.88rem;
    color: var(--nx-text-secondary);
    margin: 0;
}

/* ---------- STATS ---------- */
.nx-stats {
    padding: 70px 0;
    background: var(--nx-gradient);
    color: #fff;
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 500;
}

/* ---------- CONTATO ---------- */
.nx-contato {
    padding: 100px 0;
    background: var(--nx-bg);
}

.contato-form-card {
    background: var(--nx-surface);
    border-radius: var(--nx-radius-lg);
    padding: 40px;
    box-shadow: var(--nx-shadow);
    border: 1px solid var(--nx-border);
}

.form-label {
    font-weight: 600;
    color: var(--nx-text);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 1px solid var(--nx-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--nx-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-nx-submit {
    background: var(--nx-gradient);
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-nx-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    color: #fff;
}

.contato-info-card {
    background: var(--nx-gradient);
    border-radius: var(--nx-radius-lg);
    padding: 40px;
    color: #fff;
}

.contato-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.contato-info-item:last-child {
    margin-bottom: 0;
}

.contato-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contato-info-item h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

.contato-info-item p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
    color: #fff;
}

/* ---------- CTA FINAL ---------- */
.nx-cta {
    padding: 100px 0;
    background: var(--nx-surface);
}

.cta-box {
    background: var(--nx-gradient);
    border-radius: var(--nx-radius-lg);
    padding: 70px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    position: relative;
    letter-spacing: -0.5px;
}

.cta-box p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 35px;
    position: relative;
}

.btn-nx-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--nx-primary);
    padding: 18px 44px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    position: relative;
}

.btn-nx-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    color: var(--nx-primary-dark);
}

/* ---------- FOOTER ---------- */
.nx-footer {
    background: var(--nx-text);
    padding: 60px 0 30px;
    color: #CBD5E1;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff !important;
    text-decoration: none;
    margin-bottom: 12px;
    display: inline-block;
}

.footer-brand .brand-nexus {
    background: var(--nx-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    font-size: 0.9rem;
    color: #94A3B8;
    max-width: 320px;
    line-height: 1.6;
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--nx-primary);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748B;
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1050;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--nx-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s;
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(16, 185, 129, 0.5);
    color: #fff;
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(16, 185, 129, 0.6); }
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: var(--nx-text);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--nx-shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.6rem;
    }
    .nx-section-title {
        font-size: 2rem;
    }
    .cta-box {
        padding: 50px 24px;
    }
    .cta-box h2 {
        font-size: 2rem;
    }
    .sobre-image-placeholder {
        height: 280px;
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .nx-hero {
        padding: 120px 0 60px;
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .hero-buttons .btn-nx-hero-secondary {
        margin-left: 0;
    }
    .stat-number {
        font-size: 2rem;
    }
    .contato-form-card,
    .contato-info-card {
        padding: 28px;
    }
    .contato-info-card {
        margin-top: 24px;
    }
    .footer-col {
        margin-bottom: 30px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }
    .mockup-stats {
        grid-template-columns: 1fr;
    }
}