:root{
  --bg: #f8fafc;            /* slate-50 */
  --card: #ffffff;
  --text: #0f172a;          /* slate-900 */
  --muted: #475569;         /* slate-600 */
  --muted2:#64748b;         /* slate-500 */
  --border:#e2e8f0;         /* slate-200 */
  --blue:#2563eb;           /* blue-600 */
  --blue2:#1d4ed8;          /* blue-700 */
  --ring: rgba(37,99,235,.20);
  --shadow: 0 10px 30px rgba(2,6,23,.08);
  --shadow2: 0 6px 16px rgba(2,6,23,.07);
  --radius: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(37,99,235,.12), transparent 55%),
    radial-gradient(1000px 600px at 90% 0%, rgba(37,99,235,.08), transparent 50%),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
.container{ max-width: 1120px; margin:0 auto; padding: 0 20px; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(248,250,252,.72);
  border-bottom: 1px solid rgba(226,232,240,.75);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo{
  width:34px; height:34px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,1), rgba(59,130,246,.55));
  box-shadow: 0 10px 20px rgba(37,99,235,.18);
}
.nav{
  display:flex; gap:18px; align-items:center;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.nav a{ padding:8px 10px; border-radius: 10px; }
.nav a:hover{ background: rgba(37,99,235,.06); color: var(--text); }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow2);
}
.btn:hover{ border-color: rgba(37,99,235,.35); box-shadow: 0 10px 20px rgba(2,6,23,.08); }
.btn-primary{
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  border-color: rgba(29,78,216,.45);
  color: #fff;
  box-shadow: 0 14px 28px rgba(37,99,235,.22);
}
.btn-primary:hover{ filter: brightness(1.03); }
.btn-ghost{
  background: transparent;
  box-shadow:none;
}

.hero{
  padding: 72px 0 28px;
}
.kicker{
  display:inline-flex; gap:8px; align-items:center;
  border: 1px solid rgba(37,99,235,.18);
  background: rgba(37,99,235,.06);
  color: rgba(29,78,216,1);
  font-weight: 800;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
}
.h1{
  margin: 16px 0 10px;
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.sub{
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.hero-cta{ margin-top: 22px; display:flex; gap:12px; flex-wrap:wrap; }

.grid{
  display:grid;
  gap:16px;
}
.grid-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }

.card{
  background: var(--card);
  border: 1px solid rgba(226,232,240,.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad{ padding: 18px; }

.section{ padding: 28px 0 64px; }
.section-title{
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.section-sub{
  margin:0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.feature h3{ margin:0 0 6px; font-size: 16px; letter-spacing: -0.02em; }
.feature p{ margin:0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.badge{
  display:inline-flex; align-items:center;
  padding:6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(226,232,240,.9);
  background: rgba(15,23,42,.02);
  color: var(--muted2);
  font-weight: 700;
  font-size: 12px;
}

.split{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: stretch;
}
.mock{
  height: 280px;
  border-radius: 14px;
  border: 1px dashed rgba(37,99,235,.35);
  background:
    linear-gradient(180deg, rgba(37,99,235,.08), transparent),
    radial-gradient(800px 280px at 20% 0%, rgba(37,99,235,.12), transparent 55%),
    #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(29,78,216,.9);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.footer{
  padding: 28px 0;
  border-top: 1px solid rgba(226,232,240,.85);
  color: var(--muted2);
  font-size: 13px;
}

hr.sep{
  border:0;
  border-top: 1px solid rgba(226,232,240,.85);
  margin: 18px 0;
}

/* Dashboard layout */
.app{
  display:grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 64px);
  gap: 16px;
  padding: 16px 0 28px;
}
.sidebar{
  padding: 14px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px - 16px);
  overflow:auto;
}
.side-title{ font-weight: 900; letter-spacing:-0.02em; margin: 0 0 8px; }
.side-item{
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.side-item:hover{ background: rgba(37,99,235,.06); color: var(--text); }
.side-item.active{
  background: rgba(37,99,235,.10);
  color: rgba(29,78,216,1);
  border: 1px solid rgba(37,99,235,.18);
}
.main{
  display:grid;
  gap: 16px;
}
.kpis{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.kpi .label{ color: var(--muted2); font-size: 12px; font-weight: 800; }
.kpi .value{ font-size: 22px; font-weight: 900; letter-spacing:-0.02em; margin-top: 6px; }
.kpi .hint{ margin-top: 6px; color: var(--muted); font-size: 12px; }

.table{
  width:100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th, .table td{
  border-top: 1px solid rgba(226,232,240,.85);
  padding: 10px 10px;
  text-align:left;
}
.table th{ color: var(--muted2); font-size: 12px; }
.pill{
  display:inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(226,232,240,.9);
}
.pill.ok{ background: rgba(16,185,129,.10); color: rgba(6,95,70,1); border-color: rgba(16,185,129,.25); }
.pill.warn{ background: rgba(245,158,11,.12); color: rgba(146,64,14,1); border-color: rgba(245,158,11,.28); }
.pill.bad{ background: rgba(239,68,68,.10); color: rgba(153,27,27,1); border-color: rgba(239,68,68,.26); }

.input{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(226,232,240,.95);
  background: #fff;
  outline: none;
}
.input:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 5px var(--ring);
}

@media (max-width: 980px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .app{ grid-template-columns: 1fr; }
  .sidebar{ position: relative; top: auto; height: auto; }
  .kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
