:root{
  --bg:#f8fafc;
  --card:#ffffff;
  --border: rgba(15,23,42,.10);
  --text:#0f172a;
  --muted: rgba(15,23,42,.60);
  --pill: rgba(15,23,42,.04);
  --shadow: 0 18px 60px rgba(2,6,23,.12);
  --brand:#2563eb;
  --brand2:#60a5fa;
  --ring: rgba(37,99,235,.22);
}

*{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;
  background: var(--bg);
  color: var(--text);
}
.bg{
  position:fixed; inset:0; pointer-events:none;
  background:
    radial-gradient(900px 650px at 20% 10%, rgba(37,99,235,.12), transparent 55%),
    radial-gradient(900px 650px at 80% 20%, rgba(96,165,250,.10), transparent 52%),
    linear-gradient(180deg, var(--bg), #eef2ff);
}

.top{ position:fixed; top:16px; left:0; right:0; z-index:50; }
.nav{
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 14px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text);}
.mark{
  width:34px; height:34px; border-radius:12px;
  border:1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--brand) 18%, transparent);
}
.brandText{
  font-weight:800;
  letter-spacing:.10em;
  font-size:12px;
  text-transform:uppercase;
}
.navLinks{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.pill{
  border:1px solid var(--border);
  background: var(--pill);
  padding:8px 10px;
  border-radius:999px;
  font-weight:700;
  font-size:12px;
  text-decoration:none;
  color: color-mix(in srgb, var(--text) 92%, transparent);
  transition:.12s;
  cursor:pointer;
}
.pill:hover{
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.cta{
  padding:10px 14px;
  border-radius: 14px;
  border:1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#ffffff;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  box-shadow: 0 12px 30px rgba(37,99,235,.22);
}
@media (max-width: 980px){ .navLinks{display:none;} }

.wrap{max-width:1120px; margin:0 auto; padding:104px 16px 70px; position:relative;}

.hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
  align-items:stretch;
}
@media (max-width: 900px){ .hero{grid-template-columns:1fr;} }

.heroLeft, .heroRight{
  border:1px solid var(--border);
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.heroLeft{padding:28px;}
.eyebrow{
  display:inline-flex;
  font-size:11px;
  font-weight:800;
  color: color-mix(in srgb, var(--text) 65%, transparent);
  border:1px solid var(--border);
  background: var(--pill);
  padding:6px 10px;
  border-radius:999px;
}
.heroLeft h1{
  margin:14px 0 0;
  font-size:44px;
  line-height:1.06;
  letter-spacing:-.02em;
  font-weight:800;
}
.sub{
  margin-top:12px;
  color: var(--muted);
  font-weight:550;
  line-height:1.60;
  max-width: 620px;
}
.heroBtns{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px;}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--border);
  background: var(--pill);
  padding:10px 14px;
  border-radius:14px;
  font-weight:750;
  font-size:13px;
  color: color-mix(in srgb, var(--text) 92%, transparent);
  text-decoration:none;
  cursor:pointer;
}
.btn.primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#ffffff;
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow: 0 12px 30px rgba(37,99,235,.18);
}
.stats{
  margin-top:16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
@media (max-width:700px){ .stats{grid-template-columns:1fr;} }
.stat{
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border-radius:18px;
  padding:12px;
}
.statTop{font-weight:800;}
.statBot{margin-top:6px; color: color-mix(in srgb, var(--text) 55%, transparent); font-weight:650; font-size:12px; line-height:1.35;}

.heroRight{overflow:hidden;}
.panelHead{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.panelTitle{font-weight:800;}
.dots{display:flex; gap:6px;}
.dots span{
  width:10px; height:10px; border-radius:999px;
  background: color-mix(in srgb, var(--text) 18%, transparent);
  border:1px solid color-mix(in srgb, var(--text) 12%, transparent);
}
.dots .on{
  background: color-mix(in srgb, var(--brand) 35%, transparent);
  border-color: color-mix(in srgb, var(--brand) 25%, transparent);
  box-shadow: 0 0 18px rgba(37,99,235,.18);
}
.panelBody{
  padding:16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size:13px;
  line-height:1.7;
  color: color-mix(in srgb, var(--text) 78%, transparent);
}
.panelBody .muted{margin-top:10px; color: color-mix(in srgb, var(--text) 52%, transparent);}
.y{color: color-mix(in srgb, var(--brand) 80%, var(--text) 20%);}
.g{color:#10b981}

.section{margin-top:26px;}
.sectionHead h2{margin:0; font-size:22px; font-weight:800;}
.sectionHead p{margin:8px 0 0; color: var(--muted); font-weight:600;}

.grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
@media (max-width: 1000px){ .grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width: 560px){ .grid{grid-template-columns:1fr;} }
.agent{
  border:1px solid var(--border);
  background: var(--card);
  border-radius: 20px;
  padding:14px;
  box-shadow: var(--shadow);
}
.agentTop{display:flex; justify-content:space-between; gap:10px; align-items:flex-start;}
.agentName{font-weight:800;}
.agentDesc{margin-top:6px; color: color-mix(in srgb, var(--text) 60%, transparent); font-weight:600; font-size:12px; line-height:1.45;}
.badge{
  border:1px solid var(--border);
  background: var(--pill);
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:11px;
}
.badge.pro{
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.tags{margin-top:10px; display:flex; flex-wrap:wrap; gap:8px;}
.tag{
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  border-radius:999px;
  padding:6px 10px;
  font-weight:800;
  font-size:11px;
  color: color-mix(in srgb, var(--text) 75%, transparent);
}

.workspace{
  margin-top:14px;
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:12px;
}
@media (max-width: 900px){ .workspace{grid-template-columns:1fr;} }
.sidebar{
  border:1px solid var(--border);
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.sidebarTop{
  padding:14px 14px;
  border-bottom:1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.sidebarTitle{font-weight:800;}
.sidebarHint{margin-top:6px; font-size:12px; color:var(--muted); font-weight:600;}
.sidebarList{padding:10px; display:grid; gap:8px;}
.agentItem{
  text-align:left;
  border:1px solid var(--border);
  background: var(--pill);
  border-radius: 18px;
  padding:12px;
  cursor:pointer;
}
.agentItem.active{
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.agentItem .t{font-weight:800;}
.agentItem .d{margin-top:6px; font-size:12px; color:var(--muted); font-weight:600; line-height:1.35;}

.chatPanel{
  border:1px solid var(--border);
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding:14px;
}
.chatTop{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.chatLabel{font-size:11px; font-weight:800; color: var(--muted);}
.chatAgent{font-weight:800; font-size:14px;}
.chip{
  border:1px solid var(--border);
  background: var(--pill);
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:11px;
}
.chatLog{
  margin-top:12px;
  min-height:260px;
  max-height:420px;
  overflow:auto;
  padding:10px;
  border:1px solid var(--border);
  border-radius:18px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.msg{margin:8px 0; display:flex;}
.msg.user{justify-content:flex-end;}
.bubble{
  max-width:80%;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid var(--border);
  background: var(--pill);
  color: color-mix(in srgb, var(--text) 92%, transparent);
  font-weight:650;
  font-size:13px;
  line-height:1.4;
}
.msg.user .bubble{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#fff;
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
}
.chatBar{margin-top:10px; display:flex; gap:10px;}
.chatBar input{
  flex:1;
  border-radius:14px;
  border:1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding:10px 12px;
  outline:none;
  font-weight:650;
}
.chatBar input:focus{
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow: 0 0 0 5px var(--ring);
}

.docsCard, .profileCard{
  margin-top:14px;
  border:1px solid var(--border);
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding:18px;
}
.docsCard h3{margin:0 0 8px; font-weight:800;}
pre{
  margin:0 0 16px;
  padding:12px;
  border-radius:16px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  overflow:auto;
  color: color-mix(in srgb, var(--text) 85%, transparent);
  font-size:12px;
}
.profileCard .row{
  display:flex; justify-content:space-between; gap:12px;
  padding:12px 10px;
  border-bottom:1px solid var(--border);
}
.profileCard .row:last-child{border-bottom:none;}
.k{color: var(--muted); font-weight:800; font-size:12px;}
.v{font-weight:800; font-size:12px;}

.footer{
  margin-top:28px;
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
  color: var(--muted);
  font-weight:800;
  font-size:12px;
}
.foot a{color: color-mix(in srgb, var(--text) 75%, transparent); text-decoration:none; margin-left:10px;}
.foot a:hover{text-decoration:underline;}
