:root{
  --bg:#f7f9fc;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --line:#e5e7eb;
  --accent:#2563eb;
  --accent2:#4f46e5;
  --good:#16a34a;
  --warn:#d97706;
  --radius:16px;
  --shadow: 0 10px 24px rgba(0,0,0,.08);
  --max: 1080px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(37,99,235,.06), transparent 60%),
    radial-gradient(900px 400px at 85% 10%, rgba(79,70,229,.05), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5fb 100%);
  color:var(--text);
  font-family:var(--font);
  line-height:1.65;
  font-size:17px;
}

a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:var(--max);margin:0 auto;padding:0 22px}

/* NAV */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:#ffffffcc;
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--line);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
  gap:18px;
}

.brand{display:flex;align-items:center;gap:12px}
.logo{
  width:34px;height:34px;border-radius:10px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
}

.brand b{font-size:17px;letter-spacing:.2px}
.brand span{display:block;color:var(--muted);font-size:13px;margin-top:-2px}

.menu{display:flex;gap:12px;flex-wrap:wrap}
.menu a{
  color:var(--muted);
  font-size:14px;
  padding:8px 12px;
  border-radius:10px;
}
.menu a.active,
.menu a:hover{
  color:var(--text);
  background:#f1f5f9;
}

/* HERO */
.hero{padding:64px 0 28px}
.hero-grid{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:28px;
}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr}
}

.h1{
  font-size:42px;
  line-height:1.15;
  margin:0 0 16px;
}
@media (max-width:520px){
  .h1{font-size:34px}
}

.sub{
  color:var(--muted);
  font-size:18px;
  max-width:65ch;
}

.pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.pill{
  border:1px solid var(--line);
  background:#f8fafc;
  color:var(--muted);
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
}

/* CARDS */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.card-pad{padding:22px}

.kpi{
  display:grid;
  gap:12px;
}

.kpi .row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:14px;
}
.kpi .row b{color:var(--text);font-weight:600}

/* BUTTONS */
.btns{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 18px;
  border-radius:12px;
  font-weight:600;
  font-size:14px;
  border:1px solid var(--line);
}

.btn.primary{
  background:var(--accent);
  color:#ffffff;
  border:none;
}
.btn.primary:hover{opacity:.95}

.btn.ghost{
  background:#f8fafc;
  color:var(--text);
}
.btn.ghost:hover{background:#eef2f7}

/* SECTIONS */
.section{padding:36px 0}

.h2{
  font-size:24px;
  margin:0 0 10px;
}

.lead{
  color:var(--muted);
  font-size:18px;
  margin:0 0 18px;
}

.grid3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
@media (max-width:900px){
  .grid3{grid-template-columns:1fr}
}

.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
@media (max-width:900px){
  .grid2{grid-template-columns:1fr}
}

.item{padding:22px}
.item h3{
  margin:0 0 8px;
  font-size:16px;
}
.item p{
  margin:0;
  color:var(--muted);
  font-size:15px;
}

.list{
  margin:10px 0 0;
  padding:0 0 0 18px;
  color:var(--muted);
  font-size:15px;
}
.list li{margin:8px 0}

/* UTIL */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--muted);
}

.dot{
  width:8px;
  height:8px;
  border-radius:99px;
  background:var(--good);
}
.dot.warn{background:var(--warn)}

.hr{
  height:1px;
  background:var(--line);
  margin:16px 0;
}

.small{
  font-size:13px;
  color:var(--muted);
}

/* FOOTER */
.footer{
  padding:32px 0 40px;
  color:var(--muted);
  font-size:13px;
}

/* FORMS */
.form{display:grid;gap:12px}

label{
  font-size:13px;
  color:var(--muted);
}

input, textarea, select{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#ffffff;
  color:var(--text);
  font-size:15px;
}

textarea{
  min-height:120px;
  resize:vertical;
}
