:root {
  --bg: #0a0e17;
  --bg-card: #10151f;
  --border: #1f2937;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --danger: #ef4444;
  --success: #22c55e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

header.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
header.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }

.hero { padding: 5rem 0 4rem; text-align: center; }
.hero h1 { font-size: 2.5rem; margin: 0 0 1rem; }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 640px; margin: 0 auto 2rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--primary-dark); }

/* Ilustração do painel — mockup estilizado, não é um print real do produto */
.mockup-section { padding: 0 0 4rem; }
.mockup {
  display: grid;
  grid-template-columns: 72px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.mockup-sidebar { background: #0d1320; padding: 1.25rem 0.75rem; display: flex; flex-direction: column; align-items: center; gap: 0.85rem; }
.mockup-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--primary); margin-bottom: 0.5rem; }
.mockup-nav-item { width: 28px; height: 8px; border-radius: 4px; background: var(--border); }
.mockup-nav-active { background: var(--primary); width: 28px; }
.mockup-main { padding: 1.5rem; }
.mockup-topbar { height: 10px; width: 40%; border-radius: 4px; background: var(--border); margin-bottom: 1.5rem; }
.mockup-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.mockup-stat { background: #0d1117; border: 1px solid var(--border); border-radius: 10px; padding: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.mockup-stat-label { font-size: 0.72rem; color: var(--text-muted); }
.mockup-stat-value { font-size: 1.6rem; font-weight: 700; color: var(--text); }
.mockup-stat-warn { color: #facc15; }
.mockup-stat-ok { color: var(--success); }
.mockup-panels { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.mockup-chart { background: #0d1117; border: 1px solid var(--border); border-radius: 10px; padding: 1rem; }
.mockup-chart svg { width: 100%; height: 90px; }
.mockup-chart polyline { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mockup-list { background: #0d1117; border: 1px solid var(--border); border-radius: 10px; padding: 1rem; display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; }
.mockup-list-row { display: flex; align-items: center; gap: 0.6rem; }
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mockup-dot-danger { background: var(--danger); }
.mockup-dot-warn { background: #facc15; }
.mockup-dot-ok { background: var(--success); }
.mockup-bar { height: 8px; border-radius: 4px; background: var(--border); }
@media (max-width: 640px) {
  .mockup { grid-template-columns: 1fr; }
  .mockup-sidebar { flex-direction: row; justify-content: center; }
  .mockup-stats { grid-template-columns: 1fr; }
  .mockup-panels { grid-template-columns: 1fr; }
}

.features { padding: 3rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.feature-card h3 { margin-top: 0; font-size: 1.05rem; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; }

.demo-section { padding: 4rem 0; }
.demo-section h2 { text-align: center; font-size: 1.75rem; margin-bottom: 0.5rem; }
.demo-section > .container > p.subtitle { text-align: center; color: var(--text-muted); margin-bottom: 2rem; }

form.demo-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0d1117;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 90px; }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.alert { border-radius: 8px; padding: 0.9rem 1.1rem; margin-bottom: 1.5rem; font-size: 0.92rem; }
.alert-success { background: rgba(34,197,94,0.12); border: 1px solid var(--success); color: #86efac; }
.alert-error { background: rgba(239,68,68,0.12); border: 1px solid var(--danger); color: #fca5a5; }

footer.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
footer.site-footer a { color: var(--text-muted); }
footer.site-footer a:hover { color: var(--text); }

/* Área restrita */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 380px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
.auth-card h1 { font-size: 1.3rem; margin-top: 0; }

.admin-shell { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.admin-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.admin-nav a { color: var(--text-muted); text-decoration: none; margin-left: 1rem; font-size: 0.9rem; }
.admin-nav a:hover { color: var(--text); }

table.leads-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
table.leads-table th, table.leads-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
table.leads-table th { color: var(--text-muted); font-weight: 600; }
table.leads-table tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-pending { background: rgba(234,179,8,0.15); color: #facc15; }
.badge-approved { background: rgba(34,197,94,0.15); color: #4ade80; }
.badge-rejected { background: rgba(239,68,68,0.15); color: #f87171; }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; border-radius: 6px; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b91c1c; }
