:root{
  --bg:#0f172a;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --text:#e5e7eb;
  --muted: rgba(229,231,235,0.72);
  --line: rgba(255,255,255,0.12);
  --brand:#6366f1;
  --brand2:#4f46e5;
  --ok:#22c55e;
  --warn:#f59e0b;
  --bad:#ef4444;
  --shadow: 0 18px 60px rgba(0,0,0,0.35);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Inter,Helvetica,Arial,sans-serif;
  background: radial-gradient(1100px 600px at 20% 0%, rgba(99,102,241,0.22), transparent 55%),
              radial-gradient(900px 500px at 90% 10%, rgba(34,197,94,0.10), transparent 60%),
              var(--bg);
  color: var(--text);
}

a{ color:inherit; text-decoration:none; }
.container{ max-width: 1100px; margin: 0 auto; padding: 0 18px; }

.header{
  position: sticky;
  top:0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(15,23,42,0.55);
  border-bottom: 1px solid var(--line);
}
.header-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.2px;
}
.brand-badge{
  width: 34px; height: 34px;
  display:grid; place-items:center;
  border-radius: 10px;
  background: rgba(99,102,241,0.18);
  border: 1px solid rgba(99,102,241,0.35);
}
.nav{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nav a{
  padding: 9px 12px;
  border-radius: 10px;
  opacity: 0.85;
  border: 1px solid transparent;
}
.nav a:hover{
  opacity: 1;
  background: rgba(255,255,255,0.05);
  border-color: var(--line);
}
.nav a.active{
  opacity: 1;
  background: rgba(99,102,241,0.14);
  border-color: rgba(99,102,241,0.30);
}

.hero{
  padding: 60px 0 24px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
}
.h-title{
  font-size: 44px;
  line-height: 1.08;
  margin:0 0 14px;
}
@media (max-width: 520px){
  .h-title{ font-size: 34px; }
}
.h-sub{
  margin:0 0 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.btn-row{ display:flex; gap: 12px; flex-wrap: wrap; }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}
.btn.primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:white;
  box-shadow: var(--shadow);
}
.btn.primary:hover{ filter: brightness(1.05); }
.btn.outline{
  background: rgba(255,255,255,0.02);
  border-color: rgba(99,102,241,0.50);
  color: #c7d2fe;
}
.btn.outline:hover{ background: rgba(99,102,241,0.12); }
.btn.ghost{
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
  color: var(--text);
}
.btn.ghost:hover{ background: rgba(255,255,255,0.07); }

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.card:hover{ background: var(--card2); }
.card-title{ font-size: 16px; font-weight: 900; margin: 0 0 8px; }
.card-sub{ margin:0; color: var(--muted); line-height:1.6; font-size: 14px; }

.section{
  padding: 26px 0 56px;
}
.section h2{
  margin:0 0 12px;
  font-size: 22px;
  letter-spacing: -0.2px;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 860px){
  .grid-3{ grid-template-columns: 1fr; }
}

.kpi{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer{
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  color: rgba(229,231,235,0.55);
  font-size: 13px;
}

/* forms */
.field{ display:flex; flex-direction:column; gap: 7px; margin-bottom: 12px; }
label{ font-size: 13px; color: rgba(229,231,235,0.85); font-weight: 800; }
input[type="text"], input[type="password"], textarea, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  outline: none;
}
textarea{ min-height: 92px; resize: vertical; }
input:focus, textarea:focus, select:focus{
  border-color: rgba(99,102,241,0.55);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}

.helper{ color: var(--muted); font-size: 13px; line-height:1.55; }
.hr{ height:1px; background: var(--line); margin: 14px 0; }

.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  font-size: 13px;
  color: var(--muted);
}
.badge.ok{ border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.10); color: rgba(187,247,208,0.95); }
.badge.warn{ border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.12); color: rgba(254,243,199,0.95); }
.badge.bad{ border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.12); color: rgba(254,202,202,0.95); }

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.table th, .table td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th{ text-align:left; font-size: 13px; color: rgba(229,231,235,0.80); background: rgba(255,255,255,0.04); }
.table td{ font-size: 14px; }
.table tr:last-child td{ border-bottom:none; }

.small{ font-size: 12px; color: var(--muted); }
.mono{ font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; }
/* ===== Mobile header ===== */
.menu-btn{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
}
.menu-btn:hover{ background: rgba(255,255,255,0.07); }

.mobile-nav{
  display:none;
  border-top: 1px solid var(--line);
  padding: 10px 0 14px;
}
.mobile-nav a{
  display:block;
  padding: 12px 12px;
  border-radius: 12px;
  margin: 6px 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  opacity: 0.95;
}
.mobile-nav a:hover{ background: rgba(255,255,255,0.06); }

@media (max-width: 720px){
  .nav{ display:none; }
  .menu-btn{ display:inline-flex; align-items:center; justify-content:center; }
  .btn{ width: 100%; padding: 14px 16px; }
}

