:root{
  /* Light / corporate palette */
  --bg:#f6f8fb;
  --panel:#ffffff;
  --panel2:#fbfcff;
  --text:#0f172a;            /* slate-900 */
  --muted: rgba(15,23,42,.62);
  --border: rgba(15,23,42,.10);

  /* Single subtle accent (corporate blue) */
  --brand:#2563eb;           /* blue-600 */
  --brand2:#2563eb;

  /* Status (muted, not neon) */
  --good:#16a34a;            /* green-600 */
  --warn:#d97706;            /* amber-600 */
  --bad:#dc2626;             /* red-600 */

  --shadow: 0 24px 70px rgba(2,6,23,.10);
  --shadow2: 0 10px 28px rgba(2,6,23,.08);

  --r: 14px;
  --r2: 18px;
  --max: 1180px;
}

*{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, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(37,99,235,.08), transparent 55%),
    radial-gradient(900px 520px at 95% 10%, rgba(37,99,235,.05), transparent 60%),
    var(--bg);
  overflow-x:hidden;
}

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

/* --- Badge --- */
.badge{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.75);
  border-radius:999px;
  font-size:12.5px;
  color: rgba(15,23,42,.70);
  box-shadow: 0 10px 22px rgba(2,6,23,.05);
}
.dot{
  width:9px; height:9px; border-radius:50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(37,99,235,.10);
}

/* --- Nav --- */
.nav{
  position:sticky; top:0; z-index:30;
  backdrop-filter: blur(10px);
  background: rgba(246,248,251,.80);
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{height:28px; width:auto; display:block}
.brand .name{font-weight:800; letter-spacing:.2px}
.brand .tag{font-size:12px; color:var(--muted); margin-top:2px}

.nav-links{display:flex; gap:16px; align-items:center}
.nav-links a{
  font-size:13.5px;
  color:var(--muted);
  padding:8px 10px;
  border-radius:12px;
}
.nav-links a:hover{
  background: rgba(15,23,42,.05);
  color: var(--text);
}

/* --- Buttons --- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:11px 14px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.85);
  color: var(--text);
  box-shadow: var(--shadow2);
  font-weight:650;
}
.btn:hover{background:#fff}
.btn.primary{
  border: 1px solid rgba(37,99,235,.25);
  background: rgba(37,99,235,.10);
  color: #0b1b3a;
}
.btn.primary:hover{background: rgba(37,99,235,.14)}
.btn.small{padding:9px 12px; border-radius:12px; font-size:13px}

/* --- Hero --- */
.hero{padding:52px 0 20px;}
.hero-grid{
  display:grid;
  grid-template-columns: 1.08fr .92fr;
  gap:22px;
  align-items:stretch;
}
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr;}
  .nav-links{display:none;}
}
.h-title{
  font-size:48px;
  line-height:1.03;
  letter-spacing:-.8px;
  margin:14px 0 10px;
}
@media (max-width: 600px){ .h-title{font-size:38px;} }
.h-sub{
  margin:0 0 18px;
  font-size:16.5px;
  color:var(--muted);
  max-width: 58ch;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 18px}

/* Subtle highlight */
.grad{
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(37,99,235,.35);
  text-underline-offset: 6px;
}

.kpis{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:14px;
}
@media (max-width: 720px){ .kpis{grid-template-columns:1fr;} }
.kpi{
  padding:14px 14px;
  border-radius: var(--r);
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 22px rgba(2,6,23,.05);
}
.kpi .v{font-weight:900; font-size:18px}
.kpi .l{font-size:12.5px; color:var(--muted); margin-top:4px}

/* --- Main panel --- */
.panel{
  border-radius: var(--r2);
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.90);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel-inner{padding:16px 18px}
.panel-title{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.88);
}
.panel-title .t{font-weight:800; letter-spacing:.2px}
.panel-title .s{font-size:12.5px; color:var(--muted)}

/* --- Sections --- */
.section{padding:28px 0 46px;}
.section h2{
  margin:0 0 8px;
  font-size:22px;
  letter-spacing:-.2px;
}
.section p.lead{
  margin:0 0 18px;
  color:var(--muted);
  max-width: 70ch;
}

/* Feature grid */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}
@media (max-width: 980px){ .grid{grid-template-columns:1fr;} }

.feature{
  padding:16px;
  border-radius: var(--r);
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 22px rgba(2,6,23,.05);
}
.feature .icon{
  width:36px; height:36px;
  border-radius: 12px;
  display:grid; place-items:center;
  background: rgba(37,99,235,.10);
  border:1px solid rgba(37,99,235,.18);
  margin-bottom:10px;
}
.feature h3{margin:0 0 6px; font-size:14.5px}
.feature p{margin:0; color:var(--muted); font-size:13px; line-height:1.55}

/* CTA */
.cta{
  border-radius: var(--r2);
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.88);
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  box-shadow: 0 10px 22px rgba(2,6,23,.05);
}
@media (max-width: 820px){ .cta{flex-direction:column; align-items:flex-start;} }
.cta h3{margin:0 0 6px}
.cta p{margin:0; color:var(--muted)}

/* Footer */
.footer{
  padding:22px 0 26px;
  border-top: 1px solid rgba(15,23,42,.08);
  color: var(--muted);
  font-size:12.5px;
}

/* =========================================================
   Preview: map + kanban + trace + commissions (light)
   ========================================================= */

.preview2{
  padding:16px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:12px;
  background: rgba(15,23,42,.03);
}
@media (max-width: 980px){
  .preview2{grid-template-columns: 1fr;}
}

.tile{
  border-radius: 16px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  overflow:hidden;
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
}
.tile-h{
  padding:12px 14px;
  border-bottom:1px solid rgba(15,23,42,.08);
  display:flex; justify-content:space-between; gap:12px; align-items:baseline;
  background: rgba(255,255,255,.92);
}
.tile-t{font-weight:800; font-size:13.5px}
.tile-s{color:var(--muted); font-size:12px}

/* Fix: Kanban needs width */
.preview2 .tile.kanban{ grid-column: 1 / -1; }

/* Pills and tags (light) */
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  font-size:12px;
}
.pill .mini{width:8px; height:8px; border-radius:50%;}
.mini.good{background:var(--good)}
.mini.warn{background:var(--warn)}
.mini.bad{background:var(--bad)}

.tag{
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  color: rgba(15,23,42,.68);
}
.tag.good{border-color: rgba(22,163,74,.22); color: rgba(22,163,74,.92)}
.tag.ok{border-color: rgba(37,99,235,.22); color: rgba(37,99,235,.92)}

/* Map */
.map-canvas{
  position:relative;
  height: 230px;
  background: linear-gradient(180deg, rgba(37,99,235,.05), rgba(255,255,255,0));
}
.map-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(to right, rgba(15,23,42,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,.06) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity:.50;
}
.geo-poly, .route{
  position:absolute; inset:0;
  width:100%; height:100%;
}
.geo-poly path{
  fill: rgba(22,163,74,.10);
  stroke: rgba(22,163,74,.40);
  stroke-width: 3;
}
.route path{
  stroke: rgba(37,99,235,.55);
  stroke-width: 3;
  stroke-dasharray: 6 7;
}
.marker{
  position:absolute;
  width:18px; height:18px;
  transform: translate(-50%,-50%);
}
.pin{
  width:12px; height:12px;
  margin:3px auto 0;
  border-radius:50%;
  background: rgba(22,163,74,.85);
  box-shadow: 0 0 0 6px rgba(22,163,74,.12);
}
.pulse{
  position:absolute; inset:-14px;
  border-radius:50%;
  border:2px solid rgba(22,163,74,.25);
  animation: pulse 2.2s infinite;
}
@keyframes pulse{
  0%{transform:scale(.55); opacity:.22}
  60%{transform:scale(1.05); opacity:0}
  100%{transform:scale(1.05); opacity:0}
}
.map-chips{
  position:absolute; left:10px; bottom:10px;
  display:flex; gap:8px; flex-wrap:wrap;
}

/* Kanban */
.kanban-cols{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  padding:12px;
}
@media (max-width: 980px){ .kanban-cols{grid-template-columns:1fr;} }

.col{
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.02);
  border-radius: 14px;
  padding:10px;
}
.col-h{
  display:flex; justify-content:space-between; align-items:center;
  font-weight:800;
  font-size:12.5px;
  color: rgba(15,23,42,.90);
  margin-bottom:10px;
}
.count{
  font-size:12px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.85);
  color: rgba(15,23,42,.65);
}
.cardx{
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  border-radius: 14px;
  padding:10px;
  margin-bottom:10px;
}
.cardx:last-child{margin-bottom:0}
.cardx-t{font-weight:800; font-size:13px}
.cardx-s{color:rgba(15,23,42,.62); font-size:12px; margin-top:3px}
.tags{display:flex; gap:6px; flex-wrap:wrap; margin-top:10px}

/* Trace */
.trace-body{padding:12px}
.trace-top{
  display:flex; justify-content:space-between; align-items:center;
  gap:10px; flex-wrap:wrap
}
.imei{font-size:13px; color: rgba(15,23,42,.92)}
.timeline{margin-top:12px; display:grid; gap:10px}
.ev{display:flex; gap:10px; align-items:flex-start}
.dotx{
  width:10px; height:10px; border-radius:50%;
  background: rgba(15,23,42,.25);
  margin-top:4px;
  box-shadow: 0 0 0 6px rgba(15,23,42,.06);
}
.dotx.ok{
  background: rgba(22,163,74,.85);
  box-shadow: 0 0 0 6px rgba(22,163,74,.12);
}
.meta .m1{font-weight:800; font-size:12.5px}
.meta .m2{color:rgba(15,23,42,.62); font-size:12px; margin-top:2px}

/* Commission */
.comm-body{padding:12px}
.row{
  display:grid;
  grid-template-columns: 1.1fr 2fr .8fr;
  gap:10px;
  align-items:center;
  padding:8px 0;
}
.who{color:rgba(15,23,42,.88); font-size:12.5px}
.pct{font-weight:900; font-size:12.5px; text-align:right}
.bar{
  height:10px;
  border-radius:999px;
  background: rgba(15,23,42,.06);
  border:1px solid rgba(15,23,42,.10);
  overflow:hidden;
}
.bar i{
  display:block;
  height:100%;
  background: rgba(37,99,235,.55);
  border-radius:999px;
}
.comm-foot{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
