/* ==========================================================================
   GOVPORTAL SAAS - DESIGN SYSTEM & ESTILOS DE ALTA CONVERSÃO
   Tipografia: Plus Jakarta Sans & Outfit
   ========================================================================== */

:root {
    /* Paleta Principal */
    --primary: #1E3A8A;
    --primary-light: #2563EB;
    --primary-dark: #0F172A;
    --accent: #0284C7;
    --accent-glow: rgba(2, 132, 199, 0.35);
    --gold: #F59E0B;
    --emerald: #10B981;
    --emerald-dark: #059669;
    --danger: #EF4444;

    /* Gradientes Premium */
    --grad-primary: linear-gradient(135deg, #1E3A8A 0%, #0F172A 100%);
    --grad-blue: linear-gradient(135deg, #2563EB 0%, #0284C7 100%);
    --grad-hero: linear-gradient(180deg, #0B1120 0%, #0F172A 60%, #1E293B 100%);
    --grad-emerald: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --grad-gold: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    --grad-glow: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.25) 0%, rgba(15, 23, 42, 0) 70%);

    /* Cores Neutras */
    --bg-dark: #0B1120;
    --bg-surface: #0F172A;
    --bg-surface-2: #1E293B;
    --bg-light: #F8FAFC;
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-light: #E2E8F0;
    --text-white: #FFFFFF;
    --text-muted: #94A3B8;
    --text-dark: #0F172A;
    --text-body: #334155;

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 35px var(--accent-glow);

    /* Raios e Transições */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Global */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-muted);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    color: var(--text-white);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Containers */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

/* Topbar Superior de Aviso Comercial */
.topbar-promo {
    background: linear-gradient(90deg, #1E3A8A 0%, #2563EB 50%, #059669 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.02em;
}

.topbar-promo .badge-novo {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
}

/* Navbar Principal */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-dark);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 900;
    color: white;
    font-family: 'Outfit', sans-serif;
}

.brand-logo .logo-icon {
    width: 42px;
    height: 42px;
    background: var(--grad-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-menu a {
    font-size: 0.92rem;
    font-weight: 600;
    color: #CBD5E1;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: #38BDF8;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--grad-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.btn-success {
    background: var(--grad-emerald);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-gold {
    background: var(--grad-gold);
    color: #0F172A;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-radius: 12px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 7rem 0 5rem 0;
    background: var(--grad-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: var(--grad-glow);
    pointer-events: none;
    z-index: 1;
}

.hero-badge-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-badge {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7DD3FC;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1.5rem;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.03em;
}

.hero-title span.highlight {
    background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 50%, #34D399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    color: #CBD5E1;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dark);
    border-radius: 14px;
    max-width: 880px;
    margin: 0 auto 4rem auto;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #E2E8F0;
}

.hero-trust-item i {
    color: #38BDF8;
    font-size: 1.15rem;
}

/* Mockup Showcase Interativo */
.hero-mockup-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(37, 99, 235, 0.2);
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 14px 16px;
    border-bottom: 1px solid var(--border-dark);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #EF4444; }
.mockup-dots span:nth-child(2) { background: #F59E0B; }
.mockup-dots span:nth-child(3) { background: #10B981; }

.mockup-tabs {
    display: flex;
    gap: 6px;
    background: rgba(15, 23, 42, 0.6);
    padding: 4px;
    border-radius: 8px;
}

.mockup-tab-btn {
    background: transparent;
    border: none;
    color: #94A3B8;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.mockup-tab-btn.active {
    background: #2563EB;
    color: white;
}

.mockup-screen {
    border-radius: 12px;
    overflow: hidden;
    background: #020617;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Stats Bar */
.stats-section {
    background: #0F172A;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #93C5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.95rem;
    color: #94A3B8;
    font-weight: 600;
}

/* Seções Padrão */
.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 4rem auto;
}

.section-tag {
    color: #38BDF8;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: #94A3B8;
}

/* Explorador de Módulos (Tabs) */
.modules-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 3rem;
}

.module-nav-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-dark);
    color: #94A3B8;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.module-nav-btn:hover, .module-nav-btn.active {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.module-panel {
    display: none;
}

.module-panel.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-blue);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.12);
    color: #38BDF8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.feature-text {
    font-size: 0.92rem;
    color: #94A3B8;
    line-height: 1.55;
}

/* Calculadora SaaS & Oportunidade */
.saas-calc-box {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.calc-slider-wrapper {
    margin: 2rem 0;
}

.calc-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #334155;
    outline: none;
    -webkit-appearance: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #38BDF8;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.8);
}

.calc-result-card {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.calc-val-monthly {
    font-size: 3rem;
    font-weight: 900;
    color: #10B981;
    font-family: 'Outfit', sans-serif;
    margin: 0.5rem 0;
}

.calc-val-yearly {
    font-size: 1.2rem;
    color: #94A3B8;
    font-weight: 700;
}

/* Tabela Comparativa */
.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-dark);
}

.comparison-table th {
    background: rgba(15, 23, 42, 0.95);
    color: white;
    font-size: 1rem;
    font-weight: 800;
}

.comparison-table th.highlight-col, .comparison-table td.highlight-col {
    background: rgba(37, 99, 235, 0.08);
    border-left: 2px solid #2563EB;
    border-right: 2px solid #2563EB;
}

/* Card de Preços & Oferta Comercial */
.pricing-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
    border: 2px solid #38BDF8;
    border-radius: 24px;
    padding: 3.5rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(56, 189, 248, 0.2);
    text-align: center;
}

.pricing-badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-gold);
    color: #0F172A;
    font-weight: 900;
    font-size: 0.85rem;
    padding: 6px 20px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.pricing-features-list {
    text-align: left;
    list-style: none;
    margin: 2.5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pricing-features-list li {
    font-size: 0.95rem;
    color: #E2E8F0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features-list li i {
    color: #10B981;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* FAQ Acordeão */
.faq-accordion {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    color: #94A3B8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    max-height: 500px;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

/* Rodapé */
.footer {
    background: #070B14;
    border-top: 1px solid var(--border-dark);
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* WhatsApp Flutuante */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Responsividade */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.8rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .module-panel.active { grid-template-columns: repeat(2, 1fr); }
    .saas-calc-box { grid-template-columns: 1fr; }
    .pricing-features-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero-title { font-size: 2.2rem; }
    .hero-desc { font-size: 1.05rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .module-panel.active { grid-template-columns: 1fr; }
    .pricing-card { padding: 2rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
}
