:root {
    --navy: #0b0b2e;
    --navy-light: #12123f;
    --blue: #4f6df5;
    --purple: #9333ea;
    --text-light: #f5f5fa;
    --text-muted: #a0a0c0;
    --text-dark: #1a1a2e;
    --border: #e2e2f0;
    --bg-light: #f8f8fc;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* Header */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--text-light);
}

.logo-img { height: 28px; display: block; }

.footer-inner .logo-img { height: 24px; margin-bottom: 4px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav > a,
.nav-dropdown > a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
}

.main-nav > a:hover,
.nav-dropdown > a:hover { color: var(--blue); }

.nav-dropdown { position: relative; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy-light);
    border-radius: 8px;
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    color: var(--text-light);
    font-size: 14px;
    border-radius: 6px;
}

.dropdown-menu a:hover { background: rgba(255,255,255,0.08); }

.btn-cta {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
}

/* Hero */
.hero {
    background: var(--navy);
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    max-width: 720px;
    margin: 0 auto 20px;
    line-height: 1.2;
}

.hero .highlight {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto 32px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
}

.btn-secondary {
    display: inline-block;
    border: 1px solid var(--text-muted);
    color: var(--text-light);
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    margin-left: 12px;
}

/* Generic sections */
section { padding: 80px 0; }

.section-light { background: var(--bg-light); }

.section-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: #555;
    max-width: 560px;
    margin: 0 auto 48px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: #555; font-size: 15px; }

.card.is-upcoming { opacity: 0.85; }

.badge-soon {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(79,109,245,0.12), rgba(147,51,234,0.12));
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon svg { width: 22px; height: 22px; }

.callout {
    background: var(--navy);
    color: var(--text-light);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

/* Solucoes CRM page */
.crm-hero {
    background: var(--navy);
    color: var(--text-light);
    padding: 100px 0 80px;
}

.crm-hero h1 { font-size: 42px; font-weight: 800; max-width: 640px; margin-bottom: 16px; }
.crm-hero p { color: var(--text-muted); font-size: 18px; max-width: 560px; margin-bottom: 32px; }

.flow-steps {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1;
    min-width: 140px;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.flow-step strong { display: block; margin-bottom: 4px; font-size: 15px; color: var(--text-dark); }

.flow-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--blue);
}

.flow-step-icon svg { width: 20px; height: 20px; }

.flow-step.is-negative .flow-step-icon { background: #fdecea; color: #e5484d; }

/* Dashboard mockup */
.dash-mock {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(11,11,46,0.18);
    margin: 40px 0;
    font-family: inherit;
}

.dash-sidebar {
    width: 190px;
    background: var(--navy);
    color: var(--text-light);
    padding: 20px 14px;
    flex-shrink: 0;
}

.dash-logo { font-weight: 800; font-size: 15px; letter-spacing: 1px; margin-bottom: 24px; }

.dash-nav-group {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 16px 0 6px;
}

.dash-nav-item {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--text-muted);
}

.dash-nav-item.active { background: rgba(255,255,255,0.08); color: var(--text-light); }

.dash-main {
    flex: 1;
    background: #f4f5fb;
    padding: 24px;
}

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

.dash-stat {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid var(--border);
}

.dash-stat-label { display: block; font-size: 11px; color: #777; margin-bottom: 6px; }
.dash-stat-value { font-size: 20px; font-weight: 800; color: var(--text-dark); }

.dash-charts {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 12px;
}

.dash-chart-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--border);
}

.dash-chart-title { font-size: 12px; font-weight: 700; color: #555; display: block; margin-bottom: 12px; }

.dash-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    color: #555;
}

.dash-bar-row span { width: 64px; flex-shrink: 0; }

.dash-bar-track { flex: 1; background: #eee; border-radius: 999px; height: 8px; overflow: hidden; }
.dash-bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--purple)); border-radius: 999px; }

.dash-donut-wrap { display: flex; align-items: center; justify-content: center; gap: 16px; }

.dash-donut {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: conic-gradient(var(--blue) 0% 40%, #22c55e 40% 89%, #f59e0b 89% 99%, var(--purple) 99% 100%);
    position: relative;
    flex-shrink: 0;
}

.dash-donut::after {
    content: "";
    position: absolute;
    inset: 20px;
    background: #fff;
    border-radius: 50%;
}

.dash-legend { font-size: 11px; color: #555; }
.dash-legend-item { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.dash-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Flow diagram mockup */
.flow-diagram {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin: 40px 0;
    overflow-x: auto;
    padding-bottom: 8px;
}

.flow-col {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    min-width: 170px;
    flex: 1;
}

.flow-col-title {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--blue);
    margin-bottom: 12px;
}

.flow-chip {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    color: #444;
    margin-bottom: 8px;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    flex-shrink: 0;
}

.flow-orb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    flex-shrink: 0;
    align-self: center;
    box-shadow: 0 12px 24px rgba(79,109,245,0.35);
}

/* Field builder mockup (fiel a /configuracoes/crm/formularios) */
.field-builder {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(11,11,46,0.12);
    margin: 40px 0;
}

.field-builder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.field-builder-header strong { font-size: 15px; color: var(--text-dark); }

.btn-new-field {
    background: #22c55e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
}

.field-table-wrap { overflow-x: auto; }

.field-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 720px;
}

.field-table thead th {
    text-align: left;
    background: var(--bg-light);
    color: #666;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.field-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    white-space: nowrap;
}

.field-table tbody tr:last-child td { border-bottom: none; }

.field-table td.check { text-align: center; color: #22c55e; font-weight: 700; }
.field-table td.muted { color: #bbb; }
.field-table td.check.muted { color: #ddd; }

.field-type-tag {
    display: inline-block;
    background: var(--bg-light);
    color: #555;
    font-size: 11px;
    font-family: 'SF Mono', Menlo, monospace;
    padding: 3px 8px;
    border-radius: 5px;
}

.field-type-tag.is-calc { background: rgba(34,197,94,0.12); color: #15803d; }

.field-config-chip {
    display: inline-block;
    background: var(--bg-light);
    color: #555;
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    white-space: normal;
}

.field-config-chip.is-repeat { background: rgba(79,109,245,0.1); color: var(--blue); }
.field-config-chip.is-calc { background: rgba(34,197,94,0.12); color: #15803d; }

@media (max-width: 768px) {
    .dash-mock { flex-direction: column; }
    .dash-sidebar { width: 100%; display: flex; gap: 8px; align-items: center; padding: 12px 16px; }
    .dash-nav-group, .dash-nav-item { display: none; }
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-charts { grid-template-columns: 1fr; }
    .flow-diagram { flex-direction: column; }
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: var(--text-muted);
    padding: 56px 0 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-inner .logo { color: var(--text-light); margin-bottom: 8px; }

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--text-light); }

.copyright {
    text-align: center;
    font-size: 13px;
    padding-top: 24px;
}

/* Simple pages (sobre, contato, blog) */
.page-hero {
    background: var(--bg-light);
    padding: 80px 0;
    text-align: center;
}

.page-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: #555; max-width: 560px; margin: 0 auto; }

.empty-state {
    text-align: center;
    padding: 60px 0;
    color: #777;
}

/* Blog */
.blog-card { display: block; }

.blog-date {
    display: block;
    font-size: 12px;
    color: var(--blue);
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-back {
    display: inline-block;
    font-size: 14px;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 16px;
}

.blog-post-meta { color: #777; font-size: 14px; }

.blog-post-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-post-body h2 { font-size: 24px; margin: 32px 0 12px; }
.blog-post-body h3 { font-size: 19px; margin: 24px 0 10px; }
.blog-post-body p { margin-bottom: 16px; }
.blog-post-body ul, .blog-post-body ol { margin: 0 0 16px 24px; }
.blog-post-body li { margin-bottom: 6px; }
.blog-post-body a { color: var(--blue); text-decoration: underline; }
.blog-post-body code { background: var(--bg-light); padding: 2px 6px; border-radius: 4px; font-size: 14px; }

.contact-email {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 24px;
    color: #555;
    font-size: 15px;
}

.contact-email a { color: var(--blue); font-weight: 600; }

.contact-feedback {
    max-width: 520px;
    margin: 0 auto 20px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.contact-feedback.is-success { background: rgba(34,197,94,0.12); color: #15803d; }
.contact-feedback.is-error { background: rgba(229,72,77,0.1); color: #b3261e; }

form.contact-form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

form.contact-form input,
form.contact-form textarea {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

form.contact-form textarea { min-height: 140px; resize: vertical; }

@media (max-width: 768px) {
    .main-nav { display: none; }
    .hero h1 { font-size: 32px; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 24px; }
}
