:root {
    --primary-color: #FF6B35;
    --secondary-color: #2C3E50;
    --accent-color: #F39C12;
    --light-bg: #F8F9FA;
    --dark-bg: #1A1A1A;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --white: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    font-display: swap;
}

/* Performance otimizada para scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}

/* Otimizações de performance */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Navigation - Melhorado */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand img {
    margin-right: 8px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
    left: 10%;
}

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

/* Hero Section - Redesenhado */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:0" /></radialGradient></defs><circle cx="200" cy="300" r="150" fill="url(%23grad)"/><circle cx="800" cy="700" r="200" fill="url(%23grad)"/></svg>');
    z-index: 1;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.hero .lead {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255,255,255,0.95);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 600px;
}

/* Buttons - Melhorados */
.btn {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* Dashboard Preview - Melhorado */
.dashboard-preview {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.dashboard-mockup {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: perspective(1000px) rotateY(-8deg) rotateX(5deg);
    transition: transform 0.5s ease;
    max-width: 100%;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    height: 50px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.dashboard-body {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.metric-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Stats Section */
.stats {
    background: var(--secondary-color);
    padding: 4rem 0;
    color: var(--white);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Features Section - Redesenhada */
.features {
    padding: 6rem 0;
    background: var(--light-bg);
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    margin: 0 auto 1.5rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Business Types Section - Nova */
.business-types {
    padding: 6rem 0;
    background: var(--white);
}

.business-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: var(--light-bg);
    height: 100%;
}

.business-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.business-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.business-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.business-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Pricing Section - Melhorada */
.pricing {
    padding: 6rem 0;
    background: var(--light-bg);
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    border: 2px solid transparent;
}

.pricing-card.featured {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.price-period {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.feature-list .check-icon {
    color: var(--success-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    padding: 6rem 0;
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta .lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Footer - Melhorado */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 5rem 0 3rem; /* mais respiro vertical */
}

/* Títulos */
.footer h5 {
    color: var(--primary-color);
    margin-bottom: 1.8rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Links */
.footer a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.25s ease;
    line-height: 1.8;
    display: inline-block;
}

.footer a:hover {
    color: var(--primary-color);
    transform: translateX(3px); /* micro interação top */
}

/* Espaçamento entre itens */
.footer .contact-info div {
    margin-bottom: 14px;
}

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

/* Texto (descrição e CNPJ etc) */
.footer p {
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* Social */
.footer .social-links {
    margin-top: 25px;
}

.footer .social-links a {
    margin-right: 12px;
    font-size: 18px;
    opacity: 0.8;
}

.footer .social-links a:hover {
    opacity: 1;
}

/* Centralização da coluna do meio (desktop) */
@media (min-width: 992px) {
    .footer .col-lg-4:nth-child(2) {
        text-align: center;
        padding: 0 40px;
    }
}

/* Mobile - mais espaçamento entre blocos */
@media (max-width: 991px) {
    .footer .col-lg-4 {
        margin-bottom: 40px;
    }
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 3rem;
        text-align: center;
    }

    .dashboard-mockup {
        transform: none;
        margin-top: 3rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .btn:last-child {
        margin-bottom: 0;
    }

    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }

    .stats {
        padding: 3rem 0;
    }

    .features,
    .pricing,
    .business-types {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .feature-card,
    .pricing-card {
        margin-bottom: 2rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .navbar-brand img {
        height: 28px;
    }
}

/* Performance optimizations */
.lazy-load {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Loading spinner para melhor UX */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states para acessibilidade */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.logo-img {
    max-width: 310px;
}