:root {
    --bg: #0b1020;
    --panel: #11182d;
    --panel-2: #16213a;
    --text: #eef4ff;
    --muted: #99a7c2;
    --primary: #38bdf8;
    --primary-dark: #0284c7;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: rgba(255,255,255,.1);
    --card: #ffffff;
    --body: #f4f7fb;
    --dark-text: #172033;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--dark-text); background: var(--body); }
a { color: inherit; text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 800; cursor: pointer; transition: .2s; font-size: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #2563eb); color: white; box-shadow: 0 12px 28px rgba(56,189,248,.26); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--border); background: rgba(255,255,255,.06); color: inherit; }
.btn-danger { background: var(--danger); color: white; }
.btn-small { padding: 8px 11px; border-radius: 10px; font-size: 12px; }
.btn-large { padding: 14px 20px; font-size: 16px; }
.site-body { background: radial-gradient(circle at top left, #193b64, #08101f 45%, #050914); color: var(--text); }
.site-header { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 18px 6vw; border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); background: rgba(5,9,20,.72); }
.site-logo, .brand { font-size: 25px; font-weight: 900; letter-spacing: -1px; color: white; }
.site-logo span, .brand span { color: var(--primary); }
.site-nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-weight: 700; }
.hero { min-height: 78vh; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 70px 6vw; }
.badge { display: inline-flex; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; color: #b8e7ff; background: rgba(56,189,248,.1); margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: .96; margin: 0 0 20px; letter-spacing: -3px; }
.hero p { color: var(--muted); font-size: 19px; line-height: 1.7; max-width: 720px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-card { padding: 22px; border: 1px solid var(--border); border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.mini-window { background: #0c1427; border-radius: 22px; padding: 18px; border: 1px solid var(--border); }
.window-dots { display: flex; gap: 7px; margin-bottom: 22px; }
.window-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--primary); opacity: .8; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stats-grid div { background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.stats-grid strong { display: block; font-size: 28px; color: white; }
.stats-grid small { color: var(--muted); }
.pipeline-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.pipeline-preview span { padding: 14px 10px; border-radius: 13px; background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.25); text-align: center; color: #c8edff; font-weight: 700; }
.section { padding: 70px 6vw; }
.section h2 { font-size: clamp(30px, 4vw, 48px); margin: 0 0 12px; letter-spacing: -1px; }
.section-subtitle { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid article { background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.feature-grid p { color: var(--muted); line-height: 1.6; }
.dark-section { background: rgba(0,0,0,.24); }
.module-list { display: flex; gap: 10px; flex-wrap: wrap; }
.module-list span { padding: 12px 15px; background: rgba(255,255,255,.08); border: 1px solid var(--border); border-radius: 999px; color: #d9edff; font-weight: 700; }
.cta-section { text-align: center; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at top, #164e63, #08111f 45%, #030712); padding: 20px; }
.login-card { width: min(440px, 100%); background: white; padding: 30px; border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.login-card h1 { margin: 0; font-size: 32px; }
.login-card p { color: #65748b; margin-bottom: 22px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 800; margin-bottom: 7px; }
input, select, textarea { width: 100%; border: 1px solid #d8e0ed; border-radius: 12px; padding: 12px 13px; font-size: 15px; background: white; color: #172033; }
textarea { min-height: 100px; resize: vertical; }
.app-body { display: flex; min-height: 100vh; background: var(--body); }
.sidebar { width: 270px; min-height: 100vh; background: #071121; color: white; padding: 22px; position: fixed; inset: 0 auto 0 0; z-index: 10; }
.brand { margin-bottom: 24px; }
.menu { display: grid; gap: 7px; }
.menu a { padding: 12px 14px; border-radius: 12px; color: #aab8cf; font-weight: 800; }
.menu a:hover, .menu a.active { background: rgba(56,189,248,.13); color: white; }
.main { flex: 1; margin-left: 270px; min-width: 0; }
.topbar { background: white; border-bottom: 1px solid #e5ecf5; padding: 18px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 4; }
.topbar h1 { margin: 0; font-size: 24px; }
.topbar small { color: #64748b; }
.menu-toggle { display: none; border: 0; background: #eef6ff; border-radius: 10px; padding: 10px 12px; font-size: 18px; }
.content { padding: 24px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: white; border: 1px solid #e5ecf5; border-radius: 18px; padding: 20px; box-shadow: 0 10px 30px rgba(15,23,42,.04); }
.card h2, .card h3 { margin-top: 0; }
.stat strong { display: block; font-size: 29px; color: #0f172a; }
.stat span { color: #64748b; font-weight: 700; }
.table-wrap { overflow-x: auto; background: white; border-radius: 18px; border: 1px solid #e5ecf5; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px 15px; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: top; }
th { color: #475569; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; background: #f8fafc; }
.status { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-weight: 900; font-size: 12px; }
.status.novo, .status.aberto { background: #e0f2fe; color: #0369a1; }
.status.andamento, .status.em-atendimento { background: #fef3c7; color: #92400e; }
.status.fechado, .status.finalizado, .status.pago { background: #dcfce7; color: #166534; }
.status.perdido, .status.atrasado { background: #fee2e2; color: #991b1b; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.alert { padding: 13px 15px; border-radius: 14px; margin-bottom: 16px; font-weight: 800; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 10px; }
.kanban-col { background: #edf3fb; border-radius: 18px; padding: 14px; min-height: 260px; }
.kanban-col h3 { margin: 0 0 12px; font-size: 15px; }
.lead-card { background: white; border-radius: 14px; padding: 14px; margin-bottom: 12px; border: 1px solid #e2e8f0; box-shadow: 0 8px 20px rgba(15,23,42,.04); }
.lead-card strong { display: block; margin-bottom: 4px; }
.lead-card small { color: #64748b; display: block; margin-bottom: 8px; }
@media (max-width: 980px) {
    .hero, .feature-grid, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .site-nav { display: none; }
    .sidebar { transform: translateX(-100%); transition: .2s; }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .menu-toggle { display: inline-flex; }
    .topbar { align-items: flex-start; }
    .content { padding: 16px; }
}
@media (max-width: 620px) {
    .hero { padding: 44px 22px; }
    .section { padding: 48px 22px; }
    .stats-grid, .pipeline-preview { grid-template-columns: 1fr; }
    .topbar { padding: 14px; }
    .topbar h1 { font-size: 20px; }
}
