/* ============================================
   LEADZAP AI - Premium Stylesheet
   ============================================ */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gradient-1: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0ea5e9 100%);
    --gradient-2: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,.15);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all .3s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #334155;
    line-height: 1.6;
    background: #f8fafc;
}

/* ============================================
   SITE INSTITUCIONAL
   ============================================ */

.site-nav {
    background: rgba(15, 23, 42, .95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: .8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.site-nav .nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.site-nav .nav-brand span { color: var(--primary-light); }
.site-nav .nav-link { color: rgba(255,255,255,.75); font-weight: 500; transition: var(--transition); }
.site-nav .nav-link:hover { color: #fff; }

/* Hero */
.hero-section {
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79,70,229,.3), transparent 60%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14,165,233,.2), transparent 60%);
    bottom: -100px;
    left: -50px;
    border-radius: 50%;
}
.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-section h1 .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-section .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 2rem;
    max-width: 540px;
}
.hero-section .hero-impact {
    font-size: .95rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Buttons */
.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.btn-hero-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 20px rgba(79,70,229,.4);
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79,70,229,.5);
    color: #fff;
}
.btn-hero-secondary {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

/* Sections */
.section-site {
    padding: 6rem 0;
}
.section-site.bg-dark {
    background: var(--gradient-2);
    color: #fff;
}
.section-site.bg-light {
    background: #f8fafc;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: .5rem;
    line-height: 1.2;
}
.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--gray-500);
    max-width: 650px;
    margin: 0 auto 3.5rem;
}
.bg-dark .section-subtitle { color: rgba(255,255,255,.6); }

/* Pain Section */
.pain-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}
.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--danger);
}
.pain-card .pain-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fef2f2;
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
}
.pain-card h5 { font-weight: 700; font-size: .95rem; }
.pain-card p { font-size: .85rem; color: var(--gray-500); margin: 0; }

/* Feature Cards */
.feature-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card .f-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}
.feature-card h5 { font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: var(--gray-500); margin: 0; }

/* Comparison Table */
.comparison-table { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.comparison-table thead th {
    background: var(--dark);
    color: #fff;
    padding: 1rem;
    font-weight: 700;
    font-size: .9rem;
    text-align: center;
    border: none;
}
.comparison-table thead th.winner {
    background: var(--primary);
}
.comparison-table tbody td {
    padding: .8rem 1rem;
    text-align: center;
    font-size: .9rem;
    vertical-align: middle;
}
.comparison-table .check { color: var(--success); font-weight: 700; font-size: 1.1rem; }
.comparison-table .cross { color: var(--danger); font-size: 1.1rem; }
.comparison-table .partial { color: var(--warning); font-size: 1.1rem; }

/* Pricing */
.pricing-card {
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    height: 100%;
}
.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}
.pricing-card.featured .pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: #fff;
    padding: .4rem 1.5rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
}
.pricing-card h4 { font-weight: 800; margin-bottom: .5rem; }
.pricing-card .price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
    margin: 1rem 0;
}
.pricing-card .price small { font-size: 1rem; color: var(--gray-500); font-weight: 500; }
.pricing-card .price .currency { font-size: 1.5rem; vertical-align: top; }
.pricing-card ul { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; }
.pricing-card ul li {
    padding: .5rem 0;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid var(--gray-100);
}
.pricing-card ul li i { color: var(--success); }

/* Storytelling */
.story-step {
    text-align: center;
    padding: 2rem 1rem;
}
.story-step .step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1rem;
}

/* FAQ */
.faq-item {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: .8rem;
    overflow: hidden;
}
.faq-item .faq-question {
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-item .faq-question:hover { background: var(--gray-100); }
.faq-item .faq-answer { padding: 0 1.5rem 1.2rem; color: var(--gray-600); }

/* ============================================
   PAINEL (MASTER + EMPRESA)
   ============================================ */

.panel-sidebar {
    width: 260px;
    height: 100vh;
    background: var(--dark);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}
.panel-sidebar::-webkit-scrollbar { width: 4px; }
.panel-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }
.panel-sidebar .sidebar-brand {
    padding: 1.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
    position: sticky;
    top: 0;
    background: var(--dark);
    z-index: 2;
}
.panel-sidebar .sidebar-brand span { color: var(--primary-light); }
.panel-sidebar .sidebar-menu { padding: .5rem 0 2rem; }
.panel-sidebar .sidebar-section {
    padding: .5rem 1.5rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: rgba(255,255,255,.3);
    margin-top: .5rem;
}
.panel-sidebar .sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1.5rem;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.panel-sidebar .sidebar-link:hover {
    color: #fff;
    background: rgba(255,255,255,.05);
}
.panel-sidebar .sidebar-link.active {
    color: #fff;
    background: rgba(79,70,229,.2);
    border-left-color: var(--primary-light);
}
.panel-sidebar .sidebar-link i { width: 20px; text-align: center; font-size: 1rem; }

.panel-main {
    margin-left: 260px;
    min-height: 100vh;
    background: #f1f5f9;
}

.panel-topbar {
    background: #fff;
    padding: .8rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.panel-topbar .topbar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.panel-content {
    padding: 2rem;
}

/* Stats Cards */
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}
.stat-card .stat-label {
    font-size: .85rem;
    color: var(--gray-500);
    font-weight: 500;
}
.stat-card .stat-change {
    font-size: .8rem;
    font-weight: 600;
}
.stat-card .stat-change.up { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger); }

/* Table */
.table-premium {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.table-premium table { margin: 0; }
.table-premium thead th {
    background: var(--gray-100);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--gray-600);
    padding: .8rem 1rem;
    border: none;
}
.table-premium tbody td {
    padding: .8rem 1rem;
    font-size: .9rem;
    vertical-align: middle;
    border-color: var(--gray-100);
}
.table-premium tbody tr:hover { background: var(--gray-100); }

/* Badges */
.badge-status {
    padding: .35rem .75rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.badge-quente { background: #fef2f2; color: #dc2626; }
.badge-morno { background: #fffbeb; color: #d97706; }
.badge-frio { background: #eff6ff; color: #2563eb; }
.badge-ativo { background: #ecfdf5; color: #059669; }
.badge-inativo { background: #fef2f2; color: #dc2626; }
.badge-trial { background: #fef3c7; color: #d97706; }
.badge-rascunho { background: var(--gray-100); color: var(--gray-600); }
.badge-em_andamento { background: #dbeafe; color: #2563eb; }
.badge-pausada { background: #fef3c7; color: #d97706; }
.badge-concluida { background: #ecfdf5; color: #059669; }
.badge-cancelada { background: #fef2f2; color: #dc2626; }

/* Cards */
.card-premium {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-premium .card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
}
.toast-premium {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 600;
    margin-bottom: .5rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn .3s ease;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section h1 { font-size: 2.5rem; }
    .panel-sidebar { transform: translateX(-100%); }
    .panel-sidebar.open { transform: translateX(0); }
    .panel-main { margin-left: 0; }
    .pricing-card.featured { transform: none; }
}
@media (max-width: 576px) {
    .hero-section h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .panel-content { padding: 1rem; }
}
